/**
 * Qiblatain Tours — Packages Page Styles
 */

/* ==========================================
   PACKAGES HERO BANNER
   ========================================== */
.pkg-hero {
    position: relative;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 55%, #1e4d3d 100%);
    padding: 52px 0 56px;
    overflow: hidden;
    color: var(--white);
}

.pkg-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 10 L46 28 L66 28 L50 40 L56 58 L40 46 L24 58 L30 40 L14 28 L34 28 Z' fill='none' stroke='%23C4963A' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.7;
}

.pkg-breadcrumb {
    margin-bottom: 24px;
}

.pkg-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pkg-breadcrumb .breadcrumb-item {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

.pkg-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pkg-breadcrumb .breadcrumb-item a:hover { color: var(--gold-light); }

.pkg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 4px;
    color: rgba(255,255,255,0.35);
}

.pkg-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.9); }

.pkg-hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.pkg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(196,150,58,0.12);
    border: 1px solid rgba(196,150,58,0.25);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.pkg-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 12px;
}

.pkg-hero-subtitle {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    margin: 0;
}

/* Hero stats row */
.pkg-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: 16px 32px;
    max-width: 480px;
    margin: 0 auto;
}

.pkg-hero-stat {
    text-align: center;
    flex: 1;
}

.pkg-hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 4px;
}

.pkg-hero-stat span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.68);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.pkg-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
    margin: 0 20px;
}

/* ==========================================
   FILTER BAR
   ========================================== */
.pkg-filter-bar {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--ivory-dark);
    box-shadow: var(--shadow-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    position: relative;
    top: -24px;
    margin-top: 0;
}

.pkg-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Type tabs */
.pkg-type-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pkg-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--ivory);
    border: 1.5px solid var(--ivory-dark);
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal-light);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.pkg-type-tab i { font-size: 0.78rem; }

.pkg-type-tab:hover,
.pkg-type-tab.active {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
    box-shadow: 0 4px 14px rgba(26,60,52,0.22);
    transform: translateY(-1px);
}

/* Keyword search */
.pkg-filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    background: var(--ivory);
    border: 1.5px solid var(--ivory-dark);
    border-radius: var(--radius-pill);
    padding: 0 16px;
    transition: var(--transition-fast);
}

.pkg-filter-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,150,58,0.12);
}

.pkg-filter-search > i {
    color: var(--slate);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.pkg-filter-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    color: var(--charcoal);
    padding: 10px 0;
}

.pkg-filter-input::placeholder { color: #9CA3AF; }

/* Destination select */
.pkg-filter-select-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pkg-select-icon {
    position: absolute;
    left: 14px;
    font-size: 0.78rem;
    color: var(--emerald);
    pointer-events: none;
    z-index: 1;
}

.pkg-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--ivory);
    border: 1.5px solid var(--ivory-dark);
    border-radius: var(--radius-pill);
    padding: 10px 40px 10px 36px;
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    min-width: 180px;
}

.pkg-filter-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,150,58,0.12);
}

.pkg-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--slate);
    pointer-events: none;
}

/* Filter submit button */
.pkg-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(26,60,52,0.22);
}

.pkg-filter-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Active filter chips */
.pkg-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin-top: -8px;
}

.pkg-active-filters-label {
    font-size: 0.8rem;
    color: var(--slate);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pkg-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--emerald-pale);
    color: var(--emerald);
    border: 1px solid rgba(26,60,52,0.15);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.pkg-filter-chip i { font-size: 0.7rem; }

.pkg-filter-chip:hover {
    background: var(--emerald);
    color: var(--white);
    transform: translateY(-1px);
}

.pkg-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--slate);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.pkg-clear-all:hover { color: var(--emerald); }

/* Results meta */
.pkg-results-meta {
    margin-bottom: 24px;
}

.pkg-results-count {
    font-size: 0.88rem;
    color: var(--slate);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.pkg-results-count i { color: var(--emerald); font-size: 0.8rem; }

/* ==========================================
   PACKAGE CARD ADDITIONS
   ========================================== */
.pkg-type-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(26,60,52,0.82);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.pkg-price-sub {
    font-size: 0.72rem;
    color: var(--slate);
    margin: 1px 0 0;
}

.pkg-hotel-info {
    text-align: right;
}

.pkg-hotel-label {
    font-size: 0.68rem;
    color: var(--slate);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkg-hotel-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--emerald);
    margin: 2px 0 0;
}

.pkg-card-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: auto;
}

.pkg-card-actions .package-btn {
    flex: 1;
}

.pkg-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 16px;
    background: var(--ivory);
    color: var(--emerald);
    border: 1.5px solid var(--ivory-dark);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.pkg-call-btn:hover {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
    transform: translateY(-1px);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.pkg-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 500px;
    margin: 0 auto;
}

.pkg-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--emerald-pale);
    color: var(--emerald);
    font-size: 2.2rem;
    margin: 0 auto 28px;
    border: 2px solid rgba(26,60,52,0.1);
}

.pkg-empty h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--emerald);
    margin-bottom: 12px;
}

.pkg-empty p {
    color: var(--slate);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
}

.pkg-empty p a { color: var(--gold-muted); font-weight: 600; }
.pkg-empty p a:hover { color: var(--emerald); }

.pkg-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(26,60,52,0.22);
}

.pkg-empty-cta:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .pkg-filter-bar { top: 0; margin-bottom: 24px; }

    .pkg-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .pkg-type-tabs {
        justify-content: flex-start;
    }

    .pkg-filter-search { min-width: 0; }
    .pkg-filter-select { min-width: 0; width: 100%; }

    .pkg-hero-stats {
        max-width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    .pkg-hero { padding: 40px 0 44px; }
    .pkg-filter-bar { padding: 16px; }

    .pkg-type-tab {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .pkg-hero-stat-divider { margin: 0 14px; }

    .pkg-hotel-info { display: none; }
}

@media (max-width: 480px) {
    .pkg-type-tabs { gap: 5px; }
    .pkg-type-tab  { padding: 7px 10px; font-size: 0.76rem; }
    .pkg-hero-stats { flex-wrap: wrap; gap: 12px; }
    .pkg-hero-stat-divider { display: none; }
}
