/* ============================================
   COMMUNITY OF TRAVELLERS — DESIGN SYSTEM
   Premium Dark Theme with Glassmorphism
   ============================================ */

/* === CSS Custom Properties (Design Tokens) === */
:root {
    /* === Colors === */
    --color-bg-primary: #020617;
    --color-bg-secondary: #070a1e;
    --color-bg-tertiary: #0a0e29;
    --color-bg-card: rgba(15, 23, 42, 0.4);
    --color-bg-elevated: rgba(30, 41, 59, 0.65);
    
    --color-surface-glass: rgba(15, 23, 42, 0.45);
    --color-surface-glass-hover: rgba(15, 23, 42, 0.6);
    --color-surface-glass-active: rgba(15, 23, 42, 0.75);
    --color-surface-glass-border: rgba(255, 255, 255, 0.07);
    
    --color-teal: #ff6b00;
    --color-teal-light: #ff8533;
    --color-teal-dark: #cc5600;
    --color-teal-glow: rgba(255, 107, 0, 0.35);
    --color-teal-subtle: rgba(255, 107, 0, 0.12);
    
    --color-aqua: #00f2fe;
    --color-aqua-light: #4facfe;
    --color-aqua-glow: rgba(0, 242, 254, 0.35);
    
    --color-amber: #ff9f1c;
    --color-amber-light: #ffb24d;
    --color-amber-glow: rgba(255, 159, 28, 0.35);
    
    --color-coral: #f43f5e;
    --color-coral-glow: rgba(244, 63, 94, 0.35);
    
    --color-purple: #a855f7;
    --color-purple-glow: rgba(168, 85, 247, 0.35);
    
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-inverse: #020617;
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.16);
    --color-border-active: rgba(255, 107, 0, 0.45);
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* === Gradients === */
    --gradient-teal: linear-gradient(135deg, #ff6b00 0%, #ff9f1c 100%);
    --gradient-warm: linear-gradient(135deg, #ff9f1c 0%, #ff6b00 100%);
    --gradient-cool: linear-gradient(135deg, #ff6b00 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.8) 60%, #020617 100%);
    --gradient-card-hover: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(0, 242, 254, 0.04) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-text: linear-gradient(90deg, #ff6b00, #ff9f1c, #00f2fe);
    --gradient-bg-section: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, 0.07) 0%, transparent 60%);
    
    /* === Typography === */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* === Spacing === */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* === Border Radius === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 999px;
    
    /* === Shadows === */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow-teal: 0 0 20px rgba(255, 90, 0, 0.2), 0 0 60px rgba(255, 90, 0, 0.1);
    --shadow-glow-amber: 0 0 20px rgba(255, 159, 28, 0.2), 0 0 60px rgba(255, 159, 28, 0.1);
    --shadow-glow-card: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 90, 0, 0.05);
    --shadow-inner: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    
    /* === Glass === */
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;
    --glass-bg: rgba(8, 8, 8, 0.8);
    --glass-bg-light: rgba(16, 16, 16, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-spring: 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* === Z-Index === */
    --z-behind: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-tooltip: 700;
    
    /* === Layout === */
    --container-max: 1320px;
    --container-wide: 1440px;
    --container-narrow: 960px;
    --nav-height: 72px;
    --mobile-nav-height: 64px;
    --sidebar-width: 280px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

#app {
    position: relative;
    min-height: 100vh;
}

/* === Particles Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-behind);
    pointer-events: none;
    opacity: 0.6;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); font-weight: var(--font-extrabold); }
h2 { font-size: var(--text-4xl); font-weight: var(--font-bold); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-teal-light);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-teal { color: var(--color-teal); }
.text-amber { color: var(--color-amber); }
.text-muted { color: var(--color-text-secondary); }

/* === Layout Utilities === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-glow {
    background: var(--gradient-bg-section);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* === Glass Panel === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.glass-panel-light {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: var(--radius-xl);
}

.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--color-surface-glass-hover);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow-card);
    transform: translateY(-2px);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
    background: rgba(255, 255, 255, 0.1);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-teal);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-glow-teal);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.4), 0 0 80px rgba(0, 212, 170, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-teal);
    border: 1.5px solid rgba(0, 212, 170, 0.4);
}

.btn-secondary:hover {
    background: var(--color-teal-subtle);
    border-color: var(--color-teal);
    box-shadow: var(--shadow-glow-teal);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-glass);
}

.btn-warm {
    background: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-glow-amber);
}

.btn-glass {
    background: var(--color-surface-glass);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--color-surface-glass-hover);
    border-color: var(--color-border-hover);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* === Form Inputs === */
.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-base);
}

