/* =====================================================
   TRIP DETAIL PAGE — premium redesign
   Prefix: `td-` (trip detail) to avoid collisions
   ===================================================== */

:root {
    --td-bg:         #f7f9fc;
    --td-surface:    #ffffff;
    --td-border:     #e5e9f2;
    --td-text:       #0f172a;
    --td-text-soft:  #475569;
    --td-muted:      #94a3b8;
    --td-primary:    #0ea5e9;
    --td-primary-2:  #6366f1;
    --td-accent:     #f59e0b;
    --td-success:    #16a34a;
    --td-danger:     #ef4444;
    --td-radius:     16px;
    --td-shadow-sm:  0 2px 8px rgba(15, 23, 42, .04);
    --td-shadow:     0 8px 24px -8px rgba(15, 23, 42, .12);
    --td-shadow-lg:  0 24px 48px -16px rgba(15, 23, 42, .18);
}

.td-page {
    background: var(--td-bg);
    color: var(--td-text);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============== HERO ============== */
.td-hero {
    position: relative;
    min-height: 540px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.td-hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    transition: transform 1.2s ease;
}
.td-hero:hover .td-hero__img {
    transform: scale(1.08);
}
.td-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .15) 0%, rgba(15, 23, 42, .65) 60%, rgba(15, 23, 42, .85) 100%);
    z-index: -1;
}
.td-hero__inner {
    padding: 160px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 880px;
}
.td-crumbs {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    align-items: center;
    flex-wrap: wrap;
}
.td-crumbs a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}
.td-crumbs a:hover {
    color: #fff;
}
.td-crumbs i {
    font-size: 10px;
    opacity: .6;
}
.td-hero__title {
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.td-hero__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.td-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.td-badge--accent {
    background: linear-gradient(135deg, var(--td-accent), #fb7185);
    border-color: transparent;
}

/* ============== HERO META STRIP ============== */
.td-metastrip {
    background: var(--td-surface);
    border-top: 1px solid var(--td-border);
    border-bottom: 1px solid var(--td-border);
    padding: 20px 0;
}
.td-metastrip__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.td-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.td-meta__icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(99, 102, 241, .12));
    color: var(--td-primary);
    font-size: 18px;
}
.td-meta__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--td-muted);
    margin: 0;
}
.td-meta__value {
    font-size: 15px;
    color: var(--td-text);
    font-weight: 600;
    margin: 2px 0 0;
}

/* ============== STICKY SUB-NAV ============== */
.td-subnav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--td-border);
    transition: box-shadow .2s;
}
.td-subnav.is-stuck {
    box-shadow: var(--td-shadow);
}
.td-subnav__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.td-subnav__inner::-webkit-scrollbar { display: none; }
.td-subnav a {
    flex: none;
    padding: 18px 14px;
    text-decoration: none;
    color: var(--td-text-soft);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.td-subnav a:hover { color: var(--td-text); }
.td-subnav a.is-active {
    color: var(--td-primary);
    border-bottom-color: var(--td-primary);
}

/* ============== LAYOUT ============== */
.td-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    padding: 40px 0 80px;
    align-items: start;
}
.td-main { min-width: 0; }
.td-side {
    position: sticky;
    top: 88px;
    align-self: start;
}

/* ============== SECTION CARDS ============== */
.td-section {
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 28px 28px 26px;
    margin-bottom: 22px;
    box-shadow: var(--td-shadow-sm);
    scroll-margin-top: 80px;
}
.td-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -.01em;
    color: var(--td-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.td-section__title i {
    color: var(--td-primary);
    font-size: 22px;
}
.td-section__lead {
    color: var(--td-text-soft);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
}

/* ============== HIGHLIGHTS ============== */
.td-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.td-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .04), rgba(99, 102, 241, .04));
    border: 1px solid rgba(14, 165, 233, .12);
    border-radius: 10px;
    color: var(--td-text);
    font-size: 14px;
    line-height: 1.45;
}
.td-highlights li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--td-primary);
    font-size: 12px;
    margin-top: 3px;
    flex: none;
}

