/* ============================================================================
   Digitour — qatar.css
   Qatar package tours (flight + hotel + insurance): landing page, live results,
   options modal, booking modal and the hotel page.

   The results UI (header, toolbar, cards, price block, chips/badges, filter
   sidebar polish, pagination, empty/error/loading states, skeleton, rooms
   modal shell, offer rows, booking summary) is the shared system in
   hotel-ui.css (classes hu-*). This file holds ONLY what is unique to Qatar:
   amenity icon sprites (.qi), the hero, calendar/search hooks, the flight
   panel, the "nearby dates" suggestions and the hotel-page layout. Every class
   of its own is prefixed qt- (icons: qi).
   ========================================================================== */

/* ── Small icons (amenities, baggage) ────────────────────────────────────── */
.qi { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.qi--lg { width: 22px; height: 22px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.qt-hero__incl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  margin: 4px 2px 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--on-dark-2);
}
.qt-hero__incl li { display: inline-flex; align-items: center; gap: 7px; }
.qt-hero__incl .i, .qt-hero__incl .qi { color: var(--gold); }
.qt-page .phero--dest .phero__bg img { object-position: center 60%; }

/* ── Results shell ───────────────────────────────────────────────────────── */
[data-qt-layout][hidden] { display: none; }
[data-qt-filters] [hidden] { display: none; }
.qt-state:empty { display: none; }
.qt-state { margin-bottom: 20px; }
.qt-state .hu-loading { margin-bottom: 20px; }
.qt-loading__text, .qt-note__body { flex: 1; min-width: 0; }
.hu-loading .hu-strip__bar { margin-top: 12px; }
.hu-status .hu-strip__link { margin-left: auto; }
.hu-status .hu-strip__label { flex: 1 1 240px; }
.qt-checklabel { display: inline-flex; align-items: center; gap: 7px; }
.qt-checklabel .qi { color: var(--g600); }

/* "Try nearby dates" suggestions inside the empty-result note */
.qt-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qt-suggest__loading { font-size: .8125rem; color: var(--muted); }
.qt-suggest__chip {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-md);
  background: var(--white); border: 1.5px solid var(--g600); color: var(--g800); text-decoration: none;
  font-size: .8125rem; font-weight: 700; line-height: 1.3; transition: background-color var(--dur-1) ease;
}
.qt-suggest__chip small { font-weight: 500; color: var(--muted); font-size: .6875rem; }
.qt-suggest__chip:hover { background: var(--g50); }

/* flight panel */
.qt-flight { margin: 0 0 12px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--g50); border: 1px solid var(--g100); }
.qt-flight__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--serif); font-size: .9375rem; font-weight: 600; color: var(--g800); }
.qt-flight__title .i { color: var(--g600); }
.qt-flight__legs { display: grid; gap: 4px; }
@media (min-width: 640px) { .qt-flight__legs { grid-template-columns: 1fr 1fr; gap: 22px; } }
.qt-leg { padding: 6px 0; min-width: 0; }
.qt-leg__label { margin: 0 0 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
.qt-leg__row { display: flex; align-items: center; gap: 10px; }
.qt-leg__pt { display: flex; flex-direction: column; min-width: 44px; line-height: 1.2; }
.qt-leg__pt b { font-family: var(--serif); font-size: 1.25rem; color: var(--g900); }
.qt-leg__pt span { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.qt-leg__pt--r { text-align: right; align-items: flex-end; }
.qt-leg__mid { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.qt-leg__dur { font-size: .6875rem; color: var(--muted); }
.qt-leg__line { position: relative; width: 100%; height: 14px; display: flex; align-items: center; justify-content: center; color: var(--g600); }
.qt-leg__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--g500); opacity: .55; }
.qt-leg__line .i { position: relative; background: var(--g50); padding: 0 4px; width: 26px; height: 14px; transform: rotate(0); }
.qt-leg__no { font-size: .6875rem; font-weight: 700; color: var(--g800); white-space: nowrap; }
.qt-leg__meta { margin: 4px 0 0; font-size: .6875rem; line-height: 1.45; color: var(--muted); }
.qt-flight__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--g100); }

.hu-room__head .hu-offer__meta { margin-top: 3px; }
.qt-rooms__more { margin-top: 14px; }
.qt-rooms__more[hidden] { display: none; }
.qt-book__fine { margin: 12px 0 0; font-size: .75rem; color: var(--muted); text-align: center; line-height: 1.5; }
#qt-book-form .btn--block { margin-top: 18px; }

