/* ===================================================================
   TOUR ARCHIVE — Tour Type & Tour Tag Pages
   Pixel-perfect match of tour-archive-mockup/styles.css
   Depends on: design-system.css, header-footer.css
   =================================================================== */

/* ===================================================================
   PAGE HERO — base component styles
   (duplicated from about.css since tour-archive pages don't load it)
   =================================================================== */
.page-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-compact { min-height: 380px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(59,35,20,.45) 0%, rgba(59,35,20,.75) 60%, rgba(59,35,20,.92) 100%); }
.page-hero-content { position: relative; z-index: 2; padding-bottom: 60px; color: var(--clr-white); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: .82rem; margin-bottom: 20px; color: rgba(255,255,255,.6); }
.breadcrumbs a { color: rgba(255,255,255,.6); transition: color .3s; text-decoration: none; }
.breadcrumbs a:hover { color: var(--clr-accent-light); }
.breadcrumbs i { font-size: .55rem; }
.breadcrumbs span { color: var(--clr-accent-light); font-weight: 600; }
.page-hero-title { font-family: var(--ff-heading); font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; line-height: 1.1; margin-bottom: 16px; text-shadow: 0 4px 40px rgba(0,0,0,.3); color: var(--clr-white); }
.page-hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 640px; line-height: 1.7; opacity: .85; font-weight: 300; }

/* ===================================================================
   TOUR ARCHIVE HERO — extends page-hero
   =================================================================== */
.tour-archive-hero { min-height: 380px; }

.tour-archive-hero .hero-stats-bar {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.tour-archive-hero .hero-stat { text-align: center; }
.tour-archive-hero .hero-stat-number {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-accent-light);
}
.tour-archive-hero .hero-stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.65);
    font-weight: 500;
}
.tour-archive-hero .hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.2);
    align-self: center;
}

/* ===================================================================
   ARCHIVE INFO HEADER
   =================================================================== */
.tour-archive-info {
    padding: 40px 0 0;
    background: var(--clr-white);
}

.archive-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.archive-icon-box {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--clr-white);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.archive-icon-box.type-icon {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark, #A0761E));
}
.archive-icon-box.tag-icon {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light, #5C3D2E));
}

.archive-heading h2 {
    font-family: var(--ff-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 6px;
}
.archive-heading .archive-count {
    font-size: .9rem;
    color: var(--clr-muted);
}
.archive-heading .archive-description {
    font-size: .95rem;
    color: var(--clr-muted);
    line-height: 1.7;
    margin-top: 10px;
    max-width: 640px;
}

/* Price range badge */
.price-range-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill, 100px);
    font-size: .82rem;
    font-weight: 600;
    margin-top: 12px;
}
.price-range-badge.budget   { background: #E8F5E9; color: #2E7D32; }
.price-range-badge.midrange { background: #FFF3E0; color: #E65100; }
.price-range-badge.luxury   { background: #F3E5F5; color: #6A1B9A; }
.price-range-badge.flying   { background: #E3F2FD; color: #1565C0; }
.price-range-badge.climbing { background: #FBE9E7; color: #BF360C; }
.price-range-badge.day-trip { background: #E0F7FA; color: #00695C; }

/* ===================================================================
   FILTER / SORT BAR
   =================================================================== */
.archive-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--clr-border);
    flex-wrap: wrap;
    gap: 16px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 8px 20px;
    border-radius: var(--radius-pill, 100px);
    border: 2px solid var(--clr-border);
    background: var(--clr-white);
    font-family: var(--ff-body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--clr-muted);
    cursor: pointer;
    transition: all .3s var(--ease, cubic-bezier(.4,0,.2,1));
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.filter-pill:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}
.filter-pill.active {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}
.filter-pill i { font-size: .75rem; }

.sort-form { display: flex; align-items: center; }
.sort-select {
    padding: 8px 16px;
    border-radius: var(--radius, 12px);
    border: 2px solid var(--clr-border);
    font-family: var(--ff-body);
    font-size: .85rem;
    color: var(--clr-body);
    background: var(--clr-white);
    cursor: pointer;
    outline: none;
    transition: border-color .3s;
}
.sort-select:focus { border-color: var(--clr-accent); }

/* ===================================================================
   TOUR CARD GRID — 2-column main + sidebar layout
   =================================================================== */
.tour-archive-grid-section {
    padding: var(--section-py, 80px) 0;
    background: var(--clr-white);
}
.tour-archive-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.tour-results-count {
    font-size: .88rem;
    color: var(--clr-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tour-results-count strong {
    color: var(--clr-primary);
    font-weight: 700;
}

.tour-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* ── Tour Card ── */
.tour-card {
    background: var(--clr-card-bg, #fff);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    transition: all .4s var(--ease, cubic-bezier(.4,0,.2,1));
}
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg, 0 20px 60px rgba(59,35,20,.15));
    border-color: transparent;
}

.tour-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease, cubic-bezier(.4,0,.2,1));
}
.tour-card:hover .tour-card-image img { transform: scale(1.06); }
.tour-card-image-link { display: block; width: 100%; height: 100%; }
.tour-card-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, cubic-bezier(.4,0,.2,1)); }
.tour-card:hover .tour-card-image-link img { transform: scale(1.06); }

/* Overlay with explore button */
.tour-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s var(--ease, cubic-bezier(.4,0,.2,1));
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour-card:hover .tour-card-overlay { opacity: 1; }
.tour-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--clr-accent);
    color: #fff;
    border-radius: var(--radius-pill, 100px);
    font-weight: 600;
    font-size: .82rem;
    transform: translateY(10px);
    transition: all .3s var(--ease, cubic-bezier(.4,0,.2,1));
    text-decoration: none;
}
.tour-card:hover .tour-explore-btn { transform: translateY(0); }

