/* Reset some default styles */
body, h1, h2, p, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

#map {
    position: absolute;
    top: 0;
    bottom: 25px; /* Adjust this value if needed based on footer height */
    width: 100%;
}

.map-title-container {
    position:absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 24px;
    font-weight: bold;
}

.loading-indicator {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 18px;
    border-radius: 4px;
    z-index: 1000;
}

.map-title {
    margin-right: 10px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-button:hover {
    background-color: #555;
}

.social-button.twitter { background-color: #1DA1F2; }
.social-button.facebook { background-color: #3b5998; }
.social-button.linkedin { background-color: #0077b5; }
.social-button.instagram { background-color: #E1306C; }

#left-panel {
    position: absolute;
    top: 80px;
    left: 0; /* Adjust left position */
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    width: 300px;
    max-height: calc(100vh - 120px); /* Adjust for map title and padding */
    overflow-y: auto; /* Scroll if content exceeds height */
    transition: transform 0.8s ease; /* Transition for sliding effect */
    transform: translateX(0); /* Initial position */
}

#left-panel.closed {
    transform: translateX(-95%); /* Slide out of view */
}

.toggle-button {
    position: absolute;
    top: 55px; /* Position it above the left panel */
    left: 10px; /* Position it just outside the left panel */
    cursor: pointer;
    font-size: 18px;
    background: rgba(153, 196, 245, 0.8); /* Match the left panel background */
    border-radius: 4px;
    padding: 5px 10px;
    z-index: 1000; /* Ensure it's above other elements */
    user-select: none; /* Prevent text selection */
}

.section {
    margin-bottom: 15px; /* Spacing between sections */
}

.section-title {
    font-weight: bold;
    margin-bottom: 5px; /* Spacing between title and content */
}

#dynamic-air-quality-desc {
    color: blue;
    font-size: 16px;
    font-weight: bold;
}

.search-container {
    z-index: 1;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    /* margin-top: 35px; */
}

.search-container input[type="text"] {
    width: 250px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    display: none;
}

.search-results-item {
    padding: 5px;
    cursor: pointer;
}

.search-results-item:hover {
    background-color: #f0f0f0;
}
.toast {
    visibility: hidden;
    max-width: 50px;
    height: 50px;
    margin-left: -125px;
    margin-bottom: 30px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    left: 50%;
    font-size: 17px;
    white-space: nowrap;
}

.toast.show {
    visibility: visible;
    max-width: 100%;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}
.aqi-value {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}
.aqi-good { 
    background-color: rgb(2, 158, 2); /* Green for Good */
    color: #f0f0f0;

} 
.aqi-moderate { 
    text-align: center;
    color: #000000; /* Yellow for Moderate */
    background-color: #cece2d;
} 
.aqi-unhealthy-for-sensitive { 
    text-align: center;
    background-color: #FF7E00; /* Orange for Unhealthy for Sensitive Groups */
    color: #f0f0f0;
} 
.aqi-unhealthy { 
    text-align: center;
    background-color: #FF0000; /* Red for Unhealthy */
    color: #f0f0f0;
} 
.aqi-very-unhealthy { 
    text-align: center;
    background-color: #a0068b; /* Purple for Very Unhealthy */
    color: #f0f0f0;
} 
.aqi-hazardous { 
    text-align: center;
    background-color: #7E0023; /* Maroon for Hazardous */
    color: #f0f0f0;
}

.aqi-detaled-desc {
    padding: 1px;
    text-align: center;
    color: #081e2b;
    font-size: medium;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 5px;
}

.footer-content a {
    margin-right: 15px;
    color: #f2f2f2;
    text-decoration: none;
    font-size: 12px;
}

.footer-content a:hover {
    color: #04AA6D;
    font-size: 14px;
}