/* ==========================================================================
   Wellness, hotels, tours, taxi and medical transport pages.
   Builds on yh-site.css (tokens + components). Classes here are prefixed tw-.
   Components yh-site.css does not have, implemented here: filter bar, split
   empty-state, steps, fact list, form grid, details/accordion, day timeline.
   ========================================================================== */
.tw-page { padding: 22px 0 36px; }
.tw-page > .yh-wrap > * + * { margin-top: 18px; }

/* ---- filter bar */
.tw-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); padding: 12px 14px; margin: 0; }
.tw-bar__f { flex: 1 1 190px; min-width: 0; }
.tw-bar__f--sm { flex: 0 0 110px; }
.tw-bar__f--check { flex: 0 1 auto; align-self: center; padding-top: 18px; }
.tw-bar__actions { display: flex; gap: 8px; }
.tw-bar .yh-check { margin: 0; }
.tw-bar .yh-label { margin-bottom: 4px; }
.yh-select, .yh-input { height: 38px; }
.yh-textarea { height: auto; }
.yh-input.is-invalid, .yh-select.is-invalid, .yh-textarea.is-invalid { border-color: #b4232f; }
.tw-sum { font-size: 13px; color: var(--hv-muted); margin: 0; }

/* ---- generic result cards */
.tw-card { display: flex; flex-direction: column; height: 100%; }
.tw-card .yh-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tw-card .yh-h3 { margin: 0; font-size: 16px; }
.tw-card p { margin: 0; font-size: 13px; }
.tw-card .yh-card__foot { margin-top: auto; }
.tw-price { font-size: 13px; color: var(--hv-muted); }
.tw-price strong { font-size: 15px; color: var(--hv-navy); }
.tw-cardtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tw-disc a { text-decoration: none; }

/* ---- split empty state with a photo */
.tw-empty { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); overflow: hidden; }
.tw-empty__img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; background: var(--hv-bg); }
.tw-empty__body { padding: 20px 22px; }
.tw-empty__body h2 { font-size: 18px; font-weight: 700; color: var(--hv-navy); margin: 0 0 6px; }
.tw-empty__body p { font-size: 13.5px; margin: 0 0 12px; max-width: 640px; }
.tw-empty__body .yh-checklist { margin-bottom: 14px; }
.tw-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- steps */
.tw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: tw; }
.tw-steps li { counter-increment: tw; background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); padding: 14px 16px; font-size: 13px; }
.tw-steps li::before { content: counter(tw); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hv-blue-50); color: var(--hv-blue); font-weight: 700; font-size: 12px; margin-bottom: 8px; }
.tw-steps strong { display: block; color: var(--hv-ink); font-size: 14px; margin-bottom: 2px; }
.tw-steps--green li::before { background: var(--hv-green-50); color: #08793f; }

/* ---- detail page blocks */
.tw-block { background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); padding: 16px; }
.tw-block + .tw-block { margin-top: 14px; }
.tw-block h2 { font-size: 16px; font-weight: 700; color: var(--hv-navy); margin: 0 0 10px; }
.tw-block h3 { font-size: 14px; font-weight: 600; color: var(--hv-ink); margin: 0 0 8px; }
.tw-block p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; }
.tw-block p:last-child { margin-bottom: 0; }
.tw-note { font-size: 12px; color: var(--hv-muted); margin: 10px 0 0; }
.tw-lead { font-size: 15px; line-height: 1.6; color: var(--hv-ink); margin: 0; }
.tw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.tw-facts div { border: 1px solid var(--hv-line); border-radius: 6px; padding: 8px 10px; background: var(--hv-bg); }
.tw-facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hv-muted); }
.tw-facts dd { margin: 2px 0 0; font-size: 13.5px; color: var(--hv-ink); font-weight: 600; }
.tw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tw-two .tw-block + .tw-block { margin-top: 0; }
.yh-checklist--x li::before { content: "\f00d"; color: var(--hv-muted); }
.tw-days { list-style: none; margin: 0; padding: 0; }
.tw-days li { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--hv-line); margin-left: 6px; }
.tw-days li:last-child { padding-bottom: 0; }
.tw-days li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--hv-blue); }
.tw-days h3 { margin: 0 0 3px; }
.tw-days p { margin: 0 0 3px; font-size: 13px; }

/* ---- native accordion for FAQs */
.tw-faq details { border: 1px solid var(--hv-line); border-radius: 6px; background: #fff; }
.tw-faq details + details { margin-top: 8px; }
.tw-faq summary { cursor: pointer; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--hv-ink); }
.tw-faq summary:focus-visible { outline: 2px solid var(--hv-blue); outline-offset: 2px; }
.tw-faq details > div { padding: 0 12px 12px; font-size: 13px; }

/* ---- forms */
.tw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tw-form .tw-span { grid-column: 1 / -1; }
.tw-form .yh-field { margin: 0; }
.tw-aside h2 { font-size: 16px; font-weight: 700; color: var(--hv-navy); margin: 0 0 8px; }

/* The shared enquiry-form partial uses Bootstrap grid classes (BS4 CSS is loaded, so
   its g-3 gutters do nothing). Re-flow it here without touching the partial. */
.tw-aside .yh-enquiry-form .row, .tw-wide .yh-enquiry-form .row { display: grid; gap: 0 14px; margin: 0; }
.tw-aside .yh-enquiry-form .row { grid-template-columns: 1fr; }
.tw-wide .yh-enquiry-form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-wide .yh-enquiry-form .col-12 { grid-column: 1 / -1; }
.yh-enquiry-form [class*="col-"] { width: auto; max-width: none; padding: 0; margin-bottom: 10px; flex: none; }
.yh-enquiry-form .form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--hv-ink); margin-bottom: 4px; }
.yh-enquiry-form .form-control { font-size: 13.5px; }
.yh-enquiry-form .invalid-feedback { display: block; color: #b4232f; font-size: 12px; }

/* ---- vehicle cards with inline request form */
.tw-veh__form { border-top: 1px solid var(--hv-line); margin-top: 12px; padding-top: 12px; }

@media (max-width: 991px) {
    .tw-empty { grid-template-columns: 1fr; }
    .tw-empty__img { min-height: 0; height: 170px; }
    .tw-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .tw-two, .tw-form, .tw-wide .yh-enquiry-form .row { grid-template-columns: 1fr; }
    .tw-bar__f, .tw-bar__f--sm { flex: 1 1 100%; }
    .tw-bar__actions { width: 100%; }
    .tw-bar__actions .yh-btn { flex: 1; }
    .tw-empty__body { padding: 16px; }
    .tw-actions .yh-btn { flex: 1 1 100%; }
}

/* ---- taxi: airport transfer guide ---- */
.tw-routes { min-width: 560px; }
.yh-table th.tw-routes__name { font-weight: 600; text-align: left; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--hv-ink); background: transparent; }
.tw-routes td:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 575px) { .tw-routes td:last-child { white-space: normal; } }
