/* ============================================
   WAYTOTRIP — ADVANCED 3D REAL TEMPO TRAVELLER SHOWCASE
   ============================================ */
:root {
    --bg-dark: #02060b;
    --gold-primary: #ffc400;
    --gold-glow: rgba(255, 196, 0, 0.35);
    --cyan-glow: rgba(0, 225, 255, 0.25);
    --glass-bg: rgba(6, 15, 26, 0.86);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-white: #ffffff;
    --text-sub: #9aa5b1;
}

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

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    position: relative;
}

/* Fixed Header Navbar Always Visible & Stuck at Top */
#navbar, header#navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(3, 9, 16, 0.95) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(255, 196, 0, 0.3) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7) !important;
}

/* ============================================
   1. FULL-SCREEN CINEMATIC DEEP SPACE BACKGROUND
   ============================================ */
#tempo-3d-viewport {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #070d1e 0%, #03060d 50%, #010205 100%);
    perspective: 1200px;
}

/* Cosmic Nebula Clouds System */
.aurora-bg-glow {
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 80vh;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(147, 51, 234, 0.22) 0%, rgba(59, 130, 246, 0.15) 35%, transparent 70%),
        radial-gradient(ellipse at 70% 25%, rgba(0, 225, 255, 0.20) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 75%),
        radial-gradient(ellipse at 50% 60%, rgba(255, 196, 0, 0.18) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    animation: cosmicNebulaPulse 16s ease-in-out infinite alternate;
}

@keyframes cosmicNebulaPulse {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); opacity: 0.8; }
    50% { transform: translateX(-48%) scale(1.18) rotate(2deg); opacity: 1; }
    100% { transform: translateX(-52%) scale(0.92) rotate(-2deg); opacity: 0.85; }
}

/* 3D Cosmic Space Grid Stage Floor */
.floor-3d-grid {
    position: absolute;
    bottom: -18vh;
    left: 50%;
    width: 170vw;
    height: 85vh;
    transform: translateX(-50%) rotateX(74deg);
    background-image: 
        linear-gradient(rgba(0, 225, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 196, 0, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
    pointer-events: none;
}

/* Twinkling Galactic Starfield */
.tempo-starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tempo-star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: starPulse var(--dur, 3s) ease-in-out infinite alternate;
}

@keyframes starPulse {
    0% { opacity: 0.15; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(0, 225, 255, 0.8); }
    100% { opacity: 0.25; transform: scale(0.85); }
}

/* Cosmic Shooting Meteor Shower */
.cosmic-meteor {
    position: absolute;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,1), rgba(0, 225, 255, 0.8), rgba(255, 196, 0, 0.4), transparent);
    border-radius: 50%;
    transform: rotate(-38deg);
    opacity: 0;
    pointer-events: none;
    animation: cosmicMeteorShower var(--meteor-dur, 8s) linear infinite;
    animation-delay: var(--meteor-delay, 0s);
}

@keyframes cosmicMeteorShower {
    0% { transform: translateX(0) translateY(0) rotate(-38deg); opacity: 0; }
    4% { opacity: 1; filter: drop-shadow(0 0 8px #00e5ff); }
    12% { transform: translateX(-500px) translateY(350px) rotate(-38deg); opacity: 0; }
    100% { transform: translateX(-500px) translateY(350px) rotate(-38deg); opacity: 0; }
}

/* ============================================
   2. 3D VEHICLE DISPLAY PLATFORM (REAL ASSETS)
   ============================================ */
.stage-center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(10deg);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    width: 720px;
    height: 400px;
    z-index: 5;
    pointer-events: auto;
}

/* Mode Switcher Toggle (Exterior vs Interior) */
.view-mode-toggle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(3, 10, 18, 0.90);
    border: 1px solid rgba(255, 196, 0, 0.35);
    border-radius: 25px;
    padding: 3px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    z-index: 20;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-btn.active {
    background: linear-gradient(135deg, #ffc400, #ffa000);
    color: #02060c;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.4);
    font-weight: 900;
}

/* Glowing 3D Pedestal Ring */
.stage-pedestal-ring {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    width: 620px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 60px var(--gold-glow), inset 0 0 45px var(--gold-glow);
    background: radial-gradient(ellipse at center, rgba(255, 196, 0, 0.15) 0%, transparent 70%);
}

.pedestal-pulse-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 225, 255, 0.5);
    animation: rotatePedestal 25s linear infinite;
}

@keyframes rotatePedestal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Real Vehicles Image Stage */
.real-vehicle-frame {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 580px;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 6;
}

.real-vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.85);
    border: 1px solid rgba(255, 196, 0, 0.3);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Headlight Spot Cone for Real Image */
.real-headlight-cone {
    position: absolute;
    right: -130px;
    top: 45%;
    width: 180px;
    height: 50px;
    background: radial-gradient(ellipse at left center, rgba(255, 240, 180, 0.55) 0%, rgba(255, 240, 180, 0.1) 45%, transparent 75%);
    z-index: 8;
    pointer-events: none;
    opacity: 0.9;
}

/* 3D Cabin Hotspots */
.hotspot-pin {
    position: absolute;
    z-index: 15;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.hotspot-pin:hover {
    transform: scale(1.2);
}

.hotspot-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 3px solid #02060b;
    box-shadow: 0 0 18px var(--gold-primary);
    position: relative;
}

