/* ===================================================== */
/* DESIGN TOKENS                                         */
/* ===================================================== */

:root {
    /* Type */
    --font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Surfaces — deep space */
    --bg-deep: #03050a;
    --panel: rgba(8, 12, 21, 0.82);
    --panel-strong: rgba(6, 9, 16, 0.94);
    --raise: rgba(173, 200, 255, 0.06);
    --raise-hover: rgba(173, 200, 255, 0.12);

    /* Hairlines — cool starlight */
    --line: rgba(173, 200, 255, 0.14);
    --line-strong: rgba(173, 200, 255, 0.32);

    /* Ink */
    --ink: #e9eef9;
    --ink-dim: rgba(233, 238, 249, 0.62);
    --ink-faint: rgba(233, 238, 249, 0.38);

    /* Accent — dark-adapted amber */
    --accent: #f2b04e;
    --accent-bright: #ffc878;
    --accent-deep: #1a1206;
    --accent-soft: rgba(242, 176, 78, 0.14);
    --accent-line: rgba(242, 176, 78, 0.45);
    --accent-glow: 0 0 22px rgba(242, 176, 78, 0.30);

    --shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
    --blur: blur(22px) saturate(1.25);
}

/* ===================================================== */
/* RESET / BASE                                          */
/* ===================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-display);
    background: var(--bg-deep);
    color: var(--ink);
}

body { font-size: 13px; line-height: 1.6; }

h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
h3 { font-size: 14px; font-weight: 600; }
h4 { font-size: 12px; font-weight: 500; }

::selection { background: var(--accent-soft); color: var(--ink); }

button { font-family: inherit; }

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-line);
    outline-offset: 2px;
}

/* ===================================================== */
/* MAP + SCRIMS                                          */
/* ===================================================== */

#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0a1326;
}

/* Soft scrims top & bottom so floating UI reads over any basemap */
#map::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(3, 5, 10, 0.55) 0%, rgba(3, 5, 10, 0) 13%),
        linear-gradient(0deg, rgba(3, 5, 10, 0.60) 0%, rgba(3, 5, 10, 0) 17%);
}

/* ===================================================== */
/* LOADER                                                */
/* ===================================================== */

#startupLoader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: radial-gradient(ellipse 90% 70% at 50% 64%, #0a1120 0%, var(--bg-deep) 75%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Two tiled star fields — twinkle out of phase, drift at different
   speeds for a parallax feel. Tiles repeat, so stars cover any screen. */
#startupLoader::before,
#startupLoader::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat;
}

#startupLoader::before {
    background-image:
        radial-gradient(1px 1px at 25px 35px, rgba(255, 255, 255, 0.95) 50%, transparent 51%),
        radial-gradient(1px 1px at 110px 82px, rgba(255, 255, 255, 0.65) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 182px 28px, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
        radial-gradient(1px 1px at 212px 142px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 58px 168px, rgba(255, 255, 255, 0.70) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 150px 204px, rgba(242, 176, 78, 0.80) 50%, transparent 51%),
        radial-gradient(1px 1px at 92px 232px, rgba(255, 255, 255, 0.60) 50%, transparent 51%),
        radial-gradient(1px 1px at 230px 96px, rgba(255, 255, 255, 0.50) 50%, transparent 51%),
        radial-gradient(1px 1px at 12px 120px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(2px 2px at 70px 12px, rgba(173, 200, 255, 0.70) 50%, transparent 51%),
        radial-gradient(1px 1px at 160px 110px, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 200px 226px, rgba(255, 255, 255, 0.60) 50%, transparent 51%);
    background-size: 248px 252px;
    animation: starTwinkle 4.2s ease-in-out infinite,
               starDriftA 140s linear infinite;
}

#startupLoader::after {
    background-image:
        radial-gradient(1px 1px at 48px 18px, rgba(255, 255, 255, 0.70) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 132px 124px, rgba(173, 200, 255, 0.85) 50%, transparent 51%),
        radial-gradient(1px 1px at 220px 60px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 78px 250px, rgba(255, 255, 255, 0.65) 50%, transparent 51%),
        radial-gradient(2px 2px at 260px 200px, rgba(255, 255, 255, 0.70) 50%, transparent 51%),
        radial-gradient(1px 1px at 172px 290px, rgba(242, 176, 78, 0.60) 50%, transparent 51%),
        radial-gradient(1px 1px at 300px 140px, rgba(255, 255, 255, 0.50) 50%, transparent 51%),
        radial-gradient(1px 1px at 30px 180px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 250px 300px, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 110px 60px, rgba(255, 255, 255, 0.60) 50%, transparent 51%);
    background-size: 316px 324px;
    opacity: 0.85;
    animation: starTwinkle 5.6s ease-in-out 1.4s infinite,
               starDriftB 200s linear infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

/* Each drift loops over exactly one tile, so the motion is seamless */
@keyframes starDriftA {
    to { background-position: -248px 252px; }
}

@keyframes starDriftB {
    to { background-position: 316px 324px; }
}

/* Occasional shooting stars */
.shootingStars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shootingStars::before,
.shootingStars::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0;
    transform: rotate(-35deg);
    animation: shoot 8s linear infinite;
}

