/**
 * Tours Page Styles - Modern Luxury Refresh
 */

/* ── HERO & HEADER ── */
.tours-page { background: #f8fafc; }

.tour-hero {
    background: linear-gradient(165deg, var(--primary) 0%, #162a5a 100%);
    padding: 100px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Luxury Background Element */
.tour-hero::before {
    content: "";
    position: absolute;
    top: -10%; right: -5%;
    width: 40%; height: 60%;
    background: radial-gradient(circle, rgba(30, 94, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.tour-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.tour-hero-copy {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.tour-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
}

.tour-hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.tour-hero h1 span {
    display: block;
    color: var(--accent);
}

.tour-hero p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.9;
    width: 90%;
    max-width: 700px;
    margin: 0 auto 40px;
}

.tour-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Panel Card */
.tour-hero-panel {
    background: var(--surface);
    color: var(--ink);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid var(--line);
}

.panel-kicker {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.panel-stat { margin-bottom: 20px; }
.panel-stat strong { display: block; font-size: 3.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.panel-stat span { font-size: 1rem; color: var(--ink); font-weight: 700; }

.panel-list {
    margin-top: 24px;
    display: grid;
    gap: 12px;
    text-align: left;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.panel-list span { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.panel-list i { color: var(--success); font-size: 1.1rem; }

/* Desktop Specifics (>= 993px) */
@media (min-width: 993px) {
    .tour-hero { padding: 140px 0 120px; }
    .tour-hero-grid { flex-direction: row; text-align: left; justify-content: space-between; align-items: center; }
    .tour-hero-copy { text-align: left; }
    .tour-hero p { margin-left: 0; text-align: left; }
    .tour-hero-actions { justify-content: flex-start; }
    .tour-hero-panel { margin: 0; }
}

/* ── SEARCH BAR ── */
.search-bar-wrap {
    max-width: 900px;
    margin: -40px auto 0;
    position: relative;
    z-index: 100;
}

.search-bar {
    display: flex;
    background: #fff;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    border: 1.5px solid var(--line);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 15px 45px rgba(30, 94, 255, 0.15);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.search-icon { color: var(--muted); font-size: 1.1rem; }

.search-bar input {
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--ink);
    width: 100%;
    font-weight: 500;
}
.search-bar input:focus { outline: none; box-shadow: none; }

.search-bar button {
    border-radius: 14px;
    padding: 0 35px;
    height: 52px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .search-bar-wrap { margin: 30px auto 0; }
    .search-bar { flex-direction: column; padding: 15px; gap: 12px; border-radius: 24px; }
    .search-input-group { padding: 0; border-bottom: 1.5px solid #f1f5f9; }
    .search-bar input { text-align: center; }
    .search-bar button { width: 100%; height: 56px; }
    .cat-pills-scroll { margin-top: 24px; }
}

/* ── CATEGORY PILLS ── */
.cat-pills-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 40px;
    margin-top: 28px;
    padding: 5px 0;
}
.cat-pills-scroll::-webkit-scrollbar { display: none; }

.cat-pills {
    display: flex;
    gap: 12px;
    width: max-content;
}

.cat-pill {
    background: #fff;
    border: 1.5px solid var(--line);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cat-pill:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.cat-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 15px rgba(30, 94, 255, 0.25); }

/* ── TOURS GRID ── */
.tours-grid-v5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .tours-grid-v5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .tours-grid-v5 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    .tours-grid-v5 { grid-template-columns: 1fr; }
}

/* ── TOUR CARD ── */
.tour-card-v5 {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card-v5:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: rgba(30, 94, 255, 0.1);
}

.tour-img-v5 {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.tour-img-v5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tour-card-v5:hover .tour-img-v5 img { transform: scale(1.1); }

.badge-featured {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-featured::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6rem;
}

.tour-rating-badge {
    position: absolute;
    bottom: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}
.tour-rating-badge i { color: #f59e0b; }

.tour-content-v5 {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tour-country-v5 {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-duration-v5 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.tour-title-v5 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-desc-v5 {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tour-footer-v5 {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1.5px solid #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tour-price-v5 small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.tour-price-v5 span { font-size: 1.6rem; font-weight: 900; color: var(--brand); letter-spacing: -0.5px; }

.tour-actions-v5 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-details-v5, .btn-book-v5 {
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn-details-v5 { background: #f1f5f9; color: var(--primary); }
.btn-details-v5:hover { background: #e2e8f0; }

.btn-book-v5 { background: var(--brand); color: #fff !important; }
.btn-book-v5:hover { background: var(--brand-dark); transform: scale(1.02); }

/* ── PAGINATION ── */
#loadMoreSection {
    margin-top: 80px;
    margin-bottom: 120px; /* Even more spacing before footer */
}

#loadMoreBtn {
    padding: 18px 60px;
    font-size: 1.1rem;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#loadMoreBtn:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 15px 35px rgba(30, 94, 255, 0.3);
    transform: translateY(-5px);
}

/* ── ANIMATIONS ── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.d-none { display: none !important; }
