/**
 * Tours Archive Page Styles – GrandVantage Tours
 *
 * Pixel-perfect alignment with tours-mockup.html.
 * Palette: Espresso/Chocolate (#3B2314, #5C3D2E), Gold (#C9982E, #E8C767), Sandstone Cream (#FAF6EE, #F5EDE0).
 * Typography: Cormorant Garamond, Marcellus, Outfit, Dancing Script.
 *
 * @package GrandVantageTours
 * @since   1.0.0
 */

/* ═══ CSS CUSTOM PROPERTIES ═══ */
:root {
    --brown-deep:   #3B2314;
    --brown-rich:   #5C3D2E;
    --brown-mid:    #8B6B4A;
    --brown-warm:   #A0825C;
    --gold:         #C9982E;
    --gold-light:   #E8C767;
    --gold-pale:    #F5E6B8;
    --amber:        #D4943A;
    --cream:        #F5EDE0;
    --cream-light:  #FAF6EE;
    --cream-dark:   #E8DCC8;
    --sand:         #D9C9A8;
    --linen:        #FDF8F0;
    --white:        #FFFFFF;
    --body:         #3D3530;
    --muted:        #6B6058;
    --dark:         #1E1410;
    --teal:         #2A7B6F;
    --teal-dark:    #1D5A52;
    --coral:        #C05E42;
    --red:          #C0392B;
    --ff-display:   'Cormorant Garamond', Georgia, serif;
    --ff-heading:   'Marcellus', Georgia, serif;
    --ff-body:      'Outfit', -apple-system, sans-serif;
    --ff-script:    'Dancing Script', cursive;
    --shadow-sm:    0 2px 8px rgba(59,35,20,.08);
    --shadow-md:    0 4px 20px rgba(59,35,20,.12);
    --shadow-lg:    0 8px 40px rgba(59,35,20,.16);
    --shadow-xl:    0 16px 56px rgba(59,35,20,.22);
    --radius:       8px;
    --radius-lg:    16px;
    --radius-xl:    24px;
    --radius-pill:  50px;
    --transition:   300ms ease;
}

/* ═══ HERO ═══ */
.tours-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.tours-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.tours-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59,35,20,.35) 0%, rgba(59,35,20,.7) 60%, rgba(59,35,20,.92) 100%);
}
.tours-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
    color: var(--white);
    width: 100%;
}
.hero-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,.6);
}
.hero-breadcrumbs a { color: rgba(255,255,255,.6); }
.hero-breadcrumbs a:hover { color: var(--gold-light); }
.hero-breadcrumbs i { font-size: .55rem; }
.hero-breadcrumbs .current { color: var(--gold-light); font-weight: 600; }

.tours-hero-title,
.tours-hero .hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white) !important;
}
.tours-hero-title em,
.tours-hero .accent {
    color: var(--gold-light);
    font-style: normal;
}
.tours-hero-subtitle,
.tours-hero .hero-subtitle {
    font-size: 1.1rem;
    max-width: 640px;
    line-height: 1.7;
    opacity: .85;
    margin-bottom: 32px;
    color: rgba(255,255,255,.85);
}
.hero-stats,
.tours-hero .hero-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.hero-stat,
.tours-hero .hero-stat {
    text-align: center;
    padding: 0 28px;
}
.hero-stat:first-child,
.tours-hero .hero-stat:first-child {
    padding-left: 0;
}
.hero-stat-number,
.tours-hero .stat-number {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}
.hero-stat-label,
.tours-hero .stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}
.hero-stat-divider,
.tours-hero .stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(201,152,46,.4);
    align-self: center;
}

/* ═══ SEARCH & FILTER BAR ═══ */
.filter-section,
.tours-filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 64px;
    z-index: 900;
    transition: box-shadow var(--transition);
}
.filter-section.shadowed {
    box-shadow: 0 4px 20px rgba(59,35,20,.1);
}
.search-row {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-dark);
    flex-wrap: wrap;
    align-items: center;
}
.search-input-wrap {
    flex: 1;
    min-width: 240px;
    position: relative;
}
.search-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brown-mid);
    font-size: .85rem;
}
.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: var(--ff-body);
    font-size: .9rem;
    color: var(--body);
    background: var(--cream-light);
    transition: all var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}