.shootingStars::before {
    top: 16%;
    left: 68%;
    animation-delay: 2.4s;
}

.shootingStars::after {
    top: 34%;
    left: 18%;
    width: 90px;
    animation-delay: 6.1s;
    animation-duration: 11s;
}

@keyframes shoot {
    0%, 90% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-35deg); }
    92%      { opacity: 0.9; }
    100%     { opacity: 0; transform: translate3d(-300px, 210px, 0) rotate(-35deg); }
}

.loaderContent {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Staggered entrance for the loader content */
.loaderContent > * {
    animation: loaderRise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.loaderContent > *:nth-child(1) { animation-delay: 0.05s; }
.loaderContent > *:nth-child(2) { animation-delay: 0.15s; }
.loaderContent > *:nth-child(3) { animation-delay: 0.25s; }
.loaderContent > *:nth-child(4) { animation-delay: 0.35s; }
.loaderContent > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes loaderRise {
    from { opacity: 0; transform: translateY(14px); }
}

.loaderContent h1 {
    font-size: clamp(17px, 4vw, 26px);
    font-weight: 300;
    letter-spacing: 0.34em;
    text-indent: 0.34em; /* optically recenter tracked-out caps */
    text-transform: uppercase;
    opacity: 0.92;
    animation: loaderRise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s backwards,
               titleGlow 5s ease-in-out 1s infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 18px rgba(173, 200, 255, 0); }
    50%      { text-shadow: 0 0 22px rgba(173, 200, 255, 0.40); }
}

@media (prefers-reduced-motion: reduce) {
    #startupLoader::before,
    #startupLoader::after,
    .shootingStars::before,
    .shootingStars::after,
    .loaderContent > *,
    .loaderContent h1 {
        animation: none;
    }
}

.loaderContent p {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.loaderSpinner {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1.5px solid rgba(173, 200, 255, 0.16);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    box-shadow: var(--accent-glow);
}

.loaderSpinner::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loaderSteps {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 210px;
    text-align: left;
}

.loaderStep {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-faint);
    transition: color 0.3s ease;
}

.loaderStep.active { color: var(--ink-dim); }
.loaderStep.completed { color: var(--ink-faint); }

.stepDot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(173, 200, 255, 0.25);
    transition: all 0.3s ease;
}

.loaderStep.active .stepDot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(242, 176, 78, 0.7);
}

.loaderStep.completed .stepDot {
    background: var(--accent-line);
}

.loaderBar {
    width: 210px;
    height: 2px;
    background: rgba(173, 200, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.loaderProgress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-line), var(--accent-bright));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

.loaderVersion {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 10px;
}

/* ===================================================== */
/* BRAND BADGE (desktop only)                            */
/* ===================================================== */

#brandBadge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
    pointer-events: none;
    user-select: none;
}