/* ============== ITINERARY ============== */
.td-itin {
    position: relative;
    padding-left: 40px;
}
.td-itin::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--td-primary), var(--td-primary-2));
    opacity: .28;
}
.td-day {
    position: relative;
    margin-bottom: 22px;
    background: #fcfdfe;
    border: 1px solid var(--td-border);
    border-radius: 12px;
    padding: 18px 20px;
    transition: transform .2s, box-shadow .2s;
}
.td-day:hover {
    transform: translateX(2px);
    box-shadow: var(--td-shadow);
}
.td-day::before {
    content: attr(data-day);
    position: absolute;
    left: -40px;
    top: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--td-primary), var(--td-primary-2));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px -4px rgba(14, 165, 233, .55);
}
.td-day__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--td-text);
    margin: 0 0 6px;
}
.td-day__desc {
    color: var(--td-text-soft);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 10px;
    white-space: pre-line;
}
.td-day__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.td-day__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--td-text-soft);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}
.td-day__chip i { color: var(--td-primary); }

/* ============== INCLUSIONS / EXCLUSIONS ============== */
.td-ie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.td-ie__col h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.td-ie__col--in h4 { color: var(--td-success); }
.td-ie__col--ex h4 { color: var(--td-danger); }
.td-ie__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.td-ie__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--td-text-soft);
    font-size: 14px;
    line-height: 1.55;
}
.td-ie__list li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    margin-top: 4px;
    flex: none;
}
.td-ie__col--in li::before { content: "\f00c"; color: var(--td-success); }
.td-ie__col--ex li::before { content: "\f00d"; color: var(--td-danger); }

/* ============== COSTING TABLE ============== */
.td-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--td-border);
    border-radius: 12px;
}
.td-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.td-table thead th {
    background: #f8fafc;
    color: var(--td-text-soft);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
    border-bottom: 1px solid var(--td-border);
}
.td-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--td-border);
    color: var(--td-text);
}
.td-table tbody tr:last-child td { border-bottom: 0; }
.td-table del { color: var(--td-muted); margin-right: 6px; }
.td-table .td-price-now { color: var(--td-success); font-weight: 700; }
.td-table .td-save { color: var(--td-danger); font-weight: 600; }
.td-pill {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(22, 163, 74, .12);
    color: var(--td-success);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* ============== GALLERY ============== */
.td-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
}
.td-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.td-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.td-gallery__item:hover img { transform: scale(1.06); }
.td-gallery__item:first-child { grid-row: 1 / span 2; }
.td-gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

/* ============== REVIEWS ============== */
.td-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.td-review {
    background: #fcfdfe;
    border: 1px solid var(--td-border);
    border-radius: 12px;
    padding: 18px;
}
.td-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.td-review__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--td-primary), var(--td-primary-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
}
.td-review__name {
    font-weight: 600;
    color: var(--td-text);
    font-size: 14px;
    margin: 0;
}
.td-review__stars {
    color: var(--td-accent);
    font-size: 12px;
    margin-top: 2px;
}
.td-review__text {
    color: var(--td-text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============== BOOKING WIDGET (SIDEBAR) ============== */
.td-widget {
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    overflow: hidden;
    box-shadow: var(--td-shadow);
}
.td-widget__head {
    background: linear-gradient(135deg, var(--td-primary), var(--td-primary-2));
    color: #fff;
    padding: 20px 22px;
}
.td-widget__from {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
    margin: 0;
}
.td-widget__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.td-widget__price del {
    font-size: 14px;
    opacity: .65;
}
.td-widget__price strong {
    font-size: 28px;
    font-weight: 700;
}
.td-widget__price small {
    font-size: 12px;
    opacity: .85;
    margin-left: 2px;
}
.td-widget__body {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.td-widget__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.td-widget__row label {
    font-size: 12px;
    color: var(--td-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.td-widget__row select,
.td-widget__row input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--td-border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--td-text);
    transition: border-color .15s, box-shadow .15s;
}
.td-widget__row select:focus,
.td-widget__row input:focus {
    outline: none;
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.td-widget__scarcity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .18);
    border-radius: 10px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
}
.td-widget__scarcity i { color: var(--td-danger); }
.td-widget__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}
.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.td-btn--primary {
    background: linear-gradient(135deg, var(--td-primary), var(--td-primary-2));
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .55);
}
.td-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -10px rgba(14, 165, 233, .75);
}
.td-btn--wa {
    background: #25d366;
    color: #fff;
}
.td-btn--wa:hover { background: #1ebe5b; color: #fff; }
.td-btn--outline {
    background: #fff;
    color: var(--td-text);
    border: 1px solid var(--td-border);
}
.td-btn--outline:hover { background: #f1f5f9; }
.td-btn--ghost {
    background: transparent;
    color: var(--td-primary);
    padding: 6px;
    font-size: 13px;
}
.td-btn--ghost:hover { color: var(--td-primary-2); }

.td-widget__trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--td-border);
}
.td-widget__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--td-text-soft);
}
.td-widget__trust-item i {
    color: var(--td-success);
    width: 16px;
    text-align: center;
}

