:root {
    --primary-purple: #8e44ad;
    --primary-blue: #3498db;
    --primary-teal: #1abc9c;
    --primary-orange: #f39c12;
    --vibrant-gradient: linear-gradient(135deg, #6c5ce7, #2563eb, #0ea5e9);
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --dark-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Premium Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

body.light-theme header {
    background: rgba(248, 250, 252, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--text-primary);
}

nav a.cta-link {
    background: var(--vibrant-gradient);
    padding: 10px 20px;
    border-radius: 50px;
    color: white !important;
}

/* Navigation Selectors Integration */
.nav-selectors {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-selectors select {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: var(--vibrant-gradient);
    color: white;
}

/* Partner Card Interactivity */
.partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition-smooth);
}

.partner-link:hover .glass-card {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 10px;
}

.lang-switcher select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

body.light-theme .lang-switcher {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .search-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-field {
    border-right: none;
    border-left: 1px solid var(--glass-border);
    text-align: right;
    align-items: flex-end;
}

[dir="rtl"] .search-field:last-of-type {
    border-left: none;
}

[dir="rtl"] .btn-search {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 90px;
}

[dir="rtl"] .theme-toggle {
    right: auto;
    left: 30px;
}

[dir="rtl"] .nomad-content {
    text-align: right;
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    position: relative;
    background: url('https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.3));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.light-theme .hero {
    color: white; /* Keep hero text white even in light theme for readability on image */
}

/* Search Box OTA */
.search-box {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 100px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 25px;
    border-right: 1px solid var(--glass-border);
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.search-field input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 4px 0;
    width: 100%;
}

.search-field input:focus {
    outline: none;
}

.btn-search {
    background: var(--vibrant-gradient);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 10px;
}

.btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

/* Nomad CTA Section */
.nomad-cta {
    padding: 100px 0;
    margin-top: 50px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, var(--primary-teal), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.1;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nomad-content {
    flex: 1;
    text-align: left;
}

.nomad-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.nomad-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
}

body.light-theme .nomad-image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.nomad-image img {
    width: 100%;
    display: block;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(26, 188, 156, 0.9); /* More opaque */
    color: white; /* High contrast text */
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.badge.hotel { background: rgba(52, 152, 219, 0.95); }
.badge.boat { background: rgba(26, 188, 156, 0.95); }
.badge.cruise { background: rgba(243, 156, 18, 0.95); }

/* Responsive */
@media (max-width: 900px) {
    .search-box {
        flex-direction: column;
        border-radius: 32px;
        padding: 20px;
    }
    .search-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .btn-search {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    .hero h1 { font-size: 2.5rem; }
    .glass-card { flex-direction: column; text-align: center; padding: 40px; }

}

/* Hero Sections - Page Specific (Using local verified assets) */
.hero.hero-hotels {
    background-image: url('assets/hero/hero-hotels.jpg');
}

.hero.hero-flights {
    background-image: url('assets/hero/hero-flights.jpg');
}

.hero.hero-trains {
    background-image: url('assets/hero/hero-trains.jpg');
}

.hero.hero-nomad {
    background-image: url('assets/hero/hero-nomad.jpg');
}

/* Comprehensive Footer */
footer {
    padding: 80px 0 40px;
    background: var(--dark-bg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--primary-teal);
    padding-left: 5px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background: var(--vibrant-gradient);
    color: white;
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: 0.6;
}

.payment-methods img {
    height: 25px;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: var(--transition-smooth);
}

.payment-methods img:hover {
    filter: brightness(0) invert(1) opacity(1);
}

body.light-theme .payment-methods img {
    filter: grayscale(1) opacity(0.7);
}

body.light-theme .payment-methods img:hover {
    filter: grayscale(0) opacity(1);
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col:first-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