.brandDot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(242, 176, 78, 0.8);
    animation: brandPulse 2.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes brandPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.brandText {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brandText strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.brandText span {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.85;
}

@media (max-width: 900px) {
    #brandBadge { display: none; }
}

/* ===================================================== */
/* SEARCH + FILTERS (unified panel)                      */
/* ===================================================== */

#searchContainer {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: min(400px, calc(100vw - 140px));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    overflow: visible;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.25s ease;
}

#searchContainer:focus-within {
    border-color: var(--accent-line);
}

.searchInputWrapper {
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 12px;
    gap: 6px;
    height: 38px;
}

.searchIcon {
    color: var(--ink-faint);
    flex-shrink: 0;
}

.searchIconBtn {
    display: none;
}

#searchBox {
    flex: 1;
    padding: 8px 6px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 12.5px;
    font-family: inherit;
    letter-spacing: 0.02em;
    min-width: 0;
    height: 100%;
}
#searchBox::placeholder { color: var(--ink-faint); }
#searchBox:focus { outline: none; }

#toggleFiltersBtn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--raise);
    color: var(--ink-faint);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

#toggleFiltersBtn:hover {
    background: var(--raise-hover);
    color: var(--ink);
}

#toggleFiltersBtn.active {
    background: var(--accent-soft);
    border-color: var(--accent-line);
    color: var(--accent-bright);
}

#filterContainer {
    display: flex;
    gap: 5px;
    padding: 0 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}
#filterContainer.show {
    max-height: 44px;
    opacity: 1;
    padding: 0 8px 8px;
}
#filterContainer::-webkit-scrollbar { display: none; }

.filterBtn {
    flex: 1 1 0;
    text-align: center;
    background: var(--raise);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    border-radius: 8px;
    padding: 6px 8px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.filterBtn:hover {
    background: var(--raise-hover);
    color: var(--ink);
}
.filterBtn.active {
    background: var(--accent);
    color: var(--accent-deep);
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: var(--accent-glow);
}

/* ===================================================== */
/* SEARCH SUGGESTIONS                                    */
/* ===================================================== */

#searchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 14px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 2001;
    box-shadow: var(--shadow);
    color: var(--ink);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 6px;
    box-sizing: border-box;
    transition: margin-top 0.25s ease;
}

#searchSuggestions::-webkit-scrollbar { width: 6px; }
#searchSuggestions::-webkit-scrollbar-track { background: transparent; }
#searchSuggestions::-webkit-scrollbar-thumb {
    background: rgba(173, 200, 255, 0.18);
    border-radius: 10px;
}
#searchSuggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(173, 200, 255, 0.32);
}

.search-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 9px;
    font-size: 12.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    margin-bottom: 2px;
}

.search-suggestion-item:hover,
.search-suggestion-item.suggestion-active {
    background: var(--raise-hover);
    box-shadow: inset 2px 0 0 var(--accent);
}

.search-suggestion-item.noResults {
    color: var(--ink-faint);
    font-style: italic;
    cursor: default;
    pointer-events: none;
}

.search-suggestion-item.noResults:hover {
    background: transparent !important;
    box-shadow: none;
    color: var(--ink-faint);
}

.search-suggestion-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 78%;
}

.search-suggestion-short {
    font-weight: 600;
    color: var(--ink);
}

.search-suggestion-long {
    color: var(--ink-faint);
    font-weight: 300;
    margin-left: 4px;
}

.search-suggestion-full {
    font-weight: 500;
    color: var(--ink);
}

.search-suggestion-country {
    font-family: var(--font-mono);
    color: var(--accent);
    opacity: 0.75;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ===================================================== */
/* LOCATION CARD                                         */
/* ===================================================== */

#locationCard {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: min(400px, calc(100vw - 40px));
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    background: var(--panel-strong);
    color: var(--ink);
    border-radius: 18px;
    border: 1px solid var(--line);
    display: none;
    z-index: 2500;
    opacity: 0;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    scrollbar-width: none;
    box-shadow: var(--shadow);
}

#locationCard::-webkit-scrollbar { display: none; }

