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;
}

.management-compact {
    font-size: 0.92rem;
}

.management-compact .form-label {
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.management-compact .form-control,
.management-compact .form-select {
    min-height: calc(1.5em + 0.45rem + 2px);
    padding: 0.2rem 0.45rem;
    font-size: 0.85rem;
}

.management-compact textarea.form-control {
    min-height: 3.2rem;
}

.management-compact .btn {
    font-size: 0.85rem;
    padding: 0.22rem 0.55rem;
}

.management-compact .list-group-item {
    padding: 0.5rem 0.65rem;
}

.management-compact .card-header {
    padding: 0.5rem 0.75rem;
}

.management-compact .card-body {
    padding: 0.75rem;
}

.management-compact .row.g-3 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0.75rem;
}

.management-compact .row.g-2 {
    --bs-gutter-y: 0.35rem;
    --bs-gutter-x: 0.6rem;
}

.navbar {
    position: relative;
    z-index: 2000;
}

.navbar .navbar-brand a {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #f8f9fa;
        padding: 0.75rem 0.25rem;
        border-top: 1px solid #e9ecef;
        z-index: 2001;
    }
}

/* Cookie consent UI (matches legacy production naming to ease parity checks). */
.cookieConsentToggle {
    width: 36px;
    height: 36px;
    position: fixed;
    will-change: transform;
    padding: 0;
    border: 1px solid #dce8f5;
    box-shadow: 0 4px 12px rgba(16, 35, 61, 0.18);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    bottom: 20px;
    right: 20px;
    transition: 0.2s;
    opacity: 1;
    z-index: 99980;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #10233d;
    font-family: Inter, Arial, sans-serif;
}

.cookieConsentToggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 35, 61, 0.24);
}

.cookieConsentToggle__Icon {
    font-size: 16px;
    line-height: 1;
}

.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__Links {
    margin: 10px 0 0;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.cookieConsent__Link {
    color: #9fd5f2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookieConsent__Link:hover {
    color: #fff;
}

.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;
}

.cookieConsent__Button--Primary {
    background: #177bad;
    color: #fff;
    border: 1px solid #177bad;
}

.cookieConsent__Button--Soft {
    background: #eef4fa;
    color: #10233d;
    border: 1px solid #d2deea;
}

.cookieConsentOperations {
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 35, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    z-index: 99999;
}

.cookieConsentOperations__List {
    background: #fff;
    color: #000;
    max-width: 560px;
    width: calc(100% - 24px);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(14, 30, 50, 0.3);
    padding: 22px;
    margin: auto;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: 100vh;
}

.cookieConsentOperations__Header {
    margin-bottom: 14px;
}

.cookieConsentOperations__Header .cookieConsent__Links {
    color: #4f647b;
}

.cookieConsentOperations__Header .cookieConsent__Link {
    color: #177bad;
}

.cookieConsentOperations__Header .cookieConsent__Link:hover {
    color: #0f5f87;
}

.cookieConsentOperations__Current {
    margin: 10px 0 0;
    font-size: 13px;
    color: #4f647b;
    font-family: Inter, Arial, sans-serif;
}

.cookieConsentOperations__Item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-family: Poppins, sans-serif;
    border: 1px solid #e6edf4;
    border-radius: 10px;
    padding: 10px 12px;
}

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

.cookieConsentOperations__Item.disabled {
    color: #777;
    background: #f6f8fa;
}

.cookieConsentOperations__Actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

    .cookieConsentToggle {
        right: 12px;
        bottom: 12px;
    }
}

.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 {
    background: #fff;
}

.footer .footer-subcontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 16px;
}

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

.footer .logo-section {
    gap: 10px;
}

.footer .rights {
    margin: 0;
    font: 500 12px "Poppins", sans-serif;
    color: #66788f;
}

.footer .footer-logo {
    width: 28px;
    height: 28px;
}

.footer .social-section {
    justify-content: center;
}

.footer .legal-section {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer .footer-legal-link {
    font: 500 12px "Poppins", sans-serif;
    color: #66788f;
    text-decoration: none;
}

.footer .footer-legal-link:hover {
    color: #177bad;
    text-decoration: underline;
}

.footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.footer .footer-social-link img {
    width: 16px;
    height: 16px;
}

@media (min-width: 800px) {
    .footer .footer-subcontainer {
        padding: 12px 24px;
    }
}

@media (max-width: 800px) {
    .footer .footer-subcontainer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px 16px;
    }
}
