        @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Inter:wght@300;400;600&display=swap');

        :root {
            --primary-yellow: #f1c40f;
            --text-light: #ffffff;
            --text-dim: rgba(255, 255, 255, 0.6);
            --bg-overlay: rgba(0, 0, 0, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #000;
            color: var(--text-light);
            overflow: hidden; /* Prevent native scrollbars */
            user-select: none;
        }

        /* Fullscreen Background */
        .background-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -2;
        }

        .bg-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease-in-out, transform 3s ease-out;
            transform: scale(1.05);
        }

        .bg-image.active {
            opacity: 1;
            transform: scale(1);
        }

        /* Overlay for readability */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
            z-index: -1;
            transition: background 0.7s ease;
        }
        
        .gallery-mode .overlay {
            background: rgba(0, 0, 0, 0.75); /* Darker when gallery is open */
        }

        /* App Container */
        .app-container {
            position: relative;
            width: 100vw;
            height: 100vh;
            padding: 40px 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        /* Header / Logo */
        header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            z-index: 100;
        }

        .logo-block {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-line {
            width: 3px;
            height: 40px;
            background-color: var(--primary-yellow);
        }

        .logo-text {
            font-family: 'Oswald', sans-serif;
            font-size: 24px;
            line-height: 1.1;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 60;
        }

        .gallery-mode .close-btn {
            opacity: 1;
            visibility: visible;
        }

        /* Hero Center Title */
        .hero-title-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 5;
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .gallery-mode .hero-title-container {
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%, -60%);
        }

        .hero-title {
            font-family: 'Oswald', sans-serif;
            font-size: 5vw;
            font-weight: 300;
            letter-spacing: 1px;
            text-shadow: 0 4px 20px rgba(0,0,0,0.5);
            white-space: nowrap;
        }

        .hero-title strong {
            font-weight: 700;
        }

        /* --- Interactive Carousel Area --- */
        .carousel-container {
            position: absolute;
            top: 50%;
            left: 50%;
            /* Start off-screen to the right */
            transform: translate(50vw, -50%); 
            width: 100%;
            height: 100%;
            perspective: 1200px;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none; /* Only allow interaction on specific elements */
            opacity: 0;
            visibility: hidden;
            z-index: 50; /* Ensures the gallery is strictly on the top layer */
            transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .carousel-container.active {
            opacity: 1;
            visibility: visible;
            /* Slide in to center */
            transform: translate(-50%, -50%); 
        }

        .cards-wrapper {
            position: relative;
            width: 100%;
            height: 60vh;
            display: flex;
            align-items: center;
            justify-content: center;
            transform-style: preserve-3d;
            transition: transform 0.5s ease;
            cursor: grab;
            pointer-events: auto; /* Allows clicking cards */
        }

        .cards-wrapper:active {
            cursor: grabbing;
        }

        .trip-card {
            position: absolute;
            width: 320px;
            height: 450px;
            border-radius: 16px;
            overflow: hidden;
            background-color: #222;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
            cursor: pointer;
            will-change: transform, opacity, filter;
        }

        .card-bg-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(255,255,255,0.1) 100%);
            z-index: 2;
            transition: background 0.3s ease;
        }

        .trip-card:hover .card-overlay {
            background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, rgba(255,255,255,0.2) 100%);
        }

        .card-content {
            position: absolute;
            bottom: 30px;
            left: 30px;
            z-index: 3;
        }

        .card-title {
            font-family: 'Oswald', sans-serif;
            font-size: 32px;
            font-weight: 500;
            line-height: 1.1;
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .card-subtitle {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            color: var(--text-light);
        }

        .card-user-icon {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 2px solid white;
            z-index: 3;
            background-color: #333;
            overflow: hidden;
        }

        .card-user-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Edge indicator for partially visible card to open gallery */
        .edge-card-indicator {
            position: absolute;
            right: -20px; /* Hang off the edge slightly */
            top: 50%;
            transform: translateY(-50%);
            width: 150px; 
            height: 380px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 12px 0 0 12px;
            opacity: 0.3;
            z-index: 10;
            pointer-events: auto; /* Clickable */
            cursor: pointer; 
            display: flex;
            flex-direction: column;
            padding: 30px;
            box-sizing: border-box;
            transition: opacity 0.4s ease, right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: -5px 0 20px rgba(0,0,0,0.3);
            overflow: hidden;
        }
        
        .edge-card-indicator:hover {
            right: 0px;
            opacity: 0.9;
        }

        .edge-card-indicator .preview-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.5;
            z-index: -1;
        }

        .gallery-mode .edge-card-indicator {
            opacity: 0;
            visibility: hidden;
            right: -150px;
        }

        /* --- Bottom Dashboard Stats Area --- */
        .bottom-dashboard {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            z-index: 10;
            padding-bottom: 20px;
            pointer-events: auto; /* Allow clicking buttons */
        }

        .stats-container {
            display: flex;
            gap: 60px;
            align-items: flex-end; /* Align bottoms of the stats blocks */
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        .gallery-mode .stats-container {
            opacity: 0.3; /* Dim in gallery mode */
            transform: translateY(20px);
        }

        .stat-block {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        /* Action Buttons (Moved to sit above Distance) */
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 40px; /* Space between buttons and graphs */
            align-items: center;
        }

        .action-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: transparent; /* No background by default */
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: white;
            transition: all 0.3s ease;
            opacity: 0.7; /* Slightly dim non-active icons */
        }

        .action-btn.active {
            background-color: var(--primary-yellow);
            color: black;
            opacity: 1;
            width: 50px; /* Slightly larger active button */
            height: 50px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .action-btn:hover:not(.active) {
            opacity: 1;
            background-color: rgba(255,255,255,0.1);
        }

        /* Update stat styling to match image */
        .stat-graph {
            height: 50px;
            margin-bottom: 15px;
            display: flex;
            align-items: flex-end;
        }
        
        .stat-graph svg {
            width: 120px;
            height: 50px;
            stroke: white;
            stroke-width: 1.5;
            fill: none;
            overflow: visible; /* Prevent clipping of dots/arrows */
        }

        .stat-value {
            font-family: 'Oswald', sans-serif;
            font-size: 42px; /* Increased size */
            font-weight: 300; /* Thinner weight */
            margin-bottom: 5px;
            display: flex;
            align-items: baseline;
            gap: 5px;
            letter-spacing: 1px;
        }

        .stat-unit {
            font-size: 16px; /* Adjusted unit size */
            font-weight: 300;
            font-family: 'Oswald', sans-serif; /* Match font */
        }

        .stat-label {
            font-size: 11px;
            color: var(--text-dim);
            letter-spacing: 1.5px;
            text-transform: uppercase;
            line-height: 1.6;
        }

        .terrain-circle {
            width: 70px; /* Increased size */
            height: 70px;
            border-radius: 50%;
            background-color: #444;
            margin-bottom: 20px;
            background-image: url('https://images.unsplash.com/photo-1524260855046-f743b3cdad07?q=80&w=100&auto=format&fit=crop');
            background-size: cover;
            border: 2px solid rgba(255,255,255,0.2);
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        }

        /* SVG Icons */
        .icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        /* Horizontal Pagination */
        .pagination {
            display: flex;
            align-items: center;
            gap: 15px;
            font-family: 'Oswald', sans-serif;
            font-size: 12px;
            letter-spacing: 2px;
            color: var(--text-dim);
        }

        .pagination-line {
            width: 40px;
            height: 1px;
            background-color: var(--text-dim);
        }

        .pagination-numbers {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pagination-numbers span {
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .pagination-numbers span.active-num {
            color: white;
            font-weight: bold;
        }