/* ============================================================
   travel-map.css — Constant Cosmic Space Backdrop,
   Day/Night Hemisphere Globe, Immich Cluster Bubbles,
   Collapsible Cockpit HUD, Radar Tether & Mobile Flight Deck
   ============================================================ */

/* --- Constant Cosmic Space Backdrop (Both Light & Dark Modes stay in Space!) ---
   Light Mode = Sunlit Day Hemisphere in Stratospheric Blue-Black Cosmos
   Dark Mode  = Moonlit Night Hemisphere in Deep Obsidian Cosmos */
.travel-page-container {
    position: relative;
    width: 100%;
    min-height: 400vh;
    color: #f8fafc;
    background:
        radial-gradient(circle at 50% 46%, rgba(28, 64, 118, 0.42) 0%, rgba(10, 20, 42, 0.88) 46%, #040812 100%);
    transition: background 0.6s ease;
}

[data-theme="dark"] .travel-page-container {
    background:
        radial-gradient(circle at 50% 46%, rgba(14, 28, 58, 0.32) 0%, rgba(5, 9, 20, 0.92) 48%, #020409 100%);
}

/* Ensure Navbar & Side Dock on Travel Page have crisp cosmic glass contrast in both modes */
body.travel-page .navbar {
    background: rgba(15, 25, 45, 0.58);
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

:root:not([data-theme="dark"]) body.travel-page .navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(15, 28, 52, 0.52) 100%);
    border-color: rgba(255, 255, 255, 0.34);
}

body.travel-page .nav-brand,
body.travel-page .nav-links a {
    color: #f8fafc !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.travel-page .nav-links a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #38bdf8 !important;
}

body.travel-page .liquid-dock {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(255, 255, 255, 0.24);
}

body.travel-page .liquid-dock-dot {
    background: rgba(255, 255, 255, 0.45);
}

/* Fixed 3D Viewport */
.travel-globe-viewport {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
}

#globeCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

.travel-globe-viewport.free-orbit-mode #globeCanvas {
    cursor: grab;
}

.travel-globe-viewport.free-orbit-mode.dragging #globeCanvas {
    cursor: grabbing;
}

/* Cosmic Vignette */
.globe-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 48%, transparent 52%, rgba(4, 8, 18, 0.40) 84%, rgba(2, 4, 10, 0.84) 100%);
    pointer-events: none;
    z-index: 3;
}

/* ============================================================
   DYNAMIC SVG RADAR CALLOUT TETHER (Card <-> Globe Medallion)
   ============================================================ */
/* ============================================================
   IMMICH-STYLE 3D-PROJECTED CLUSTER BUBBLES & PHOTO MEDALLIONS
   ============================================================ */
.globe-markers-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

/* Numeric Cluster Count Bubble (Immich Indigo-Blue Pill Style) */
.globe-cluster-bubble {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 96, 202, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(165, 180, 252, 0.55);
    color: #ffffff;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(74, 96, 202, 0.18);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    will-change: transform, opacity;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

:root:not([data-theme="dark"]) .globe-cluster-bubble {
    background: rgba(59, 89, 218, 0.90);
    border-color: rgba(224, 242, 254, 0.72);
    box-shadow: 0 4px 16px rgba(9, 19, 38, 0.42), 0 0 0 3px rgba(59, 89, 218, 0.24);
}

.globe-cluster-bubble:hover {
    background: #38bdf8 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.75), 0 0 0 4px rgba(56, 189, 248, 0.3) !important;
    z-index: 30 !important;
}

/* Size tiers matching Immich count magnitudes */
.globe-cluster-bubble.tier-sm {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
}

.globe-cluster-bubble.tier-md {
    width: 40px;
    height: 40px;
    font-size: 0.76rem;
}

.globe-cluster-bubble.tier-lg {
    width: 48px;
    height: 48px;
    font-size: 0.80rem;
    background: rgba(67, 92, 215, 0.94);
    border-width: 2px;
}

/* Dispersed Child Sub-Cluster Bubbles (Immich Local Clusters) */
.globe-cluster-bubble.sub-cluster {
    background: rgba(29, 78, 216, 0.92);
    border: 1.5px solid rgba(147, 197, 253, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), 0 0 0 2.5px rgba(56, 189, 248, 0.28);
}

:root:not([data-theme="dark"]) .globe-cluster-bubble.sub-cluster {
    background: rgba(37, 99, 235, 0.94);
    border-color: rgba(224, 242, 254, 0.90);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.38), 0 0 0 2.5px rgba(59, 130, 246, 0.25);
}

