/* ================================================================
   AVESTA TRAVEL - Destination Tour Listing Page
================================================================ */

.page-tour-destination {
    background: #f6f8fc;
}

.page-tour-destination .tsec {
    padding: 66px 0;
}

.page-tour-destination .tsec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.page-tour-destination .tsec-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ea580c;
}

.page-tour-destination .tsec-title {
    margin: 0 0 8px;
    color: #0b1426;
    font-family: var(--font-display, inherit);
    font-size: clamp(1.58rem, 2.7vw, 2.14rem);
    font-weight: 700;
    line-height: 1.2;
}

.page-tour-destination .tsec-title em {
    color: #ea580c;
    font-style: italic;
}

.page-tour-destination .tsec-sub {
    margin: 0;
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.65;
}

.tdp-hero {
    position: relative;
    margin-top: 0;
    min-height: 560px;
    overflow: hidden;
    background: #0b1426;
}

.tdp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.tdp-hero-bg-fallback {
    background: radial-gradient(circle at 18% 22%, rgba(234, 88, 12, 0.4), transparent 45%),
                radial-gradient(circle at 82% 28%, rgba(59, 130, 246, 0.28), transparent 42%),
                linear-gradient(160deg, #0b1426, #182e56);
}

.tdp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.24) 0%, rgba(8, 14, 28, 0.78) 56%, rgba(8, 14, 28, 0.93) 100%);
}

.tdp-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 128px;
    padding-bottom: 58px;
}

.tdp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 600;
}

.tdp-breadcrumb a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.tdp-breadcrumb a:hover {
    color: #ffffff;
}

.tdp-breadcrumb strong {
    color: #ffffff;
}

.tdp-hero-title {
    margin: 0 0 14px;
    font-family: var(--font-display, inherit);
    font-size: clamp(2.1rem, 5.1vw, 3.7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.tdp-hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.86);
}

.tdp-hero-sub {
    margin: 0 0 30px;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.97rem;
    line-height: 1.75;
}

.tdp-hero-search {
    width: min(780px, 100%);
}

