/* ============================================================
   tours.css — Styles specific to the Tours Listing page
   ============================================================ */

/* Override: Tours page doesn't need the margin-based container;
   use a narrower padded container with sidebar layout */
.tours-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- Active nav link ---- */
.nav-active {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
    padding: 14px 0 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-family: var(--font-poppins);
}

.breadcrumb-link {
    color: var(--primary-red);
    font-weight: 500;
    transition: opacity 0.2s;
}

.breadcrumb-link:hover { opacity: 0.75; }

.breadcrumb-sep {
    color: #aaa;
}

.breadcrumb-current {
    color: var(--text-muted);
    font-weight: 400;
}

/* ---- Title Row ---- */
.tours-title-row {
    padding: 10px 0 20px;
}

.title-sort-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tours-heading {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-poppins);
    color: var(--text-main);
    margin-bottom: 4px;
}

.tours-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
}

.tours-count strong {
    color: var(--text-main);
}

/* ---- Sort ---- */
.sort-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
    white-space: nowrap;
}

.sort-select-wrap {
    position: relative;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 36px 9px 14px;
    font-size: 0.875rem;
    font-family: var(--font-poppins);
    font-weight: 500;
    color: var(--text-main);
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    min-width: 168px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary-red);
}

/* ---- Two-Column Layout ---- */
.tours-layout {
    display: grid;
    grid-template-columns: 265px 1fr;
    gap: 28px;
    align-items: start;
    padding-bottom: 60px;
}

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
    background: white;
    box-shadow: 0px 2px 8px 0px #0000000D;
    border: 0.8px solid #E1E1E1;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 72px; /* below navbar */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Sidebar header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}

.filter-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-main);
    font-family: var(--font-poppins);
}

.clear-all-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-poppins);
    padding: 0;
    transition: opacity 0.2s;
}

.clear-all-btn:hover { opacity: 0.7; }

/* Filter sections */
.filter-section {
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

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

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

.filter-section-title {
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--text-main);
    font-family: var(--font-poppins);
}

.chevron {
    color: #888;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.filter-section.collapsed .chevron {
    transform: rotate(-90deg);
}

.filter-section-body {
    padding: 4px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s;
}

.filter-section.collapsed .filter-section-body {
    display: none;
}

/* Pill-style checkboxes (Tour Type & Experience) */
.filter-pill-label {
    display: block;
    cursor: pointer;
}

.filter-pill-label input[type="checkbox"] {
    display: none;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 0.8px solid #E1E1E1;
    background: #EBEBEC;
box-shadow: 0px 2px 6px 0px #0000001F;

    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-poppins);
    width: 100%;
    justify-content: space-between;
}

.filter-pill-label input:checked + .filter-pill {
    background: #fff0f0;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-pill-label input:checked + .filter-pill .pill-count {
    color: var(--primary-red);
}

.pill-count {
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s;
}

/* Checkbox-style filters */
.filter-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    font-family: var(--font-poppins);
    font-size: 0.85rem;
    color: var(--text-main);
    transition: color 0.15s;
}

.filter-check-label:hover { color: var(--primary-red); }

.filter-check {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-red);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 3px;
}

.check-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 400;
}

.check-count {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 500;
    margin-left: auto;
}

/* Month grid */
.month-year-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-poppins);
    margin: 6px 0 6px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.month-btn {
    padding: 7px 4px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-poppins);
    transition: all 0.2s;
    text-align: center;
}

.month-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.month-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Budget slider */
.budget-labels-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.budget-min-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
}

.budget-max-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-poppins);
}

.budget-slider-wrap {
    position: relative;
    margin-bottom: 6px;
}

.budget-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-red) 0%, var(--primary-red) 100%, #e5e7eb 100%);
    outline: none;
    cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}

.budget-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.budget-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.budget-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #bbb;
    font-family: var(--font-poppins);
}

/* ============================================================
   TOUR CARDS
   ============================================================ */
.tours-main {
    min-width: 0;
}

.tours-match-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
    margin-bottom: 16px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tour Card */
.tour-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Card Image */
.tc-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.tc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.tour-card:hover .tc-img-wrap img {
    transform: scale(1.04);
}

/* Category badge */
.tc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.87rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    font-family: var(--font-poppins);
    z-index: 2;
}

.tc-badge-leisure  { background: #9B1B1B; }
.tc-badge-adventure { background: #1A7A4A; }
.tc-badge-family   { background: #2563EB; }
.tc-badge-luxury   { background: #D4AF37; }
.tc-badge-offbeat  { background: #7c3aed; }

/* Wishlist heart */
.tc-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
    padding: 0;
}

.tc-heart:hover { background: #fff0f0; }
.tc-heart.liked svg { fill: var(--primary-red); stroke: var(--primary-red); }

.tc-heart svg {
    width: 16px;
    height: 16px;
    stroke: #999;
    fill: none;
    transition: all 0.2s;
}

/* Duration + Rating overlay */
.tc-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tc-duration {
    font-size: 0.8rem;
    font-weight:600;
    color: white;
    font-family: var(--font-poppins);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    background: #000000A6;
    border-radius: 20px;
    padding: 4px 12px;
}

.tc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.45);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    font-family: var(--font-poppins);
}

.tc-star {
    color: #fbbf24;
    font-size: 0.75rem;
}

/* Card Body */
.tc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tc-title {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.4;
    font-family: var(--font-poppins);
}

.tc-duration-text {
    font-size: 0.78rem;
        font-weight: 400;
    color: #999999;
    margin-bottom: 6px;
    font-family: var(--font-poppins);
}

.tc-location {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-weight: 400;
    font-size: 0.78rem;
    color: #656565;
    margin-bottom: 10px;
    font-family: var(--font-poppins);
    line-height: 1.4;


}

.tc-seperator{
        border-bottom: 0.8px solid #EBEBEC;
    margin-bottom: 12px;

}

.tc-location-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color:#EB1C23
}

/* Inclusions row */
.tc-inclusions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.tc-inc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
}

.tc-inc svg,
.tc-inc img {
    width: 20px;
    height: 20px;
    color: var(--primary-red);
}

/* Highlights */
.tc-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tc-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
    line-height: 1.4;
}

.tc-highlights li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eb1c23' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Price + CTA */
.tc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
}

.tc-price-wrap {}

.tc-price-from {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
}

.tc-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-poppins);
    line-height: 1;
    display: block;
}

.tc-price-per {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
    margin-top: 1px;
}

.tc-view-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-poppins);
    transition: background 0.2s;
    white-space: nowrap;
}

.tc-view-btn:hover {
    background: var(--primary-red-hover);
}

/* ============================================================
   LOAD MORE & FOOTER STATS
   ============================================================ */
.load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border: 2px solid var(--text-main);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-poppins);
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.showing-footer {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-poppins);
}

/* ---- No Results ---- */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    font-family: var(--font-poppins);
}

.no-results p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-family: var(--font-poppins);
}

/* ---- Search Indicator Bar ---- */
.search-indicator-bar {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #fff5f5;
    border: 1px solid rgba(235, 28, 35, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease;
}

.search-indicator-text {
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: var(--font-poppins);
}

.search-indicator-text strong {
    color: var(--primary-red);
}

.clear-search-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-poppins);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.clear-search-btn:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
}

.clear-search-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .tours-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .tours-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .tours-container { padding: 0 16px; }
    .tours-grid { grid-template-columns: 1fr; }
    .title-sort-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