.globe-cluster-bubble.sub-cluster:hover {
    background: #0284c7 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.90), 0 0 0 4px rgba(14, 165, 233, 0.35) !important;
    transform: translate(-50%, -50%) scale(1.18) !important;
}

/* Tooltip on cluster hover */
.cluster-region-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(10, 16, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.globe-cluster-bubble:hover .cluster-region-tip,
.globe-photo-medallion:hover .cluster-region-tip {
    opacity: 1;
}

/* Immich-Style Circular Framed Photo Medallion on Globe */
.globe-photo-medallion {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #60a5fa, #4f6bed);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(96, 165, 250, 0.24);
    pointer-events: auto;
    cursor: pointer;
    will-change: transform, opacity;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.globe-photo-medallion.active-medallion {
    background: linear-gradient(135deg, #fbbf24, #38bdf8);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.75), 0 0 0 4px rgba(251, 191, 36, 0.42);
}

.globe-photo-medallion:hover {
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.85), 0 0 0 4px rgba(255, 255, 255, 0.45);
    z-index: 35 !important;
}

.medallion-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.medallion-count-tag {
    position: absolute;
    bottom: -4px;
    right: -6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #435cd7;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   HUD HEADER, COLLAPSIBLE COCKPIT CAPSULE & FLIGHT INSTRUMENTS
   ============================================================ */
.travel-hud-header {
    position: absolute;
    top: 82px;
    left: max(28px, calc((100vw - var(--max-width, 1100px)) / 2));
    right: max(28px, calc((100vw - var(--max-width, 1100px)) / 2));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    pointer-events: none;
    z-index: 16;
}

/* Cosmic Liquid Glass Surface for Travel HUD Cards (Readable over Space & Sunlit Globe) */
.travel-hud-title-box,
.travel-compass-hud,
.travel-zoom-hud,
.travel-photo-plaque,
.travel-flight-progress-bar {
    background: linear-gradient(135deg, rgba(16, 26, 48, 0.76) 0%, rgba(10, 16, 32, 0.86) 100%) !important;
    backdrop-filter: blur(22px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(185%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.24) !important;
    color: #f8fafc !important;
}

/* In Light Mode (Day Hemisphere), give the glass cards a brighter icy-sapphire sheen while keeping crisp white text */
:root:not([data-theme="dark"]) .travel-hud-title-box,
:root:not([data-theme="dark"]) .travel-compass-hud,
:root:not([data-theme="dark"]) .travel-zoom-hud,
:root:not([data-theme="dark"]) .travel-photo-plaque,
:root:not([data-theme="dark"]) .travel-flight-progress-bar {
    background: linear-gradient(135deg, rgba(24, 46, 82, 0.68) 0%, rgba(12, 25, 48, 0.80) 100%) !important;
    border: 1px solid rgba(186, 230, 253, 0.38) !important;
    box-shadow: 0 18px 44px -12px rgba(4, 10, 24, 0.48), inset 0 1.5px 1px rgba(255, 255, 255, 0.35) !important;
}

/* Collapsible Cockpit Title & Telemetry Capsule */
.travel-hud-title-box {
    pointer-events: auto;
    width: min(100%, 420px);
    padding: 13px 16px;
    border-radius: 22px;
    transition:
        padding 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease,
        border-color 0.3s ease;
}

.travel-hud-title-box.is-collapsed {
    width: auto;
    max-width: min(560px, calc(100vw - 320px));
    padding: 7px 10px 7px 14px;
    border-radius: 999px;
}

.travel-hud-compact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.travel-hud-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.travel-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    flex-shrink: 0;
    animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 1; }
}

.travel-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: font-size 0.25s ease;
}

.travel-hud-title-box.is-collapsed .travel-main-title {
    font-size: 0.92rem;
}

.travel-stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.36);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Inline summary inside collapsed cockpit pill (Hidden when expanded so it never steals flex space) */
.hud-inline-summary {
    display: none;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.travel-hud-title-box.is-collapsed .hud-inline-summary {
    display: inline-flex;
}

.hud-inline-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.6);
    flex-shrink: 0;
}

.hud-inline-coord {
    color: #f8fafc;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.hud-inline-cluster {
    color: #7dd3fc;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
}

.hud-collapse-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hud-collapse-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
}

.hud-collapse-icon {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.travel-hud-title-box.is-collapsed .hud-collapse-icon {
    transform: rotate(180deg);
}

/* Expandable Telemetry Drawer inside HUD Box */
.travel-hud-details {
    max-height: 260px;
    opacity: 1;
    overflow: hidden;
    margin-top: 10px;
    transition:
        max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.26s ease,
        margin-top 0.26s ease;
}

.travel-hud-title-box.is-collapsed .travel-hud-details {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.travel-hud-sub-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 9px;
}

.travel-eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #38bdf8;
}