.cardHeader {
    position: relative;
}

/* Image fades into the panel so the CTA floats on top */
.cardHeader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 210px;
    pointer-events: none;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg,
        rgba(3, 5, 10, 0.10) 0%,
        rgba(3, 5, 10, 0.00) 35%,
        rgba(6, 9, 16, 0.92) 100%);
}

#locationImage {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    display: block;
}

#imageSkeleton {
    width: 100%;
    height: 210px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg,
        rgba(173, 200, 255, 0.04) 25%,
        rgba(173, 200, 255, 0.09) 50%,
        rgba(173, 200, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: none;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#enterBtn {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - 40px);
    margin: -24px 20px 0;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: var(--accent-deep);
    box-shadow: 0 8px 24px rgba(242, 176, 78, 0.28);
    transition: box-shadow 0.2s, transform 0.15s, filter 0.2s;
}

#enterBtn:hover {
    filter: brightness(1.07);
    box-shadow: 0 10px 30px rgba(242, 176, 78, 0.42);
    transform: translateY(-1px);
}

#enterBtn:active {
    transform: translateY(0);
}

#closeCardBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 3;
    background: rgba(3, 5, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
}

#closeCardBtn:hover {
    background: var(--raise-hover);
    border-color: var(--line-strong);
}

.cardBody {
    padding: 22px 26px 26px;
}

#locationTitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

#locationCountry {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

#locationWGS84 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dim);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

#locationDistanceContainer {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

/* Telemetry row */
#locationWeather {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.weatherItem {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--raise);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dim);
    white-space: nowrap;
}

.weatherIcon {
    font-size: 12px;
    line-height: 1;
}

#locationDescription {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-dim);
    margin-bottom: 14px;
}

#locationMeta {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

#locationFacts {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#locationFacts li {
    font-size: 11.5px;
    color: var(--ink-dim);
    padding: 5px 11px;
    background: var(--raise);
    border-radius: 999px;
    border: 1px solid var(--line);
    white-space: nowrap;
}

/* ===================================================== */
/* CAROUSEL                                              */
/* ===================================================== */

#carouselContainer {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    width: auto;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
}

#carouselTrack {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    max-width: 680px;
    scroll-snap-type: x mandatory;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    /* centering: 50% of track minus half the card width (164/2 = 82) */
    padding: 6px calc(50% - 82px) !important;
}

#carouselTrack::-webkit-scrollbar {
    display: none;
}

/* POI cards — full-bleed photo with overlaid caption */
.poiCard {
    position: relative;
    flex: 0 0 164px !important;
    height: 102px;
    scroll-snap-align: center !important;
    background: var(--panel-strong);
    color: var(--ink);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--line);
    transform-origin: center bottom;
    will-change: transform, opacity;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-soft);
}

.poiCard:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
    border-color: var(--line-strong);
    transform: scale(1.02);
}

.poiCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poiCardInfo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 10px 8px;
    background: linear-gradient(180deg,
        rgba(3, 5, 10, 0) 0%,
        rgba(3, 5, 10, 0.78) 55%,
        rgba(3, 5, 10, 0.94) 100%);
    pointer-events: none;
}

.poiCardInfo h3 {
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.poiCardInfo p {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.85;
}

.poiCard.active {
    border-color: var(--accent-line);
    box-shadow: var(--accent-glow), var(--shadow-soft);
}

/* Nav buttons */
#prevBtn, #nextBtn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    background: var(--panel);
    color: var(--ink-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
}

#prevBtn:hover, #nextBtn:hover {
    background: var(--raise-hover);
    color: var(--accent-bright);
    border-color: var(--accent-line);
    transform: scale(1.05);
}

#prevBtn:active, #nextBtn:active {
    transform: scale(0.96);
}

/* ===================================================== */
/* CAROUSEL DOTS                                         */
/* ===================================================== */

#carouselDots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
    z-index: 1001;
    pointer-events: none;
}

.carouselDot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(233, 238, 249, 0.25);
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
    flex-shrink: 0;
}

