html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a43ad;
    --primary-dark: #0f2d7d;
    --secondary: #ff9b09;
    --accent: #1a43ad;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --gray: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Prevent accidental horizontal scrolling */
html, body { overflow-x: hidden; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
}

/* Keep navbar text on one line (prevent wrapping) */
.logo span {
    white-space: nowrap;
    display: inline-block;
}

.nav-container {
    flex-wrap: nowrap;
}

.nav-links a,
.mobile-links a,
.btn,
.currency-selector select {
    white-space: nowrap;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.nav-links { gap: 1rem; }

/* Nav toggle (hamburger) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle .hamburger {
    width: 22px;
    height: 2px;
    background: var(--dark);
    display: block;
    position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--dark);
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

/* Mobile nav panel */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1100;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 1rem 16px 16px 16px;
}
.mobile-nav.open { display: block; }
.mobile-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-links a { display: flex; align-items: center; gap: 8px; padding: 0.6rem 0.5rem; color: var(--dark); text-decoration: none; border-radius: 8px; }
.mobile-links a:hover { background: var(--light); }
.mobile-user-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }


/* Booking modal specifics */
.booking-details p {
    margin: 0.25rem 0;
    color: var(--dark);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
}

.payment-methods label {
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.card-fields input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Dashboard styles */
.dashboard {
    background: var(--light);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
.dashboard-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.booking-item {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
}
.muted { color: var(--gray); font-size: 0.9rem; }

/* Packages section styles */
.packages-search { 
    background: linear-gradient(135deg, rgba(26, 67, 173, 0.06), rgba(255, 155, 9, 0.06)); 
    padding: 2rem 1.5rem; 
    border-radius: 16px; 
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 67, 173, 0.1);
}

.packages-search-inner { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
    justify-content: flex-start; 
    flex-wrap: wrap; 
    max-width: 100%;
}

.pkg-search-input { 
    flex: 1; 
    min-width: 220px; 
    padding: 0.95rem 1.25rem; 
    border-radius: 10px; 
    border: 2px solid #e5e7eb; 
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    font-size: 0.95rem; 
    transition: all 0.3s ease; 
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--dark);
}

.pkg-search-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.pkg-search-input:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 67, 173, 0.15);
}

.pkg-search-input:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(26, 67, 173, 0.1), 0 4px 12px rgba(26, 67, 173, 0.15);
    background: linear-gradient(135deg, #f0f4ff 0%, #f9fafb 100%);
}

.pkg-select { 
    padding: 0.95rem 1.5rem; 
    border-radius: 10px; 
    border: 2px solid #e5e7eb; 
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%231a43ad" d="M0 0l6 8 6-8z"/></svg>'), linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    background-size: 12px, 100%; 
    background-position: right 14px center, 0 0;
    background-repeat: no-repeat, no-repeat;
    padding-right: 40px; 
    appearance: none; 
    cursor: pointer; 
    min-width: 180px; 
    font-size: 0.95rem; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pkg-select:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 67, 173, 0.15);
}

.pkg-select:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(26, 67, 173, 0.1), 0 4px 12px rgba(26, 67, 173, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%231a43ad" d="M0 0l6 8 6-8z"/></svg>'), linear-gradient(135deg, #f0f4ff 0%, #f9fafb 100%);
}

.pkg-select option { 
    padding: 0.75rem; 
    background: white; 
    color: var(--dark); 
    font-weight: 500; 
}

.packages-list { 
    padding: 3rem 0 4rem; 
}

.packages-list h2 { 
    margin-bottom: 0.5rem; 
    color: var(--dark); 
    font-size: 2.2rem;
    font-weight: 800;
}

.packages-list > .muted {
    margin-bottom: 2rem;
    font-size: 1rem;
}
.package-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 1.5rem; 
}

/* Package Item Styles */
.package-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(12, 23, 44, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 67, 173, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(12, 23, 44, 0.15);
}

.package-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.package-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    background-color: #e5e7eb;
    background-image: linear-gradient(45deg, #d1d5db 25%, transparent 25%, transparent 75%, #d1d5db 75%, #d1d5db),
                      linear-gradient(45deg, #d1d5db 25%, transparent 25%, transparent 75%, #d1d5db 75%, #d1d5db);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.package-item:hover .package-item-image {
    transform: scale(1.05);
}

.package-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.package-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.35rem 0.7rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
}