/* ── Landing content ─────────────────────────────────────────────────────── */
.qt-lead { margin-top: 10px; max-width: 62ch; color: var(--muted); }
.qt-tiles { display: grid; gap: 16px; }
@media (min-width: 620px) { .qt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .qt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.qt-tile { padding: 24px; border-radius: var(--r-lg); background: var(--ivory); border: 1px solid var(--line-soft); }
.qt-tile__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px;
  background: var(--g700); color: var(--gold);
}
.qt-tile h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.qt-tile p { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.qt-dgrid { display: grid; gap: 14px; }
@media (min-width: 620px)  { .qt-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .qt-dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.qt-dcard { position: relative; padding: 22px 22px 22px 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.qt-dcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--g600)); }
.qt-dcard__count { margin: 0 0 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); }
.qt-dcard h3 { margin: 0 0 6px; font-size: 1.125rem; }
.qt-dcard p:last-child { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* ── Hotel page ──────────────────────────────────────────────────────────── */
.qt-hotelhero { background-image: radial-gradient(circle at 85% 0%, rgba(201,162,39,.18), transparent 50%); }
.qt-hotelhero__sub { margin: 12px 0 0; max-width: 58ch; color: var(--g100); font-size: .9375rem; line-height: 1.55; }
.qt-hotelhero__sub a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; white-space: nowrap; }
.qt-hotelhero__sub a:hover { color: var(--gold); }
.qt-hero-price { min-height: 84px; }
.qt-hero-price__skel { display: block; height: 30px; width: 110px; 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: qt-shimmer 1.4s linear infinite; }
.qt-gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qt-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; }
.qt-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.qt-gallery__item:hover img { transform: scale(1.04); }
.qt-gallery__item--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.qt-gallery__item--sm { display: none; }
.qt-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) {
  .qt-gallery { grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 480px; }
  .qt-gallery__item { aspect-ratio: auto; }
  .qt-gallery__item--lead { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .qt-gallery__item--sm { display: block; }
}
.qt-panel { scroll-margin-top: calc(var(--header-h) + 16px); }
.qt-datesbox { margin: 0 0 22px; padding: 18px; border-radius: var(--r-lg); background: var(--g50); border: 1px solid var(--g100); }
.qt-datesbox .t-small { margin: 0 0 12px; color: var(--g800); font-weight: 600; }
.qt-datesbox .search { gap: 10px; }
.qt-dest-hidden { display: none !important; }
#qt-inline .hu-summary { margin: 0 0 14px; }
.qt-about { display: grid; gap: 12px; }
.qt-about p { margin: 0; font-size: .9375rem; line-height: 1.75; color: var(--ink); }
.qt-facilities { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.qt-facilities li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sand); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.qt-facilities .qi, .qt-facilities .i { color: var(--g600); }
.qt-loc { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.qt-loc p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.qt-loc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.qt-help .bookcard__sub { margin-bottom: 14px; }
.qt-help .btn + .btn { margin-top: 10px; }

/* the night skyline is busy behind the headline — a little extra scrim keeps the copy readable */
.qt-page .phero--dest .scrim { background: linear-gradient(180deg, rgba(3,12,10,.72) 0%, rgba(3,12,10,.42) 45%, rgba(3,12,10,.62) 100%); }
@keyframes qt-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .qt-hero-price__skel { animation: none; } }


/* ── Extras (New Year gala dinners / supplements) inside an offer ─────────── */
.qt-extras { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--ivory); border: 1px dashed var(--gold); }
.qt-extras ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qt-extra { display: flex; gap: 9px; align-items: flex-start; font-size: .8125rem; line-height: 1.4; color: var(--ink); }
.qt-extra--inc > .i { color: var(--g600); margin-top: 2px; }
.qt-extra__txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.qt-extra__txt b { font-weight: 700; }
.qt-extra__txt small { flex: 1 1 100%; font-size: .6875rem; color: var(--muted); }
.qt-extra__pill { font-style: normal; padding: 2px 8px; border-radius: 999px; background: #e3f3ea; color: var(--g700); font-size: .6875rem; font-weight: 700; }
.qt-extra__price { font-style: normal; font-weight: 700; color: var(--g700); }
.qt-extra--opt { cursor: pointer; }
.qt-extra--opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qt-extra__box { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 5px; background: var(--white); color: transparent; transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease; }
.qt-extra--opt input:checked ~ .qt-extra__box { background: var(--g700); border-color: var(--g700); color: #fff; }
.qt-extra--opt input:focus-visible ~ .qt-extra__box { outline: 2px solid var(--g600); outline-offset: 2px; }
.qt-extra--opt:hover .qt-extra__box { border-color: var(--g600); }
.qt-extras .hu-offer__meta { margin-top: 8px; }

.hu-offer__incl { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; font-size: .75rem; line-height: 1.45; color: var(--g800); }
.hu-offer__incl .i { flex-shrink: 0; margin-top: 2px; color: var(--g600); }
