/* ============================================================================
   Host-experience cards — Sarisara design system (2026-07-06, Chiran)
   Expand/collapse card with a photo carousel + description. Shared by the
   itinerary builder (selectable, checkbox + live price) and the property single
   page (view-only). Palette: violet #7700FF accent, green #30B300 price.
   ============================================================================ */
.hx-exp-card {
    border: 1px solid #eceaf3;
    border-radius: 14px;
    background: #fff;
    margin: 0 0 10px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.hx-exp-card:hover { border-color: #d9c8ff; }
.hx-exp-card.is-selected { border-color: #7700FF; box-shadow: 0 0 0 1px #7700FF inset; }

/* ---- collapsed head ---- */
.hx-exp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.hx-exp-head .homestay-experience-check {
    width: 18px; height: 18px; flex: 0 0 auto;
    accent-color: #7700FF; cursor: pointer; margin: 0;
}
.hx-exp-thumb {
    width: 56px; height: 56px; flex: 0 0 auto;
    object-fit: cover; border-radius: 10px; border: 1px solid #eceaf3;
}
.hx-exp-thumb--empty {
    display: inline-flex; align-items: center; justify-content: center;
    background: #faf8ff; font-size: 22px; color: #b98cff;
}
.hx-exp-name {
    flex: 1 1 auto; min-width: 0;
    font-weight: 600; color: #090920; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hx-exp-price {
    flex: 0 0 auto; font-weight: 700; color: #30B300; font-size: 13px;
    font-variant-numeric: tabular-nums;
}
/* Header per-person rates (Adult/Child + /day) — mirrors the ACTIVITY header price,
   no green (image 140). 2-col grid: labels align, values align, "/day" third line. */
.hx-exp-from { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 700; color: #090920; flex: 0 0 auto; }
/* the home stay page (view-only cards with a "from" line): the name may take two lines rather than "Sun…" */
.hx-exp-head:has(.hx-exp-from) .hx-exp-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
@media (max-width: 600px) {
    .hx-exp-head:has(.hx-exp-from) { gap: 10px; padding: 10px 12px; }
    .hx-exp-head:has(.hx-exp-from) .hx-exp-thumb { width: 48px; height: 48px; }
    .hx-exp-from { white-space: normal; max-width: 84px; text-align: right; font-size: 12px; line-height: 16px; }
}
.hx-exp-price-grid {
    flex: 0 0 auto;
    display: grid; grid-template-columns: auto auto;
    column-gap: 6px; row-gap: 0; align-items: baseline; justify-content: end; line-height: 18px;
}
.hx-exp-price-grid .hxp-label { justify-self: start; font-size: 11px; font-weight: 600; color: #8e8ea0; }
.hx-exp-price-grid .hxp-val {
    justify-self: start; font-size: 14px; font-weight: 700; color: #090920; font-variant-numeric: tabular-nums;
}
.hx-exp-price-grid .hxp-per { grid-column: 1 / -1; justify-self: end; font-size: 11px; font-weight: 500; color: #8e8ea0; }

/* !important throughout the interactive controls — the Traveler theme's gold
   .btn styling would otherwise paint these buttons. */
/* Match the service-component collapse button (left of the service headers):
   white box, grey border, grey chevron — same look & feel (Chiran, image 140). */
.hx-exp-toggle {
    flex: 0 0 auto;
    width: 28px !important; height: 28px !important;
    min-width: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    background: #ffffff !important; border: 1px solid #e8e8ee !important; border-radius: 8px !important;
    color: #8e8ea0 !important; cursor: pointer; padding: 0 !important;
    box-shadow: none !important;
    transition: background .15s, border-color .15s, color .15s, transform .2s;
}
.hx-exp-toggle svg { width: 16px !important; height: 16px !important; }
.hx-exp-toggle:hover { background: #f8f8fa !important; border-color: #cfcfda !important; color: #090920 !important; }
.hx-exp-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* ---- expanded body ---- */
.hx-exp-body {
    padding: 0 14px 14px;
    border-top: 1px solid #f2f1f7;
}
.hx-exp-body[hidden] { display: none; }

/* carousel — fixed 16:9 frame so the whole photo reads at a glance, never a
   tall crop that swallows the section (Chiran 2026-07-06). */
.hx-exp-carousel {
    position: relative;
    margin: 14px 0 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d18;
}
.hx-exp-slides { display: flex; transition: transform .3s ease; }
.hx-exp-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    display: flex; align-items: center; justify-content: center;
}
.hx-exp-img {
    display: block; width: 100%; height: 100%;
    object-fit: cover;
}
/* Older browsers without aspect-ratio: keep a sane 16:9-ish height. */
@supports not (aspect-ratio: 1) {
    .hx-exp-slide { height: 0; padding-bottom: 56.25%; position: relative; }
    .hx-exp-img { position: absolute; inset: 0; }
}
/* Round white circle arrows — the SAME buttons as the main service carousels
   (.carousel-nav), just a smaller circle (Chiran, image 142). */
.hx-exp-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px !important; height: 34px !important; min-width: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important; border: 3px solid transparent !important;
    color: #090920 !important; line-height: 1 !important; cursor: pointer;
    padding: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
    transition: transform .3s ease, box-shadow .3s ease;
    z-index: 2;
}
.hx-exp-nav svg { display: block; width: 20px; height: 20px; }
.hx-exp-prev { left: 10px; }
.hx-exp-next { right: 10px; }
.hx-exp-nav:hover { background: #fff !important; transform: translateY(-50%) scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,.25) !important; }
.hx-exp-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.hx-exp-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(9,9,32,.15);
}
.hx-exp-dot.is-active { background: #7700FF; box-shadow: none; }

.hx-exp-desc {
    margin: 0; color: #3a3a45; font-size: 13.5px; line-height: 1.55;
    white-space: pre-line;
}

/* ---- pricing detail (per-person rates + group-savings chips) ---- */
.hx-exp-pricing {
    margin: 14px 0 2px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf8ff 0%, #fbfaff 100%);
    border: 1px solid #efeaff;
}
.hx-exp-rates {
    display: flex; flex-wrap: wrap; gap: 26px;
    align-items: flex-end;
}
.hx-exp-rate { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.hx-exp-rate-amt {
    font-size: 14px; font-weight: 700; color: #090920;
    font-variant-numeric: tabular-nums; letter-spacing: -.01em;
    margin-bottom: 3px;
}
.hx-exp-rate-lbl {
    font-size: 11px; font-weight: 500; color: #8a86a0;
    text-transform: uppercase; letter-spacing: .04em;
}
.hx-exp-discounts {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed #e6def9;
}
.hx-exp-disc-label {
    font-size: 11px; font-weight: 600; color: #7700FF;
    text-transform: uppercase; letter-spacing: .04em;
    margin-right: 2px;
}
.hx-exp-disc-chip {
    display: inline-flex; align-items: center;
    padding: 4px 11px; border-radius: 999px;
    background: #f0eaff; color: #5a2fd0;
    font-size: 12px; font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- view-only showcase on the property single page ---- */
.homestay-experiences-showcase { margin: 8px 0 0; }
/* "from USD 30 / person" — a refined violet pill instead of raw bold text, so the
   from-price reads as an intentional badge (Chiran 2026-07-06). */
.homestay-experiences-showcase .hx-exp-price {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #f4eeff;
    color: #7700FF;
    font-size: 12.5px; font-weight: 700;
    letter-spacing: .01em; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
