/* ============================================================================
   Digitour — uae.css
   ONLY what is genuinely unique to the UAE destination. Everything shared with
   Maldives / Egypt / Qatar (results header, tabs, toolbar, status strip, card
   grid + hotel card, price block, badges, chips, filters, pagination, empty /
   note / loading states, rooms modal shell, room groups + offers, booking
   summary) lives in hotel-ui.css under the hu- prefix.
   ========================================================================== */

/* ── Hero / search widget ────────────────────────────────────────────────── */
/* search.css makes the LAST <label>.search__field span the full row on the
   2-column tablet layout (it was written for date/traveller buttons). The Area
   field is a label too, so keep it in its own column. */
@media (min-width: 600px) and (max-width: 1023px) {
  .search__fields > .uae-areafield:last-of-type { grid-column: auto; }
}
.uae-hero__flights {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 2px 2px 0; font-size: .8125rem; color: var(--on-dark-2);
}
.uae-hero__flights .i { color: var(--gold); flex-shrink: 0; }
.uae-hero__flights a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.uae-hero__flights a:hover { text-decoration-color: var(--gold); color: var(--gold); }
/* Area select: match the height of the button-based fields beside it so the labels line up */
.uae-areafield .search__select { min-height: 20px; font-size: .9375rem; line-height: 1.3; }

/* ── Small hooks on top of the shared system ─────────────────────────────── */
.uae-areaselect { width: 100%; }

/* ── Rooms modal gallery: same carousel parts as the Maldives/Sharm popup,
      plus a thumbnail strip (the whole photo set is fetched on open) ───── */
.uae-gal .carousel__viewport { background: var(--sand); }
.uae-gal .carousel__slide { cursor: zoom-in; }
.uae-gal .carousel__counter { right: auto; left: 12px; bottom: 12px; }
.uae-gal [hidden] { display: none; }
.uae-thumbs { display: none; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scroll-behavior: smooth; position: relative; }
.uae-thumb { flex: 0 0 auto; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); opacity: .7; cursor: pointer; transition: opacity var(--dur-1) ease, border-color var(--dur-1) ease; }
.uae-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uae-thumb:hover { opacity: 1; }
.uae-thumb.is-active { opacity: 1; border-color: var(--g700); }
@media (min-width: 768px) { .uae-thumbs { display: flex; } }

/* ── Booking modal ───────────────────────────────────────────────────────── */
.uae-book__fine { margin: 12px 0 0; font-size: .75rem; color: var(--muted); text-align: center; line-height: 1.5; }
/* breathing room between the last input and the submit button */
#uae-book-form .btn--block { margin-top: 18px; }

/* ── Hotel page ──────────────────────────────────────────────────────────── */
.uae-hotel__addr { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--g100); font-size: .9375rem; line-height: 1.5; max-width: 60ch; }
.uae-hotel__addr .i { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.uae-hotel__addr a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; white-space: nowrap; }
.uae-hotel__addr a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.uae-hero-price { min-height: 84px; }
.uae-hero-price .pricebox__amount { min-height: 40px; }
.uae-hero-price__skel { display: block; height: 30px; width: 60%; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.08) 25%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.08) 75%); background-size: 200% 100%; animation: hu-shimmer 1.4s linear infinite; }

/* photo mosaic */
.uae-gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uae-gallery__item { position: relative; display: block; padding: 0; border: 0; overflow: hidden; border-radius: var(--r-md); background: var(--sand); cursor: zoom-in; aspect-ratio: 4 / 3; }
.uae-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.uae-gallery__item:hover img { transform: scale(1.04); }
.uae-gallery__item--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.uae-gallery__item--sm { display: none; }
.uae-gallery__all {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: var(--sh-2);
  font-size: .8125rem; font-weight: 700; color: var(--ink);
}
@media (min-width: 768px) {
  .uae-gallery { grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 480px; }
  .uae-gallery__item { aspect-ratio: auto; }
  .uae-gallery__item--lead { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .uae-gallery__item--sm { display: block; }
}

.uae-panel { scroll-margin-top: calc(var(--header-h) + 16px); }
.uae-datesbox { margin: 18px 0 22px; padding: 18px; border-radius: var(--r-lg); background: var(--g50); border: 1px solid var(--g100); }
.uae-datesbox .t-small { margin: 0 0 12px; color: var(--g800); font-weight: 600; }
.uae-datesbox .search { gap: 10px; }
.uae-dest-hidden { display: none !important; }
/* live rooms panel: search summary chips, then the meal-plan pills, then the rooms */
.uae-rooms-live__meta { margin: 0 0 14px; }
.uae-rooms-live__pills { margin: 0 0 16px; }
.uae-about { display: grid; gap: 18px; }
.uae-about h3 { margin: 0 0 6px; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); }
.uae-about p { margin: 0; font-size: .9375rem; line-height: 1.7; color: var(--ink); }
.uae-loc { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.uae-loc p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.uae-loc .btn { justify-self: start; margin-top: 12px; }
.uae-help .bookcard__sub { margin-bottom: 14px; }
.uae-help .btn + .btn { margin-top: 10px; }
