/* ==========================================
   PACKAGES PAGE — PREMIUM MOBILE-FIRST DESIGN
   /GoGoldenTrip/packages.css
========================================== */

/* ================================================
   RESET & BASE
================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.pkg-page-wrapper {
    background: #f0f4fb;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* ================================================
   HERO
================================================ */
.pkg-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(4, 18, 52, 0.92) 0%, rgba(13, 42, 94, 0.70) 50%, rgba(4, 18, 52, 0.30) 100%),
        url('landing/assets/images/herosection.webp') center center / cover no-repeat;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    color: #fff;
    overflow: hidden;
}

.pkg-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    /* background: #f0f4fb; */
    clip-path: ellipse(55% 100% at 50% 100%);
}

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

.pkg-hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.pkg-hero h1 span {
    color: #FDBB2D;
}

.pkg-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.pkg-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color .2s;
}

.pkg-breadcrumb a:hover {
    color: #FDBB2D;
}

.pkg-breadcrumb .sep {
    opacity: 0.6;
}

.pkg-breadcrumb .current {
    color: #FDBB2D;
    font-weight: 600;
}

.pkg-hero-desc {
    font-size: clamp(13px, 2.2vw, 15px);
    font-weight: 400;
    max-width: 460px;
    line-height: 1.7;
    opacity: 0.88;
    margin: 0;
}

/* Hero stats pills */
.pkg-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pkg-hero-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pkg-hero-stat i {
    color: #FDBB2D;
}

/* ================================================
   FLOATING SORT BAR
================================================ */
.floating-sort-bar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(13, 42, 94, 0.12);
    padding: 14px 22px;
    margin-top: -20px;
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-group .sort-icon {
    color: #94a3b8;
    font-size: 17px;
}

.sort-group .sort-meta {
    line-height: 1.25;
}

.sort-group .sort-label-sm {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.sort-group select {
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0d2a5e;
    background: transparent;
    cursor: pointer;
    appearance: none;
    max-width: 160px;
}

.sort-sep {
    width: 1px;
    height: 32px;
    background: #e8edf4;
    flex-shrink: 0;
}

.showing-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.showing-group strong {
    color: #0d2a5e;
    font-weight: 700;
}

/* Mobile filter toggle button inside sort bar */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    background: #0d2a5e;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.mobile-filter-toggle:hover {
    background: #1a3d7c;
    transform: translateY(-1px);
}

.mobile-filter-toggle i {
    font-size: 14px;
}