.carouselDot.active {
    width: 16px;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(242, 176, 78, 0.5);
}

/* ===================================================== */
/* GLOBE / ORBIT BUTTON                                  */
/* ===================================================== */

#globeBtn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
    transition: background 0.2s, border-color 0.2s, opacity 0.3s;
    display: none;   /* shown by JS when not at globe view */
}

#globeBtn:hover {
    background: var(--raise-hover);
    border-color: var(--accent-line);
}

/* ===================================================== */
/* DEMO                                                  */
/* ===================================================== */

#demoBtn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    backdrop-filter: var(--blur);
    transition: background 0.2s;
}

#demoBtn:hover {
    background: var(--raise-hover);
}

/* ===================================================== */
/* ONBOARDING (first-visit tour)                         */
/* ===================================================== */

#onboardingOverlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(3, 5, 10, 0.72);
    z-index: 2900;
}

.onboardingHint {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 240px;
    padding: 11px 14px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
}

.hintBadge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-deep);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(242, 176, 78, 0.5);
}

.hintText {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}

.hintText strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.hintText span {
    font-size: 11px;
    color: var(--ink-dim);
}

/* Connector lines pointing at each control */
.onboardingHint::before {
    content: "";
    position: absolute;
    background: linear-gradient(180deg, var(--accent-line), transparent);
}

#hintSearch {
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
}
#hintSearch::before {
    top: -26px;
    left: 50%;
    width: 1px;
    height: 26px;
    background: linear-gradient(0deg, var(--accent-line), transparent);
}

#hintControls {
    top: 50%;
    right: 64px;
    transform: translateY(-50%);
}
#hintControls::before {
    top: 50%;
    right: -26px;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-line), transparent);
}

#hintCarousel {
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
}
#hintCarousel::before {
    bottom: -26px;
    left: 50%;
    width: 1px;
    height: 26px;
    background: linear-gradient(180deg, var(--accent-line), transparent);
}

/* Orbit hint only matters on mobile, where the button is always visible */
#hintOrbit { display: none; }

#hintTheme {
    top: 100px;
    right: 64px;
    transform: none;
}
#hintTheme::before {
    top: 50%;
    right: -26px;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-line), transparent);
}

.onboardingCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    text-align: center;
    max-width: 340px;
    padding: 0 20px;
}

.onboardingCenter h1 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.onboardingCenter p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-dim);
    margin-bottom: 24px;
}

#onboardingDismissBtn {
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: var(--accent-deep);
    box-shadow: 0 8px 24px rgba(242, 176, 78, 0.28);
    transition: box-shadow 0.2s, transform 0.15s, filter 0.2s;
}

#onboardingDismissBtn:hover {
    filter: brightness(1.07);
    box-shadow: 0 10px 30px rgba(242, 176, 78, 0.42);
    transform: translateY(-1px);
}

#onboardingDismissBtn:active {
    transform: translateY(0);
}

/* Reopen the tour */
#helpBtn {
    position: absolute;
    top: 62px;
    right: 16px;
    z-index: 1500;
    width: 29px;
    height: 29px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

#helpBtn:hover {
    color: var(--accent-bright);
    border-color: var(--accent-line);
    background: var(--raise-hover);
}

/* Selector de tema (darksky / brightsky) */
#themeBtn {
    position: absolute;
    top: 120px;
    right: 16px;
    z-index: 1500;
    width: 29px;
    height: 29px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s;
}

#themeBtn:hover {
    color: var(--accent-bright);
    border-color: var(--accent-line);
    background: var(--raise-hover);
}

.theme-bright #themeBtn {
    transform: rotate(180deg);
}

#fullscreenBtn {
    position: absolute;
    top: 158px;
    right: 16px;
    z-index: 1500;
    width: 29px;
    height: 29px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink-dim);
    line-height: 1;
    cursor: pointer;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullscreenBtn:hover {
    color: var(--accent-bright);
    border-color: var(--accent-line);
    background: var(--raise-hover);
}