.page-tour-destination .tdp-search-wrap {
    width: 100%;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.page-tour-destination .tdp-search-wrap .search-field,
.page-tour-destination .tdp-search-wrap .search-field-input {
    cursor: text;
}

.page-tour-destination .tdp-search-wrap .search-field-input {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.tdp-search-card {
    width: min(780px, 100%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    padding: 18px 18px 16px;
    box-shadow: 0 22px 48px rgba(6, 12, 24, 0.28), 0 8px 16px rgba(6, 12, 24, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tdp-search-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tdp-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tdp-search-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tdp-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.tdp-search-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.tdp-search-btn {
    height: 52px;
    padding: 0 22px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tdp-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(234, 88, 12, 0.4);
}

.tdp-reset-link {
    display: inline-flex;
    margin-top: 10px;
    color: #ea580c;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.tdp-reset-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

.tdp-inline-filters-wrap {
    margin-top: 16px;
    width: min(980px, 100%);
}

.tdp-inline-filters-title {
    display: inline-block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tdp-inline-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.tdp-inline-filters::-webkit-scrollbar {
    height: 6px;
}

.tdp-inline-filters::-webkit-scrollbar-track {
    background: transparent;
}

.tdp-inline-filters::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.tdp-inline-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tdp-inline-filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.19);
    box-shadow: 0 8px 18px rgba(8, 14, 28, 0.2);
}

.tdp-inline-filter-chip.is-active {
    border-color: rgba(234, 88, 12, 0.8);
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.94), rgba(194, 65, 12, 0.95));
    box-shadow: 0 6px 14px rgba(8, 14, 28, 0.26);
}

.tdp-inline-filter-chip.is-active:hover {
    box-shadow: 0 6px 14px rgba(8, 14, 28, 0.26);
}

.tdp-inline-filter-name {
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.tdp-inline-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(6, 12, 24, 0.34);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1;
}

.tdp-inline-filter-chip.is-active .tdp-inline-filter-count {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.tdp-filters-section {
    background: #f4f6fb;
    padding-top: 42px;
    padding-bottom: 38px;
}

.tdp-filter-shell {
    background: #ffffff;
    border: 1px solid #d8e1ee;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(11, 20, 38, 0.08);
    overflow: hidden;
}

.tdp-filter-toggle {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.tdp-filter-left {
    min-width: 0;
}

.tdp-filter-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #ea580c;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tdp-filter-title {
    margin: 0 0 6px;
    color: #0b1426;
    font-family: var(--font-display, inherit);
    font-size: clamp(1.2rem, 2.4vw, 1.56rem);
    font-weight: 700;
    line-height: 1.2;
}

.tdp-filter-sub {
    margin: 0;
    color: #64748b;
    font-size: 0.87rem;
    line-height: 1.6;
}

.tdp-filter-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tdp-filter-active {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #fdba74;
    color: #c2410c;
    background: #fff7ed;
    font-size: 0.74rem;
    font-weight: 700;
}

.tdp-filter-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d8e1ee;
    color: #334155;
    background: #f8fafc;
    font-size: 0.74rem;
    font-weight: 700;
}

.tdp-filter-chevron {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d8e1ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #ffffff;
    transition: transform 0.22s ease, border-color 0.18s ease, color 0.18s ease;
}

.tdp-filter-shell.is-open .tdp-filter-chevron {
    transform: rotate(180deg);
    border-color: #fdba74;
    color: #c2410c;
}

.tdp-filter-panel {
    overflow: hidden;
    opacity: 1;
    transition: height 0.28s ease, opacity 0.22s ease;
}

.tdp-filter-panel-inner {
    border-top: 1px solid #edf2f8;
    padding: 18px 24px 24px;
}

.page-tour-destination .tdp-filters-section .ttag-slider-wrap {
    gap: 12px;
}

.page-tour-destination .tdp-filters-section .ttag-track {
    gap: 12px;
}

.page-tour-destination .tdp-filters-section .ttag-card {
    flex: 0 0 clamp(118px, 9.3vw, 146px);
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 1px solid #d9e2ef;
    box-shadow: 0 8px 20px rgba(11, 20, 38, 0.1), 0 2px 6px rgba(11, 20, 38, 0.06);
}

.page-tour-destination .tdp-filters-section .ttag-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 26px rgba(11, 20, 38, 0.14), 0 4px 10px rgba(11, 20, 38, 0.08);
}

.page-tour-destination .tdp-filters-section .ttag-card-body {
    padding: 12px 10px 11px;
    gap: 4px;
}

.page-tour-destination .tdp-filters-section .ttag-card-color-dot {
    width: 7px;
    height: 7px;
    margin-bottom: 1px;
}

.page-tour-destination .tdp-filters-section .ttag-card-name {
    font-size: clamp(0.74rem, 0.88vw, 0.86rem);
    letter-spacing: 0.02em;
}

.page-tour-destination .tdp-filters-section .ttag-card-count {
    font-size: 0.66rem;
}

.page-tour-destination .tdp-filters-section .ttag-card.is-active {
    transform: translateY(-3px);
    border-color: rgba(234, 88, 12, 0.66);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.26), 0 5px 14px rgba(11, 20, 38, 0.17);
}

.page-tour-destination .tdp-filters-section .ttag-card.is-active .ttag-card-overlay {
    background: linear-gradient(to top, rgba(234, 88, 12, 0.84) 0%, rgba(11, 20, 38, 0.44) 64%, rgba(11, 20, 38, 0.12) 100%);
}

.page-tour-destination .tdp-filters-section .ttag-arrow {
    width: 40px;
    height: 40px;
}

.page-tour-destination .tdp-filters-section .ttag-card-all {
    border-color: #fdc89e;
}

.page-tour-destination .tdp-filters-section .ttag-card-all-bg {
    background: radial-gradient(circle at 24% 22%, rgba(255, 237, 213, 0.92), transparent 56%),
                radial-gradient(circle at 74% 72%, rgba(251, 191, 36, 0.32), transparent 52%),
                linear-gradient(145deg, #9a3412, #ea580c);
}

.page-tour-destination .tdp-filters-section .ttag-card-all .ttag-card-overlay {
    background: linear-gradient(to top, rgba(51, 26, 8, 0.86) 0%, rgba(87, 35, 8, 0.32) 62%, rgba(87, 35, 8, 0.08) 100%);
}

.page-tour-destination .tdp-filters-section .ttag-card-all-dot {
    background: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.24);
}

.ttag-arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tdp-empty-line {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px 18px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    background: #ffffff;
}

.tdp-list-section {
    background: #ffffff;
}

.tdp-search-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff5eb;
    border: 1px solid #ffd7b6;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
}