.input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px var(--color-teal-subtle);
    background: var(--color-surface-glass-hover);
}

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

.input-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.input {
    resize: vertical;
    min-height: 100px;
    line-height: var(--leading-normal);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
}

/* === Chips / Pills / Tags === */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.chip:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-glass-hover);
    border-color: var(--color-border-hover);
}

.chip.active {
    color: var(--color-text-inverse);
    background: var(--gradient-teal);
    border-color: transparent;
    box-shadow: var(--shadow-glow-teal);
}

.chip-lg {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.chip .chip-close {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--space-1);
    opacity: 0.7;
    cursor: pointer;
}

.chip .chip-close:hover {
    opacity: 1;
}

/* === Badge === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    font-size: 10px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border-radius: var(--radius-full);
}

.badge-teal {
    color: var(--color-teal);
    background: var(--color-teal-subtle);
}

.badge-amber {
    color: var(--color-amber);
    background: rgba(245, 158, 11, 0.15);
}

.badge-coral {
    color: var(--color-coral);
    background: rgba(244, 63, 94, 0.15);
}

.badge-verified {
    color: var(--color-teal);
    background: var(--color-teal-subtle);
    padding: 3px 8px;
    font-size: 11px;
}

.badge-verified::before {
    content: '✓';
    font-weight: var(--font-bold);
    margin-right: 3px;
}

/* === Star Rating === */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--color-amber);
}

.stars .star {
    font-size: 14px;
}

.stars .star.empty {
    color: var(--color-text-muted);
}

.rating-display {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.rating-display .rating-value {
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.rating-display .rating-count {
    color: var(--color-text-tertiary);
}

/* === Card Base === */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow-card);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-5);
}

/* === Skeleton Loading === */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16/10;
}

/* === Range Slider === */
.range-slider {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    margin: var(--space-4) 0;
}

.range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    position: absolute;
    top: 0;
    pointer-events: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-teal);
    box-shadow: var(--shadow-glow-teal);
    cursor: pointer;
    pointer-events: all;
    border: 2px solid var(--color-bg-primary);
    transition: transform var(--transition-fast);
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* === Progress Bar (Seat Availability) === */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-teal);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar-fill.warning {
    background: var(--gradient-warm);
}

/* === Tooltip === */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-primary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* === Divider === */
.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-6) 0;
}

/* === Section Header === */
.section-header {
    margin-bottom: var(--space-10);
}

.section-header .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-3);
}

.section-header .section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.section-header .section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* === Avatar === */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; border-width: 3px; }

.avatar-verified {
    position: relative;
}

.avatar-verified::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--color-teal);
    color: var(--color-text-inverse);
    border-radius: 50%;
    font-size: 9px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-primary);
}

/* === Accordion === */
.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.accordion-item:hover {
    border-color: var(--color-border-hover);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    background: var(--color-surface-glass);
    font-weight: var(--font-medium);
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--color-surface-glass-hover);
}

.accordion-header .accordion-icon {
    transition: transform var(--transition-base);
    color: var(--color-text-tertiary);
}

.accordion-item.open .accordion-header .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.accordion-item.open .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--color-text-secondary);
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* === Selection === */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: var(--color-text-primary);
}

