/* Delta Airlines Branding Variables */
:root {
    --primary-color: #E31937; /* Delta Red */
    --primary-hover: #C0142C;
    --secondary-color: #f1f5f9;
    --secondary-hover: #e2e8f0;
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: #cbd5e1;
    --navbar-bg: #002A4E; /* Delta Navy */
    --navbar-text: #ffffff;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-family: 'Outfit', sans-serif;
    --text-main: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--navbar-bg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navbar-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--navbar-text);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.user-greeting {
    font-weight: 600;
    color: var(--navbar-text);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-primary) !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.full-width {
    width: 100%;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Cards & Glassmorphism */
.card, .auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    max-width: 400px;
}

.confirmation-container, .payment-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Typography */
h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.half-width {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

.flash {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
}

.flash.error {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.flash.success {
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #bbf7d0;
}

.flash.info {
    background-color: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}

/* Booking specific */
.price-info {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.price-info strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Confirmation & Payment */
.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.confirmation-card {
    text-align: center;
}

.booking-summary {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.summary-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.summary-section p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.route-point {
    display: flex;
    flex-direction: column;
}

.route-point .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-point .value {
    font-weight: 700;
    font-size: 1.2rem;
}

.route-arrow {
    font-size: 1.5rem;
    opacity: 0.5;
}

.total-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

.total-price-section h3 {
    color: white;
    margin: 0;
}

.total-price-section .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Payment selection */
.amount-due {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.amount-due .price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.payment-method-btn:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
    transform: translateY(-2px);
}

.payment-method-btn .icon {
    font-size: 1.5rem;
}

.payment-method-btn .text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.security-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* My Bookings Grid */
.page-title {
    margin-bottom: 2rem;
    text-align: center;
}

.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.booking-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.booking-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-id {
    font-weight: 600;
    opacity: 0.9;
}

.booking-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.booking-body {
    padding: 1.5rem;
}

.booking-body .route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.booking-body .location {
    display: flex;
    flex-direction: column;
}

.booking-body .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.booking-body .value {
    font-weight: 700;
}

.booking-body .details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.booking-body .details strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Touch Target Improvements */
    input, select, button, .btn-primary, .btn-secondary, .menu-item {
        min-height: 48px;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
        text-align: center;
    }
    
    .trip-type-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem !important;
    }
    
    .btn-group-responsive {
        flex-direction: column;
    }
    
    .btn-group-responsive button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Search Form Responsiveness */
.horizontal-form-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

.search-form-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
}

/* On desktop, keep all fields in a single row by default (nowrap);
   allow wrap only when the return-date field is visible (5 fields) */
@media (min-width: 1025px) {
    .search-form-grid {
        flex-wrap: nowrap;
    }
    .search-form-grid.has-return-date {
        flex-wrap: wrap;
    }
    /* When 5 fields are present, each gets equal share of the row;
       they'll only break to a second row if viewport is very narrow */
    .search-form-grid.has-return-date .search-form-group {
        flex: 1 1 18%;
        min-width: 140px;
    }
}

.search-form-group {
    position: relative;
    border-right: 1px solid var(--border-color);
    flex: 1;
    min-width: 150px;
    min-height: 64px;
}

.search-form-group:last-child {
    border-right: none;
}

.search-form-input {
    width: 100%;
    height: 100%;
    min-height: 60px;
    padding: 1.5rem 0.75rem 0.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    border-radius: 0;
    /* Keep date/number value text aligned under the floating label */
    display: block;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Prevent native date input from collapsing on mobile */
input[type="date"].search-form-input,
input[type="number"].search-form-input {
    -webkit-appearance: none;
    appearance: none;
}

/* Cross-browser date input: push value text below the floating label */
input[type="date"].search-form-input {
    padding-top: 1.7rem;
    padding-bottom: 0.3rem;
    min-height: 64px;
    /* Prevent iOS auto-zoom (font < 16px triggers zoom) */
    font-size: 1rem;
    line-height: 1.3;
}

/* WebKit/Blink — align the editable date portion to the left */
input[type="date"].search-form-input::-webkit-datetime-edit {
    padding: 0;
    text-align: left;
    display: block;
}
input[type="date"].search-form-input::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
}
input[type="date"].search-form-input::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}

.search-form-label {
    position: absolute;
    top: 0.4rem;
    left: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    pointer-events: none;
    text-transform: uppercase;
    z-index: 1;
    white-space: nowrap;
}

.search-btn-container {
    margin-left: 1rem;
    display: flex;
    align-items: stretch;
}

.search-submit-btn {
    background: #d60064;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
}

@media (max-width: 1024px) {
    .search-form-grid {
        flex-wrap: wrap;
        border-radius: var(--radius-md);
    }
    .search-form-group {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--border-color);
    }
    .search-form-group:nth-child(even) {
        border-right: none;
    }
    .search-form-group:last-child {
        border-bottom: none;
        flex: 1 1 100%;
    }
    .search-btn-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    .search-submit-btn {
        width: 100%;
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .horizontal-form-wrapper {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .search-form-group {
        flex: 1 1 100%;
        border-right: none;
    }
    .search-form-group:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }
    
    .swap-btn {
        transform: rotate(90deg) translateY(-50%) !important;
        left: 50% !important;
        top: auto !important;
        bottom: -14px !important;
    }
}

/* Hamburger & Sidebar */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.agency-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-color);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.agency-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.sidebar-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: 0.2s;
    margin-bottom: 0.5rem;
}

