﻿/* ============================================ */
/* TOP BAR */
/* ============================================ */
.top-bar {
    background: #14213a;
    padding: 6px 0;
    border-bottom: 1px solid #243654;
    font-size: 12px;
    color: #d7dfeb;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .top-bar-inner .sep {
        color: #e9ecef;
    }

    .top-bar-inner i {
        color: #ffc857;
        margin-right: 4px;
    }

    .top-bar-inner a {
        color: #d7dfeb;
        text-decoration: none;
        transition: 0.3s;
    }

        .top-bar-inner a:hover {
            color: #dc3545;
        }

/* ============================================ */
/* HEADER */
/* ============================================ */
.header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #dfe3e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .logo i {
        font-size: 24px;
        color: #dc3545;
        background: rgba(220, 53, 69, 0.08);
        padding: 8px;
        border-radius: 10px;
    }

.logo-main {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.logo-sub {
    display: block;
    font-size: 10px;
    color: #adb5bd;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav a {
        padding: 8px 16px;
        color: #6c757d;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-radius: 8px;
        transition: 0.3s;
    }

        .nav a:hover {
            color: #1a1a2e;
            background: #f8f9fa;
        }

        .nav a.active {
            color: #dc3545;
            background: rgba(220, 53, 69, 0.06);
        }

.btn-primary-nav {
    background: #dc3545 !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}

    .btn-primary-nav:hover {
        background: #c0392b !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
    }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

    .menu-toggle span {
        width: 24px;
        height: 2px;
        background: #1a1a2e;
        border-radius: 10px;
    }

/* ============================================ */
/* BANNER */
/* ============================================ */
.banner {
    padding: 40px 0;
    background: #fafbfc;
}

.banner-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.banner h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.banner p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* ============================================ */
/* MAIN */
/* ============================================ */
.main {
    padding: 30px 0 50px;
    min-height: 400px;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    border-top: 4px solid #dc3545;
    color: #d7e0ea;
    background: #0b203b;
}

.footer-emergency-band {
    border-bottom: 1px solid #29425f;
    background: #102b4e;
}

.footer-emergency-inner {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-emergency-message {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-emergency-message > span,
.footer-emergency-message strong,
.footer-emergency-message small {
    display: block;
}

.footer-emergency-message strong {
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.footer-emergency-message small {
    color: #aebed0;
    font-size: 11px;
}

.footer-emergency-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: #dc3545;
    font-size: 19px;
}

.footer-emergency-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(105px, 1fr));
    border-right: 1px solid #38516c;
}

.footer-emergency-links a {
    display: flex;
    min-height: 60px;
    padding: 8px 18px;
    border-left: 1px solid #38516c;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #dce6f0;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.footer-emergency-links a:hover,
.footer-emergency-links a:focus-visible {
    color: #ffffff;
    background: #193a5b;
}

.footer-emergency-links strong,
.footer-emergency-links span {
    display: block;
}

.footer-emergency-links strong {
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
}

.footer-emergency-links span {
    font-size: 10px;
    font-weight: 700;
}

.footer-main {
    padding-top: 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1.45fr) .8fr .7fr minmax(230px, 1fr);
    gap: 46px;
    padding-bottom: 44px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.footer-brand:hover {
    color: #ffffff;
}

.footer-brand span,
.footer-brand small {
    display: block;
}

.footer-brand small {
    margin-top: 3px;
    color: #91a5ba;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-logo {
    width: 58px;
    height: 58px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.footer-about p {
    max-width: 360px;
    margin: 0 0 18px;
    color: #aebed0;
    font-size: 12px;
    line-height: 1.7;
}

.footer-administration {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid #38516c;
    border-radius: 4px;
    color: #ffd166;
    font-size: 10px;
    font-weight: 800;
}

.footer h6 {
    margin: 5px 0 18px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 11px;
    color: #aebed0;
    font-size: 12px;
    line-height: 1.5;
}

.footer ul li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #aebed0;
    font-size: 12px;
    text-decoration: none;
    transition: color .2s ease;
}

.footer ul li a:hover,
.footer ul li a:focus-visible {
    color: #ffffff;
}

.footer ul li i {
    width: 15px;
    color: #ef6471;
    text-align: center;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact li span {
    color: #aebed0;
}

.footer-bottom {
    display: flex;
    min-height: 66px;
    border-top: 1px solid #29425f;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #71869d;
    font-size: 10px;
}

.footer-bottom p {
    margin: 0;
    color: #71869d;
    font-size: 10px;
}

.footer-visitors {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #31506f;
    border-radius: 6px;
    color: #aebed0;
    background: #112b47;
}

.footer-visitors i {
    color: #75c9a3;
}

.footer-visitors strong {
    color: #ffffff;
    font-size: 13px;
}

/* ============================================ */
/* BACK TO TOP */
/* ============================================ */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 38px;
    height: 38px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 999;
}

    .back-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-top:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
    }

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 991.98px) {
    .footer-emergency-inner {
        padding: 22px 0;
        align-items: stretch;
        flex-direction: column;
    }

    .footer-emergency-links {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0 10px;
        gap: 2px;
    }

        .nav.open {
            display: flex;
        }

    .menu-toggle {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 10px 16px;
    }

    .btn-primary-nav {
        text-align: center !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main {
        padding-top: 38px;
    }

    .footer-emergency-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-emergency-links a {
        min-width: 0;
        padding: 8px 6px;
    }

    .footer-bottom {
        padding: 18px 0;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-contact a {
        overflow-wrap: anywhere;
    }

    .banner h1 {
        font-size: 24px;
    }

    .top-bar-inner {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 11px;
        gap: 6px;
    }

        .top-bar-inner .sep {
            display: none;
        }
}
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.language-switcher a {
    color: #ffffff;
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
    color: #ffd166;
    text-decoration: underline;
}

/* Public shell refinement: keep the portal calm, legible and action-led. */
body {
    background: #f6f8fb;
}

.top-bar {
    min-height: 34px;
    padding: 7px 0;
    background: #102b4e;
    border-bottom-color: #294866;
}

.header {
    padding: 10px 0;
    background: rgba(255, 255, 255, .98);
    border-bottom-color: #e4e9ef;
    box-shadow: 0 4px 18px rgba(16, 43, 78, .06);
}

.header-inner {
    min-height: 62px;
}

.logo {
    min-width: 0;
}

.logo .app-logo {
    border: 2px solid #e4e9ef;
    box-shadow: 0 3px 12px rgba(16, 43, 78, .12);
}

.logo-main {
    color: #102b4e;
}

.logo-sub {
    color: #7b8794;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #526273;
    font-weight: 700;
}

.nav a i {
    color: #8492a1;
    font-size: 12px;
}

.nav a:hover,
.nav a:focus-visible {
    color: #102b4e;
    background: #eef4f8;
}

.nav a:hover i,
.nav a:focus-visible i {
    color: #1769aa;
}

.nav .btn-primary-nav,
.nav .btn-primary-nav:hover,
.nav .btn-primary-nav:focus-visible {
    color: #ffffff;
    background: #d93445 !important;
    box-shadow: 0 5px 14px rgba(217, 52, 69, .20);
}

.nav .btn-primary-nav i,
.nav .btn-primary-nav:hover i,
.nav .btn-primary-nav:focus-visible i {
    color: #ffffff;
}

.menu-toggle {
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #f7fafc;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: #1769aa;
    background: #eef4f8;
    outline: 0;
}

.menu-toggle span {
    background: #102b4e;
}

.footer {
    border-top: 0;
}

.footer-emergency-band {
    border-top: 4px solid #d93445;
}

.footer-column h6 {
    letter-spacing: .04em;
}

.footer ul li a {
    min-height: 30px;
    padding: 4px 0;
    border-radius: 4px;
}

.footer ul li a:hover,
.footer ul li a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-visitors {
    min-width: 138px;
    justify-content: center;
}

.back-top:focus-visible,
.home-btn:focus-visible,
.home-text-link:focus-visible,
.btn-report-spot:focus-visible,
.btn-show-map:focus-visible,
.btn-navigate:focus-visible,
.track-submit:focus-visible {
    outline: 3px solid rgba(23, 105, 170, .35);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .header-inner {
        min-height: 56px;
    }

    .nav a {
        justify-content: flex-start;
    }

    .nav .btn-primary-nav {
        justify-content: center;
    }

    .language-switcher {
        margin-left: 0;
    }
}

@media (max-width: 479.98px) {
    .top-bar-inner > span:not(.language-switcher):not(.accessibility-tools),
    .top-bar-inner > a[href^="mailto:"] {
        display: none;
    }

    .top-bar-inner {
        min-height: 20px;
    }

    .logo-main {
        font-size: 16px;
    }

    .logo-sub {
        font-size: 8px;
        letter-spacing: .7px;
    }
}

/* Public accessibility controls */
.accessibility-tools {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 0;
    white-space: nowrap;
}

.accessibility-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
    font-weight: 700;
}

.accessibility-tools button {
    min-width: 24px;
    height: 22px;
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 4px;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.accessibility-tools button:hover,
.accessibility-tools button:focus-visible,
.accessibility-tools button[aria-pressed="true"] {
    border-color: #ffd166;
    color: #102b4e;
    background: #ffd166;
    outline: 0;
}

html[data-font-size="small"] body {
    zoom: .94;
}

html[data-font-size="large"] body {
    zoom: 1.08;
}

@media (max-width: 768px) {
    .accessibility-tools {
        margin-left: 0;
    }

    .accessibility-label {
        display: none;
    }
}

.top-bar-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.top-bar-tools .language-switcher {
    margin-left: 0;
}

.language-link[hidden],
.language-divider[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: flex-start;
    }

    .top-bar-tools {
        margin-left: auto;
    }
}
