/* ═══════════════════════════════════════════════════════════════════
   INDHEAL — wwwroot/css/treatment-list.css
   Treatment list (/treatments). Moved from the inline <style> in
   Views/Treatment/Index.cshtml, plus destination filter, dual prices,
   trust strip and disclaimer.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   TREATMENT LIST PAGE — SCOPED STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────────────── */
.tl-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(160deg, #f0fdf7 0%, #ffffff 65%);
    overflow: hidden;
}
.tl-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 20%, rgba(29,158,117,0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(29,158,117,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.tl-hero__inner { position: relative; z-index: 1; }
.tl-hero__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(29,158,117,0.08);
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.tl-hero__heading {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.tl-hero__sub {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 58ch;
    line-height: 1.65;
    margin-bottom: 2rem;
}
.tl-hero__stat-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.tl-hero__stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.tl-hero__stat span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.tl-hero__stat-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--color-border, #e0ebe6);
}

/* ── FILTER BAR ──────────────────────────────────────────────── */
.tl-filters {
    position: sticky;
    top: 0;           /* adjust if your nav has a fixed height, e.g. top: 64px */
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--color-border, #e0ebe6);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.tl-filters__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.875rem;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
}

/* Search */
.tl-filters__search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 340px;
}
.tl-filters__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}
.tl-filters__search-input {
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 2.2rem;
    border: 1.5px solid var(--color-border, #dde8e3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--color-text-dark);
    background: var(--color-bg-light, #f8fdfb);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
/* 16px on phones, so iOS does not zoom in when the search is tapped */
@media (max-width: 767px) {
    .tl-filters .tl-filters__search-input { font-size: 16px; }
}
.tl-filters__search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}
.tl-filters__search-clear {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 0.2rem;
}

/* Group tabs */
.tl-filters__tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--color-border, #e8eeec);
}
.tl-filters__tabs-wrap::-webkit-scrollbar { display: none; }
.tl-filters__tabs {
    display: flex;
    gap: 0;
    padding: 0 var(--container-padding, 1.5rem);
    min-width: max-content;
}
.tl-filters__tab[hidden] { display: none; }
.tl-filters__tab {
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 0.65rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.tl-filters__tab:hover { color: var(--color-primary); }
.tl-filters__tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* ── RESULTS BAR ─────────────────────────────────────────────── */
.tl-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border, #e8eeec);
}
.tl-results-bar__count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}
.tl-results-bar__count strong { color: var(--color-text-dark); }
.tl-results-bar__reset {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── GRID ────────────────────────────────────────────────────── */
.tl-grid-section { padding: 2rem 0 4rem; }
.tl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* ── CARD ────────────────────────────────────────────────────── */
.tl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--color-border, #e0ebe6);
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.tl-card:hover {
    box-shadow: 0 6px 24px rgba(29,158,117,0.12);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}
.tl-card:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 3px;
}

/* hidden state — toggled by JS */
.tl-card[hidden] { display: none; }

.tl-card__icon-wrap {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light, #f0fdf7);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    flex-shrink: 0;
}
.tl-card__icon {
    width: 100%; height: 100%;
    object-fit: contain;
}
.tl-card__icon-fallback {
    width: 28px; height: 28px;
    color: var(--color-primary);
}
.tl-card__body { flex: 1; }
.tl-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin: 0 0 0.3rem;
}
.tl-card__group {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.tl-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border, #e8eeec);
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tl-card__price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
}
.tl-card__price--enquire {
    color: var(--color-text-muted);
    font-weight: 500;
}
.tl-card__badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
}
.tl-card__badge--ayurveda {
    background: #fff8e6;
    color: #b45309;
    border: 1px solid #f5d27a;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.tl-empty {
    text-align: center;
    padding: 4rem 1rem;
}
.tl-empty__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.tl-empty__msg {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

/* ── CTA STRIP ───────────────────────────────────────────────── */
.tl-cta-strip {
    background: var(--color-bg-light, #f0fdf7);
    border-top: 1px solid var(--color-border, #d6ede4);
    padding: 1.5rem 0;
}
.tl-cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.tl-cta-strip__text strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text-dark);
}
.tl-cta-strip__text span {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tl-hero { padding: 3rem 0 2.5rem; }
    .tl-hero__stat-divider { display: none; }
    .tl-filters__inner { gap: 0.75rem; }
    .tl-filters__search { max-width: 100%; }
    .tl-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .tl-cta-strip__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .tl-grid { grid-template-columns: 1fr 1fr; }
}

/* ── DESTINATION FILTER ─────────────────────────────────────── */
.tl-filters__dest {
    display: inline-flex;
    border: 1.5px solid var(--color-border, #dde8e3);
    border-radius: 100px;
    padding: 2px;
    background: var(--color-bg-light, #f8fdfb);
    flex-shrink: 0;
}
.tl-dest {
    background: none;
    border: none;
    border-radius: 100px;
    padding: 0.32rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tl-dest:hover { color: var(--color-primary); }
.tl-dest--active {
    background: var(--color-primary);
    color: #fff;
}
.tl-dest--active:hover { color: #fff; }
/* Kind (All / Modern medicine / Ayurveda) reuses the destination pills */
.tl-kind { white-space: nowrap; }

/* ── RESULTS NOTE ────────────────────────────────────────────── */
.tl-results-bar__note { color: var(--color-text-muted); font-size: 0.8rem; }

/* ── CARD PRICES (India / Thailand) ──────────────────────────── */
.tl-card__footer { align-items: flex-end; }
.tl-card__prices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.tl-price { display: flex; flex-direction: column; line-height: 1.25; }
.tl-price__dest {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.tl-price__amt {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}
.tl-price__amt--request {
    color: var(--color-text-muted);
    font-weight: 500;
}
.tl-price__local {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

/* ── DISCLAIMER ──────────────────────────────────────────────── */
.tl-disclaimer {
    margin: 2rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ── TRUST STRIP ─────────────────────────────────────────────── */
.tl-trust-strip {
    border-top: 1px solid var(--color-border, #e0ebe6);
    background: #fff;
    padding: 1rem 0;
}
.tl-trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    flex-wrap: wrap;
}
.tl-trust-inner .trust-item { white-space: nowrap; }

@media (max-width: 768px) {
    .tl-filters__dest { order: 3; }
    .tl-filters__kind { order: 4; }
    .tl-kind { padding: 0.32rem 0.7rem; }
    .tl-trust-inner { justify-content: flex-start; }
    .tl-trust-inner .trust-item { white-space: normal; }
}

/* ── CARD ENTRANCE (was a second inline <style>) ─────────────── */
    /* Card entrance — defined here to avoid FOUC */
    .tl-card {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.35s ease, transform 0.35s ease,
                    box-shadow 0.2s, border-color 0.2s;
    }
    .tl-card--visible {
        opacity: 1;
        transform: translateY(0);
    }
    /* Override hover transform once visible */
    .tl-card--visible:hover {
        transform: translateY(-3px);
    }
