/* =========================
   GLOBAIS
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-escuro: #1d3a20;
    --verde-medio: #3f7b3b;
    --bege-mapa: #9c9b90;
    --borda-mapa: #ffffff;
    --bottom-space: clamp(80px, 8vw, 104px);
    --map-max-width: 600px;
}

html, body {
    min-height: 100%;
    height: auto;
    margin: 0;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    caret-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    /* Fundo global do site ocupando toda a tela. */
    background-color: #708792;
    background-image:linear-gradient(rgba(43, 86, 105, 0.507), rgba(101, 102, 100, 0.589)), url('fundo.svg');
    background-repeat: no-repeat;
    background-position: 46% 49%;
    background-size: 140%;
    background-attachment: fixed;
}

.page-shell {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    container-type: inline-size;
    container-name: page-shell;
}

.site-footer {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 300;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    pointer-events: none;
}

.about-btn {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 320;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(29, 58, 32, 0.92), rgba(63, 123, 59, 0.88));
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* =========================
   CABECALHO
   ========================= */
.header-shell {
    position: sticky;
    top: 0;
    z-index: 1000;
    flex: 0 0 0;
    width: 100%;
    height: 0;
    min-height: 0;
    padding: 0 16px;
    overflow: visible;
    pointer-events: none;
}

.header {
    position: relative;
    width: min(1200px, 94cqw);
    margin: 0 auto;
    pointer-events: auto;

    padding: 8px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(135deg, var(--verde-medio), var(--verde-escuro));

    border-radius: 0 0 40px 40px;

    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(0, 0, 0, 0.06);

    overflow: hidden;
}

.topo-image img {
    position: relative;
    z-index: 1;
    width: min(40cqw, 620px);
    max-width: 620px;
    min-width: 220px;
    height: auto;
}


/* =========================
   BUSCA
   ========================= */
.pesquisar-container {
    max-width: 280px;
    position: relative;
    z-index: 2000;
    overflow: visible;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: clamp(200px, 20cqw, 300px);
    height: 30px;
    padding: 4px 35px 4px 4px;

    background: linear-gradient(180deg, #e8e9e5 0%, #edeeea 100%);
    border: 1px solid #d7d8bf;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);

    transition: backdrop-filter 0.35s ease, box-shadow 0.2s ease;
}

/* Faixa da direita para lembrar o botão da lupa da referencia visual. */
.pesquisar-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(195deg, #5f7a52 0%, var(--verde-medio) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* Icone da lupa (sem depender de imagem extra). */
.pesquisar-container::after {
    content: "⌕";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-53%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 100;
    line-height: 0;
    pointer-events: none;
}

#pesquisarInput {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 0 38px 0 10px;

    border: 1px solid #f7f6f4;
    border-radius: 3px;
    outline: none;
    background: #f8f8f5;
    color: #4f5b49;
    font-size: 0.95rem;
    font-family: "Trebuchet MS", Arial, sans-serif;
    caret-color: #4f5b49;
    user-select: text;
    -webkit-user-select: text;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#pesquisarInput::placeholder {
    color: #6d74628a;
}

#pesquisarInput:focus {
    background: #fffdf2;
    border-color: #b7bc97;
    box-shadow: inset 0 0 0 1px rgba(183, 188, 151, 0.4);
}

/* Estado "active" usado no JS para reforcar contraste durante foco. */
.pesquisar-container.active {
    backdrop-filter: blur(12px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.pesquisar-sugestoes {
    position: fixed;
    z-index: 2105;
    max-height: min(320px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #f8f8f5;
    border: 1px solid #d7d8bf;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.315);
    display: none;
}

.pesquisar-sugestoes.show {
    display: block;
}

.pesquisar-sugestao-item {
    margin: 0;
}

.pesquisar-sugestao-btn {
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #2f3a2c;
    text-align: left;
    font-size: 0.92rem;
    font-family: "Trebuchet MS", Arial, sans-serif;
    cursor: pointer;
}

.pesquisar-sugestao-btn:hover,
.pesquisar-sugestao-btn.is-active {
    background: #dfe8d6;
}

/* Barra de contadores (visitas e cliques) */
.stats-bar {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 320;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #edf2e7;
    background: rgba(29, 58, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    max-width: min(calc(100vw - 148px), 540px);
}

.stats-bar strong {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

/* =========================
   MAPA
   ========================= */
.map-container {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 125px 16px calc(var(--bottom-space));
    overflow: hidden;
    border-radius: 28px;
    container-type: inline-size;
    container-name: map-stage;
}

.map-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.map-wrapper:focus {
    outline: none;
}

.map-svg-host {
    width: min(min(86cqw, 56vh), var(--map-max-width));
    aspect-ratio: 800 / 973;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-wrapper svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
}

/* Mapa principal permanece acima do fundo. */
.map-ceara {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 24px rgba(61, 60, 59, 0.507))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.301));
}

.map-loading {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    color: #2f3a2c;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 0.95rem;
}

.map-loading.is-error,
.modal-error {
    color: #821818;
}

.svg-message {
    text-align: center;
    margin-top: 20px;
}


/* Controles de navegacao do mapa: ficam ocultos sem zoom ativo. */
.map-navigation {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)); /* acima do botão Saiba Mais */
    z-index: 330;
    display: none;
    grid-template-columns: repeat(3, 42px);
    grid-template-rows: repeat(3, 42px);
    gap: 8px;
    align-items: center;
    justify-items: center;
}