.hotspot-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-primary);
    animation: pulseHotspot 2s ease-out infinite;
}

@keyframes pulseHotspot {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hotspot-card-preview {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(4, 12, 22, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 8px 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 12px 35px rgba(0,0,0,0.85);
}

.hotspot-pin:hover .hotspot-card-preview {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hotspot-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hotspot-sub {
    font-size: 0.62rem;
    color: var(--text-sub);
}

/* ============================================
   3. OVERLAY UI LAYERS (100VH LAYOUT)
   ============================================ */
#tempo-layout-wrapper {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 75px;
    padding-bottom: 20px;
    max-width: 1340px;
    margin: 0 auto;
    width: 94%;
    pointer-events: none;
}

#tempo-layout-wrapper * {
    pointer-events: auto;
}

/* Top Hero Header */
.tempo-hero-header {
    text-align: center;
    margin-top: 2px;
}

.tempo-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 196, 0, 0.12);
    border: 1px solid rgba(255, 196, 0, 0.35);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tempo-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.tempo-hero-title span {
    background: linear-gradient(135deg, #fff5c0 0%, #ffc400 50%, #ff9100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 196, 0, 0.45);
}

/* Fleet Tier Selector (Left Sidebar) */
.fleet-tier-selector {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 15;
}

.tier-btn {
    background: rgba(4, 12, 22, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 16px;
    color: var(--text-sub);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.tier-btn i {
    font-size: 0.9rem;
    color: var(--gold-primary);
}

.tier-btn:hover, .tier-btn.active {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.2), rgba(4, 12, 22, 0.95));
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(255, 196, 0, 0.3);
    transform: translateX(6px);
}

.tier-btn.active i {
    filter: drop-shadow(0 0 8px var(--gold-primary));
}

/* Live Per-Person Group Rate Panel (Right Sidebar) */
.group-rate-panel {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(4, 12, 22, 0.90);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 196, 0, 0.35);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
    z-index: 15;
}

.panel-header-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rate-stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-sub);
    text-transform: uppercase;
}

.stat-val-large {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    margin-top: 2px;
}

.per-head-badge {
    font-size: 0.65rem;
    color: var(--gold-primary);
    font-weight: 800;
    background: rgba(255, 196, 0, 0.15);
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

/* Interactive Group Slider */
.slider-container {
    margin-top: 10px;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.group-size-slider {
    width: 100%;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

/* Bottom Glass Dock Command Bar */
.bottom-command-dock {
    width: clamp(320px, 92vw, 980px);
    margin: 0 auto;
    background: rgba(4, 12, 22, 0.92);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 196, 0, 0.35);
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85);
    z-index: 20;
}

.dock-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 4px 10px;
    flex: 1;
}

.dock-input-group i {
    color: var(--gold-primary);
    font-size: 0.8rem;
}

.dock-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    outline: none;
}

.dock-map-pill {
    background: rgba(255, 196, 0, 0.15);
    border: 1px solid rgba(255, 196, 0, 0.35);
    color: var(--gold-primary);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.dock-map-pill:hover {
    background: var(--gold-primary);
    color: #02060b;
}

.dock-book-cta {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd000 0%, #ff9a00 50%, #e68000 100%);
    color: #02060c;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 196, 0, 0.4);
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dock-book-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 196, 0, 0.6);
}

/* Home Button */
.home-glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.18), rgba(255, 196, 0, 0.06));
    border: 1.5px solid #ffc400;
    color: #ffc400;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 18px rgba(255, 196, 0, 0.25);
}

.home-glow-btn:hover {
    background: #ffc400;
    color: #02060c;
    box-shadow: 0 0 28px rgba(255, 196, 0, 0.6);
    transform: translateY(-2px);
}

/* WhatsApp Floating Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: #25d366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

.whatsapp-float-btn:hover {
    transform: translateY(-3px) scale(1.03);
}

/* ============================================
   RESPONSIVE MOBILE BREAKPOINTS (< 900PX)
   ============================================ */
@media (max-width: 900px) {
    html, body {
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    #tempo-layout-wrapper {
        height: auto !important;
        padding-top: 105px !important;
        padding-bottom: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        max-width: 100% !important;
        width: 94% !important;
    }

    .tempo-hero-header {
        margin-top: 0 !important;
    }

    .tempo-hero-title {
        font-size: 1.25rem !important;
    }

    .stage-center-box {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 230px !important;
        margin: 5px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .view-mode-toggle {
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        transform: none !important;
        margin-bottom: 8px !important;
        z-index: 25 !important;
    }

    .real-vehicle-frame {
        width: 96% !important;
        height: 175px !important;
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        transform: none !important;
    }

    .stage-pedestal-ring {
        width: 280px !important;
        height: 110px !important;
        bottom: 0px !important;
    }

    .hotspot-pin {
        transform: scale(0.9) !important;
    }

    .fleet-tier-selector {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 4px 2px 8px 2px !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch;
    }

    .tier-btn {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 0.68rem !important;
        border-radius: 20px !important;
    }

    .group-rate-panel {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .bottom-command-dock {
        position: relative !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 14px !important;
        margin: 0 !important;
    }

    .dock-input-group {
        width: 100% !important;
        height: 44px !important;
    }

    .dock-book-cta {
        width: 100% !important;
        height: 48px !important;
        justify-content: center !important;
    }
}
