/* ═══════════════════════════════════════════
   km½ — Stylesheet (Figma exact)
   ═══════════════════════════════════════════ */

:root {
    --blue: #35589B;
    --orange: #F39821;
    --orange-dark: #E58A1E;
    --purple: #34255E;
    --purple-light: #4a3578;
    --red: #C01819;
    --green: #2ecc71;
    --white: #ffffff;
    --black: #000000;
    --gray: #666666;
    --gray-light: #999999;
    --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --radius-pill: 999px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --app-topbar-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}
body { font-family: var(--font); background: var(--white); color: var(--black); line-height: 1.4; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ═══ SCREEN UTILITY ═══ */
.screen { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; z-index: 100; }
.screen[hidden] { display: none !important; }

/* ═══ SPLASH ═══ */
.splash-screen {
    background: var(--blue);
    display: grid;
    place-items: center;
    z-index: 200;
    overflow: hidden;
    isolation: isolate;
}
.splash-logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.splash-mouth {
    position: relative;
    z-index: 4;
    width: clamp(112px, 31vw, 154px);
    height: auto;
    transform-origin: 50% 50%;
    animation: splashMouth 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}
.splash-ball,
.splash-ring,
.splash-wipe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}
.splash-ball {
    z-index: 3;
    background: var(--purple);
    animation: splashBall 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.1) 1.52s both;
}
.splash-ring {
    z-index: 2;
}
.splash-ring--red {
    background: var(--red);
    animation: splashRingRed 0.4s cubic-bezier(0.2, 0.75, 0.15, 1) 1.72s both;
}
.splash-ring--orange {
    z-index: 1;
    background: var(--orange);
    animation: splashRingOrange 0.42s cubic-bezier(0.2, 0.75, 0.15, 1) 1.86s both;
}
.splash-wipe {
    z-index: 5;
    background: var(--orange);
    animation: splashWipe 0.48s cubic-bezier(0.5, 0, 0.2, 1) 2.02s both;
}
.splash-mouth,
.splash-ball,
.splash-ring,
.splash-wipe {
    animation-play-state: paused;
}
.splash-screen.is-animating .splash-mouth,
.splash-screen.is-animating .splash-ball,
.splash-screen.is-animating .splash-ring,
.splash-screen.is-animating .splash-wipe {
    animation-play-state: running;
}
@keyframes splashMouth {
    0% { opacity: 1; transform: scale(1); }
    12% { opacity: 1; transform: scale(1); }
    83% { opacity: 1; transform: scale(1); }
    92% { opacity: 1; transform: scale(0.78, 0.34); }
    100% { opacity: 0; transform: scale(0.48, 0.12); }
}
@keyframes splashBall {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
    35% { opacity: 1; }
    75% { transform: translate(-50%, -50%) scale(1.08); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes splashRingRed {
    from { transform: translate(-50%, -50%) scale(0.72); }
    to { transform: translate(-50%, -50%) scale(3.15); }
}
@keyframes splashRingOrange {
    from { transform: translate(-50%, -50%) scale(0.7); }
    to { transform: translate(-50%, -50%) scale(5.4); }
}
@keyframes splashWipe {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(30); }
}
.splash-screen.is-leaving {
    pointer-events: none;
    visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .splash-mouth {
        animation: none;
        opacity: 1;
    }
    .splash-ball,
    .splash-ring,
    .splash-wipe {
        animation: none;
    }
}

/* ═══ CHOICE SCREEN ═══ */
.choice-screen {
    background: var(--orange);
    display: flex;
    flex-direction: column;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.choice-screen.is-active {
    opacity: 1;
    visibility: visible;
}
.choice-grid {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.06) 39px, rgba(0,0,0,0.06) 40px),
                repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.06) 39px, rgba(0,0,0,0.06) 40px);
    pointer-events: none;
}
.choice-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 24px;
}
.choice-logo {
    width: clamp(88px, 13vw, 112px);
    height: auto;
    margin-bottom: 40px;
}
.choice-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-bottom: 60px;
}
.choice-subtitle {
    font-size: 1rem;
    color: var(--black);
    text-align: center;
    max-width: 280px;
}
.choice-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 800;
    color: var(--black);
    text-align: center;
}
.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 280px;
}
.choice-btn {
    width: 100%;
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    background: var(--white);
    color: var(--purple);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.choice-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ═══ APP SCREEN ═══ */
.app-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    height: 100vh;
}
.app-screen.is-active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.app-header__top {
    position: sticky;
    top: 0;
    z-index: 51;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--app-topbar-height);
    padding: 8px 16px;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.app-header {
    position: relative;
    z-index: 1;
    background: var(--orange);
}
.app-header__banner {
    position: relative;
}
.app-header__grid {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.06) 39px, rgba(0,0,0,0.06) 40px),
                repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.06) 39px, rgba(0,0,0,0.06) 40px);
    pointer-events: none;
}
.app-header__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 16px 26px;
}
.app-header__back {
    display: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(53,37,94,0.08);
    font-size: 1.1rem;
}
.app-header__links {
    display: flex;
    gap: 16px;
    margin-left: auto;
}
.app-header__link {
    font-size: 0.82rem;
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.app-header__logo-row {
    display: contents;
}
.app-header__logo {
    height: 48px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    flex-shrink: 0;
}
.app-header__title-group {
    min-width: 0;
    text-align: center;
}
.app-header__title {
    font-size: clamp(0.92rem, 3.6vw, 1.12rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.app-header__disclaimer {
    font-size: 0.74rem;
    color: var(--black);
    margin-top: 3px;
    opacity: 0.82;
}
.app-header__disclaimer strong {
    font-weight: 800;
}
.app-header__search-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}
.app-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}
.app-search__input {
    width: 100%;
    height: 40px;
    padding: 8px 44px 8px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--black);
    font-size: 0.84rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.app-search__input::placeholder { color: var(--gray-light); }
.app-search__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: var(--white);
    border-radius: var(--radius-pill);
}
.app-type-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}
.app-type-btn {
    min-height: 26px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--white);
    color: var(--purple);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.app-type-btn.is-active {
    background: var(--blue);
    color: var(--white);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    :root { --app-topbar-height: 56px; }
    .app-header__top {
        padding: 7px 14px;
    }
    .app-header__content {
        padding: 22px 14px 22px;
        gap: 14px;
    }
    .app-header__logo {
        height: 42px;
        max-width: 148px;
    }
    .app-header__title {
        font-size: clamp(0.86rem, 3.8vw, 1.04rem);
    }
    .app-header__disclaimer {
        margin-top: 2px;
        font-size: 0.7rem;
    }
    .app-header__link {
        font-size: 0.72rem;
    }
    .app-search__input {
        height: 38px;
        font-size: 0.78rem;
    }
    .app-type-btn {
        min-height: 24px;
        padding: 3px 11px;
        font-size: 0.66rem;
    }
}
.app-search__suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
}
.app-search__suggestions li {
    padding: 10px 14px;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.app-search__suggestions li:last-child { border-bottom: none; }
.app-search__suggestions li:hover,
.app-search__suggestions li.is-highlighted {
    background: #f5f5f5;
}
.app-search__suggestions .suggestion-type {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-light);
    margin-top: 2px;
}
.app-search__suggestions .suggestion-msg {
    cursor: default;
    color: var(--gray);
    line-height: 1.4;
}
.app-search__suggestions .suggestion-msg:hover {
    background: transparent;
}