/* Show the "enter" glyph by default, swap to "exit" while fullscreen */
#fullscreenBtn .fsIconExit { display: none; }
#fullscreenBtn.is-fullscreen .fsIconEnter { display: none; }
#fullscreenBtn.is-fullscreen .fsIconExit { display: block; }

@media (max-width: 600px) {

    /* On phones the scattered callouts get cramped — stack the tour
       as a centered list instead: title, subtitle, hints, button. */
    #onboardingOverlay {
        overflow-y: auto;
        flex-direction: column;
        align-items: center;
        padding: 24px 22px;
        gap: 10px;
    }

    /* ID selectors beat the class override, so reset each hint explicitly */
    .onboardingHint,
    #hintSearch, #hintControls, #hintCarousel, #hintOrbit, #hintTheme {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 340px;
        flex-shrink: 0;
    }

    .onboardingHint::before { display: none; }

    #hintOrbit { display: flex; }

    /* Promote the center block's children into the stacked column */
    .onboardingCenter {
        display: contents;
    }

    .onboardingCenter h1 {
        order: -3;
        margin-top: auto;   /* with the button's margin-bottom: auto,  */
        margin-bottom: 2px; /* centers the group when it fits the screen */
        font-size: 24px;
    }

    .onboardingCenter p {
        order: -2;
        max-width: 320px;
        text-align: center;
        font-size: 12px;
        margin-bottom: 8px;
    }

    #onboardingDismissBtn {
        order: 10;
        margin-top: 10px;
        margin-bottom: auto;
        flex-shrink: 0;
    }

    /* Keep the help button clear of the carousel */
    #helpBtn {
        top: 62px;
        right: 5px;
        width: 29px;
        height: 29px;
        font-size: 12px;
    }

    #themeBtn {
        top: 102px;
        right: 5px;
        width: 29px;
        height: 29px;
        font-size: 14px;
    }

    #fullscreenBtn {
        top: 142px;
        right: 5px;
        width: 29px;
        height: 29px;
    }

}

/* ===================================================== */
/* TRANSITION                                            */
/* ===================================================== */

#transitionOverlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(13, 19, 34, 0.6) 0%, rgba(3, 5, 10, 0) 70%),
        rgba(3, 5, 10, 0.96);
    color: var(--ink);
    z-index: 3000;
}

.transitionContent {
    text-align: center;
    padding: 0 24px;
}

.transitionContent h1 {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 22px;
}

.transitionContent h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.transitionContent p {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.30em;
    text-indent: 0.30em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
}

/* ===================================================== */
/* VIEWER                                                */
/* ===================================================== */

#viewerOverlay {
    position: fixed;
    inset: 0;
    display: none;
    background: var(--bg-deep);
    z-index: 4000;
}

#viewerFrame {
    width: 100%;
    height: 100%;
    border: none;
}

#closeBtn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px; /* mismo formato que la barra de búsqueda */
    background: var(--panel);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

#closeBtn:hover {
    color: var(--ink);
    border-color: var(--accent-line);
    background: var(--raise-hover);
}

/* ===================================================== */
/* MAPLIBRE CONTROLS                                     */
/* ===================================================== */

.maplibregl-ctrl-top-right {
    top: 50% !important;
    transform: translateY(-50%);
    right: 16px;
}

.maplibregl-ctrl-group {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-soft) !important;
    overflow: hidden;
}

.maplibregl-ctrl-group button {
    background-color: transparent !important;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line) !important;
}

.maplibregl-ctrl-group button:last-child {
    border-bottom: none !important;
}

.maplibregl-ctrl-group button:hover {
    background-color: var(--raise-hover) !important;
}

.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
    filter: invert(1) opacity(0.85);
}

/* ===================================================== */
/* MAPLIBRE ATTRIBUTION (compact sphere)                 */
/* ===================================================== */

.maplibregl-ctrl-attrib {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin: 0 10px 10px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box !important;
}

.maplibregl-ctrl-attrib-button {
    background-image: none !important;
    background-color: transparent !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    order: 2;
}

