:root {
    --bg-dark: #070709;
    --bg-surface: #0e111a;
    --glass-bg: rgba(16, 19, 28, 0.76);
    --glass-bg-strong: rgba(18, 22, 34, 0.92);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-border-hover: rgba(255, 255, 255, 0.24);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.45);
    --shadow-elevated: 0 22px 56px rgba(0, 0, 0, 0.65);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-cyan: #00f3ff;
    --accent-emerald: #10b981;
    --accent-violet: #a855f7;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* =========================================================
   Dark Ambient Aurora + Subtle Portfolio Grid
   ========================================================= */
.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.22;
    will-change: transform;
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    top: -18vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.55), rgba(0, 243, 255, 0));
    animation: floatBlob1 26s ease-in-out infinite alternate;
}

.blob-2 {
    width: 48vw;
    height: 48vw;
    bottom: -18vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5), rgba(249, 115, 22, 0));
    animation: floatBlob2 30s ease-in-out infinite alternate;
}

.blob-3 {
    width: 42vw;
    height: 42vw;
    top: 28vh;
    left: 36vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.42), rgba(16, 185, 129, 0));
    animation: floatBlob3 24s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6vw, 4vh) scale(1.08); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5vw, -5vh) scale(1.1); }
}

@keyframes floatBlob3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-4vw, 5vh) scale(1.06); }
}

/* =========================================================
   Floating Top Bar
   ========================================================= */
