/* ============================================================================
   Digitour — hotel-ui.css
   ONE shared visual system for every live hotel-search destination
   (Maldives, Egypt / Sharm El Sheikh, UAE, Qatar): results header, toolbar,
   progress strip, card grid + hotel card, price block, chips/badges, filter
   sidebar polish, pagination, empty / error / note states, skeletons, the
   rooms/offers modal shell and the offer rows used both in the modal and on
   the hotel pages.

   Everything is prefixed hu- so it can never collide with a page's own rules.
   Only the shared tokens from base.css are used (--g*, --gold*, --line*,
   --sand, --ivory, --ink, --muted, --r-*, --sh-*, --serif ...).

   Spacing rhythm (never deviate — it is what keeps the four destinations
   identical):  card body padding 18px (16px on phones) · 8px between a card's
   text lines · 14px above the price block · 16px grid gap (20px on desktop) ·
   offer rows: 16px inner padding, 12px between rows.
   ========================================================================== */

/* ── Results header (title + search summary chips) ───────────────────────── */
.hu-head { margin-bottom: 22px; }
.hu-head .t-h2 { margin: 4px 0 0; }
.hu-head__lead { margin-top: 8px; max-width: 62ch; color: var(--muted); }
.hu-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.hu-summary__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--g50); border: 1px solid var(--g100); color: var(--g800);
  font-size: .8125rem; font-weight: 600; line-height: 1.3;
}
.hu-summary__chip .i { color: var(--g600); flex-shrink: 0; }
.hu-summary__clear {
  display: inline-flex; align-items: center; min-height: 32px; margin-left: 4px;
  font-size: .8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.hu-summary__clear:hover { color: var(--g700); }
.hu-notice { margin: 0 0 20px; }

/* ── Layout: filters + results ───────────────────────────────────────────── */
.hu-main { min-width: 0; }
.hu-results { scroll-margin-top: calc(var(--header-h) + 84px); }
.hu-grid { scroll-margin-top: calc(var(--header-h) + 84px); }

/* ── Toolbar: count + sort ───────────────────────────────────────────────── */
.hu-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.hu-toolbar .mdresults__count, .hu-count { margin: 0; font-size: .875rem; color: var(--muted); }
.hu-count strong, .hu-toolbar .mdresults__count strong { color: var(--g900); font-weight: 700; }
.hu-sort { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.hu-sort .select--sm { min-width: 176px; }
@media (max-width: 599px) {
  .hu-toolbar .hu-sort { width: 100%; justify-content: space-between; }
  .hu-toolbar .hu-sort .select--sm { flex: 1; min-width: 0; }
}

/* ── Progress / status strip (live prices arriving) ──────────────────────── */
.hu-status {
  margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--g50); border: 1px solid var(--g100); color: var(--g800);
  font-size: .8125rem; line-height: 1.4;
}
.hu-status[hidden] { display: none; }
.hu-status.is-busy { background: var(--ivory); border-color: var(--gold-soft); color: var(--ink); }
.hu-strip__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hu-strip__label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hu-strip__label .i { flex-shrink: 0; color: var(--g600); }
.hu-status.is-busy .hu-strip__label .i { color: var(--gold-dark); }
.hu-strip__label b { font-weight: 700; }
.hu-strip__bar { flex: 1 1 120px; min-width: 90px; height: 4px; border-radius: 999px; background: rgba(15,81,56,.14); overflow: hidden; }
.hu-strip__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--g600), var(--gold)); transition: width .6s var(--ease); }
.hu-strip__link { flex-shrink: 0; min-height: 32px; display: inline-flex; align-items: center; padding: 0 2px; font-size: .75rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hu-strip__link:hover { color: var(--g700); }
.hu-strip__link--strong { color: var(--g700); font-weight: 700; }
.hu-strip__new { flex: 1 1 100%; text-align: left; padding: 2px 0 0; font-size: .75rem; font-weight: 700; color: var(--g700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) { .hu-strip__label { flex: 1 1 100%; } }

/* ── Card grid ───────────────────────────────────────────────────────────── */
.hu-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.hu-grid[hidden] { display: none; }
@media (min-width: 620px)  { .hu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
/* A standalone rail (similar hotels, popular hotels) is not beside a sidebar,
   so it can afford one more column on wide screens. */
.hu-grid--rail > * { min-width: 0; }
@media (min-width: 1024px) { .hu-grid--rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .hu-grid--rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Hotel card ──────────────────────────────────────────────────────────── */
.hu-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-2) ease, transform var(--dur-2) var(--ease), opacity var(--dur-2) ease;
}
.hu-card[hidden] { display: none; }
.hu-card:hover { border-color: var(--g600); box-shadow: var(--sh-2); transform: translateY(-2px); }

/* Photo — the image never carries its own border: the card's overflow:hidden
   clips it to the card radius, so image and border always agree. */
.hu-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--g700), var(--g500));
}
.hu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter var(--dur-2) ease; }
.hu-card:hover .hu-media img { transform: scale(1.04); }
.hu-media:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.hu-media--fb { --hu-a: #0a2e20; --hu-b: #146b4b; background: linear-gradient(135deg, var(--hu-a), var(--hu-b)); }
.hu-media--fb[data-tone="1"] { --hu-a: #0d3327; --hu-b: #1b855d; }
.hu-media--fb[data-tone="2"] { --hu-a: #0c2b3b; --hu-b: #1c6a75; }
.hu-media--fb[data-tone="3"] { --hu-a: #3a1220; --hu-b: #7c2c44; }
.hu-media--fb[data-tone="4"] { --hu-a: #4a3810; --hu-b: #a8871c; }
.hu-media--fb[data-tone="5"] { --hu-a: #14233f; --hu-b: #2f5185; }
.hu-media__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.72); }
.hu-media__mono { font-family: var(--serif); font-size: 3.5rem; font-weight: 700; color: rgba(255,255,255,.4); line-height: 1; }
.hu-media__count {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; background: rgba(10,46,32,.72); color: #fff;
  font-size: .6875rem; font-weight: 700; backdrop-filter: blur(4px);
}
.hu-media__badge {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--g800); box-shadow: var(--sh-1);
  font-size: .6875rem; font-weight: 700;
}

.hu-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px; }
@media (max-width: 479px) { .hu-card__body { padding: 16px; } }
.hu-card__loc { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; font-size: .75rem; font-weight: 600; color: var(--g600); min-width: 0; }
.hu-card__loc .i { flex-shrink: 0; }
.hu-card__loc > span:not(.hu-card__stars) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hu-card__stars { flex-shrink: 0; margin-left: 4px; color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.hu-card__name { margin: 0 0 10px; font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; line-height: 1.32; }
.hu-card__name a, .hu-card__name button {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 0; text-align: left; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
}
.hu-card__name a:hover, .hu-card__name button:hover { color: var(--g700); text-decoration: underline; }
.hu-card__excerpt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0 0 14px; font-size: .8125rem; line-height: 1.55; color: var(--muted);
}
.hu-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.hu-card__amen { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .75rem; color: var(--muted); }
.hu-card__amen li { display: inline-flex; align-items: center; gap: 5px; }
.hu-card__amen .i, .hu-card__amen .qi { color: var(--g600); flex-shrink: 0; }

/* Price + CTA block: always pinned to the bottom so cards in a row line up. */
.hu-card__buy { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.hu-card__buy.is-fresh { animation: hu-in .4s var(--ease); }
.hu-card__cta { width: 100%; margin-top: 8px; justify-content: center; }
.hu-card__cta.is-wait { cursor: default; opacity: .75; pointer-events: none; }
.hu-card__nodates { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px; font-size: .8125rem; line-height: 1.45; font-weight: 600; color: var(--g700); }
.hu-card__nodates .i { color: var(--g600); flex-shrink: 0; margin-top: 2px; }
.hu-card__na, .hu-card__err { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .8125rem; line-height: 1.45; font-weight: 600; }
.hu-card__na { color: var(--muted); }
.hu-card__err { color: var(--danger); }
.hu-card__na .i, .hu-card__err .i { flex-shrink: 0; margin-top: 1px; }
@keyframes hu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Sold out / unavailable: clearly muted, still readable and clickable. */
.hu-card[data-state="unavailable"] { background: var(--ivory); }
.hu-card[data-state="unavailable"] .hu-media img { filter: grayscale(1) brightness(.92); opacity: .72; }
.hu-card[data-state="unavailable"] .hu-card__name a,
.hu-card[data-state="unavailable"] .hu-card__loc { color: var(--muted); }
.hu-card[data-state="unavailable"]:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ── Price block ─────────────────────────────────────────────────────────── */
.hu-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.hu-price__from { font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hu-price__amt { font-family: var(--serif); font-size: 1.625rem; font-weight: 700; line-height: 1.1; color: var(--g900); white-space: nowrap; }
.hu-price .price-amd { margin: 0; font-size: .75rem; font-weight: 600; color: var(--g600); white-space: nowrap; }
.hu-price__note { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.hu-price__note b { color: var(--ink); font-weight: 600; }
.hu-price__amt.has-flight { color: var(--g700); }
.hu-card.is-request .hu-price__amt { color: var(--ink); }

/* ── Badges + chips ──────────────────────────────────────────────────────── */
.hu-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; line-height: 1.35; letter-spacing: .01em;
  background: var(--sand); color: var(--ink); max-width: 100%;
}
.hu-badge .i { flex-shrink: 0; }
.hu-badge--board { background: var(--g100); color: var(--g800); }
.hu-badge--ok    { background: #e3f3ea; color: var(--g700); }
.hu-badge--muted { background: var(--sand); color: var(--muted); }
.hu-badge--info  { background: #eaf1f7; color: #2c5877; }
.hu-badge--warn  { background: #fdf1d6; color: #7a5a00; }

/* Selectable pill (emirate tabs, meal-plan filter, room-modal filters). */
.hu-tabs { display: flex; gap: 8px; margin: 0 0 24px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hu-tabs::-webkit-scrollbar { display: none; }
.hu-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: .8125rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.hu-tab span { font-size: .6875rem; font-weight: 700; color: var(--muted); background: var(--sand); border-radius: 999px; padding: 2px 8px; }
.hu-tab:hover { border-color: var(--g600); color: var(--g700); }
.hu-tab.is-active { background: var(--g700); border-color: var(--g700); color: #fff; }
.hu-tab.is-active span { background: rgba(255,255,255,.18); color: #fff; }

.hu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hu-chip { position: relative; cursor: pointer; }
.hu-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hu-chip__face {
  display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: .75rem; font-weight: 600; color: var(--muted); line-height: 1;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.hu-chip__face .i { width: 0; opacity: 0; transition: width var(--dur-1) ease, opacity var(--dur-1) ease; }
.hu-chip:hover .hu-chip__face { border-color: var(--g600); color: var(--g700); }
.hu-chip input:checked + .hu-chip__face { background: var(--g700); border-color: var(--g700); color: #fff; }
.hu-chip input:checked + .hu-chip__face .i { width: 12px; opacity: 1; }
.hu-chip input:focus-visible + .hu-chip__face { outline: 2px solid var(--g600); outline-offset: 2px; }
.hu-pill {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: .75rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.hu-pill:hover { border-color: var(--g600); color: var(--g700); }
.hu-pill.is-on { background: var(--g700); border-color: var(--g700); color: #fff; }

/* ── Filter sidebar polish (shared .filters / .check components) ─────────── */
/* The compact sticky search bar sits under the header (~64px), so the sticky
   sidebar must clear header + bar, and scroll on its own when taller than
   the viewport instead of being clipped. */
@media (min-width: 1024px) {
  .results__layout .filters { top: calc(var(--header-h) + 80px); }
  /* Never an inner scrollbar: hotel-ui.js drops sticky when the sidebar is taller than the viewport,
     so it scrolls with the page instead. */
  .results__layout .filters.is-static { position: static; }
}
.results__layout .filters { padding: 18px; overflow: visible; }
.results__layout .filters__head { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.results__layout .filters__group { margin: 0 0 16px; }
.results__layout .filters__group:last-of-type { margin-bottom: 0; }
.results__layout .filters__legend { padding: 0 0 10px; }
.results__layout .filters__reset { display: inline-flex; align-items: center; min-height: 32px; }
.results__layout .filters .check { min-height: 44px; }
.results__layout .filters .check__label { white-space: nowrap; }
.results__layout .filters__hint { margin-top: 10px; }
.results__layout .filters .input, .results__layout .filters .select { font-size: .875rem; }
.filters__hint--box { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: var(--g50); border-radius: var(--r-md); margin-top: 0; }
.filters__hint--box .i { flex-shrink: 0; margin-top: 2px; color: var(--g600); }
.filters__price { align-items: flex-end; }
.filters__pricesep { padding-bottom: 12px; color: var(--muted); }
.filters__toggle { min-height: 48px; }
.hu-filters-toggle-gap { margin-bottom: 12px; }

/* ── Pagination (numbered, shared by all four) ───────────────────────────── */
.pagination { margin-top: 32px; padding-top: 20px; }
@media (max-width: 560px) {
  .pagination__link, .pagination__ellipsis { min-width: 44px; height: 44px; }
}

/* ── Empty / error / note states ─────────────────────────────────────────── */
.hu-empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--ivory); }
.hu-empty[hidden] { display: none; }
.hu-empty .i { color: var(--g600); margin: 0 auto 10px; }
.hu-empty .t-body, .hu-empty p { max-width: 46ch; margin: 0 auto 16px; color: var(--muted); }
.hu-empty--live { border-style: solid; }
.hu-note { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); }
.hu-note .i { flex-shrink: 0; margin-top: 2px; color: var(--g600); }
.hu-note p { margin: 0 0 12px; font-size: .9375rem; line-height: 1.55; }
.hu-note p:last-child { margin-bottom: 0; }
.hu-note--err .i { color: var(--danger); }
.hu-note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hu-loading { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--gold-soft); }
.hu-loading .i { flex-shrink: 0; color: var(--gold-dark); margin-top: 2px; }
.hu-loading p { margin: 0; font-size: .875rem; line-height: 1.5; }
.hu-loading small { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }

/* ── Skeleton ────────────────────────────────────────────────────────────── */
.hu-skel { display: grid; gap: 8px; padding: 2px 0 4px; }
.hu-skel__line {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--sand) 25%, #f8f5ee 50%, var(--sand) 75%);
  background-size: 200% 100%; animation: hu-shimmer 1.4s linear infinite;
}
.hu-skel__line--sm { width: 34%; height: 10px; }
.hu-skel__line--lg { width: 58%; height: 24px; border-radius: 8px; }
.hu-skel__line--md { width: 82%; }
.hu-card--skel { pointer-events: none; }
.hu-card--skel:hover { transform: none; box-shadow: none; border-color: var(--line); }
@keyframes hu-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .hu-skel__line { animation: none; } .hu-card__buy.is-fresh { animation: none; } .hu-card, .hu-media img { transition: none; } .hu-card:hover { transform: none; } }

/* ── Rooms / offers modal shell ──────────────────────────────────────────── */
.hu-modal .modal__box { max-width: 720px; padding: 26px 20px 22px; }
@media (min-width: 640px) { .hu-modal .modal__box { padding: 32px 32px 26px; } }
.hu-modal .modal__close { z-index: 3; width: 40px; height: 40px; background: rgba(255,255,255,.94); box-shadow: var(--sh-2); }
.hu-modal .modal__close:hover { background: #fff; }
.hu-modal__gallery { margin-bottom: 18px; }
.hu-modal__gallery .carousel__slide { aspect-ratio: 16 / 9; }
.hu-modal__gallery .carousel__maximize { top: auto; bottom: 12px; right: 12px; }
.hu-modal__head { display: flex; align-items: center; gap: 14px; padding-right: 44px; margin-bottom: 18px; }
.hu-modal__thumb { flex-shrink: 0; width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.hu-modal__thumb[hidden] { display: none; }
.hu-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hu-modal__title { margin: 0 0 4px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.hu-modal__sub { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.hu-modal__bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.hu-modal__bar[hidden] { display: none; }
.hu-modal__foot { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font-size: .75rem; line-height: 1.55; color: var(--muted); }
.hu-modal__foot .i { flex-shrink: 0; margin-top: 2px; color: var(--g600); }
.hu-modal__note { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--g50); color: var(--muted); font-size: .75rem; line-height: 1.5; }
.hu-modal__empty { padding: 24px 0; text-align: center; color: var(--muted); font-size: .875rem; }
.hu-modal__empty .i { vertical-align: -3px; margin-right: 6px; }

/* ── Offers: one bordered, padded card per room/rate ─────────────────────── */
/* Used identically in the rooms modal and on the hotel pages. The border sits
   on the .hu-offer box and ALL content is inside 16px of padding — nothing
   ever touches the border. */
.hu-offers { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.hu-modal .hu-offers { margin-top: 0; }
.hu-offer {
  display: grid; gap: 14px; min-width: 0; padding: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.hu-offer:hover { border-color: var(--g600); box-shadow: var(--sh-1); }
.hu-offer > * { min-width: 0; }
.hu-offer__info { display: flex; flex-direction: column; gap: 8px; }
.hu-offer__title { margin: 0; font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.hu-offer__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; align-content: flex-start; }
.hu-offer__meta { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.hu-offer__rate { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--ink); }
.hu-offer__flights { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; font-size: .75rem; color: var(--muted); }
.hu-offer__flight { display: inline-flex; align-items: center; gap: 6px; }
.hu-offer__flight .i { color: var(--g500); flex-shrink: 0; }
.hu-offer__flight--return .i { transform: scaleX(-1); }
.hu-offer__flight b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.hu-offer__buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hu-offer__price { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.25; flex: 1 1 0; min-width: 132px; }
.hu-offer__price strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--g900); white-space: nowrap; }
.hu-offer__price .price-amd { display: block; margin: 0; font-size: .75rem; font-weight: 600; color: var(--g600); white-space: nowrap; }
.hu-offer__price small { font-size: .6875rem; color: var(--muted); white-space: normal; }
.hu-offer__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hu-offer__buy .btn { flex-shrink: 0; min-width: 112px; justify-content: center; }
/* Second price on the same room (late check-out): its own inset row. */
.hu-offer__alt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 14px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--ivory); border: 1px dashed var(--gold-soft);
}
.hu-offer__alt-label { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--gold-dark); }
.hu-offer__alt-label .i { flex-shrink: 0; }
.hu-offer__alt .hu-offer__price strong { font-size: 1.125rem; color: var(--ink); }
@media (max-width: 479px) {
  .hu-offer__alt .hu-offer__buy { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .hu-offer__alt .hu-offer__buy .btn { width: 100%; }
}
@media (min-width: 640px) {
  .hu-offer--wide {
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  }
  .hu-offer--wide .hu-offer__buy { flex-direction: row; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: nowrap; }
  .hu-offer--wide .hu-offer__price { align-items: flex-end; text-align: right; flex: 0 1 auto; }
  .hu-offer--wide .hu-offer__alt { grid-column: 1 / -1; }
}
.hu-offer--request .hu-offer__price strong { color: var(--ink); }

/* Room group (UAE / Qatar style: one room, several rates). Rates are
   .hu-offer boxes stacked inside; the group only adds a heading. */
.hu-room { padding: 0 0 20px; }
.hu-room:last-child { padding-bottom: 0; }
.hu-room__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.hu-room__name { margin: 0; font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.hu-room__from { flex-shrink: 0; font-size: .75rem; color: var(--muted); }
.hu-room__from b { color: var(--g700); font-weight: 700; }

/* ── Booking summary (inside the booking modal) ──────────────────────────── */
.hu-booksum { margin: 10px 0 20px; padding: 16px; border-radius: var(--r-md); background: var(--g50); border: 1px solid var(--g100); }
.hu-booksum__rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.hu-booksum__rows li { display: flex; gap: 9px; align-items: flex-start; font-size: .8125rem; line-height: 1.45; color: var(--ink); }
.hu-booksum__rows li:first-child { font-weight: 700; font-family: var(--serif); font-size: .9375rem; }
.hu-booksum__rows .i { flex-shrink: 0; margin-top: 2px; color: var(--g600); }
.hu-booksum__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--g100); }
.hu-booksum__total span { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.hu-booksum__total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--g900); }
.hu-booksum__total em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--g600); }

/* ── Hotel page: rooms section header ────────────────────────────────────── */
.hu-rooms__lead { margin: 6px 0 0; max-width: 68ch; color: var(--muted); }
.hu-rooms__fine { margin: 10px 0 0; font-size: .75rem; line-height: 1.55; color: var(--muted); max-width: 68ch; }

/* ── Additions folded in from the UAE / Qatar migrations ─────────────────── */
.hu-card__tags[hidden] { display: none; }                       /* tags row exists in the DOM before live data lands */
.hu-card__nodates[role="button"] { cursor: pointer; }
.hu-card__nodates[role="button"]:hover { text-decoration: underline; text-underline-offset: 3px; }
/* hotel has rooms, just none on the selected meal plan: muted, not "sold out" */
.hu-card[data-state="boardmiss"] { background: var(--ivory); }
.hu-card[data-state="boardmiss"] .hu-media img { filter: grayscale(.55); opacity: .85; }
.hu-card[data-state="boardmiss"] .hu-card__loc,
.hu-card[data-state="boardmiss"] .hu-card__name a { color: var(--muted); }
.hu-badge--req { background: #ece8f6; color: #4b3d7a; }         /* rate only a consultant can confirm */
.hu-room .hu-offers { margin-top: 0; }                            /* the room head already sits 10px above its offers */
.hu-chip__face em { font-style: normal; font-size: .6875rem; font-weight: 700; opacity: .75; }   /* count inside a chip */
.hu-card--skel .hu-media .hu-skel__line { height: 100%; border-radius: 0; }
.hu-note .btn .i { color: currentColor; margin-top: 0; }         /* icons in a note's buttons keep the button colour */
/* 44px tap targets on phones */
@media (max-width: 599px) {
  .hu-pill, .hu-chip__face, .hu-status .hu-strip__link { min-height: 44px; }
}

/* Checkbox tick for every sidebar .check (Qatar draws its own inline SVG, so
   only the empty boxes get this): currentColor is transparent until checked. */
.check__box:empty::after {
  content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── AMD (֏) is the first-class price ─────────────────────────────────────────
   Armenian customers think in dram, so wherever a USD price is shown next to
   its dram equivalent (rate from CompanySetting::usd_to_amd_rate, hooks
   [data-price-amd] / [data-usd]) the dram figure leads: same serif, bold, big;
   the dollar figure follows as the secondary reference. Markup is unchanged
   (USD element first, .price-amd after) — flex `order` does the swap, so the
   client-side updaters (extras ticked, flight added, loan toggle) keep working.
   With no rate configured there is no .price-amd, and USD keeps the big style. */
.hu-price .price-amd, .hu-offer__price .price-amd, .pricebox__amount .price-amd, .hu-booksum__total .hu-booksum__amd {
  font-family: var(--serif); font-weight: 700; color: var(--g900); margin: 0; white-space: nowrap; line-height: 1.1; opacity: 1;
}
.hu-price .price-amd:not([hidden]) { order: 1; font-size: 1.75rem; }
.hu-price:has(.price-amd:not([hidden])) .hu-price__amt { order: 2; font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--muted); }
.hu-price:has(.has-flight) .price-amd::after { content: " ✈"; font-size: .6em; vertical-align: middle; color: var(--g700); }
.hu-price .hu-price__amt.has-flight::after { content: none; }

.hu-offer__price { flex-wrap: nowrap; }
.hu-offer__price .price-amd:not([hidden]) { order: -1; display: block; font-size: 1.5rem; }
.hu-offer__price:has(.price-amd:not([hidden])) strong { order: 0; font-family: var(--sans); font-size: .9375rem; font-weight: 700; color: var(--muted); }
.hu-offer__price small { order: 1; }
.hu-offer__alt .hu-offer__price .price-amd:not([hidden]) { font-size: 1.25rem; color: var(--ink); }
.hu-offer__alt .hu-offer__price:has(.price-amd:not([hidden])) strong { font-size: .875rem; color: var(--muted); }
.hu-offer--wide .hu-offer__price .price-amd:not([hidden]) { text-align: right; }

/* booking summary total: dram first */
.hu-booksum__total:has(em:not(:empty)) em { order: 1; font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 1.5rem; color: var(--g900); }
.hu-booksum__total:has(em:not(:empty)) strong { order: 2; font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--muted); }

/* hotel-page price box (on dark) */
.pricebox__amount { flex-wrap: wrap; }
.pricebox__amount .price-amd:not([hidden]) { order: -1; display: inline-block; font-family: var(--serif); font-size: 2.125rem; font-weight: 700; color: var(--gold); line-height: 1; }
.pricebox__amount:has(.price-amd:not([hidden])) strong { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; color: var(--on-dark); }

/* destinations index, Maldives hero stats, homepage destination cards */
.pricedual { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.pricedual .price-amd { font-family: var(--serif); font-weight: 700; font-size: 1.1875rem; color: var(--g900); margin: 0; }
.pricedual__usd { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.phero__stats .phero__price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.phero__stats .phero__price .price-amd { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--gold); margin: 0; }
.phero__stats .phero__price b { font-family: var(--sans); font-size: .9375rem; color: var(--on-dark); margin: 0; }
.destcard__price { display: flex; }
.destcard__price .price-amd { order: 1; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--gold); margin: 0; }
.destcard__price:has(.price-amd) b { order: 2; font-family: var(--sans); font-size: .9375rem; color: var(--on-dark); }
.destcard__price:has(.price-amd) > span:last-child { order: 3; flex-basis: 100%; }


/* ── Filter sidebar: compact, never scrolls ──────────────────────────────── */
@media (min-width: 1024px) {
  .results__layout .filters .check { min-height: 40px; padding: 5px 6px; }
}
.results__layout .filters__opts { gap: 0; }
/* collapsible groups (accordion) */
.filters__group[data-collapsible] > .filters__legend {
  display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer;
  min-height: 32px; border-radius: var(--r-sm); user-select: none;
}
.filters__group[data-collapsible] > .filters__legend::after {
  content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-1) ease;
}
.filters__group[data-collapsible].is-collapsed > .filters__legend::after { transform: rotate(-45deg); }
.filters__group[data-collapsible] > .filters__legend:hover { color: var(--g700); }
.filters__group[data-collapsible] > .filters__legend:focus-visible { outline: 2px solid var(--g600); outline-offset: 2px; }
.filters__group.is-collapsed > :not(legend) { display: none; }
.filters__group.is-collapsed > .filters__legend { padding-bottom: 0; }
/* "first N + Show all" lists */
.filters__opts.is-clipped > .check.is-extra:not(:has(input:checked)) { display: none; }
.filters__more {
  display: inline-flex; align-items: center; min-height: 36px; margin: 4px 0 0 6px; padding: 0;
  font-size: .8125rem; font-weight: 600; color: var(--g700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.filters__more[hidden] { display: none; }
.filters__more:hover { color: var(--g600); }
@media (max-width: 1023px) { .filters__more { min-height: 44px; } }
.filters__group.is-collapsed { margin-bottom: 10px; }
/* AMD money fields */
.filters__pricefield .input[data-money] { font-variant-numeric: tabular-nums; }
.filters__pricehint { margin: 8px 0 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.filters__pricehint b { color: var(--ink); font-weight: 600; white-space: nowrap; }


/* ── Extras / supplements on result cards (New Year gala dinner, mandatory supplements, offers) ── */
.hu-card__extras { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.hu-card__extras[hidden] { display: none; }
.hu-badge--extra { align-items: flex-start; gap: 8px; padding: 7px 11px; border-radius: var(--r-md); font-weight: 600; font-size: .75rem; line-height: 1.4; white-space: normal; letter-spacing: 0; }
.hu-badge--extra .i { margin-top: 1px; }
.hu-badge--extra > span { min-width: 0; overflow-wrap: anywhere; }
.hu-badge--more { justify-self: start; cursor: help; }

/* Meal-plan chips inside the sidebar: two per row so five plans don't stack into a tall column */
.results__layout .filters .hu-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.results__layout .filters .hu-chip__face { width: 100%; justify-content: center; min-height: 40px; padding: 0 8px; gap: 4px; font-size: .75rem; text-align: center; line-height: 1.15; }
.results__layout .filters .hu-chip__face em { margin-left: 2px; }
@media (max-width: 1023px) { .results__layout .filters .hu-chip__face { min-height: 44px; } }
.results__layout .filters .filters__pricefield .input { padding: 8px 8px; }
.results__layout .filters .filters__price { gap: 8px; }
.results__layout .filters .hu-chips > .hu-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