.maplibregl-ctrl-attrib-button::before {
    content: "i" !important;
    font-family: "Georgia", serif !important;
    font-style: italic !important;
    font-weight: bold !important;
    font-size: 13px !important;
    color: var(--ink) !important;
    line-height: 1 !important;
    text-align: center !important;
}

.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner {
    display: none !important;
    opacity: 0;
    font-size: 11px;
    font-family: var(--font-display);
    color: var(--ink-dim);
    white-space: nowrap;
    padding: 0 4px 0 10px;
    order: 1;
}

.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner a {
    color: var(--ink) !important;
    text-decoration: none;
    font-weight: 500;
}
.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner a:hover {
    text-decoration: underline;
}

.maplibregl-ctrl-attrib:hover,
.maplibregl-ctrl-attrib.maplibregl-compact-active {
    width: auto !important;
    max-width: 500px !important;
    height: 24px !important;
    border-radius: 6px !important;
    padding: 0 !important;
    justify-content: space-between !important;
}

.maplibregl-ctrl-attrib:hover .maplibregl-ctrl-attrib-inner,
.maplibregl-ctrl-attrib.maplibregl-compact-active .maplibregl-ctrl-attrib-inner {
    display: inline-block !important;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

/* ===================================================== */
/* MOBILE — ≤ 600px                                      */
/* ===================================================== */

@media (max-width: 600px) {

    /* Card floats above carousel */
    #locationCard {
        left: 5px;
        right: 5px;
        top: auto;
        bottom: 118px;
        transform: none;
        width: calc(100vw - 10px);
        max-height: calc(100vh - 230px);
        border-radius: 16px;
    }

    .cardHeader::after,
    #locationImage,
    #imageSkeleton {
        height: 150px;
        border-radius: 16px 16px 0 0;
    }

    #enterBtn {
        width: calc(100% - 32px);
        margin: -22px 16px 0;
        padding: 12px 14px;
    }

    .cardBody {
        padding: 18px 20px 20px;
    }

    /* Carousel at the very bottom */
    #carouselContainer {
        bottom: 12px;
        gap: 6px;
        max-width: calc(100vw - 10px); /* 5px de gap a cada lado */
    }

    #carouselTrack {
        max-width: calc(100vw - 90px);
        /* 50% of track minus half the 122px card */
        padding: 4px calc(50% - 61px) !important;
        gap: 6px;
    }

    .poiCard {
        flex: 0 0 122px !important;
        height: 78px;
        border-radius: 10px;
    }

    .poiCardInfo {
        padding: 14px 8px 6px;
    }

    .poiCardInfo h3 {
        font-size: 10px;
        margin-bottom: 0;
    }

    .poiCardInfo p {
        font-size: 7px;
    }

    #prevBtn, #nextBtn {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Compact search — icon mode, expands on tap */
    #searchContainer {
        width: 80px;
        top: 12px;
        left: 5px;
        transform: none;
        border-radius: 10px;
        transition: width 0.3s ease, border-color 0.25s ease;
        overflow: hidden;
    }

    #searchContainer.expanded {
        width: calc(100vw - 106px);
    }

    .searchInputWrapper {
        height: 40px;
        padding: 0;
        gap: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .searchIconBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 0;
        border: none;
        background: transparent;
        color: var(--ink-dim);
        cursor: pointer;
        transition: color 0.18s;
        flex-shrink: 0;
    }

    .searchIconBtn:hover {
        color: var(--ink);
    }

    #searchBox {
        padding: 8px 10px;
        width: 0;
        opacity: 0;
        transition: width 0.3s ease, opacity 0.3s ease;
        border: none;
        background: transparent;
        color: var(--ink);
        font-size: 12px;
        pointer-events: none;
        height: 100%;
        font-family: inherit;
    }

    #searchContainer.expanded .searchInputWrapper {
        justify-content: flex-start;
        padding: 0 6px;
    }

    #searchContainer.expanded #searchBox {
        width: auto;
        flex: 1;
        opacity: 1;
        pointer-events: all;
        min-width: 100px;
    }

    #toggleFiltersBtn {
        width: 40px;
        height: 40px;
        border-radius: 0;
        border: none;
        background: transparent;
        flex-shrink: 0;
    }

    #filterContainer {
        max-height: 0;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    }

    #filterContainer.show {
        max-height: 200px;
        opacity: 1;
        padding: 0 8px 8px;
    }

    #demoBtn {
        top: 12px;
        right: 12px;
    }

    #globeBtn {
        top: 12px;
        right: 5px;
        display: block !important;
        opacity: 1 !important;
        pointer-events: all !important;
        padding: 8px 12px;
        height: 40px;
    }

    .maplibregl-ctrl-top-right {
        top: 50% !important;
        transform: translateY(-50%);
        right: 8px;
    }

    /* "Volver al mapa" pegado al borde en móvil */
    #closeBtn {
        top: 12px;
        left: 5px;
    }
}