/* ============== RELATED TOURS ============== */
.td-related {
    margin-top: 24px;
}
.td-related__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 18px;
}
.td-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.td-related__card {
    background: var(--td-surface);
    border-radius: var(--td-radius);
    overflow: hidden;
    border: 1px solid var(--td-border);
    box-shadow: var(--td-shadow-sm);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.td-related__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--td-shadow);
    color: inherit;
}
.td-related__img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
}
.td-related__body { padding: 14px 16px 16px; }
.td-related__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--td-text);
}
.td-related__meta {
    color: var(--td-muted);
    font-size: 12.5px;
    margin: 0;
}
.td-related__price {
    margin-top: 8px;
    color: var(--td-primary);
    font-weight: 700;
}

/* ============== MOBILE BOTTOM BAR ============== */
.td-mobilebar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--td-border);
    z-index: 50;
    gap: 12px;
    align-items: center;
    box-shadow: 0 -8px 24px -10px rgba(15, 23, 42, .15);
}
.td-mobilebar__price {
    flex: 1;
    line-height: 1.2;
}
.td-mobilebar__price small {
    color: var(--td-muted);
    font-size: 11px;
    display: block;
}
.td-mobilebar__price strong {
    font-size: 18px;
    color: var(--td-text);
}
.td-mobilebar .td-btn {
    flex: none;
    padding: 12px 22px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 991px) {
    .td-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 100px;
    }
    .td-side {
        position: static;
        order: -1;
    }
    .td-metastrip__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .td-hero__inner { padding: 130px 0 50px; }
    .td-mobilebar { display: flex; }
    .td-side { display: none; }
    .td-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px;
    }
    .td-gallery__item:first-child { grid-row: 1; grid-column: 1 / span 2; }
}
@media (max-width: 600px) {
    .td-ie { grid-template-columns: 1fr; }
    .td-highlights { grid-template-columns: 1fr; }
    .td-section { padding: 22px 18px; }
    .td-itin { padding-left: 36px; }
    .td-day::before { left: -36px; }
}

/* =====================================================
   MOBILE REDESIGN  (deshvideshtravels-style)
   Applies under 768px. Desktop layout above is unchanged.
   ===================================================== */

/* Mobile-only section (server-rendered stacked gallery) — desktop hides it */
.td-mobile-only { display: none; }