.filter-select {
    padding: 12px 36px 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: var(--ff-body);
    font-size: .88rem;
    color: var(--body);
    background: var(--cream-light);
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B6B4A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 160px;
}
.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Quick filter row */
.quick-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 14px;
}
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--cream-dark);
    background: var(--white);
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.filter-pill.active {
    background: var(--brown-deep);
    color: var(--white);
    border-color: var(--brown-deep);
}
.filter-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.results-count {
    font-size: .88rem;
    color: var(--muted);
    white-space: nowrap;
}
.results-count strong {
    color: var(--brown-deep);
    font-weight: 700;
}

/* ═══ TOUR GRID + SIDEBAR ═══ */
.archive-section {
    padding: 50px 0 80px;
    background: var(--cream-light);
}
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.tour-grid.list-view {
    grid-template-columns: 1fr;
}

/* Tour card */
.tour-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    transition: all .4s ease;
}
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    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 ease;
}
.tour-card:hover .tour-card-image img {
    transform: scale(1.06);
}
.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;
    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(--gold);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .82rem;
    transform: translateY(10px);
    transition: all .3s;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tour-card:hover .tour-explore-btn {
    transform: translateY(0);
}

/* Card badges */
.tour-type-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}
.tour-type-tag.budget { background: #d4edda; color: #155724; }
.tour-type-tag.midrange { background: var(--gold-pale); color: var(--brown-deep); }
.tour-type-tag.luxury { background: #e8daef; color: #6c3483; }
.tour-type-tag.adventure { background: #d6eaf8; color: #1a5276; }
.tour-duration-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(30,20,16,.7);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    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, var(--gold), var(--amber));
    color: var(--brown-deep);
    padding: 5px 14px;
    border-radius: 3px;
    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(201,152,46,.35);
}

/* Card body */
.tour-card-body {
    padding: 22px;
}
.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.tour-dest {
    font-size: .78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.tour-dest i { color: var(--gold); font-size: .72rem; }
.tour-rating-sm {
    font-size: .78rem;
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}
.tour-card-body h3 {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brown-deep);
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tour-card-body h3 a { color: inherit; }
.tour-card-body h3 a:hover { color: var(--gold); }
.tour-card-excerpt {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    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(--brown-mid);
    background: var(--cream);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.tour-card-tags span i { font-size: .58rem; color: var(--gold); }
.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--cream-dark);
}
.tour-card-price {
    font-size: .85rem;
    color: var(--muted);
}
.tour-card-price strong {
    font-size: 1.15rem;
    color: var(--brown-deep);
    font-weight: 700;
    font-family: var(--ff-display);
}
.tour-card-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tour-card-link:hover { gap: 8px; color: var(--amber); }

/* ═══ SIDEBAR ═══ */
.archive-sidebar {
    position: sticky;
    top: 180px;
}
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--cream-dark);
}
.sidebar-card h4 {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brown-deep);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-card h4 i { color: var(--gold); font-size: .9rem; }
.type-list li { border-bottom: 1px solid var(--cream-dark); }
.type-list li:last-child { border: none; }
.type-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: .9rem;
    color: var(--body);
    transition: all var(--transition);
}
.type-list a:hover { color: var(--gold); padding-left: 6px; }
.type-list a i { margin-right: 8px; color: var(--gold); font-size: .78rem; width: 18px; text-align: center; }
.type-count {
    font-size: .72rem;
    background: var(--cream);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-weight: 600;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width: 1024px) {
    .archive-layout { grid-template-columns: 1fr; }
    .tour-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .tours-hero { min-height: 380px; }
    .tours-hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 16px; }
    .hero-stat { padding: 0 14px; }
    .hero-stat-divider { display: none; }
    .search-row { flex-direction: column; }
    .filter-select { width: 100%; }
    .tour-grid { grid-template-columns: 1fr; }
}