.badge-primary {
    background: linear-gradient(135deg, var(--secondary), #ffb347);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(255, 155, 9, 0.3);
}

.badge-duration {
    background: linear-gradient(135deg, var(--primary), #0f2d7d);
    color: white;
}

.package-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.package-country-flag {
    font-size: 2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Flag icon styling */
.fi {
    display: inline-block;
    line-height: 1;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    width: 2rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.package-item-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.package-date {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.package-price-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.sold-out-label {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    background: transparent;
}

.btn-package-book:disabled .sold-out-label {
    color: white;
    background: transparent;
}

.btn-package-book {
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 67, 173, 0.3);
    white-space: nowrap;
}

.btn-package-book:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), #0f2d7d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 67, 173, 0.4);
}

.btn-package-book:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
}

/* Old package-card styles - kept for backward compatibility */
.package-card { 
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); 
    border-radius: 16px; 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    box-shadow: 0 8px 32px rgba(12, 23, 44, 0.08); 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    position: relative; 
    overflow: hidden; 
}

.package-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 48px rgba(12, 23, 44, 0.15); 
}

.package-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 4px; 
    background: linear-gradient(90deg, var(--primary), var(--secondary)); 
}

.package-image { 
    width: 100%; 
    height: 180px; 
    border-radius: 12px; 
    background-size: cover; 
    background-position: center; 
    flex-shrink: 0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    margin-top: 0.5rem;
}

.package-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
}

.package-tags { 
    display: flex; 
    gap: 0.5rem; 
    margin-bottom: 0.5rem; 
    flex-wrap: wrap; 
    align-items: center; 
}

.pkg-tag { 
    background: linear-gradient(135deg, var(--secondary), #ffb347); 
    color: var(--dark); 
    padding: 0.4rem 0.9rem; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    box-shadow: 0 2px 8px rgba(255, 155, 9, 0.3); 
    display: inline-block;
}

.pkg-duration { 
    background: linear-gradient(135deg, var(--primary), #0f2d7d); 
    color: white; 
    padding: 0.4rem 0.9rem; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700;
    display: inline-block;
}

.package-title { 
    font-weight: 800; 
    font-size: 1.2rem; 
    margin-bottom: 0.5rem; 
    color: var(--dark); 
    display: flex; 
    align-items: center; 
    gap: 0.75rem;
    word-wrap: break-word;
}

.pkg-flag { 
    font-size: 1.5rem; 
    flex-shrink: 0;
}

.package-meta { 
    color: var(--gray); 
    font-size: 0.95rem; 
    display: flex; 
    gap: 0.75rem; 
    align-items: center;
    flex-wrap: wrap;
}

.package-price { 
    color: var(--primary); 
    font-weight: 800; 
    font-size: 1.4rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-top: 0.5rem;
}

.sold-out { 
    background: #fee2e2; 
    color: #dc2626; 
    font-weight: 800; 
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    text-align: center; 
    margin-left: 0; 
    display: inline-block;
}

@media (max-width: 768px) {
    .packages-search-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
    .pkg-select, .pkg-search-input, .btn-search { width: 100%; }
    .btn-search { width: 100%; }
    .package-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
    .package-card { flex-direction: column; }
    .package-image { width: 100%; height: 130px; }
    .package-title { font-size: 0.95rem; }
    .package-card .btn { width: 100%; padding: 0.7rem; }
    .package-image-wrapper { height: 130px; }
    .package-item-image { height: 100%; }
    .package-details { padding: 0.8rem; gap: 0.6rem; }
    .package-item-title { font-size: 0.9rem; }
    .package-date { font-size: 0.8rem; }
    .package-price-value { font-size: 1rem; }
    .badge { padding: 0.3rem 0.6rem; font-size: 0.65rem; }
}

/* Make results & grids more responsive */
.result-card { flex-direction: column; align-items: flex-start; }
.flight-info { width: 100%; }
.flight-price { width: 100%; text-align: left; margin-top: 1rem; }

/* Larger breakpoint tweaks */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .tab-btn { padding: 0.75rem 1rem; }
    .package-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Small devices - more compact layout */
@media (max-width: 480px) {
    .package-grid { grid-template-columns: 1fr; gap: 1rem; }
    .package-image-wrapper { height: 120px; }
    .package-details { padding: 0.75rem; gap: 0.5rem; }
    .package-item-title { font-size: 0.85rem; }
    .package-date { font-size: 0.75rem; }
    .package-price-value { font-size: 0.95rem; }
    .badge { padding: 0.25rem 0.5rem; font-size: 0.6rem; }
    .btn-package-book { padding: 0.6rem 1rem; font-size: 0.9rem; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary);
    color: white;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.currency-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(26, 67, 173, 0.8) 100%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 1000px;
    margin: -80px auto 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

/* Allow tab buttons to scroll horizontally on narrow screens */
.tab-buttons { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-buttons::-webkit-scrollbar { display: none; }
.tab-btn { display: inline-flex; white-space: nowrap; }

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.trip-type {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--gray);
}

.input-with-icon input,
.input-with-icon select {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s;
    background: white;
    font-weight: 500;
}

.input-with-icon input::placeholder {
    color: #a0aec0;
    opacity: 1;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 67, 173, 0.1);
    background: rgba(26, 67, 173, 0.02);
}

.btn-search {
    width: auto;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(26, 67, 173, 0.3);
    min-width: 150px;
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0f2d7d);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 67, 173, 0.5);
}