.top-bar {
    position: fixed;
    top: 20px;
    left: 24px;
    right: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
    animation: slideDownFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-bar > * {
    pointer-events: auto;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-pill,
.stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 999px;
    padding: 10px 18px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.brand-pill {
    text-decoration: none;
    padding: 9px 20px 9px 12px;
}

.brand-pill:hover {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec4899, #f97316, #00f3ff);
    color: #070709;
    font-size: 0.85rem;
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.35);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #ffffff 0%, #67e8f9 55%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-pill {
    font-size: 0.84rem;
    color: var(--text-muted);
    gap: 10px;
    padding: 10px 18px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-item strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.stat-sep {
    color: rgba(148, 163, 184, 0.35);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-pink { background: var(--accent-pink); box-shadow: 0 0 10px rgba(236, 72, 153, 0.75); }
.dot-orange { background: var(--accent-orange); box-shadow: 0 0 10px rgba(249, 115, 22, 0.75); }
.dot-cyan { background: var(--accent-cyan); box-shadow: 0 0 10px rgba(0, 243, 255, 0.75); }

/* =========================================================
   Flat 2D World Map Stage & SVG Styling
   ========================================================= */
.map-stage {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: grab;
}

.map-stage:active {
    cursor: grabbing;
}

#world-map {
    width: 100%;
    height: 100%;
    display: block;
}

.map-graticule {
    fill: none;
    stroke: rgba(148, 163, 184, 0.08);
    stroke-width: 0.7px;
    vector-effect: non-scaling-stroke;
}

.country {
    fill: #141925;
    stroke: rgba(148, 163, 184, 0.24);
    stroke-width: 0.7px;
    vector-effect: non-scaling-stroke;
    transition: fill 0.32s ease, stroke 0.32s ease, filter 0.32s ease;
}

.country:hover {
    fill: #1d2436;
    stroke: rgba(148, 163, 184, 0.42);
}

.country.is-highlighted {
    fill: var(--country-fill-hover, rgba(0, 243, 255, 0.28));
    stroke: var(--country-stroke, #00f3ff);
    stroke-width: 1.5px;
    filter: drop-shadow(0 0 12px var(--country-glow, rgba(0, 243, 255, 0.45)));
}

/* =========================================================
   Animated Neon Location Markers
   ========================================================= */
.map-pin {
    cursor: pointer;
    outline: none;
}

.pin-scale-wrap {
    opacity: 1;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(1);
}

.pin-scale-wrap.is-entering {
    opacity: 0;
    transform: scale(0.2);
    animation: pinPopIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--pin-delay, 0ms);
}

@keyframes pinPopIn {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pin-hit {
    fill: transparent;
}

.pin-pulse {
    fill: var(--pin-accent);
    opacity: 0.55;
    transform-box: fill-box;
    transform-origin: center;
    animation: pinPulse 2.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    animation-delay: var(--pin-delay, 0ms);
}

@keyframes pinPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    75% {
        transform: scale(3);
        opacity: 0;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.pin-halo {
    fill: #0b0e17;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 1.6px;
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 8px var(--pin-accent));
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-core {
    fill: var(--pin-accent);
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.pin-shine {
    fill: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.map-pin:hover .pin-halo,
.map-pin.is-active .pin-halo,
.map-pin:focus-visible .pin-halo {
    transform: scale(1.35);
}

.map-pin:hover .pin-core,
.map-pin.is-active .pin-core,
.map-pin:focus-visible .pin-core {
    transform: scale(1.35);
    filter: drop-shadow(0 0 12px var(--pin-accent));
}

.map-pin:hover .pin-pulse,
.map-pin.is-active .pin-pulse {
    animation-duration: 1.3s;
}

/* =========================================================
   Map Loader & Hint
   ========================================================= */
.map-loader {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(7, 7, 9, 0.82);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.map-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent-pink);
    border-right-color: var(--accent-cyan);
    animation: spin 0.85s linear infinite;
}

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

.map-hint {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(16, 19, 28, 0.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.78rem;
    pointer-events: none;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.map-hint i {
    color: var(--accent-cyan);
}

.map-hint.is-faded {
    opacity: 0;
}

/* =========================================================
   Floating Zoom / Focus Controls
   ========================================================= */
.map-controls {
    position: fixed;
    left: 24px;
    bottom: 92px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.ctrl-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ctrl-btn:hover {
    background: rgba(0, 243, 255, 0.14);
    color: var(--accent-cyan);
    transform: scale(1.06);
}

.ctrl-btn:active {
    transform: scale(0.95);
}

.ctrl-divider {
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2px 0;
}

/* =========================================================
   Minimal Floating Search Bar & Predictive Dropdown
   ========================================================= */
.search-dock {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 25;
    width: min(360px, calc(100vw - 116px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    animation: slideUpCenter 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes slideUpCenter {
    from {
        opacity: 0;
        transform: translate(-50%, 16px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.search-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.search-pill:focus-within {
    background: var(--glass-bg-strong);
    border-color: rgba(0, 243, 255, 0.48);
    box-shadow: var(--shadow-elevated), 0 0 0 3px rgba(0, 243, 255, 0.12);
}

.search-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.search-pill:focus-within .search-icon {
    color: var(--accent-cyan);
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    user-select: text;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px 7px;
    line-height: 1.3;
    flex-shrink: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-pill.has-value .search-kbd,
.search-pill:focus-within .search-kbd {
    display: none;
}

.search-clear {
    display: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-pill.has-value .search-clear {
    display: inline-flex;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Predictive Dropdown (opens smoothly upward) */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 18px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.search-results.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.search-option:hover,
.search-option.is-selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: color-mix(in srgb, var(--opt-accent, #00f3ff) 45%, transparent);
}

.search-opt-thumb {
    position: relative;
    width: 42px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    background: #141925;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.search-opt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--opt-accent);
    box-shadow: 0 0 8px var(--opt-accent);
    flex-shrink: 0;
}

.search-opt-info {
    flex: 1;
    min-width: 0;
}

.search-opt-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-opt-title mark {
    background: transparent;
    color: var(--accent-cyan);
    font-weight: 700;
}

.search-opt-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-opt-sub mark {
    background: transparent;
    color: var(--accent-cyan);
    font-weight: 600;
}

.search-opt-count {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.search-empty {
    padding: 14px 12px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* =========================================================
   Floating Dark-Glass Hover Tooltip Card
   ========================================================= */
.map-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 248px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65), 0 0 24px color-mix(in srgb, var(--tooltip-accent, #00f3ff) 18%, transparent);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-9999px, -9999px, 0) scale(0.92);
    transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.map-tooltip.is-visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.map-tooltip.is-visible:hover {
    border-color: color-mix(in srgb, var(--tooltip-accent, #00f3ff) 55%, rgba(255, 255, 255, 0.25));
}

.map-tooltip.is-visible:hover .tooltip-cta i {
    transform: translateX(3px);
}

.tooltip-cta i {
    transition: transform 0.2s ease;
}

.tooltip-accent-bar {
    height: 3px;
    width: 100%;
    background: var(--accent-pink);
}

.tooltip-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #141925;
    overflow: hidden;
}

.tooltip-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.map-tooltip.is-visible .tooltip-thumb-wrap img {
    transform: scale(1.03);
}

.tooltip-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    background: rgba(7, 7, 12, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.tooltip-body {
    padding: 12px 14px 13px;
}

.tooltip-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 3px;
}

.tooltip-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tooltip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--tooltip-accent, var(--accent-cyan));
}

/* =========================================================
   Cinema 4K Photo Carousel Lightbox
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(12, 16, 28, 0.88), rgba(5, 6, 10, 0.96));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.lightbox-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 18px 24px 20px;
    gap: 14px;
    transform: scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-shell {
    transform: scale(1);
}

/* Header */
.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #f8fafc;
}

.lb-location {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lb-accent-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 18px currentColor;
}

.lb-location h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.lb-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
}

.lb-subline a {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.lb-subline a:hover {
    color: var(--accent-cyan);
}

.lb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lb-badge-4k {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.32), rgba(0, 243, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.lb-icon-btn.is-hidden {
    display: none;
}

.lb-icon-btn.is-downloading {
    pointer-events: none;
    color: var(--accent-cyan);
    border-color: rgba(0, 243, 255, 0.5);
}

.lb-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lb-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lb-icon-btn.is-active {
    background: rgba(0, 243, 255, 0.22);
    border-color: rgba(0, 243, 255, 0.65);
    color: var(--accent-cyan);
}

.lb-close-btn:hover {
    background: rgba(244, 63, 94, 0.35);
    border-color: rgba(244, 63, 94, 0.6);
}

/* Stage */
.lb-stage {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px;
}

.lb-frame {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    cursor: zoom-in;
}

.lb-frame.is-zoomed {
    cursor: zoom-out;
}

.lb-shimmer {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(85%, 960px);
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.11) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lb-shimmer.is-hidden {
    opacity: 0;
}

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

.lb-img-blur,
.lb-img-main {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-img-blur {
    position: absolute;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.02);
    opacity: 0.7;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.lb-img-blur.is-hidden {
    opacity: 0;
}

.lb-img-main {
    position: relative;
    z-index: 2;
    opacity: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    transition: opacity 0.36s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
}

.lb-img-main.is-loaded {
    opacity: 1;
}

.lb-frame.is-zoomed .lb-img-main {
    transform: scale(2.15);
    border-radius: 0;
}

/* Nav arrows */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.lb-prev { left: 2px; }
.lb-next { right: 2px; }

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.lb-nav.is-hidden {
    display: none;
}

/* Footer: Caption & Filmstrip */
.lb-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lb-caption-bar {
    width: 100%;
    max-width: 920px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.lb-photo-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
}

.lb-exif-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.lb-exif-row i {
    margin-right: 4px;
    color: #cbd5e1;
}

.lb-counter {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.lb-filmstrip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 6px;
    scrollbar-width: none;
}

.lb-filmstrip::-webkit-scrollbar {
    display: none;
}

.lb-filmstrip.is-hidden {
    display: none;
}

.film-thumb {
    position: relative;
    width: 78px;
    height: 46px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    background: #1e293b;
    cursor: pointer;
    opacity: 0.52;
    flex-shrink: 0;
    transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.film-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.film-thumb.is-active {
    opacity: 1;
    border-color: var(--lb-accent, #00f3ff);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 6px 16px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px) scale(1.05);
}

/* =========================================================
   Responsive Design
   ========================================================= */
@media (max-width: 900px) {
    .top-bar {
        top: 14px;
        left: 14px;
        right: 14px;
        justify-content: flex-start;
    }

    .stats-pill {
        display: none;
    }

    .map-hint {
        display: none;
    }

    .map-controls {
        left: 14px;
        bottom: 76px;
    }

    .search-dock {
        bottom: 16px;
        width: calc(100vw - 28px);
    }

    .lightbox-shell {
        padding: 14px 14px 16px;
    }

    .lb-stage {
        padding: 0;
    }

    .lb-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }

    .lb-badge-4k {
        display: none;
    }

    .lb-caption-bar {
        padding: 10px 14px;
    }

    .film-thumb {
        width: 64px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .brand-title {
        font-size: 0.96rem;
    }

    .lb-location h2 {
        font-size: 1.05rem;
    }

    .lb-exif-row {
        gap: 8px;
        font-size: 0.72rem;
    }
}