/* === Visually Hidden (Accessibility) === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === Image Utilities === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* === Misc Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }

.pointer-events-none { pointer-events: none; }

.cursor-pointer { cursor: pointer; }


/* === 3D Redesign — Sunrise & Sunset Themes === */
.theme-sunrise {
    --color-bg-primary: #020617 !important;
    --color-bg-secondary: #070a1e !important;
    --color-bg-tertiary: #0a0e29 !important;
    --color-bg-card: rgba(15, 23, 42, 0.4) !important;
    --color-bg-elevated: rgba(30, 41, 59, 0.65) !important;
    
    --color-surface-glass: rgba(15, 23, 42, 0.45) !important;
    --color-surface-glass-hover: rgba(15, 23, 42, 0.6) !important;
    --color-surface-glass-active: rgba(15, 23, 42, 0.75) !important;
    --color-surface-glass-border: rgba(255, 255, 255, 0.07) !important;
    
    --color-border: rgba(255, 255, 255, 0.08) !important;
    --color-border-hover: rgba(255, 255, 255, 0.16) !important;
    --color-border-active: rgba(0, 242, 254, 0.45) !important;

    --color-text-primary: #f8fafc !important;
    --color-text-secondary: #cbd5e1 !important;
    --color-text-tertiary: #94a3b8 !important;
    --color-text-muted: #64748b !important;

    background-color: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
    transition: background-color 0.4s ease, color 0.4s ease !important;
}

.theme-sunset {
    --color-bg-primary: #020617 !important;
    --color-bg-secondary: #070a1e !important;
    --color-bg-tertiary: #0a0e29 !important;
    --color-bg-card: rgba(15, 23, 42, 0.4) !important;
    --color-bg-elevated: rgba(30, 41, 59, 0.65) !important;
    
    --color-surface-glass: rgba(15, 23, 42, 0.45) !important;
    --color-surface-glass-hover: rgba(15, 23, 42, 0.6) !important;
    --color-surface-glass-active: rgba(15, 23, 42, 0.75) !important;
    --color-surface-glass-border: rgba(255, 255, 255, 0.07) !important;
    
    --color-border: rgba(255, 255, 255, 0.08) !important;
    --color-border-hover: rgba(255, 255, 255, 0.16) !important;
    --color-border-active: rgba(255, 107, 0, 0.45) !important;

    --color-text-primary: #f8fafc !important;
    --color-text-secondary: #cbd5e1 !important;
    --color-text-tertiary: #94a3b8 !important;
    --color-text-muted: #64748b !important;

    background-color: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
    transition: background-color 0.4s ease, color 0.4s ease !important;
}

/* Ensure child elements inside sunrise/light mode adjust accordingly */
.theme-sunrise .section-subtitle, 
.theme-sunrise .text-muted,
.theme-sunrise .departure-label,
.theme-sunrise .price-label,
.theme-sunrise .card-meta-detail span {
    color: var(--color-text-tertiary) !important;
}

.theme-sunrise h1, 
.theme-sunrise h2, 
.theme-sunrise h3,
.theme-sunrise h4,
.theme-sunrise .card-title-text a,
.theme-sunrise .card-price-section .price-current,
.theme-sunrise .card-departure-section .departure-date {
    color: var(--color-text-primary) !important;
}

/* === 3D Category Pills in Hero === */
.hero-categories-3d {
    perspective: 800px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    margin-top: 8px;
}
.category-pill-3d {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 99px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    transform: translateZ(0) rotateX(10deg);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.category-pill-3d:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 90, 0, 0.45);
    color: #fff;
    transform: translateZ(15px) rotateX(0deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.15);
}
.category-pill-3d .category-icon {
    font-size: 16px;
    transform: translateZ(5px);
    transition: transform 0.3s;
}
.category-pill-3d:hover .category-icon {
    transform: translateZ(10px) scale(1.2);
}

/* === Featured Adventures Carousel === */
.featured-carousel-wrapper {
    position: relative;
    margin-top: var(--space-6);
}
.featured-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}
.featured-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.featured-carousel-item {
    flex: 0 0 350px;
    min-width: 320px;
}
@media (max-width: 768px) {
    .featured-carousel-item {
        flex: 0 0 290px;
    }
}
.featured-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.featured-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}
.featured-carousel-btn.prev-btn { left: -22px; }
.featured-carousel-btn.next-btn { right: -22px; }
@media (max-width: 768px) {
    .featured-carousel-btn { display: none; }
}
