/* ===================================
   Sticky Sidebar Layout - Clean Implementation
   =================================== */

/* ===== CRITICAL FIXES FOR STICKY TO WORK ===== */
/* The main template has overflow:hidden on .page-wrapper which breaks sticky */
/* These !important rules override the template's default styles */
html,
body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    scroll-behavior: smooth !important;
}

.page-wrapper {
    overflow: visible !important;
}


/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #FF6B6B;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-content p {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.95;
}

/* ===== MAIN CONTENT SECTION WITH STICKY SIDEBAR ===== */
.main-content-section {
    padding: 0 0 80px 0;
    overflow: visible !important;
    /* CRITICAL: Must be visible for sticky to work */
}

/* CRITICAL: Content wrapper must have overflow visible */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    overflow: visible !important;
    /* CRITICAL */
}

/* Left column - main content */
.main-content {
    min-width: 0;
    /* Prevents overflow issues in grid */
    overflow: visible !important;
    /* CRITICAL */
}

/* Right column - sticky sidebar */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    /* Adjusted to clear reduced header */
    align-self: start;
    /* CRITICAL for sticky to work in grid */
    z-index: 10;
    height: fit-content;
}

/* ===== CONTENT BLOCKS ===== */
.content-block {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    scroll-margin-top: 150px;
}

.section-header {
    margin-bottom: 25px;
}

.badge {
    display: inline-block;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.subsection-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 20px 0;
}

.section-divider {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

/* ===== PLACES GRID ===== */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.place-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.place-card:hover {
    transform: translateY(-5px);
}

.place-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.place-card h5 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ===== ROUTES GRID ===== */
.routes-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.route-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #FF6B6B;
    transition: transform 0.3s, box-shadow 0.3s;
}

.route-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== ROUTES INFO (No Icon) ===== */
.route-info h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.route-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #777;
}

.route-meta i {
    color: #FF6B6B;
    margin-right: 5px;
}

.route-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ===== PRICING TABLES ===== */
.pricing-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin: 20px 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.pricing-table thead {
    background: #1a1a1a;
    color: #fff;
}

.pricing-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.pricing-table tbody tr:hover {
    background: #f8f9fa;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table small {
    font-size: 12px;
    color: #999;
}

.badge-success {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    margin: 30px 0 0 0;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    font-size: 15px;
    color: #555;
}

.feature-list i {
    color: #10b981;
    margin-right: 12px;
    font-size: 18px;
}

/* ===== FAQ ===== */
.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ===== BOOKING CARD (STICKY SIDEBAR) ===== */
.booking-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Booking Tabs styles are below */

/* Booking Tabs - Updated for Compactness */
.booking-tabs {
    display: flex;
    background: #1a1a1a;
    padding: 30px 15px 0 15px;
    /* Added top padding, removed bottom padding to merge with content visually or keep separated? */
    border-radius: 12px 12px 0 0;
    /* Rounded top corners since header is gone */
    gap: 10px;
}

.tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    /* Slightly lighter */
    border: none;
    color: #bbb;
    padding: 10px;
    /* Reduced padding */
    border-radius: 8px 8px 0 0;
    /* Tab shape */
    margin: 0;
    /* Remove margin to make them touch or close */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.tab-btn i {
    font-size: 14px;
    /* Smaller icon */
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab-btn.active {
    background: #fff;
    /* White background to blend with form */
    color: #1a1a1a;
    box-shadow: none;
    padding-bottom: 15px;
    /* Extend down to cover the gap */
    margin-bottom: -5px;
    /* Overlap with content */
    z-index: 2;
}

/* Tab Content */
.tab-content {
    padding: 25px 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 14px;
    color: #333;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B6B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, #1a1a1a, #333);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #FF6B6B, #FF9F1C);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* Contact Card styles removed */

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {

    /* Stack layout on tablets and mobile */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Remove sticky on mobile - place sidebar first */
    .sidebar-sticky {
        position: static;
        order: -1;
    }

    .content-block {
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .main-nav {
        display: none;
        /* Hide nav on mobile, would need hamburger menu */
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .places-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-btn {
        font-size: 11px;
        padding: 10px 6px;
    }

    .tab-btn i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-banner {
        height: 140px;
        margin-bottom: 30px;
    }

    .content-block {
        padding: 25px 15px;
    }

    .booking-card {
        margin-bottom: 0;
    }

    .places-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        font-size: 13px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
    }

    .sidebar-sticky {
        top: 70px;
    }
}