/* Filters */
.app-filters {
    padding: 10px 16px 6px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: var(--app-topbar-height);
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
html.map-expanded-open .app-filters {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 260;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
html.map-expanded-open .app-filters__next {
    box-shadow: -7px 0 12px 7px rgba(255,255,255,0.92);
}
html.map-expanded-open .filter-dropdown {
    z-index: 261;
}
.app-filters__row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: scroll;
    padding-right: 46px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(52,37,94,.35) transparent;
}
.app-filters__row::-webkit-scrollbar { height: 3px; }
.app-filters__row::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(52,37,94,.35);
}
.app-filters__next {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 34px;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    box-shadow: -7px 0 12px 7px var(--white);
    font-size: 1.55rem;
    line-height: 1;
}
.filter-pill {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--red);
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-pill.is-active {
    background: var(--purple);
}
.filter-pill--toggle.is-active {
    background: var(--purple);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Dropdowns */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    z-index: 45;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px 0;
    min-width: 180px;
    max-height: 260px;
    overflow-y: auto;
}
.filter-dropdown__item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--black);
}
.filter-dropdown__item:hover { background: #f5f5f5; }

/* Tagline */
.app-tagline {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    background: var(--white);
}

.location-banner {
    margin: 0 16px 12px;
    padding: 14px 16px;
    background: #fff8e6;
    border: 1px solid rgba(243, 152, 33, 0.45);
    border-radius: var(--radius-md);
}
.location-banner[hidden] { display: none !important; }
.location-banner__text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.location-banner__actions {
    display: flex;
    gap: 8px;
}
.location-banner__btn {
    flex: 1;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--white);
    color: var(--purple);
    border: 1px solid #ddd;
}
.location-banner__btn--primary {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}
.location-banner__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.kym-busy {
    margin: 0;
    color: var(--purple);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}
