:root {
    --bg-dark: #090d16;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(26, 35, 56, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.35);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-gold: #e2b94e;
    
    --primary-gold: #d4af37;
    --primary-gold-dark: #b89326;
    --accent-emerald: #10b981;
    --accent-blue: #38bdf8;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--text-gold); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #aa8215 100%);
    color: #090d16;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.45);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Glassmorphism */
.glassmorphism {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* Top Bar */
.top-bar {
    background: rgba(9, 13, 22, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 0.8rem;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-emerald);
}
.currency-picker {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 2px;
}
.curr-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.curr-btn.active {
    background: var(--primary-gold);
    color: #000;
}
.lang-switcher {
    display: flex;
    gap: 8px;
}
.lang-switcher a {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.lang-switcher a.active {
    color: var(--text-gold);
    background: rgba(212, 175, 55, 0.15);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-badge {
    background: linear-gradient(135deg, #d4af37, #997316);
    color: #090d16;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}
.brand-title {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    display: block;
    line-height: 1.1;
}
.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-gold);
    display: block;
    font-weight: 600;
}
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 120px;
    background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    text-align: center;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--text-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 20px;
    background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Interactive Lego Route Builder */
.builder-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background: #0d121d;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.builder-layout {
    display: grid;
    grid-template-columns: 340px 1fr 380px;
    gap: 24px;
    min-height: 640px;
}

/* Left: Destination Blocks */
.blocks-sidebar {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 700px;
    overflow-y: auto;
}
.lego-block-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    gap: 12px;
    align-items: center;
}
.lego-block-card:hover {
    border-color: var(--primary-gold);
    transform: translateX(4px);
    background: rgba(212, 175, 55, 0.06);
}
.block-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.block-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.block-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}
.block-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gold);
    margin-top: 4px;
}

/* Center: Interactive Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 500px;
}
#travel-map {
    width: 100%;
    height: 100%;
    background: #090d16;
}

/* Right: Canvas & Itinerary Summary */
.canvas-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.canvas-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.timeline-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.timeline-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    position: relative;
}
.connection-pill {
    text-align: center;
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.remove-block-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
}
.canvas-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.grand-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-gold);
    font-family: 'Outfit', sans-serif;
}

/* Curated Routes Grid */
.curated-section {
    padding: 90px 0;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}
.route-card {
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.route-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}
.card-img-wrap {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.route-card:hover .card-img {
    transform: scale(1.05);
}
.card-days-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gold);
    border: 1px solid var(--border-gold);
}
.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
}
.card-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* AI Floating Chat Widget */
.ai-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.chat-fab-btn {
    background: linear-gradient(135deg, #d4af37, #997316);
    color: #090d16;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.25s ease;
}
.chat-fab-btn:hover {
    transform: scale(1.05);
}
.chat-box {
    width: 380px;
    height: 520px;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 65px;
    right: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.chat-box.hidden {
    display: none;
}
.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    display: inline-block;
}
.chat-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.45;
}
.msg.ai {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}
.msg.user {
    background: var(--primary-gold);
    color: #000;
    font-weight: 500;
    align-self: flex-end;
}
.chat-input-bar {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    background: rgba(9, 13, 22, 0.95);
}
.chat-input-bar input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}
.send-btn {
    background: var(--primary-gold);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    width: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.main-footer {
    background: #060910;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ffffff;
}
.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-menu a:hover {
    color: var(--text-gold);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}
.social-links a:hover {
    color: var(--text-gold);
}

/* Responsive */
@media (max-width: 1024px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