.filter-badge {
    background: #FDBB2D;
    color: #0d2a5e;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

.filter-badge.has-filters {
    display: flex;
}

.view-toggle {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.view-btn.active {
    background: #FDBB2D;
    border-color: #FDBB2D;
    color: #0d2a5e;
}

.view-btn:hover:not(.active) {
    border-color: #0d2a5e;
    color: #0d2a5e;
}

/* ================================================
   PAGE LAYOUT
================================================ */
.pkg-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

/* ================================================
   SIDEBAR FILTERS
================================================ */
.pkg-sidebar {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(13, 42, 94, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    background: linear-gradient(135deg, #0d2a5e 0%, #1a3d7c 100%);
}

.sidebar-header h5 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h5 i {
    color: #FDBB2D;
    font-size: 14px;
}

.clear-all-btn {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    padding: 4px 12px;
    transition: all .2s;
    text-decoration: none;
}

.clear-all-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* --- Accordion Filter Sections --- */
.filter-section {
    border-bottom: 1px solid #f1f5f9;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}

.filter-section-header:hover {
    background: #fafbfe;
}

.filter-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #0d2a5e;
    margin: 0;
}

.filter-section-toggle {
    font-size: 11px;
    color: #94a3b8;
    transition: transform .3s;
}

.filter-section.open .filter-section-toggle {
    transform: rotate(180deg);
}

.filter-section-body {
    padding: 4px 20px 14px;
    display: none;
}

.filter-section.open .filter-section-body {
    display: block;
}

/* --- Checkboxes & Radio --- */
.filter-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    transition: color .2s;
}

.filter-check-label:hover {
    color: #0d2a5e;
}

.filter-check-label input[type="checkbox"],
.filter-check-label input[type="radio"] {
    width: 15px;
    height: 15px;
    accent-color: #FDBB2D;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-check-label .check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-count {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    background: #f0f4fb;
    padding: 2px 7px;
    border-radius: 20px;
}

.show-more-btn {
    font-size: 12px;
    font-weight: 600;
    color: #FDBB2D;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Price Range Slider --- */
.price-range-wrapper {
    padding: 4px 0 8px;
}

.price-range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    background: linear-gradient(to right, #FDBB2D 0%, #FDBB2D 60%, #e2e8f0 60%, #e2e8f0 100%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FDBB2D;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 6px;
}

/* --- Apply Filters Button --- */
.apply-filters-btn {
    width: calc(100% - 40px);
    margin: 6px 20px 20px;
    background: linear-gradient(135deg, #FDBB2D 0%, #f5a623 100%);
    color: #0d2a5e;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 13px;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(253, 187, 45, 0.3);
}

.apply-filters-btn:hover {
    background: linear-gradient(135deg, #f5a623 0%, #e9960a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 187, 45, 0.4);
    color: #0d2a5e;
}

/* ================================================
   PACKAGE CARDS GRID
================================================ */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pkg-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(13, 42, 94, 0.07);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(13, 42, 94, 0.14);
}

/* Card image */
.pkg-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 192px;
    flex-shrink: 0;
}

.pkg-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.pkg-card:hover .pkg-card-img-wrap img {
    transform: scale(1.07);
}

/* Image overlay gradient */
.pkg-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(4, 18, 52, 0.45), transparent);
    pointer-events: none;
}

/* Badge */
.pkg-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Heart / Wishlist */
.pkg-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: all .25s;
    border: none;
}

.pkg-heart:hover,
.pkg-heart.liked {
    color: #ef4444;
    background: #fff;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
}

/* Card body */
.pkg-card-body {
    padding: 15px 16px 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pkg-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0d2a5e;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pkg-card-location {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pkg-card-location::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #FDBB2D;
}

.pkg-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pkg-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f0f4fb;
    border-radius: 20px;
    padding: 3px 9px;
}

.pkg-meta-row .meta-item i {
    color: #FDBB2D;
    font-size: 10.5px;
}

/* Rating row */
.pkg-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
}

.pkg-stars {
    color: #FDBB2D;
    font-size: 11.5px;
    letter-spacing: -0.5px;
}

.pkg-rating-val {
    font-weight: 700;
    color: #0d2a5e;
    font-size: 12.5px;
}

.pkg-review-count {
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 500;
}

/* Card footer: price + arrow */
.pkg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
}

.pkg-price-label {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pkg-price-amount {
    font-size: 19px;
    font-weight: 800;
    color: #0d2a5e;
    line-height: 1.1;
}

.pkg-price-amount sup {
    font-size: 12px;
    font-weight: 700;
    vertical-align: super;
}

.pkg-price-per {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    display: block;
}

.pkg-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDBB2D, #f5a623);
    color: #0d2a5e;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(253, 187, 45, 0.35);
}

.pkg-arrow-btn:hover {
    background: linear-gradient(135deg, #f5a623, #e9960a);
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(253, 187, 45, 0.5);
    color: #0d2a5e;
}

/* Empty state */
.pkg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.pkg-empty i {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
    color: #cbd5e1;
}

.pkg-empty h4 {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

/* ================================================
   PAGINATION
================================================ */
.pkg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
    padding-bottom: 20px;
}

.pg-btn {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    text-decoration: none;
    padding: 0 10px;
}

.pg-btn:hover {
    border-color: #0d2a5e;
    color: #0d2a5e;
    background: #f0f4fb;
}

.pg-btn.active {
    background: linear-gradient(135deg, #FDBB2D, #f5a623);
    border-color: transparent;
    color: #0d2a5e;
    box-shadow: 0 4px 14px rgba(253, 187, 45, 0.4);
}

.pg-btn.disabled {
    opacity: 0.38;
    pointer-events: none;
}

/* ================================================
   MOBILE FILTER DRAWER OVERLAY
================================================ */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 52, 0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity .3s;
}

.filter-overlay.open {
    display: block;
    opacity: 1;
}

/* Mobile Filter Drawer */
.pkg-sidebar-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.34, 1.2, .64, 1);
    box-shadow: 0 -12px 48px rgba(4, 18, 52, 0.18);
    display: none;
}

