/* =========================================
   1. SHARED: PAGE HEADERS (Small Hero)
   ========================================= */
.page-header {
    height: 40vh;
    margin-top: 70px; /* Offset for fixed navbar */
    background: linear-gradient(rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.6)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%; /* Align image slightly higher */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: -1px;
    font-family: var(--font-head);
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* =========================================
   2. PACKAGES LISTING (packages.html)
   ========================================= */

/* Filter Buttons */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 1px solid var(--primary);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   3. PACKAGE DETAILS (package-details.html)
   ========================================= */

/* Immersive Hero Section */
.detail-hero {
    height: 75vh;
    position: relative;
    margin-top: 70px;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Full width, no radius */
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.detail-overlay .container {
    width: 100%; /* Ensure container fills width */
}

.tag-white {
    background: var(--white);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.detail-overlay h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-meta {
    display: flex;
    gap: 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hero-meta i {
    color: var(--gold);
    margin-right: 8px;
}

/* Layout: Content + Sticky Sidebar */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 Content, 1/3 Sidebar */
    gap: 80px;
    position: relative;
}

.section-title {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    color: var(--dark);
}

/* Timeline / Itinerary Styling */
.timeline {
    position: relative;
    border-left: 2px solid #e2e8f0;
    margin-left: 20px;
    padding-left: 40px;
    margin-top: 30px;
}

.day-item {
    position: relative;
    margin-bottom: 50px;
}

.day-item:last-child {
    margin-bottom: 0;
}

.day-number {
    position: absolute;
    left: -61px; /* Center on the border line */
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-body);
    box-shadow: 0 0 0 5px var(--white); /* White ring effect */
}

.day-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.day-info p {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Checklist Styling */
.check-list-detail {
    list-style: none;
    background: var(--light-blue);
    padding: 30px;
    border-radius: var(--radius);
}

.check-list-detail li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--dark);
    font-weight: 600;
}

.check-list-detail li:last-child {
    margin-bottom: 0;
}

.check-list-detail i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* Sticky Booking Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px; /* Sticks 100px from top of viewport */
    height: fit-content;
}

.booking-card {
    background: var(--white);
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: var(--radius);
    border: 1px solid #f1f5f9;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.price-header .label {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.price-header .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
}

.booking-form label {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 25px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary);
    background: #fff;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--dark);
}

.help-text {
    font-size: 0.85rem;
    color: var(--primary);
    text-align: center;
    margin-top: 20px;
    opacity: 0.8;
}

/* =========================================
   4. RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 900px) {
    /* Details Page */
    .detail-layout {
        grid-template-columns: 1fr; /* Stack sidebar below content */
        gap: 50px;
    }
    
    .detail-hero {
        height: 50vh;
    }

    .detail-hero h1 {
        font-size: 3rem;
    }

    .detail-sidebar {
        position: static; /* Unstick on mobile */
    }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid img {
        height: 200px;
    }
}