body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 60px;
    bottom: 0;
    width: 100%;
    min-height: 600px;
}

.search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#search-button, #locate-me {
    padding: 8px 12px;
    margin-left: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

#locate-me {
    background-color: #2196F3;
}

#search-button:hover, #locate-me:hover {
    opacity: 0.9;
}

/* Legend styles */
.legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-height: 50vh;
    overflow-y: auto;
    font-size: 12px;
    max-width: 200px;
}

.legend h4 {
    margin: 0 0 10px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid #777;
}

/* Popup styles */
.leaflet-popup-content {
    margin: 10px;
    font-size: 14px;
}

.leaflet-popup-content p {
    margin: 5px 0;
}

.leaflet-popup-content strong {
    color: #333;
}

@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
    }
    
    #search-input, #search-button, #locate-me {
        width: 100%;
        margin: 3px 0;
    }
    
    .legend {
        max-width: 150px;
        font-size: 10px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.header-container {
    position: absolute;
    top: 10;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: 100%;
}

#info-bar {
    padding: 8px 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

#map {
    position: absolute;
    top: 90px; /* Adjusted for header height */
    bottom: 0;
    width: 100%;
}

.search-container {
    display: flex;
    padding: 10px;
}

.leaflet-interactive {
    fill-opacity: 0.3 !important;
    stroke-opacity: 0.7 !important;
}

.leaflet-interactive:hover {
    fill-opacity: 0.5 !important;
}

/*log bar*/
/* Grey logo bar at the top */
.logo-bar {
    background-color: #ffffff; /* light grey */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #ccc;
}

/* Logo image */
.logo {
    height: 40px;
    object-fit: contain;
}
/* Add to styles.css */
.detailed-popup h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.detailed-popup strong {
    color: #2c3e50;
    font-weight: 600;
}

.detailed-popup p {
    margin: 5px 0;
    line-height: 1.4;
}

.detailed-popup small {
    color: #7f8c8d;
    font-size: 0.9em;
}

#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-content {
    width: 80%;
    max-width: 400px;
}
.progress-bar {
    height: 4px;
    background: #3498db;
    width: 0%;
    transition: width 0.3s;
}