/* O JS alterna esta classe quando mapScale > 1. */
.map-navigation.is-active {
    display: grid;
}

.nav-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    color: #eff6ee;
    background: linear-gradient(160deg, rgba(29, 58, 32, 0.95), rgba(63, 123, 59, 0.9));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
}

.nav-arrow:active {
    transform: translateY(0);
}

.nav-up {
    grid-column: 2;
    grid-row: 1;
}

.nav-left {
    grid-column: 1;
    grid-row: 2;
}

.nav-right {
    grid-column: 3;
    grid-row: 2;
}

.nav-down {
    grid-column: 2;
    grid-row: 3;
}

/* Destaque aplicado pelo JS quando ha busca por cidade. */
.city-highlight {
    stroke: #3b7241 !important;
    stroke-width: 5px !important;
    filter: drop-shadow(0 0 4px #ffffff);
    transition: all 0.3s ease;
}

/* Estilo base de cada municipio no SVG. */
.city {
    cursor: pointer;
    fill: var(--bege-mapa);
    stroke: var(--borda-mapa);
    stroke-width: 0.9px;
    transform-origin: center;
    transition: transform 0.4s ease, filter 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.336));
    -webkit-tap-highlight-color: transparent;
}

.city:hover {
    opacity: 0.7;
    fill: #b66b52;
    transform: scale(1.01);
    stroke: #807f7f;
    stroke-width: 1.5px;
    filter: drop-shadow(0 8px 16px #00000066) brightness(1.1);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.city:focus-visible {
    outline: none;
    stroke: #ffffff !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
    animation: none;
}

/* Feedback visual de toque em dispositivos touch. */
@media (hover: none) {
    .city:active {
        fill: #b66b52;
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes glow {
    from {
        stroke: #c9bfb0;
        filter: drop-shadow(0 0 2px #4e4e4e);
    }
    to {
        stroke: #ffffff;
        filter: drop-shadow(0 0 6px #414141);
    }
}

/* =========================
   TOOLTIP
   ========================= */
.tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;

    max-width: 80vw;
    padding: 12px 16px;

    color: #fff;
    background: #1f4c26;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    font-size: 13px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, top 0.05s ease, left 0.05s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip .city-name {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.tooltip .law-info {
    font-size: 11px;
    line-height: 1.25;
    white-space: pre-line;
    opacity: 0.9;
}

.tooltip .city-flag {
    display: none;
    width: 60px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    transform-origin: left center;
    animation: ondaForte 1.4s ease-in-out infinite;
}

@keyframes ondaForte {
    0% {
        transform: perspective(300px) rotateY(0deg) skewY(0deg);
    }
    50% {
        transform: perspective(500px) rotateY(-9deg) skewY(3deg);
    }
    100% {
        transform: perspective(100px) rotateY(0deg) skewY(0deg);
    }
}

/* =========================
   MODAL
   ========================= */
#cityModal {
    background: rgba(37, 37, 37, 0.507);
    backdrop-filter: blur(5px);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.726);
    padding: clamp(8px, 2vw, 24px);
    container-type: inline-size;
    container-name: modal-shell;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(calc(100cqw - 48px), 1200px);
    height: min(calc(100dvh - 48px), 980px);
    max-width: 100%;
    max-height: 100%;
    padding: clamp(12px, 2vw, 20px);

    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.svg-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.svg-container svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: clamp(12px, 1.8vw, 20px);
    right: clamp(12px, 1.8vw, 20px);
    z-index: 2;

    width: clamp(28px, 2.2vw, 36px);
    height: clamp(28px, 2.2vw, 36px);
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.close::before {
    content: "\00d7";
    color: #ffffff;
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1;
}

.close:hover {
    background: rgba(255, 51, 0, 0.486);
    transform: scale(1.1);
}

/* =========================
   BOTAO E MODAL "SOBRE"
   ========================= */

.about-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

button:focus,
button:focus-visible {
    outline: none;
}

.svg-container.about-mode {
    display: block;
    width: min(920px, 100%);
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8fbf6 0%, #f1f6ee 100%);
    border: 1px solid #d5e0d0;
    border-radius: 16px;
    container-type: inline-size;
    container-name: about-panel;
}

.about-modal {
    color: #24412a;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.about-header {
    padding: 4px 2px 18px;
    border-bottom: 1px solid #d4e2d3;
    margin-bottom: 18px;
}

.about-header h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    color: #1d3a20;
}

.about-header p {
    margin: 0;
    font-size: 0.98rem;
    color: #3b5a42;
}

.about-section {
    margin-bottom: 18px;
}

.about-section h3,
.about-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: #234b2a;
}

.about-section p,
.about-card p,
.about-card li {
    color: #314f38;
    line-height: 1.5;
    font-size: 0.94rem;
}

.about-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.about-card {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #d9e3d5;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(14, 40, 18, 0.08);
}

.about-card ul {
    margin: 0;
    padding-left: 18px;
}

.about-card-subtitle {
    margin-top: 12px;
    font-size: 0.97rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.about-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #c6d8c4;
    background: #edf6ec;
    color: #214725;
    font-size: 0.82rem;
}

/* =========================
   AJUSTES RESPONSIVOS
   ========================= */

@container page-shell (max-width: 768px) {
    .header-shell {
        padding: 0;
    }

    .header {
        width: 100%;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
        gap: 10px;
        flex-direction: column;
        z-index: 1000;
    }

    .topo-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .topo-image img {
        width: min(92%, 430px);
        min-width: 0;
    }

    .pesquisar-container {
        width: min(100%, 420px);
        max-width: 100%;
        min-width: 0;
    }

    .map-container {
        min-height: 0;
        max-height: none;
        padding: 8px 10px calc(118px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
        align-items: flex-start;
    }

    .stats-bar {
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        justify-content: center;
        font-size: 0.76rem;
        padding: 7px 11px;
        max-width: none;
    }

    .about-btn {
        right: 10px;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        width: auto;
        font-size: 0.74rem;
        padding: 8px 12px;
    }

    .map-navigation {
        right: 10px;
        bottom: calc(118px + env(safe-area-inset-bottom, 0px));
    }
}

@container map-stage (max-width: 768px) {
    .map-wrapper {
        min-height: min(66vh, 640px);
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .map-svg-host {
        width: min(100%, 560px);
        max-width: 100%;
        height: auto;
        max-height: min(64vh, 560px);
    }

    .map-wrapper svg {
        width: 100%;
        height: auto;
        max-height: min(64vh, 560px);
    }
}

@container modal-shell (max-width: 768px) {
    .modal-content {
        width: min(calc(100cqw - 16px), 680px);
        height: min(calc(100dvh - 16px), 820px);
        padding: 12px;
    }
}

@container page-shell (max-width: 480px) {
    .header-shell {
        padding: 0;
    }

    .header {
        width: 100%;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 8px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .topo-image img {
        width: min(92%, 360px);
        padding-left: 0;
    }

    .pesquisar-container {
        width: 100%;
        max-width: 360px;
        min-width: 0;
        margin: 0;
        padding: 5px 44px 5px 8px;
    }

    #pesquisarInput {
        font-size: 0.98rem;
    }

    .pesquisar-sugestoes {
        max-height: 180px;
    }

    .pesquisar-sugestao-btn {
        min-height: 42px;
        font-size: 0.95rem;
    }

    .about-btn {
        right: 10px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        width: auto;
        font-size: 0.74rem;
        padding: 5px 12px;
    }

    .stats-bar {
        font-size: 0.72rem;
        gap: 8px;
        padding: 8px 10px;
    }

    .map-container {
        min-height: 0;
        padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
    }

    .map-navigation {
        bottom: calc(122px + env(safe-area-inset-bottom, 0px));
        transform: scale(0.92);
        transform-origin: bottom right;
    }
}

@container map-stage (max-width: 480px) {
    .map-wrapper {
        min-height: min(58vh, 520px);
    }

    .map-svg-host,
    .map-wrapper svg {
        max-height: min(58vh, 520px);
    }
}

@container modal-shell (max-width: 480px) {
    .close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .modal-content {
        width: calc(100cqw - 16px);
        height: calc(100dvh - 16px);
        padding: 10px;
    }

    .svg-container.about-mode {
        padding: 16px 14px 20px;
    }
}

@container about-panel (max-width: 560px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

   
@media (max-width: 900px), (max-height: 700px) {
    body {
        background-color: #b0c5ca;
        background-image: none;
        background-attachment: scroll;
    }
}

/* =========================
   BOTTOM SHEET (mobile)
   ========================= */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.bottom-sheet-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    background: linear-gradient(180deg, #1f4c26 0%, #1a3320 100%);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bottom-sheet.is-open {
    transform: translateY(0);
}

.bottom-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.bottom-sheet-body {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bottom-sheet-flag {
    width: 56px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: ondaForte 1.4s ease-in-out infinite;
}

.bottom-sheet-info {
    flex: 1;
    min-width: 0;
}

.bottom-sheet-name {
    font-size: 1.15rem;
    font-weight: bold;
    font-family: "Trebuchet MS", Arial, sans-serif;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.bottom-sheet-law {
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.85;
    white-space: pre-line;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.bottom-sheet-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: "Trebuchet MS", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    letter-spacing: 0.2px;
}

.bottom-sheet-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
    body {
        background-image: none;
        background-color: #7f8b94;
        background-attachment: scroll;
    }
}

@media (max-height: 820px) {
    :root {
        --bottom-space: 74px;
    }

    .header {
        padding: 6px 24px;
    }

    .topo-image img {
        width: min(36cqw, 520px);
    }

    .map-svg-host {
        width: min(min(82cqw, 50vh), 520px);
    }

    .map-wrapper svg {
        max-height: 100%;
    }
}
