/* =====================================================
   Tour Category Page
   ===================================================== */

/* Layout */


.tour-cat__inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- Sidebar ---- */
.tour-cat__sidebar {
    position: sticky;
    top: 100px;
}

.tour-cat__filter-box {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.tour-cat__filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8edf2;
}

.tour-cat__filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-cat__filter-title .material-icons-outlined {
    font-size: 18px;
    color: #0960D2;
}

.tour-cat__filter-reset {
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.tour-cat__filter-reset:hover {
    opacity: 0.8;
    color: #ef4444;
}

.tour-cat__filter-reset .material-icons-outlined {
    font-size: 14px;
}

.tour-cat__filter-body {
    padding: 16px 20px;
}

.tour-cat__filter-group {
    margin-bottom: 18px;
}

.tour-cat__filter-group:last-child {
    margin-bottom: 0;
}

.tour-cat__filter-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a9bb2;
    margin-bottom: 10px;
    display: block;
}

/* Keyword Search */
.tour-cat__search-wrap {
    position: relative;
}

.tour-cat__search-input {
    width: 100%;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    padding: 9px 36px 9px 12px;
    font-size: 13px;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s;
}

.tour-cat__search-input:focus {
    border-color: #0960D2;
}

.tour-cat__search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8a9bb2;
    pointer-events: none;
}

/* Duration chips */
.tour-cat__duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tour-cat__duration-chip {
    display: inline-block;
    padding: 5px 10px;
    border: 1.5px solid #e0e7ef;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s;
}

.tour-cat__duration-chip:hover,
.tour-cat__duration-chip.is-active {
    background: #0960D2;
    border-color: #0960D2;
    color: #fff;
}

/* Category nav */
.tour-cat__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tour-cat__cat-item {
    border-bottom: 1px solid #f0f4f8;
}

.tour-cat__cat-item:last-child {
    border-bottom: none;
}

.tour-cat__cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 13.5px;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.15s;
    gap: 8px;
}

.tour-cat__cat-link:hover,
.tour-cat__cat-link.is-active {
    color: #0960D2;
    font-weight: 600;
}

.tour-cat__cat-link .material-icons-outlined {
    font-size: 16px;
    color: #b0bec5;
    flex-shrink: 0;
}

.tour-cat__cat-link.is-active .material-icons-outlined {
    color: #0960D2;
}


/* Breadcrumb */
.tour-cat__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8a9bb2;
    margin-bottom: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tour-cat__breadcrumb a {
    color: #8a9bb2;
    text-decoration: none;
    transition: color 0.15s;
}

.tour-cat__breadcrumb a:hover {
    color: #0960D2;
}

.tour-cat__breadcrumb-sep {
    font-size: 14px;
    color: #cbd5e0;
}

.tour-cat__breadcrumb-current {
    color: #0960D2;
    font-weight: 600;
}

/* Category hero */
.tour-cat__hero {
    background: linear-gradient(135deg, #0960D2 0%, #1e3a8a 100%);
    border-radius: 16px;
    padding: 28px 28px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.tour-cat__hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.tour-cat__hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: 60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.tour-cat__hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
}

.tour-cat__hero-desc {
    font-size: 13.5px;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sub-categories */
.tour-cat__sub-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tour-cat__sub-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1.5px solid #e0e7ef;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.18s;
    background: #fff;
}

.tour-cat__sub-cat-link:hover {
    background: #0960D2;
    border-color: #0960D2;
    color: #fff;
}

.tour-cat__sub-cat-link .material-icons-outlined {
    font-size: 15px;
}

/* Toolbar */
.tour-cat__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.tour-cat__count {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.tour-cat__count strong {
    color: #0960D2;
    font-weight: 700;
}

.tour-cat__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-cat__sort-label {
    font-size: 12.5px;
    color: #8a9bb2;
    white-space: nowrap;
}

.tour-cat__sort-select {
    border: 1.5px solid #e0e7ef;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: #2d3748;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a9bb2' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-color: #fff;
    padding-right: 30px;
}

.tour-cat__sort-select:focus {
    border-color: #0960D2;
}

/* Tour Grid */
.tour-cat__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tour Card */
.tc-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s;
    display: flex;
    flex-direction: column;
}

.tc-card:hover {
    box-shadow: 0 8px 28px rgba(9, 96, 210, 0.12);
    transform: translateY(-3px);
}

.tc-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.tc-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tc-card:hover .tc-card__image {
    transform: scale(1.06);
}

.tc-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
}

.tc-card__badge--hot {
    background: #f59e0b;
}

.tc-card__wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.18s;
}

.tc-card__wishlist-btn:hover {
    background: #fff;
}

.tc-card__wishlist-btn .material-icons-outlined {
    font-size: 17px;
    color: #8a9bb2;
}

.tc-card__wishlist-btn.is-liked .material-icons-outlined {
    color: #ef4444;
    font-variation-settings: 'FILL' 1;
}

.tc-card__country {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tc-card__country .material-icons-outlined {
    font-size: 13px;
}

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

.tc-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tc-card__code {
    font-size: 11px;
    color: #8a9bb2;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: #f0f4f8;
    padding: 2px 6px;
    border-radius: 3px;
}

.tc-card__duration {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #8a9bb2;
}

.tc-card__duration .material-icons-outlined {
    font-size: 13px;
}

.tc-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tc-card__title a {
    color: inherit;
    text-decoration: none;
}

.tc-card__title a:hover {
    color: #0960D2;
}

.tc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f4f8;
}

.tc-card__price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.tc-card__price-label {
    font-size: 10px;
    color: #8a9bb2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tc-card__price {
    font-size: 16px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1.2;
}

.tc-card__price--contact {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}

.tc-card__detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0960D2;
    color: #fff;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s;
    flex-shrink: 0;
}

.tc-card__detail-btn:hover {
    background: #0748a8;
    color: #fff;
}

.tc-card__detail-btn .material-icons-outlined {
    font-size: 14px;
}

/* Departure dates */
.tc-card__departures {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tc-card__departure-date {
    font-size: 11px;
    background: #eff6ff;
    color: #0960D2;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.tc-card__departure-more {
    font-size: 11px;
    color: #8a9bb2;
    padding: 2px 5px;
}

/* Empty State */
.tour-cat__empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
}

.tour-cat__empty-icon {
    font-size: 52px;
    color: #cbd5e0;
    margin-bottom: 14px;
}

.tour-cat__empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.tour-cat__empty-desc {
    font-size: 13px;
    color: #8a9bb2;
}

/* Pagination */
.tour-cat__pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

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

@media (max-width: 900px) {
    .tour-cat__inner {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .tour-cat__sidebar {
        position: static;
    }

    .tour-cat__filter-box {
        display: none;
    }
}

@media (max-width: 640px) {
    .tour-cat__breadcrumb {
        font-size: 15px;
    }

    .tour-cat__grid {
        grid-template-columns: 1fr;
    }

    .tour-cat__hero-title {
        font-size: 18px;
    }
}

/* Country Filter & Select */
.tour-cat__select {
    width: 100%;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #2d3748;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}

.tour-cat__select:focus {
    border-color: #0960D2;
}

/* Active filter pills */
.tour-cat__active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tour-cat__filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tour-cat__filter-pill:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.tour-cat__pill-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.tour-cat__pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.tour-cat__pill-remove .material-icons-outlined {
    font-size: 14px;
}

/* Country flag in hero */
.tour-cat__hero--country {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-cat__hero-flag {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
