/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main content */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Map container */
#map {
    height: 60vh;
    min-height: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Location info panel */
.location-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-info h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.location-list {
    list-style: none;
}

.location-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.location-list li:last-child {
    border-bottom: none;
}

.number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Custom marker styles */
.custom-marker {
    background: #667eea;
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (min-width: 768px) {
    .container {
        padding: 20px;
    }
    
    main {
        flex-direction: row;
        align-items: flex-start;
    }
    
    #map {
        flex: 2;
        height: 70vh;
        min-height: 500px;
    }
    
    .location-info {
        flex: 1;
        max-width: 300px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    #map {
        height: 75vh;
        min-height: 600px;
    }
    
    header h1 {
        font-size: 3rem;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .container {
        padding: 5px;
    }
    
    header {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    #map {
        height: 50vh;
        min-height: 300px;
    }
    
    .location-info {
        padding: 15px;
    }
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

/* Touch-friendly controls for mobile */
.leaflet-control-zoom a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .leaflet-control-zoom a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 16px;
    }
}