/* Badges on image */
.tour-type-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    border-radius: var(--radius-pill, 100px);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}
.tour-type-tag.budget   { background: #E8F5E9; color: #2E7D32; }
.tour-type-tag.midrange { background: #FFF3E0; color: #E65100; }
.tour-type-tag.luxury   { background: #F3E5F5; color: #6A1B9A; }
.tour-type-tag.flying   { background: #E3F2FD; color: #1565C0; }
.tour-type-tag.climbing { background: #FBE9E7; color: #BF360C; }
.tour-type-tag.day-trip { background: #E0F7FA; color: #00695C; }

.tour-duration-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill, 100px);
    font-size: .72rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-popular-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill, 100px);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(255,107,53,.35);
}

/* Card body */
.tour-card-body { padding: 20px; }
.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.tour-dest {
    font-size: .78rem;
    color: var(--clr-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.tour-dest i { color: var(--clr-accent); font-size: .72rem; }
.tour-rating-sm {
    font-size: .78rem;
    color: var(--clr-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}
.tour-rating-sm i { font-size: .7rem; }

.tour-card-body h3 {
    font-family: var(--ff-heading);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.tour-card-body h3 a {
    color: inherit;
    transition: color .3s;
    text-decoration: none;
}
.tour-card-body h3 a:hover { color: var(--clr-accent); }

.tour-card-excerpt {
    font-size: .82rem;
    color: var(--clr-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.tour-card-tags span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    color: var(--clr-muted);
    background: var(--clr-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill, 100px);
}
.tour-card-tags span i { font-size: .6rem; color: var(--clr-accent); }

.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--clr-border);
}
.tour-card-price {
    font-size: .82rem;
    color: var(--clr-muted);
}
.tour-card-price strong {
    font-size: 1.1rem;
    color: var(--clr-primary);
    font-weight: 700;
}
.tour-card-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.tour-card-link:hover { gap: 8px; }
.tour-card-link i {
    font-size: .65rem;
    transition: transform .3s var(--ease, cubic-bezier(.4,0,.2,1));
}

/* ===================================================================
   SIDEBAR
   =================================================================== */
.tour-archive-sidebar {
    position: sticky;
    top: 96px;
}
.sidebar-card {
    background: var(--clr-card-bg, #fff);
    border-radius: var(--radius-lg, 20px);
    padding: 28px;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(59,35,20,.08));
    margin-bottom: 28px;
    border: 1px solid var(--clr-border);
}
.sidebar-card h4 {
    font-family: var(--ff-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-card h4 i { color: var(--clr-accent); font-size: .9rem; }

/* Tour type list */
.type-list { list-style: none; padding: 0; margin: 0; }
.type-list li { border-bottom: 1px solid var(--clr-border); }
.type-list li:last-child { border: none; }
.type-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: .9rem;
    color: var(--clr-body);
    transition: all .3s var(--ease, cubic-bezier(.4,0,.2,1));
    text-decoration: none;
}
.type-list a:hover { color: var(--clr-accent); padding-left: 6px; }
.type-list a.current { color: var(--clr-accent); font-weight: 700; }
.type-count {
    font-size: .72rem;
    background: var(--clr-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill, 100px);
    color: var(--clr-muted);
    font-weight: 600;
}
.type-list a.current .type-count {
    background: var(--clr-accent);
    color: var(--clr-white);
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    font-size: .78rem;
    color: var(--clr-muted);
    padding: 6px 14px;
    background: var(--clr-light);
    border-radius: var(--radius-pill, 100px);
    transition: all .3s var(--ease, cubic-bezier(.4,0,.2,1));
    border: 1px solid transparent;
    text-decoration: none;
}
.tag-item:hover {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
}
.tag-item.active {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}

/* Quick contact sidebar */
.sidebar-quick-contact {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light, #5C3D2E));
    border: none;
    text-align: center;
    color: var(--clr-white);
}
.sidebar-quick-contact h4 {
    color: var(--clr-white);
    justify-content: center;
    font-size: 1.15rem;
}
.sidebar-quick-contact p {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin-bottom: 22px;
}
.sidebar-quick-contact .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* ===================================================================
   PAGINATION  (matches blog archive pagination)
   =================================================================== */
.tour-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.tour-pagination .page-num,
.tour-pagination .page-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius, 12px);
    font-size: .9rem;
    font-weight: 600;
    color: var(--clr-body);
    border: 2px solid var(--clr-border);
    background: var(--clr-white);
    transition: all .3s var(--ease, cubic-bezier(.4,0,.2,1));
    text-decoration: none;
}
.tour-pagination .page-num:hover,
.tour-pagination .page-arrow:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    transform: translateY(-2px);
}
.tour-pagination .page-num.active {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
}
.tour-pagination .page-arrow.disabled { opacity: .3; pointer-events: none; }
.tour-pagination .page-dots {
    font-size: .9rem;
    color: var(--clr-muted);
    padding: 0 4px;
}

/* ===================================================================
   "BROWSE OTHER" TERMS SECTION
   =================================================================== */
.tour-related-terms {
    padding: var(--section-py, 80px) 0;
    background: var(--clr-light);
}
.tour-terms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.tour-term-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill, 100px);
    background: var(--clr-white);
    border: 2px solid var(--clr-border);
    font-size: .88rem;
    font-weight: 500;
    color: var(--clr-body);
    transition: all .3s var(--ease, cubic-bezier(.4,0,.2,1));
    text-decoration: none;
}
.tour-term-chip:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(59,35,20,.06));
}
.tour-term-chip.active {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}
.tour-term-chip i { font-size: .78rem; color: var(--clr-accent); }
.tour-term-chip.active i { color: var(--clr-accent-light); }
.tour-term-count {
    font-size: .72rem;
    background: var(--clr-light);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--clr-muted);
    font-weight: 600;
}
.tour-term-chip.active .tour-term-count {
    background: rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
}