.travel-sub-title {
    font-size: 0.78rem;
    line-height: 1.42;
    color: rgba(226, 232, 240, 0.82);
    margin: 0;
}

/* Telemetry Readout Strip */
.travel-telemetry-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.67rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #cbd5e1;
}

.telemetry-pill-odometer strong {
    color: #38bdf8 !important;
}

.telemetry-label {
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    flex-shrink: 0;
}

.telemetry-pill strong {
    color: #ffffff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* --- Unified Right-Side Gyro Compass & Zoom Instrument Cluster --- */
.travel-hud-controls {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.travel-compass-hud {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px 7px 9px;
    border-radius: var(--radius-full, 999px);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.travel-compass-hud:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #38bdf8 !important;
}

.travel-compass-hud.orbit-active {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.38) !important;
}

.compass-dial {
    width: 34px;
    height: 34px;
    position: relative;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.compass-needle-n {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-bottom: 8.5px solid #ef4444;
}

.compass-needle-s {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 8.5px solid #94a3b8;
}

.compass-plane-icon {
    font-size: 0.65rem;
    color: #38bdf8;
    z-index: 2;
}

.compass-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.compass-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #ffffff;
    white-space: nowrap;
}

.compass-sublabel {
    font-size: 0.64rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Liquid Glass Zoom HUD Controls */
.travel-zoom-hud {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: var(--radius-full, 999px);
    pointer-events: auto;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.travel-zoom-hud:hover {
    border-color: rgba(56, 189, 248, 0.65) !important;
}

.globe-zoom-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.10);
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-zoom-btn:hover {
    background: rgba(56, 189, 248, 0.35);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: scale(1.1);
}

.globe-zoom-btn:active {
    transform: scale(0.92);
}

.globe-zoom-level {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #cbd5e1;
    min-width: 34px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    padding: 2px 3px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.globe-zoom-level:hover {
    color: #38bdf8;
}

/* --- Scroll Runway Guide Pill --- */
.travel-scroll-guide {
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(15, 25, 45, 0.68) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #e2e8f0 !important;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    transition: opacity 0.35s ease;
}

.scroll-mouse-icon {
    width: 15px;
    height: 22px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    position: relative;
    flex-shrink: 0;
}

.scroll-mouse-dot {
    width: 3px;
    height: 5px;
    border-radius: 2px;
    background: #38bdf8;
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouse-wheel 1.5s infinite;
}

@keyframes mouse-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* --- Bottom Expedition Flight Progress & Altitude Dock --- */
.travel-flight-progress-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 64px), 640px);
    padding: 11px 24px 21px;
    border-radius: var(--radius-full, 999px);
    z-index: 14;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: visible;
}

.flight-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.flight-bar-route {
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flight-bar-metrics {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.flight-bar-odometer {
    color: #94a3b8;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.flight-bar-pct {
    color: #38bdf8;
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.flight-bar-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.flight-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.flight-bar-plane {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    font-size: 0.88rem;
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
    pointer-events: none;
    z-index: 3;
}

.flight-bar-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.55);
    padding: 0;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    z-index: 2;
}

.flight-bar-node:hover,
.flight-bar-node.active {
    background: #38bdf8;
    border-color: #ffffff;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 10px #38bdf8;
}

.flight-bar-node-label {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.60rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #94a3b8;
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.82;
}

.flight-bar-node:hover .flight-bar-node-label,
.flight-bar-node.active .flight-bar-node-label {
    opacity: 1;
    color: #38bdf8;
    font-weight: 700;
}

/* --- SLR Camera Viewfinder Photo Plaque Cards --- */
.travel-photo-plaque {
    position: absolute;
    width: 328px;
    border-radius: 22px;
    overflow: hidden;
    z-index: 15;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition:
        opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    pointer-events: none;
    touch-action: pan-y;
}

.travel-photo-plaque.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.travel-photo-plaque:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(186, 230, 253, 0.65) !important;
}

/* Mobile sheet handle is hidden on desktop */
.plaque-sheet-handle {
    display: none;
}

.plaque-content-grid {
    display: flex;
    flex-direction: column;
}

