/* --- CSS Variables & Reset --- */
:root {
    /* Colors */
    --bg-body: #0b0f14;
    --bg-surface: #151b26;
    --bg-glass: rgba(21, 27, 38, 0.7);
    --text-main: #e7eefc;
    --text-muted: #a8b3c7;
    --primary: #00f2ea; /* Cyan/Teal */
    --secondary: #7b2cbf; /* Purple */
    --accent-glow: rgba(0, 242, 234, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --danger: #ff4b4b;
    --success: #00e676;

    /* Spacing & Sizing */
    --nav-height: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.flex { display: flex; align-items: center; }
.grid { display: grid; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-primary {
    background: var(--primary); color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--accent-glow); }

.btn-secondary {
    background: transparent; border: 1px solid var(--border); color: var(--text-main);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 16px; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Inputs */
input, textarea, select {
    width: 100%; padding: 12px 16px;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: #fff; font-family: inherit;
    outline: none; transition: 0.3s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 242, 234, 0.1);
}

/* Cards & Glassmorphism */
.card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 24px; transition: 0.3s;
    position: relative; overflow: hidden;
}
.card-glass {
    background: var(--bg-glass); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

/* Badges */
.badge {
    padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: var(--primary); color: #000; }
.badge-curated { background: var(--secondary); color: #fff; }
.badge-outline { border: 1px solid var(--border); color: var(--text-muted); }

/* Placeholders (Gradients) */
.img-placeholder {
    width: 100%; height: 200px; background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2);
    font-weight: bold; border-radius: var(--radius-sm);
}
.img-hero { height: 400px; background: linear-gradient(to right, #1a202c, #2d3748); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #334155; }

/* --- Layouts --- */

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: var(--nav-height); background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
header .container { height: 100%; justify-content: space-between; }
.logo { font-family: 'Space Grotesk'; font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; color: #fff; }
.nav-links { gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { gap: 15px; }

/* Mobile Menu */
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: var(--nav-height); left: 0; width: 100%;
        background: var(--bg-surface); flex-direction: column; padding: 20px;
        border-bottom: 1px solid var(--border); display: none;
    }
    .nav-links.active { display: flex; }
    .nav-actions { display: none; } /* Simplified mobile nav for demo */
    .hamburger { display: block; }
}

/* Hero Section */
.hero {
    padding: 140px 0 80px; text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.15), transparent 60%);
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }
.stats-bar { display: flex; gap: 15px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* Vertical Tour Cards */
.tour-list-vertical { display: flex; flex-direction: column; gap: 20px; }
.tour-card-row {
    display: grid; grid-template-columns: 200px 1fr auto; gap: 20px;
    align-items: center; padding: 15px;
}
@media (max-width: 768px) {
    .tour-card-row { grid-template-columns: 1fr; }
    .img-placeholder { height: 150px; }
    .hero h1 { font-size: 2.5rem; }
}

/* Footer */
footer { padding: 60px 0 20px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Components: Toast */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; }
.toast {
    background: var(--bg-surface); border-left: 4px solid var(--primary);
    padding: 15px 20px; margin-top: 10px; border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); color: #fff;
    animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 10px;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Components: Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 1500; display: none;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--bg-surface); padding: 30px; border-radius: var(--radius-md);
    width: 90%; max-width: 500px; border: 1px solid var(--border); position: relative;
}
.modal-close { position: absolute; top: 15px; right: 15px; cursor: pointer; }

/* Components: Accordion */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header {
    width: 100%; text-align: left; padding: 20px 0; background: none; border: none;
    color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between;
}
.accordion-body { display: none; padding-bottom: 20px; color: var(--text-muted); }
.accordion-item.active .accordion-body { display: block; }
.accordion-item.active .accordion-header { color: var(--primary); }

/* Stepper */
.stepper { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.step { z-index: 1; background: var(--bg-body); padding: 0 10px; color: var(--text-muted); }
.step.active { color: var(--primary); font-weight: bold; }
.stepper::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
    background: var(--border); z-index: 0;
}