/* ===================================================== */
/* ULTRA COMPACT — < 480px                               */
/* ===================================================== */

@media (max-width: 480px) {
    #searchContainer {
        width: 80px;
        border-radius: 10px;
        left: 5px;
    }

    #searchContainer.expanded {
        width: calc(100vw - 106px);
    }

    .searchInputWrapper {
        justify-content: center;
        padding: 0;
        height: 40px;
    }

    .searchIconBtn {
        width: 40px;
        height: 40px;
    }

    #searchBox {
        display: none;
    }

    #searchContainer.expanded #searchBox {
        display: block;
        width: auto;
        opacity: 1;
        pointer-events: all;
        flex: 1;
        min-width: 80px;
    }

    #toggleFiltersBtn {
        width: 40px;
        height: 40px;
    }

    #filterContainer {
        max-height: 0;
        padding: 0;
    }

    #filterContainer.show {
        max-height: 200px;
        padding: 0 8px 8px;
    }

    #globeBtn {
        width: auto;
        padding: 8px 12px;
    }
}

/* ===================================================== */
/* THEME — BRIGHTSKY (paleta blanca clásica)             */
/* La clase .theme-bright vive en <html>; el resto del   */
/* sitio usa tokens, así que basta con redefinirlos.     */
/* ===================================================== */

.theme-bright {
    --panel: rgba(18, 18, 18, 0.80);
    --panel-strong: rgba(14, 14, 14, 0.92);
    --raise: rgba(255, 255, 255, 0.10);
    --raise-hover: rgba(255, 255, 255, 0.25);

    --line: rgba(255, 255, 255, 0.22);
    --line-strong: rgba(255, 255, 255, 0.45);

    --ink: #ffffff;
    --ink-dim: rgba(255, 255, 255, 0.72);
    --ink-faint: rgba(255, 255, 255, 0.42);

    --accent: #f2f2f2;
    --accent-bright: #ffffff;
    --accent-deep: #161616;
    --accent-soft: rgba(255, 255, 255, 0.18);
    --accent-line: rgba(255, 255, 255, 0.55);
    --accent-glow: 0 0 14px rgba(255, 255, 255, 0.45);
}

/* Glows ámbar escritos en literal → blanco */
.theme-bright #enterBtn {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}
.theme-bright #enterBtn:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.28);
}
.theme-bright #onboardingDismissBtn {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}
.theme-bright #onboardingDismissBtn:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.28);
}
.theme-bright .carouselDot.active {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.theme-bright .brandDot {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.theme-bright .hintBadge {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.theme-bright .loaderStep.active .stepDot {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* "Volver al mapa" en tono blanco suave sobre la experiencia 3D */
.theme-bright #closeBtn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.30);
    color: rgba(255, 255, 255, 0.85);
}

.theme-bright #closeBtn:hover {
    background: rgba(255, 255, 255, 0.30);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

/* ===================================================== */
/* TABLET — 601px – 900px                                */
/* ===================================================== */

@media (min-width: 601px) and (max-width: 900px) {

    #locationCard {
        width: min(360px, calc(100vw - 40px));
        left: 16px;
    }

    #carouselTrack {
        max-width: calc(100vw - 140px);
    }
}