.vf-corner {
    position: absolute;
    width: 11px;
    height: 11px;
    border-color: #38bdf8;
    z-index: 20;
    pointer-events: none;
    opacity: 0.78;
}
.vf-tl { top: 9px; left: 9px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 4px; }
.vf-tr { top: 9px; right: 9px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 4px; }
.vf-bl { bottom: 9px; left: 9px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 4px; }
.vf-br { bottom: 9px; right: 9px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 4px; }

.plaque-image-wrap {
    width: 100%;
    height: 168px;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    background: #0f172a;
    flex-shrink: 0;
}

.plaque-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.travel-photo-plaque:hover .plaque-image {
    transform: scale(1.05);
}

.plaque-vf-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vf-crosshair {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.travel-photo-plaque:hover .vf-crosshair {
    transform: scale(1.25);
    color: #38bdf8;
}

.vf-rec-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vf-rec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fb923c;
    box-shadow: 0 0 6px #fb923c;
}

.plaque-gps-badge {
    position: absolute;
    bottom: 8px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #38bdf8;
    font-size: 0.66rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.plaque-sky-stamp {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fef08a;
    font-size: 0.65rem;
    font-weight: 600;
}

.plaque-body {
    padding: 13px 16px 14px;
}

.plaque-location-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}

.plaque-waypoint-idx {
    display: block;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.plaque-city {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.plaque-date {
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #94a3b8;
    padding-top: 2px;
}

.plaque-country {
    font-size: 0.76rem;
    color: #7dd3fc;
    font-weight: 600;
    margin-bottom: 5px;
}

.plaque-desc {
    font-size: 0.81rem;
    line-height: 1.46;
    color: #cbd5e1;
    margin: 0 0 9px;
}

.plaque-exif-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}

.exif-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.67rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #e2e8f0;
}

.plaque-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    gap: 8px;
}

.plaque-nav-btns {
    display: flex;
    gap: 6px;
}

.plaque-step-btn {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #f8fafc !important;
}

.plaque-step-btn:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