.btn-search:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(26, 67, 173, 0.3);
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background: var(--light);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: var(--dark);
    font-size: 2rem;
}

.results-count {
    color: var(--gray);
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.flight-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.airline-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.flight-details {
    display: flex;
    gap: 2rem;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flight-times {
    text-align: center;
}

.flight-times .time {
    font-size: 1.2rem;
    font-weight: 600;
}

.flight-times .city {
    color: var(--gray);
    font-size: 0.9rem;
}

.flight-duration {
    text-align: center;
    color: var(--gray);
}

.flight-price {
    text-align: right;
}

.flight-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.flight-price .book-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
}

/* Features */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #0f2d7d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Popular Destinations */
.popular-destinations {
    padding: 4rem 0;
    background: var(--light);
}

.popular-destinations h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.destination-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.destination-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.destination-tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.destination-info {
    padding: 1.5rem;
}

.destination-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.destination-desc {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.destination-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.rating {
    color: var(--warning);
    font-weight: 600;
}

/* Special Deals */
.special-deals {
    padding: 4rem 0;
    background: white;
}

.special-deals h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.deal-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.deal-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    z-index: 2;
}

.deal-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.deal-content {
    padding: 1.5rem;
}

.deal-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.deal-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.old-price {
    color: var(--gray);
    text-decoration: line-through;
}

.new-price {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-deal {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-deal:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark);
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.btn-auth {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-auth:hover {
    background: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--gray);
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    padding: 0.75rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-social.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-social.facebook:hover {
    border-color: #4267b2;
    color: #4267b2;
}

.auth-switch {
    text-align: center;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle { display: block; }
    .nav-container { position: relative; }

    /* Hide header auth and currency selector on mobile — they are available in the mobile menu */
    .user-actions { display: none !important; }
    .currency-selector { display: none !important; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .search-container {
        margin: -40px auto 2rem;
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .flight-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .flight-details {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .logo-image {
        width: 28px;
        height: 28px;
    }

    /* Small screen adjustments */
    .nav-container { padding: 0 12px; }
    .btn { padding: 0.5rem 0.75rem; }
    .hero { height: 45vh; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .search-container { margin: -60px 12px 1rem; padding: 1rem; }
    .result-card { padding: 1rem; }
}

/* Very small screens */
@media (max-width: 420px) {
    .logo-image { width: 24px; height: 24px; }
    .nav-links { display: none; }
    .nav-container { justify-content: space-between; }
    .btn-search { font-size: 0.95rem; padding: 0.75rem; }
    /* Keep logo text on one line — there's now enough room */
    .logo span { white-space: nowrap; }
}

/* Make tab buttons fit and always visible on small screens */
@media (max-width: 768px) {
    .tab-buttons { overflow: visible; }
    .tab-btn { flex: 1 1 auto; padding: 0.6rem 0.75rem; font-size: 1rem; text-align: center; }
    .tab-buttons { gap: 0.25rem; }
}

@media (max-width: 420px) {
    .tab-btn { padding: 0.5rem 0.5rem; font-size: 0.95rem; }
}


/* Enhanced Filter Dropdown Styles */
.filter-dropdown {
    position: relative;
    display: inline-block;
    min-width: 150px;
}

.filter-dropdown-btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-dropdown-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 67, 173, 0.15);
}

.filter-dropdown-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 67, 173, 0.1);
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    min-width: 280px;
}

.filter-dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.dropdown-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
}

/* Months Grid Layout */
.months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.month-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.month-option:hover {
    background: rgba(26, 67, 173, 0.05);
}

.month-option input {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.month-text {
    color: var(--dark);
}

/* Destinations List */
.destinations-list {
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.destination-option {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.destination-option:hover {
    background: rgba(26, 67, 173, 0.05);
}

.destination-option input {
    margin-right: 0.75rem;
    transform: scale(1.1);
}

.destination-option .fi {
    margin-right: 0.5rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    width: 20px;
    text-align: center;
}

.destination-text {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Active Filters Section */
.active-filters-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.active-filters-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.filter-tag .remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clear-all-btn {
    background: none;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-all-btn:hover {
    background: var(--error);
    color: white;
}

/* Enhanced Package Grid */
.packages-list h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.packages-list > .muted {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .packages-search-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-dropdown-content {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-tags {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .months-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-dropdown-content {
        min-width: 200px;
    }
}