.pkg-sidebar-drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 12px auto 4px;
}

.drawer-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}

.drawer-close-btn:hover {
    background: #e2e8f0;
    color: #0d2a5e;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
================================================ */

/* Large screens – 3 columns fits better */
@media (min-width: 1400px) {
    .pkg-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Medium — sidebar narrower, 2-col grid */
@media (max-width: 1100px) {
    .pkg-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

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

/* Tablet — 768–900px: sidebar still shown but compact */
@media (max-width: 900px) {
    .pkg-layout {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }

    .pkg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* ─────────────────────────────────────────────
   MOBILE BREAKPOINT — full drawer layout
───────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Hero */
    .pkg-hero {
        min-height: 220px;
        padding-top: 90px;
        padding-bottom: 48px;
    }

    .pkg-hero h1 {
        font-size: 30px;
    }

    .pkg-hero-desc {
        font-size: 13px;
        max-width: 100%;
    }

    .pkg-hero-stats {
        margin-top: 14px;
        gap: 8px;
    }

    .pkg-hero-stat {
        font-size: 11.5px;
        padding: 5px 12px;
    }

    /* Sort bar stacks on mobile */
    .floating-sort-bar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 11px 14px;
        gap: 8px;
        margin-top: -16px;
        border-radius: 14px;
        align-items: center;
    }

    .sort-sep {
        display: none;
    }

    .showing-group {
        font-size: 12px;
    }

    /* Show filter toggle button */
    .mobile-filter-toggle {
        display: flex;
    }

    /* Push view toggle to right edge on its own row */
    .floating-sort-bar>div[style*="margin-left:auto"] {
        margin-left: auto !important;
    }

    /* Hide desktop sidebar in the layout, show drawer */
    .pkg-sidebar {
        display: none;
    }

    /* Remove sidebar from grid — full width content */
    .pkg-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    /* Cards — 2 columns on tablet/large phone */
    .pkg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Smaller card adjustments */
    .pkg-card-img-wrap {
        height: 160px;
    }

    .pkg-card-body {
        padding: 12px 13px 10px;
    }

    .pkg-card-title {
        font-size: 14px;
    }

    .pkg-card-location {
        font-size: 11.5px;
    }

    .pkg-price-amount {
        font-size: 17px;
    }

    .pkg-arrow-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    /* Pagination compact */
    .pkg-pagination {
        gap: 4px;
    }

    .pg-btn {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }

    /* Show mobile filter drawer */
    .pkg-sidebar-drawer {
        display: block;
    }
}

/* ─────────────────────────────────────────────
   Small phones — single column cards
───────────────────────────────────────────── */
@media (max-width: 480px) {
    .pkg-hero {
        padding-top: 80px;
    }

    .pkg-hero h1 {
        font-size: 26px;
    }

    .floating-sort-bar {
        padding: 10px 14px;
    }

    /* Switch to single column */
    .pkg-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Horizontal card layout for single column — more efficient */
    .pkg-card {
        flex-direction: row;
        border-radius: 16px;
    }

    .pkg-card-img-wrap {
        width: 130px;
        height: auto;
        min-height: 160px;
        flex-shrink: 0;
        border-radius: 16px 0 0 16px;
    }

    .pkg-card-img-wrap::after {
        display: none;
        /* cleaner for horizontal layout */
    }

    .pkg-card-body {
        padding: 12px 13px 10px;
        flex: 1;
        min-width: 0;
    }

    .pkg-card-title {
        font-size: 13.5px;
        -webkit-line-clamp: 2;
    }

    .pkg-meta-row {
        gap: 6px;
    }

    .pkg-meta-row .meta-item {
        padding: 2px 7px;
        font-size: 11px;
    }

    .pkg-price-amount {
        font-size: 16px;
    }
}

/* ─────────────────────────────────────────────
   Very small phones
───────────────────────────────────────────── */
@media (max-width: 360px) {
    .pkg-card-img-wrap {
        width: 110px;
    }

    .pkg-card-title {
        font-size: 13px;
    }

    .sort-group select {
        font-size: 12.5px;
        max-width: 110px;
    }
}