.plaque-Inspect-btn {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 0.73rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.plaque-Inspect-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

/* ============================================================
   MOBILE & TABLET FLIGHT DECK REDESIGN (<= 900px)
   "Upper Sky Stage + Non-Overlapping Top HUD + Compact Bottom Deck"
   ============================================================ */
@media (max-width: 900px) {
    /* Hide right-side desktop floating dock on mobile for a clean viewport */
    body.travel-page .liquid-dock {
        display: none !important;
    }

    /* Top HUD Header Container */
    .travel-hud-header {
        top: 72px;
        left: 12px;
        right: 12px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
    }

    /* Collapsed Pill on Mobile: fits its exact content with generous room for badge + chevron */
    .travel-hud-title-box.is-collapsed {
        width: auto;
        max-width: calc(100% - 122px);
        padding: 6px 8px 6px 12px;
        border-radius: 999px;
    }

    /* Expanded Card on Mobile: spans full width as a floating overlay so pills never wrap or clip! */
    .travel-hud-title-box:not(.is-collapsed) {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 12px 14px 14px;
        border-radius: 20px;
        z-index: 30;
    }

    .travel-hud-compact-bar {
        gap: 8px;
    }

    .travel-hud-brand-group {
        gap: 6px;
    }

    .travel-main-title {
        font-size: 0.86rem !important;
    }

    .travel-stats-badge {
        font-size: 0.62rem;
        padding: 1.5px 7px;
    }

    /* Hide desktop inline summary on mobile pill */
    .hud-inline-summary {
        display: none !important;
    }

    .hud-collapse-btn {
        width: 22px;
        height: 22px;
        margin-left: 2px;
    }

    .travel-hud-details {
        max-height: 320px;
        margin-top: 10px;
    }

    .travel-sub-title {
        display: none;
    }

    .travel-hud-sub-row {
        margin-bottom: 6px;
    }

    /* 2x2 Grid for Telemetry Pills when expanded on mobile */
    .travel-telemetry-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-top: 8px;
    }

    .telemetry-pill {
        font-size: 0.62rem;
        padding: 4px 8px;
        justify-content: space-between;
        min-width: 0;
    }

    .telemetry-pill strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Stack Gyro Compass and Zoom Pill neatly on Top-Right of Mobile */
    .travel-hud-controls {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .travel-compass-hud {
        padding: 5px 10px 5px 6px;
        gap: 6px;
    }

    .compass-dial {
        width: 24px;
        height: 24px;
    }

    .compass-needle-n {
        border-left-width: 2.5px;
        border-right-width: 2.5px;
        border-bottom-width: 5.5px;
    }

    .compass-needle-s {
        border-left-width: 2.5px;
        border-right-width: 2.5px;
        border-top-width: 5.5px;
    }

    .compass-label {
        font-size: 0.60rem;
        letter-spacing: 0.02em;
    }

    .compass-sublabel {
        display: none;
    }

    .travel-zoom-hud {
        padding: 3px 6px;
        gap: 3px;
    }

    .globe-zoom-btn {
        width: 22px;
        height: 22px;
        font-size: 0.92rem;
    }

    .globe-zoom-level {
        font-size: 0.62rem;
        min-width: 26px;
        padding: 0 2px;
    }

    /* Compact Scroll Guide above bottom bar */
    .travel-scroll-guide {
        bottom: 76px;
        padding: 6px 12px;
        font-size: 0.68rem;
        max-width: calc(100vw - 28px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Compact Horizontal Camera Card at Bottom of Mobile Screen */
    .travel-photo-plaque {
        left: 12px !important;
        right: 12px !important;
        bottom: 74px !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 18px;
    }

    /* Sheet Minimize Handle at top of Mobile Card */
    .plaque-sheet-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 16px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .plaque-sheet-pill {
        width: 32px;
        height: 3.5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.32);
        transition: background 0.2s ease, width 0.2s ease;
    }

    .plaque-sheet-handle:hover .plaque-sheet-pill {
        background: #38bdf8;
        width: 42px;
    }

    /* Horizontal 2-Column Split on Mobile (Thumbnail Left + Info Right = 60% shorter!) */
    .plaque-content-grid {
        display: grid;
        grid-template-columns: 122px 1fr;
        align-items: stretch;
        padding: 0 10px 10px;
        gap: 11px;
        max-height: 175px;
        overflow: hidden;
        transition: max-height 0.34s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    }

    /* Minimized mobile sheet state (if user taps handle to see 100% of globe) */
    .travel-photo-plaque.is-minimized .plaque-content-grid {
        grid-template-columns: 1fr;
        max-height: 46px;
        padding: 0 12px 8px;
    }

    .travel-photo-plaque.is-minimized .plaque-image-wrap,
    .travel-photo-plaque.is-minimized .plaque-country,
    .travel-photo-plaque.is-minimized .plaque-desc,
    .travel-photo-plaque.is-minimized .plaque-exif-strip {
        display: none;
    }

    .travel-photo-plaque.is-minimized .plaque-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        gap: 8px;
    }

    .travel-photo-plaque.is-minimized .plaque-footer {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .travel-photo-plaque.is-minimized .plaque-date {
        display: none;
    }

    .plaque-image-wrap {
        width: 122px;
        height: 100%;
        min-height: 136px;
        max-height: 156px;
        border-radius: 12px;
    }

    .vf-rec-badge {
        top: 6px;
        left: 6px;
        padding: 1px 6px;
        font-size: 0.54rem;
    }

    .plaque-sky-stamp {
        display: none;
    }

    .plaque-gps-badge {
        bottom: 6px;
        left: 6px;
        right: 6px;
        text-align: center;
        padding: 2px 4px;
        font-size: 0.56rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .plaque-body {
        padding: 2px 2px 0 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
    }

    .plaque-title-group {
        display: flex;
        align-items: baseline;
        gap: 6px;
        min-width: 0;
    }

    .plaque-waypoint-idx {
        font-size: 0.58rem;
        flex-shrink: 0;
    }

    .plaque-city {
        font-size: 1.02rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .plaque-date {
        font-size: 0.64rem;
        flex-shrink: 0;
    }

    .plaque-country {
        font-size: 0.70rem;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .plaque-desc {
        font-size: 0.73rem;
        line-height: 1.35;
        margin: 0 0 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .plaque-exif-strip {
        gap: 4px;
        margin-bottom: 6px;
    }

    .exif-chip {
        font-size: 0.60rem;
        padding: 1.5px 6px;
    }

    .plaque-footer {
        padding-top: 6px;
    }

    .plaque-step-btn {
        padding: 3px 8px !important;
        font-size: 0.66rem !important;
    }

    .plaque-Inspect-btn {
        font-size: 0.66rem;
        padding: 2px 4px;
    }

    /* Bottom Flight Bar on Mobile */
    .travel-flight-progress-bar {
        width: calc(100vw - 24px);
        bottom: 10px;
        padding: 9px 16px 17px;
        gap: 5px;
    }

    .flight-bar-header {
        font-size: 0.62rem;
    }

    .flight-bar-odometer {
        font-size: 0.58rem;
    }

    .flight-bar-node-label {
        font-size: 0.52rem;
        top: 10px;
    }
}