.menu-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.menu-item .icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 2rem;
    background: var(--secondary-color);
}

.revenue-summary p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.revenue-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Revenue Badge in Navbar */
.revenue-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.revenue-badge .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    font-weight: 700;
}

.revenue-badge .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
/* Navigation Dropdowns */
.nav-dropdown:hover .dropdown-content {
    display: block !important;
}
.dropdown-content a:hover {
    background-color: var(--bg-secondary);
}

/* Interactive Travel Galleries */
.travel-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.travel-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.travel-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.travel-gallery-card:hover img {
    transform: scale(1.05);
}
.travel-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem 1rem;
    color: white;
}


/* Nested Dropdown */
.nested-dropdown:hover .nested-content {
    display: block !important;
}
.nested-content a:hover {
    background-color: var(--bg-secondary);
}

/* ============================================================
   RESPONSIVE & CROSS-BROWSER ADDITIONS
   ============================================================ */

/* --- Cross-browser form normalisation --- */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

button { -webkit-appearance: none; }

/* Prevent iOS zoom-on-focus (browser zooms when input font-size < 16px) */
@media (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
}

/* --- Mobile hamburger button (for non-agency users) --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Responsive navbar breakpoint --- */
@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; }

    .navbar { position: sticky; top: 0; z-index: 200; }

    .nav-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
        gap: 0;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        z-index: 300;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links li:last-child { border-bottom: none; }

    .nav-links li > a,
    .nav-links li > span.user-greeting {
        display: block;
        padding: 0.75rem 0.25rem;
        width: 100%;
    }

    /* Dropdown: no hover, use touch-open class added by JS */
    .nav-dropdown .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        padding: 0 0 0.5rem 1rem !important;
        min-width: 100% !important;
        border-radius: 0 !important;
        background: rgba(0,0,0,0.15) !important;
        border-left: 2px solid var(--primary-color);
        display: none;
    }

    .nav-dropdown.touch-open .dropdown-content {
        display: block !important;
    }

    /* Nested dropdown: also static on mobile */
    .nested-dropdown .nested-content {
        position: static !important;
        left: auto !important;
        top: auto !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        min-width: 100% !important;
        border-radius: 0 !important;
        background: rgba(0,0,0,0.1) !important;
        display: none;
    }

    .nested-dropdown.touch-open .nested-content {
        display: block !important;
    }
}

/* --- Small screen layout adjustments --- */
@media (max-width: 600px) {
    .main-content {
        padding: 1.5rem 0.75rem;
    }

    .card, .auth-card {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-md);
    }

    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }

    /* Hero title scale-down */
    .hero-section h1 {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }
    .hero-section {
        padding: 2rem 0.75rem !important;
        min-height: 340px !important;
    }

    /* Booking form container */
    .booking-form-container {
        border-radius: 4px !important;
        overflow: visible !important;
    }

    /* Auth forms take full width */
    .auth-card {
        max-width: 100% !important;
    }

    /* Confirmation / payment centered containers */
    .confirmation-container, .payment-container {
        padding: 0;
    }

    /* Reduce summary section padding */
    .booking-summary { padding: 1rem 0.75rem; }
    .summary-section { padding-bottom: 1rem; margin-bottom: 1rem; }

    /* Route display: stack on very small phones */
    .route-display {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    /* Booking cards grid: single column */
    .bookings-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Agency routes grid: horizontal scroll on mobile --- */
@media (max-width: 960px) {
    .price-row-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    #pricing-rows .price-row {
        min-width: 860px;
    }
}

/* Scrollable tables / wide layouts */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Footer responsive --- */
@media (max-width: 600px) {
    .site-footer {
        padding: 2.5rem 1rem 1.5rem !important;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* --- WhatsApp FAB: fix extra brace bug (was duplicated in base.html) --- */
/* Already styled inline in base.html — override only if needed */

/* --- Focus styles for keyboard / accessibility --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- Prevent horizontal scroll on body --- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- Improve touch targets globally --- */
@media (pointer: coarse) {
    .nav-links li a, .menu-item, .btn-primary, .btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    select, input { min-height: 44px; }
}

