html, body {
    margin: 0;
    padding: 0;
}

/* Legacy navbar logo sizing/margins (matches production Svelte CSS). */
.navbar-brand img {
    max-height: 60px;
    max-width: 150px;
    margin-left: 10px;
}

/* Cookie consent UI (matches legacy production naming to ease parity checks). */
.cookieConsentToggle {
    width: 40px;
    height: 40px;
    position: fixed;
    will-change: transform;
    padding: 9px;
    border: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background: #fff;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
    transition: 0.2s;
    opacity: 1;
    z-index: 99980;
    cursor: pointer;
}

.cookieConsentToggle:hover {
    color: #fff;
    background: #000;
}

.cookieConsentWrapper {
    z-index: 99990;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    color: #fff;
    padding: 20px;
}

.cookieConsent {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
}

.cookieConsent__Content {
    margin-right: 40px;
}

.cookieConsent__Title {
    margin: 0;
    font-weight: 700;
    font-family: Poppins, sans-serif;
    font-size: 18px;
}

.cookieConsent__Description {
    margin: 10px 0 0;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.cookieConsent__Right {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.cookieConsent__Button {
    padding: 12px 18px;
    display: block;
    background: #fff;
    color: #000;
    white-space: nowrap;
    border: 0;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.cookieConsent__Button:hover {
    opacity: 0.7;
}

.cookieConsent__Button--Close {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

.cookieConsentOperations {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    z-index: 99999;
}

.cookieConsentOperations__List {
    background: #fff;
    color: #000;
    max-width: 520px;
    padding: 28px;
    margin: auto;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: 100vh;
}

.cookieConsentOperations__Item {
    display: block;
    padding-left: 0;
    margin-bottom: 14px;
    font-family: Poppins, sans-serif;
}

.cookieConsentOperations__Item label {
    margin-left: 8px;
    font-weight: 600;
}

.cookieConsentOperations__Item.disabled {
    color: #777;
}

@media only screen and (max-width: 900px) {
    .cookieConsent {
        display: block;
    }
    .cookieConsent__Right {
        margin-top: 16px;
        align-items: center;
        flex-wrap: wrap;
    }
}

.sc-container {
    position: relative;
    width: 100%;
}

#map {
    width: 100%;
}

@media (max-width: 800px) {
    .satellite-control {
        top: -590px;
        left: 10px;
    }
    .pollution-container {
        top: -585px;
        left: 10px;
    }

    .sc-container,
    #map {
        height: 550px;
    }
}

@media (min-width: 800px) {
    .satellite-control {
        top: -840px;
        left: 5px;
    }
    .pollution-container {
        top: -880px;
        left: 180px;
    }

    .sc-container,
    #map {
        height: 800px;
    }
}

.sc-container div {
    font-weight: 400;
    font-family: "Saira", sans-serif;
    font-size: 16px;
}

.map-buttons {
    width: 0;
}

.satellite-control {
    position: relative;
    width: 170px;
}

.satellite-control #satellite-toggle {
    width: 100px;
}
.satellite-control #map-toggle {
    width: 66px;
}

.pollution-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 170px;
}

.pollution-container * {
    font-family: Arial, Helvetica, sans-serif;
}

.pollution-container .pollution-control {
    background-color: #177bad !important;
    color: white !important;
}
.pollution-container .legend-control {
    background-color: #fff;
    border: 0;
    width: 170px;
    text-align: left;
    color: #777;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 5px;
}

.pollution-container #legend-container {
    display: flex;
    border: 2px solid white;
    align-items: center;
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    width: 170px;
}

.pollution-container #legend {
    width: 100%;
    border: 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pollution-container #legend * {
    height: 30px;
    line-height: 30px;
}

.controls-element {
    flex: 1;
}

.googly-button {
    position: relative;
    height: 40px;
    background-color: #fff;
    border: 0;
    color: black;
    padding: 0 15px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: background-color 0.3s;
    z-index: 10;
}

.controls-container {
    margin-left: 4rem;
    margin-right: 4rem;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    top: -70px;
    color: white;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
}

.controls-container .date-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    margin: 0 auto;
}

.controls-container .date-arrow {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    color: #00a0e3;
}

.controls-container .date-toggle-date {
    margin: 0 3px;
    text-align: center;
    min-width: 70px;
}

/* Promo / marketing block */
.promo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
}

.promo-container .promo-subcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1700px;
}

.promo-container .texts {
    justify-items: center;
    margin: auto;
    padding: 20px;
    background-color: #f4f4f4;
}

.promo-container .divider {
    width: 80%;
    margin: 20px 0;
    border: 1px solid #989898;
    border-bottom: 0;
}

.promo-container .promo-img {
    width: 150px;
    height: auto;
    padding: 10px;
    padding-bottom: 0;
}

.promo-container .gradient-text {
    background: linear-gradient(to right, #00a0e3 0%, #2e5a9b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font: 400 20px "Poppins", sans-serif;
    text-align: center;
    margin: 10px;
    margin-top: 0;
}

.promo-container .promo-p {
    text-align: center;
    font: 300 16px "Inter", sans-serif;
    color: #666;
    margin: 10px;
    padding: 0 20px;
}

.promo-container .bottom-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.promo-container .bottom-section p {
    font: 300 14px "Inter", sans-serif;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.promo-container .learn-more {
    width: 130px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 600px;
    padding: 0.5rem 1rem;
    font: 400 14px "Saira", sans-serif;
    text-decoration: none;
    border: 1px solid #00a0e3;
    color: white;
    background-color: #00a0e3;
}

@media (min-width: 900px) {
    .promo-container .texts-short {
        display: none;
    }

    .promo-container .texts-wide {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .promo-container .texts-wide {
        display: none;
    }
    .promo-container .texts-short {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
.footer {
    display: flex;
}

.footer .footer-subcontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-left: 100px;
    margin-right: 100px;
}

.footer .footer-section {
    display: flex;
    align-items: center;
}

.footer .rights {
    font: 500 14px "Poppins", sans-serif;
}

.footer .logo-section img {
    width: 50px;
}

.footer .social-section a img {
    width: 30px;
    margin: 0 10px;
}

@media (min-width: 800px) {
    .footer {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .footer .footer-subcontainer {
        display: flex;
        flex-direction: row;
        text-align: center;
        width: 100%;
        max-width: 1700px;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 800px) {
    .footer,
    .footer-subcontainer,
    .footer-section {
        flex-direction: column;
        text-align: center;
    }

    .footer * {
        margin-bottom: 20px;
    }
}