/* ===================================================================
   CTA BANNER (matches design-system)
   =================================================================== */
.tour-cta-banner {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.tour-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.tour-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,35,20,.90), rgba(92,61,46,.80), rgba(201,152,46,.20));
}
.tour-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--clr-white);
    padding: 60px 0;
    max-width: 700px;
    margin: 0 auto;
}
.tour-cta-title {
    font-family: var(--ff-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
}
.tour-cta-desc {
    font-size: .95rem;
    opacity: .85;
    margin-bottom: 28px;
    line-height: 1.7;
}
.tour-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===================================================================
   NO TOURS STATE
   =================================================================== */
.tour-no-results {
    text-align: center;
    padding: 80px 24px;
    background: var(--clr-white);
    border-radius: var(--radius-lg, 20px);
    border: 1px dashed var(--clr-border);
}
.tour-no-results i {
    font-size: 3rem;
    color: var(--clr-muted);
    margin-bottom: 20px;
    display: block;
}
.tour-no-results h3 {
    font-family: var(--ff-heading);
    font-size: 1.3rem;
    color: var(--clr-primary);
    margin-bottom: 10px;
}
.tour-no-results p {
    color: var(--clr-muted);
    margin-bottom: 24px;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
    .tour-archive-layout {
        grid-template-columns: 1fr;
    }
    .tour-archive-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .sidebar-card { margin-bottom: 0; }
}

@media (max-width: 768px) {
    .tour-archive-hero { min-height: 280px; }
    .tour-archive-hero .hero-stats-bar { gap: 20px; }

    .archive-meta-row {
        flex-direction: column;
        text-align: center;
    }
    .archive-heading .archive-description {
        margin-left: auto;
        margin-right: auto;
    }
    .archive-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-archive-grid { grid-template-columns: 1fr; }
    .tour-archive-sidebar { grid-template-columns: 1fr; }

    .tour-cta-actions { flex-direction: column; }
    .tour-cta-actions .btn { width: 100%; justify-content: center; }
}