@media (max-width: 767px) {

    .td-mobile-only { display: block; }
    .td-mobile-hide { display: none !important; }

    /* ---- HERO: kill the image bg; pure white title block ---- */
    .td-hero { min-height: 0; color: #0f172a; }
    .td-hero__img,
    .td-hero__overlay { display: none; }
    .td-hero__inner {
        padding: 18px 0 8px;
        max-width: 100%;
    }
    .td-crumbs { display: none; }
    .td-hero__badges { display: none; }
    .td-hero__title {
        font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
        color: #0f172a;
        font-size: 22px;
        line-height: 1.3;
        text-shadow: none;
        font-weight: 600;
        letter-spacing: -.015em;
    }
    .td-hero__title em,
    .td-hero__title .td-italic {
        font-style: italic;
        font-weight: 600;
    }

    /* ---- META STRIP: vertical label:value rows ---- */
    .td-metastrip {
        background: #fff;
        border-top: 0;
        padding: 8px 0 18px;
    }
    .td-metastrip__row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .td-meta {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 8px 16px;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .td-meta:last-child { border-bottom: 0; }
    .td-meta__icon { display: none; }
    .td-meta > div { display: contents; }
    .td-meta__label {
        text-transform: none;
        letter-spacing: 0;
        font-size: 15px;
        color: #475569;
        font-weight: 500;
        margin: 0;
    }
    .td-meta__label::after { content: ":"; }
    .td-meta__value {
        font-size: 15px;
        color: #0f172a;
        font-weight: 600;
        text-align: right;
        margin: 0;
        white-space: pre-line;
    }
    .td-meta__value i { color: #64748b; margin-right: 4px; }

    /* ---- Pickup / Drop — single elegant line ---- */
    .td-pickup {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .td-pickup > i:first-child { color: #0ea5e9; margin-right: 2px; }
    .td-pickup__loc {
        color: #0f172a;
        font-weight: 600;
        white-space: nowrap;
    }
    .td-pickup__sep {
        color: #94a3b8 !important;
        font-size: 11px !important;
        margin: 0 4px !important;
    }
    .td-pickup__tag {
        font-size: 11.5px;
        font-weight: 600;
        color: #0ea5e9;
        background: rgba(14, 165, 233, .1);
        padding: 2px 8px;
        border-radius: 999px;
        margin-left: 4px;
        letter-spacing: .01em;
    }

    /* ---- STACKED IMAGES (mobile-only section) ---- */
    .td-mstack {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 4px 0 16px;
    }
    .td-mstack img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 6px;
        display: block;
    }

    /* ---- SUBNAV: keep sticky, slim, underline indicator ---- */
    .td-subnav { padding: 2px 0; }
    .td-subnav a {
        padding: 16px 12px;
        font-size: 16px;
        font-weight: 600;
        color: #94a3b8;
    }
    .td-subnav a.is-active {
        color: #0f172a;
        border-bottom-color: #0f172a;
    }

    /* ---- HIDE the original gallery section on mobile (shown in stack instead) ---- */
    #td-gallery { display: none; }

    /* ---- LAYOUT: full width, no sidebar, breathing room for bottom bar ---- */
    .td-wrap { padding: 16px 0 120px; }
    .td-side { display: none !important; }
    .td-section { border-radius: 0; border-left: 0; border-right: 0; padding: 22px 0; box-shadow: none; }
    .td-section__title { font-size: 24px; }
    .td-section__title i { display: none; }

    /* ---- COSTING: card layout (matches reference) ---- */
    .td-cost-cards {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .td-cost-cards .td-cost-card-divider {
        margin: 12px 0 10px;
        border-top: 1px solid #e2e8f0;
    }
    /* ---- AVAILABLE BATCHES ---- */
    .td-batches { display: flex; flex-direction: column; gap: 10px; }
    .td-batch-card {
        border: 1px solid #e5e9f2;
        border-radius: 14px;
        padding: 16px 18px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .td-batch-card__dates { font-size: 18px; font-weight: 700; color: #0f172a; }
    .td-batch-card__sub   { font-size: 12.5px; color: #64748b; margin-top: 2px; }
    .td-batch-card__badge {
        background: #fef9c3;
        color: #92400e;
        padding: 4px 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
    }

    /* ---- MOBILE BOTTOM BAR (always-visible) — dark style ---- */
    .td-mobilebar {
        display: flex;
        background: #0b1220;
        border-top: 0;
        padding: 14px 16px;
        box-shadow: 0 -10px 30px -8px rgba(0, 0, 0, .4);
    }
    .td-mobilebar__price small {
        color: #94a3b8;
        font-size: 12px;
        margin-bottom: 2px;
    }
    .td-mobilebar__price strong { color: #fff; font-size: 22px; }
    .td-mobilebar__price strong + small { display: block; margin: 0; font-size: 14px; color: #94a3b8; font-weight: 500; }
    .td-mobilebar .td-btn--primary {
        background: linear-gradient(135deg, #7dd3fc, #38bdf8);
        color: #06223a;
        font-weight: 700;
        padding: 12px 22px;
        border-radius: 999px;
    }
}

/* COSTING — cards always (replaces tables in markup) */
.td-cost-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    padding: 20px 22px;
}
.td-cost-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.td-cost-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.td-cost-card__discount {
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
}
.td-cost-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #475569;
    font-size: 15px;
}
.td-cost-card__row strong {
    color: #0f172a;
    font-weight: 700;
    font-size: 16px;
}
.td-cost-card__row del { color: #94a3b8; font-weight: 500; }
.td-cost-card__row--save {
    color: #16a34a;
    font-weight: 600;
}
.td-cost-card__row--save strong { color: #16a34a; font-size: 17px; }
.td-cost-card__row--green strong { color: #16a34a; }
.td-cost-card__divider {
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

/* =====================================================
   MOBILE BOTTOM SHEET  (Send Enquiry → slide-up form)
   ===================================================== */
.td-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    background: #0b1220;
    color: #e5e7eb;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 50px -8px rgba(0, 0, 0, .5);
    max-height: 92vh;
    overflow-y: auto;
    display: none; /* show only on mobile */
}
.td-sheet.is-open { transform: translateY(0); }
.td-sheet__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .25);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    display: none;
}
.td-sheet__backdrop.is-open { opacity: 1; visibility: visible; }

.td-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 16px;
}
.td-sheet__head .td-mobilebar__price small { color: #94a3b8; font-size: 12px; }
.td-sheet__head .td-mobilebar__price strong { color: #fff; font-size: 22px; font-weight: 800; }
.td-sheet__close {
    background: transparent;
    border: 2px solid #f59e0b;
    color: #f59e0b;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.td-sheet__body {
    background: #0f172a;
    border-radius: 14px;
    padding: 14px 14px 16px;
    margin: 0 12px 10px;
    border: 1px solid rgba(255, 255, 255, .04);
}
.td-sheet__row { margin-bottom: 12px; }
.td-sheet__row:last-child { margin-bottom: 0; }
.td-sheet__row label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.td-sheet__row strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.td-sheet__rowsplit { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.td-sheet__seats { color: #94a3b8; font-size: 13px; }
.td-sheet__chips {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.td-sheet__chips::-webkit-scrollbar { display: none; }
.td-sheet__chip {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.td-sheet__chip.is-active {
    border-color: #38bdf8;
    color: #7dd3fc;
}
.td-sheet__opts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.td-sheet__opts::-webkit-scrollbar { display: none; }
.td-sheet__opt {
    flex: none;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: transparent;
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
    min-width: 150px;
    transition: all .15s;
}
.td-sheet__opt.is-active {
    border-color: #38bdf8;
    color: #fff;
}
.td-sheet__opt-name { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.2; }
.td-sheet__opt-price { font-size: 12.5px; color: #94a3b8; margin-top: 2px; display: block; line-height: 1.2; }
.td-sheet__opt.is-active .td-sheet__opt-price { color: #7dd3fc; }

.td-sheet__counter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.td-sheet__counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #e5e7eb;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.td-sheet__counter-val {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}
.td-sheet__input {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    margin-top: 4px;
}
.td-sheet__input:focus {
    outline: none;
    border-color: #38bdf8;
}
.td-sheet__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ============== CUSTOM CALENDAR (compact popover) ============== */
/* anchor row */
.td-sheet__row { position: relative; }

.td-cal {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    width: 270px;
    max-width: calc(100vw - 32px);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .55);
    z-index: 20;
    display: none;
}
.td-cal.is-open { display: block; }
.td-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.td-cal__month {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.td-cal__nav { display: flex; gap: 4px; }
.td-cal__nav-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #e5e7eb;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 9px;
    transition: background .15s;
}
.td-cal__nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.td-cal__nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.td-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
}
.td-cal__dow {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 0;
}
.td-cal__day {
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
    transition: background .15s, color .15s;
    padding: 0;
}
.td-cal__day:hover:not(:disabled):not(.is-selected) {
    background: rgba(255, 255, 255, .08);
}
.td-cal__day:disabled,
.td-cal__day.is-other {
    color: rgba(148, 163, 184, .35);
    cursor: default;
}
.td-cal__day.is-today {
    color: #38bdf8;
    font-weight: 700;
}
.td-cal__day.is-selected {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    color: #06223a;
    font-weight: 700;
}
.td-cal__foot {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.td-cal__foot button {
    background: transparent;
    border: 0;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
}
.td-cal__foot button:hover { color: #7dd3fc; }
.td-sheet__wa {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    text-decoration: none;
}
.td-sheet__cancel {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    color: #e5e7eb;
    font-weight: 600;
    cursor: pointer;
}
.td-sheet__continue {
    flex: 1.4;
    padding: 12px 20px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    color: #06223a;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767px) {
    .td-sheet,
    .td-sheet__backdrop { display: block; }

    /* Tour-detail mobile bottom bar already covers Send Enquiry + has WhatsApp
       inside the sheet — hide the global floaters so nothing overlaps. */
    body:has(.td-mobilebar) .wo-whatsapp-float,
    body:has(.td-mobilebar) .tp-fab {
        display: none !important;
    }
}