.kym-busy[hidden] { display: none !important; }
.kym-busy--toast {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    z-index: 220;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: #fff6ee;
    border: 1.5px solid var(--orange);
    box-shadow: 0 6px 18px rgba(53, 36, 95, 0.12);
    pointer-events: none;
}
.kym-busy--inline {
    margin: 8px 16px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff6ee;
    border: 1px solid var(--orange);
}
.modal__report .kym-busy--inline {
    margin: 10px 0 0;
}

.restaurant-grid__heading {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--purple);
    padding: 8px 0 4px;
    margin-top: 4px;
}
.restaurant-grid__notice {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: var(--gray);
    padding: 4px 0 8px;
}

#skeleton-container[hidden],
#loading-sentinel[hidden] { display: none !important; }

/* Map */
.app-map {
    padding: 0 16px 12px;
    background: var(--white);
    position: relative;
}
.app-map__canvas {
    position: relative;
    height: 216px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e8e4d9;
    z-index: 1;
    cursor: pointer;
}
.app-map__expand-overlay {
    position: absolute;
    inset: 0 16px 12px;
    z-index: 500;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
.app-map__expand-label {
    display: none;
}
.app-map__canvas .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: var(--font, 'Roboto', sans-serif);
    touch-action: pan-x pan-y pinch-zoom;
    z-index: 1;
}
.map-expanded {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: var(--white);
    display: flex;
    flex-direction: column;
}
.map-expanded[hidden] { display: none !important; }
.map-expanded__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--orange);
    flex-shrink: 0;
}
.map-expanded__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--black);
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.map-expanded__title {
    font-size: 1.1rem;
    font-weight: 700;
}
.map-expanded__canvas {
    flex: 1;
    min-height: 0;
}
.map-expanded__canvas .leaflet-container {
    width: 100%;
    height: 100%;
    touch-action: pan-x pan-y pinch-zoom;
}
html.map-expanded-open .map-expanded__canvas .leaflet-top {
    top: 52px;
}
.map-pin-icon {
    background: transparent;
    border: none;
    overflow: visible;
}
.map-pin-icon > svg {
    animation: map-pin-content-in 0.25s ease-out both;
}
.map-user-location-icon {
    position: relative;
    background: transparent;
    border: none;
}
.map-user-location-dot {
    position: absolute;
    inset: 7px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #35589a;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.map-user-location-pulse {
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: rgba(53, 88, 154, 0.28);
    animation: map-location-pulse 1.8s ease-out infinite;
}
.map-locate-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.map-locate-btn {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(53, 88, 154, 0.25);
    border-radius: 50% !important;
    background: #fff;
    color: #35589a;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.map-locate-btn:hover,
.map-locate-btn:focus-visible {
    background: #eef2fb;
}
.map-locate-btn[hidden] {
    display: none;
}
.map-search-area-control {
    margin: 0 0 12px 10px;
}
.map-search-area-btn {
    min-height: 42px;
    padding: 9px 16px;
    border: 2px solid rgba(52, 37, 94, .18);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--purple);
    box-shadow: 0 2px 10px rgba(0,0,0,.24);
    font-size: .82rem;
    font-weight: 800;
}
.map-search-area-btn[hidden] { display: none; }
.map-cluster-wrap {
    background: transparent;
    border: none;
}
.map-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    font-family: var(--font, 'Roboto', sans-serif);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    animation: map-pin-content-in 0.25s ease-out both;
}
.map-cluster--verde { background: #2ecc71; }
.map-cluster--ambar { background: #f39821; }
.map-cluster--rojo { background: #c01819; }
.map-cluster--gris { background: #9aa3ad; }
@keyframes map-pin-content-in {
    from { opacity: 0; transform: translateY(6px) scale(0.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes map-location-pulse {
    0% { opacity: 0.9; transform: scale(0.65); }
    75%, 100% { opacity: 0; transform: scale(1.25); }
}
.leaflet-tooltip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.leaflet-marker-icon.marker-cluster {
    background: transparent !important;
    border: none !important;
}
.leaflet-marker-icon.marker-cluster div {
    background: transparent !important;
    border: none !important;
}
@media (min-width: 768px) {
    .app-map__canvas {
        height: 280px;
    }
}

/* Main */
.app-main {
    flex: 1;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Restaurant Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
}
@media (min-width: 640px) { .restaurant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .restaurant-grid { grid-template-columns: repeat(3, 1fr); } }

/* Restaurante en formato lista: foto, datos y pin de ocupación */
.restaurant-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid #e9e7ed;
    border-radius: 0;
    background: var(--white);
    cursor: pointer;
    transition: background 0.15s;
}
.restaurant-card:hover {
    background: #faf9fc;
}
.restaurant-card__visual {
    position: relative;
    flex-shrink: 0;
    width: 74px;
    height: 74px;
}
.restaurant-card__img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 9px;
    background: #f2f2f2;
}

.restaurant-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.restaurant-card__name {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.restaurant-card__meta {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.restaurant-card__bb {
    font-weight: 800;
    color: var(--black);
}
.restaurant-card__distance {
    margin-top: 2px;
    color: #35589a;
    font-size: 0.78rem;
    font-weight: 700;
}
.restaurant-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 600;
}
.restaurant-card__star { color: var(--purple); font-size: 0.85rem; }
.restaurant-card__reviews { color: var(--gray-light); font-weight: 400; font-size: 0.75rem; }
.restaurant-card__address {
    font-size: 0.75rem;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restaurant-card__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 58px;
    gap: 2px;
    padding-top: 2px;
}
.restaurant-card__status-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    color: var(--black);
}
.status-pin {
    display: inline-flex;
    width: 36px;
    height: 45px;
    flex: 0 0 auto;
    position: relative;
}
.status-pin--pet {
    width: 42px;
    height: 52px;
}
.status-pin svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}
.status-pin .status-pin__body {
    fill: #b9bdc4;
    stroke: var(--white);
    stroke-width: 1.4;
}
.status-pin .status-pin__shade {
    fill: rgba(0, 0, 0, 0.2);
    stroke: none;
}
.status-pin text {
    fill: var(--white);
    font-size: 8px;
    font-weight: 800;
    font-family: var(--font);
}
.status-pin--verde .status-pin__body { fill: var(--green); }
.status-pin--ambar .status-pin__body { fill: var(--orange); }
.status-pin--rojo .status-pin__body { fill: var(--red); }
.status-pin--gris .status-pin__body { fill: #b9bdc4; }
.status-pin--pet text { font-size: 8px; }
.status-pin--owner .status-pin__owner {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.nearby-expand {
    padding: 16px 8px 12px;
    text-align: center;
}
.nearby-expand p {
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}
.nearby-expand__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.nearby-expand button {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--purple);
    color: var(--white);
    font-weight: 800;
}
.nearby-expand button[hidden] { display: none !important; }
#nearby-shrink-btn {
    background: var(--white);
    color: var(--purple);
    border: 2px solid var(--purple);
}

/* Skeleton */
.skeleton-container { display: grid; grid-template-columns: 1fr; gap: 12px; }
.skeleton-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 2px dashed var(--black);
    border-radius: var(--radius-md);
    background: var(--white);
}
.skeleton-card__img {
    width: 80px; height: 80px; border-radius: 8px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear;
}
.skeleton-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.skeleton-card__line {
    height: 11px; border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Loading */
.loading-sentinel {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 0.85rem;
}
.loading-sentinel::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid #ddd;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty */
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray); }
.empty-state p { margin-bottom: 16px; }
.empty-state .btn--secondary { margin: 0 6px 10px; }
#empty-lead-cta {
    background: var(--orange);
}
#lead-dummy[hidden] { display: none !important; }
#lead-dummy-form .aviso-popup__input { font-size: 1rem; font-weight: 500; margin-bottom: 10px; }
.btn--secondary {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
}

/* ═══ MODAL ═══ */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none !important; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.3s; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (min-width: 640px) {
    .modal { align-items: center; padding: 24px; }
    .modal__content { border-radius: var(--radius-lg); max-height: 85vh; }
}
.modal.is-open .modal__content { transform: translateY(0); }

.modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--black);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Modal header */
.modal__detail-header {
    background: var(--orange);
    padding: 12px 16px 12px 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 48px;
}
.modal__detail-header-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
}