.tdp-search-chip strong {
    color: #c2410c;
}

.tdp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tdp-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d8e1ee;
    box-shadow: 0 8px 26px rgba(11, 20, 38, 0.11), 0 3px 10px rgba(11, 20, 38, 0.05);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.tdp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(11, 20, 38, 0.16), 0 8px 20px rgba(11, 20, 38, 0.08);
}

.tdp-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tdp-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.44s ease;
}

.tdp-card:hover .tdp-card-image {
    transform: scale(1.06);
}

.tdp-card-image-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #1d355e, #2f4f82);
}

.tdp-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 12, 24, 0.7) 0%, rgba(6, 12, 24, 0.1) 58%);
}

.tdp-card-topline {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tdp-card-day,
.tdp-card-rating {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 6, 14, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    font-size: 0.67rem;
    font-weight: 700;
}

.tdp-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 16px 18px;
    min-height: 188px;
}

.tdp-card-title {
    margin: 0;
    color: #0b1426;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.32;
}

.tdp-card-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.62;
}

.tdp-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tdp-card-price {
    color: #ea580c;
    font-size: 1.08rem;
    font-weight: 800;
}

.tdp-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d8e1ee;
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 700;
    background: #f8fafc;
}

.tdp-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #ffffff;
    padding: 36px 24px;
    text-align: center;
}

.tdp-empty h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
}

.tdp-empty p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

.tdp-reset-btn {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    background: #ea580c;
    font-size: 0.82rem;
    font-weight: 800;
}

.tdp-pagination {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tdp-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #d8e1ee;
    text-decoration: none;
    color: #1f2937;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.18s ease;
}

.tdp-page-btn:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.tdp-page-btn.is-active {
    border-color: #ea580c;
    background: #ea580c;
    color: #ffffff;
}

.tdp-page-dots {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 3px;
}

@media (max-width: 1100px) {
    .tdp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .tdp-hero {
        min-height: 520px;
    }
    .tdp-hero-inner {
        padding-top: 92px;
        padding-bottom: 44px;
    }
    .tdp-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .tdp-search-btn {
        width: 100%;
    }
    .tdp-inline-filters-wrap {
        margin-top: 13px;
    }
    .tdp-inline-filter-chip {
        min-height: 38px;
        padding: 7px 12px;
    }
    .tdp-inline-filter-name {
        font-size: 0.78rem;
    }
    .tdp-filter-toggle {
        flex-direction: column;
        align-items: flex-start;
    }
    .tdp-filter-meta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .page-tour-destination .tdp-filters-section .ttag-card {
        flex-basis: 132px;
    }
}

@media (max-width: 700px) {
    .page-tour-destination .tsec {
        padding: 50px 0;
    }
    .tdp-filters-section {
        padding-top: 34px;
        padding-bottom: 30px;
    }
    .tdp-filter-toggle {
        padding: 18px 16px;
    }
    .tdp-filter-panel-inner {
        padding: 14px 16px 18px;
    }
    .tdp-inline-filters-title {
        margin-bottom: 7px;
    }
    .tdp-inline-filters {
        gap: 8px;
        padding-bottom: 6px;
    }
    .tdp-inline-filter-chip {
        padding: 7px 11px;
    }
    .page-tour-destination .tdp-filters-section .ttag-card {
        flex: 0 0 calc(50% - 6px);
    }
    .page-tour-destination .tdp-filters-section .ttag-card-body {
        padding: 11px 9px 10px;
    }
    .tdp-grid {
        grid-template-columns: 1fr;
    }
    .tdp-card-body {
        min-height: 0;
    }
}