/* Modal body */
.modal__info { padding: 16px; }
.modal__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
}
.modal__meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--gray);
    flex-wrap: wrap;
}
.modal__meta-row strong {
    font-weight: 800;
    color: var(--black);
}
.modal__address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 9px 0 8px;
    color: #4f4b58;
    font-size: 0.86rem;
    line-height: 1.35;
}
.modal__address span {
    flex: 0 0 auto;
    color: var(--purple);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}
.modal__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 12px;
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 600;
}
.modal__rating .star { color: var(--purple); }
.modal__reviews { color: var(--gray-light); font-weight: 400; font-size: 0.8rem; }

/* Modal hero */
.modal__hero {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f2f2f2;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.modal__hero-img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f2f2f2; }
.modal__hero--carousel { touch-action: pan-x pan-y; }
.modal__hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}
.modal__hero-track::-webkit-scrollbar { display: none; }
.modal__hero-slide {
    box-sizing: border-box;
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.modal__hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.modal__hero-dot {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    position: relative;
}
.modal__hero-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 2px rgba(53, 36, 95, 0.25);
    transform: translate(-50%, -50%);
}
.modal__hero-dot[aria-current="true"]::after {
    background: #E84C1E;
    width: 8px;
    height: 8px;
}
.modal__hero-semaforo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    pointer-events: none;
}
.modal__hero-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(192,24,25,0.7);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Map */
.modal__map-section { margin-bottom: 20px; }
.modal__map-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.modal__map-container {
    width: 100%;
    height: 200px;
    background: #e8e4d9;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.modal__map-container iframe { width: 100%; height: 100%; border: 0; }
.modal__map-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Heatmap */
.modal__heatmap-section { margin-bottom: 20px; }
.modal__heatmap-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.modal__heatmap { overflow-x: auto; touch-action: pan-x pan-y; }
.modal__heatmap-header { display: flex; gap: 2px; margin-left: 60px; margin-bottom: 4px; }
.modal__heatmap-header span { flex: 1; font-size: 0.55rem; text-align: center; color: var(--gray-light); min-width: 22px; }
.modal__heatmap-row { display: flex; align-items: center; gap: 2px; margin-bottom: 2px; }
.modal__heatmap-day { width: 58px; font-size: 0.7rem; font-weight: 600; color: var(--gray); text-align: right; padding-right: 4px; flex-shrink: 0; }
.modal__heatmap-cell {
    flex: 1;
    height: 22px;
    min-width: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
}

/* Similares */
.modal__similares { margin-top: 20px; }
.modal__similares-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.modal__similar-card { padding: 12px 0; border-bottom: 1px solid #eee; cursor: pointer; }
.modal__similar-card:hover { background: #fafafa; }
.modal__similar-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.modal__similar-meta { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--blue); margin-bottom: 4px; }
.modal__similar-star { color: var(--purple); }
.modal__similar-reviews { color: var(--gray-light); font-size: 0.75rem; }
.modal__similar-type { font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.modal__similar-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; }
.modal__similar-status--verde { background: rgba(46,204,113,0.15); color: #27ae60; }
.modal__similar-status--ambar { background: rgba(243,152,33,0.15); color: #e67e22; }
.modal__similar-status--rojo { background: rgba(192,24,25,0.15); color: #c0392b; }
.modal__similar-status--gris { background: #f2f2f2; color: #999; }
.modal__similar-dot { width: 8px; height: 8px; border-radius: 50%; }
.modal__similar-status--verde .modal__similar-dot { background: var(--green); }
.modal__similar-status--ambar .modal__similar-dot { background: var(--orange); }
.modal__similar-status--rojo .modal__similar-dot { background: var(--red); }
.modal__similar-status--gris .modal__similar-dot { background: #ccc; }

/* Ficha mobile-first */
@media (max-width: 639px) {
    .modal__content {
        max-width: none;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }
}
.modal__detail-header {
    min-height: 52px;
    padding: 0;
    background-color: var(--orange);
    background-image:
        linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
    background-size: 32px 32px;
}
.modal__close {
    top: 5px;
    left: 8px;
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 2.25rem;
    font-weight: 300;
}
.modal__actions {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 6px;
    padding: 9px 12px;
    overflow-x: auto;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #ece9f1;
    scrollbar-width: none;
}
.modal__actions::-webkit-scrollbar { display: none; }
.modal__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #ded9e7;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--purple);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}
.modal__action[hidden] {
    display: none !important;
}
.modal__action span { font-size: 1rem; }
.modal__action--whatsapp {
    border-color: #25d366;
    background: #25d366;
    color: #fff;
}
.modal__action--aviso,
.modal__action--voy {
    border-color: var(--orange);
    color: var(--orange);
}
.modal__action--aviso:disabled,
.modal__action--aviso.is-disabled {
    border-color: #c8c4ce;
    background: #eceaf0;
    color: #8b8794;
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.7;
    pointer-events: none;
}
.modal__save.is-active {
    border-color: var(--red);
    color: var(--red);
}
.modal__intro { padding-bottom: 8px; }
.modal__intro .modal__name {
    margin-bottom: 4px;
    font-size: 1.45rem;
}
.modal__intro .modal__rating { margin-bottom: 0; }
.modal__occupancy {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 16px 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: #f1f2f4;
}
.modal__occupancy--verde { background: #e8f9ef; }
.modal__occupancy--ambar { background: #fff1dd; }
.modal__occupancy--rojo { background: #fbe7e7; }
.modal__occupancy--owner span:first-of-type {
    color: var(--purple);
    font-weight: 600;
}
.modal__occupancy--live span:first-of-type {
    color: var(--purple);
}
.modal__occupancy--checking span:first-of-type {
    color: var(--gray);
}
.modal__occupancy--checking strong {
    opacity: .85;
}
.modal__occupancy-pin {
    width: 42px;
    height: 53px;
}
.modal__occupancy-pin.status-pin--pet {
    width: 48px;
    height: 60px;
}
.modal__occupancy div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.modal__occupancy strong {
    color: var(--purple);
    font-size: 1.08rem;
    line-height: 1.1;
}
.modal__occupancy span {
    color: var(--gray);
    font-size: .75rem;
}
.modal__occupancy small {
    margin-top: 3px;
    color: var(--black);
    font-size: .78rem;
    font-weight: 700;
}
.modal__report {
    margin: -8px 16px 18px;
    padding: 0 2px;
}
.modal__report-copy {
    margin: 0 0 10px;
    color: var(--purple);
    font-size: 0.92rem;
    line-height: 1.35;
}
.modal__report-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.modal__report-btn {
    min-height: 44px;
    padding: 8px 6px;
    border: 1.5px solid #e9e7ed;
    border-radius: 10px;
    background: var(--white);
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
}
.modal__report-btn::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: 0;
}
.modal__report-btn--libre::before { background: #2ecc71; }
.modal__report-btn--medio::before { background: var(--orange); }
.modal__report-btn--petado::before { background: #e74c3c; }
.modal__report-btn:disabled {
    opacity: 0.65;
}
.modal__report-btn--libre.is-active,
.modal__report-btn--libre:active { background: #e8f9ef; border-color: #2ecc71; }
.modal__report-btn--medio.is-active,
.modal__report-btn--medio:active { background: #fff1dd; border-color: var(--orange); }
.modal__report-btn--petado.is-active,
.modal__report-btn--petado:active { background: #fbe7e7; border-color: #e74c3c; }
.modal__resumen {
    margin: 0 16px 16px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: #FFF7E6;
}
.modal__resumen p {
    margin: 0;
    color: var(--purple);
    font-size: 0.92rem;
    line-height: 1.45;
}
.modal__resumen small {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-size: 0.7rem;
    line-height: 1.35;
}
.modal__info .modal__resumen {
    margin: 10px 0 16px;
}
.modal__media { padding-top: 0; }
.modal__hero {
    height: 210px;
    border-radius: 18px;
}
.modal__map-section { margin-bottom: 10px; }
.modal__map-container {
    height: 150px;
    border-radius: 8px;
}
.modal__directions-link {
    display: inline-block;
    margin-top: 7px;
    color: var(--purple);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.modal__heatmap-title {
    font-size: .85rem;
    font-weight: 600;
}
.modal__similares {
    margin: 0;
    padding: 16px;
    border-top: 1px solid #e8e5ec;
    border-bottom: 1px solid #e8e5ec;
    background: #fff;
}
.modal__similar-card {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    background: transparent;
    text-align: left;
}
.modal__similar-card:last-child { border-bottom: 0; }
.modal__similar-card span { max-width: 100%; }
.modal__similar-name,
.modal__similar-meta,
.modal__similar-type,
.modal__similar-status { display: flex; }

/* Popup de alternativas: una vez por restaurante y sesión */
.modal-alt-popup {
    position: fixed;
    inset: 0;
    z-index: 380;
    display: grid;
    place-items: center;
    padding: 18px;
}
.modal-alt-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.58);
}
.modal-alt-popup__panel {
    position: relative;
    width: min(100%, 370px);
    max-height: min(70dvh, 560px);
    overflow-y: auto;
    padding: 20px 16px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.modal-alt-popup__panel h3 {
    max-width: 90%;
    color: var(--purple);
    font-size: 1.1rem;
    line-height: 1.2;
}
.modal-alt-popup__panel > p {
    margin: 3px 0 14px;
    color: var(--gray);
    font-size: .85rem;
}
.modal-alt-popup__cta {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}
.modal-alt-popup__cta:hover,
.modal-alt-popup__cta:focus-visible {
    filter: brightness(0.96);
}
.modal-alt-popup.is-expanded .modal-alt-popup__panel {
    max-height: min(78dvh, 620px);
}
.modal-alt-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
}

.aviso-popup {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: 18px;
}
.aviso-popup[hidden] {
    display: none !important;
}
.aviso-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
}
.aviso-popup__panel {
    position: relative;
    width: min(100%, 360px);
    padding: 22px 18px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.aviso-popup__panel h3 {
    max-width: 90%;
    margin: 0 0 12px;
    color: var(--purple);
    font-size: 1.15rem;
    line-height: 1.2;
}
.aviso-popup__label {
    display: block;
    margin-bottom: 6px;
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 700;
}
.aviso-popup__input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid #ded9e7;
    border-radius: 10px;
    color: var(--purple);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
}
.aviso-popup__note {
    margin: 12px 0 16px;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.4;
}
.aviso-popup__copy {
    margin: 0 0 16px;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.45;
}
.aviso-popup__cta {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}
.aviso-popup__cta:disabled {
    opacity: 0.65;
}
.aviso-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
}

/* Footer */
.app-footer { text-align: center; padding: 16px; font-size: 0.8rem; color: var(--gray-light); border-top: 1px solid #eee; }
.app-footer a { color: var(--gray); text-decoration: underline; }

.modal__mini-map {
    width: 100%;
    height: 100%;
}

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--purple);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.cookie-banner[hidden] { display: none !important; }
#cookie-banner-home,
#cookie-banner-prefs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#cookie-banner-home[hidden],
#cookie-banner-prefs[hidden] {
    display: none !important;
}
.cookie-banner__text p {
    margin: 0 0 8px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.cookie-banner__text p:last-of-type { margin-bottom: 0; }
.cookie-banner a {
    display: inline-block;
    margin-top: 6px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cookie-banner button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--orange);
    color: var(--black);
    font-weight: 800;
}
.cookie-banner__needed {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.55);
    font-weight: 700;
}
