/* Gita look: gold primary, sky-blue secondary, SF Arabic, white cards on a light grey page. */
@font-face {
  font-family: "SF Arabic";
  src: url("/fonts/sf-arabic-variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #c19617;
  --primary-dark: #8f6f0e;
  --primary-hover: #775c0b;
  --primary-soft: #fcf6e4;
  --secondary: #28a9e0;
  --secondary-soft: #ecf9fd;
  --ink: #1a1a1a;
  --ink-soft: #374151;
  --page: #f0f2f5;
  --paper: #ffffff;
  --line: #e5e7eb;
  --muted: #6b7280;
  --ok: #16a34a;
  --ok-soft: #ecfdf3;
  --warn: #e11d48;
  --warn-soft: #fff1f2;
  --err: #b42318;
  --err-soft: #fef3f2;
  --star: #f5b400;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .08);
  --font: "SF Arabic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.6; font-size: 16px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* The page content grows so the footer always sits at the bottom of the window. */
body > main { flex: 1 0 auto; width: 100%; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* Header: white bar on inner pages, transparent over the photo on the home page */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; max-width: 1450px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 40px; width: auto; filter: brightness(0); transition: opacity .2s; }
.brand:hover .brand-logo { opacity: .8; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; text-decoration: none; padding-block: 4px; font-weight: 600; font-size: 17px; color: rgba(26, 26, 26, .8); white-space: nowrap; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
[dir="rtl"] .nav a::after { transform-origin: left; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
[dir="rtl"] .nav a:hover::after, [dir="rtl"] .nav a[aria-current="page"]::after { transform-origin: right; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.nav a[aria-current="page"] { color: var(--ink); }
.channel { display: inline-flex; margin-inline-start: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.channel button { border: 0; background: transparent; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-soft); transition: background .2s, color .2s; }
.channel button + button { border-inline-start: 1px solid var(--line); }
.channel button:hover { background: #f9fafb; }
.channel button[aria-pressed="true"] { background: var(--primary-dark); color: #fff; }
.menu-btn { display: none; }

.site-header.over-hero { position: absolute; inset-inline: 0; top: 8px; background: transparent; border-bottom: 0; }
.over-hero .brand-logo { filter: brightness(0) invert(1); }
.over-hero .nav a { color: rgba(255, 255, 255, .82); }
.over-hero .nav a:hover, .over-hero .nav a[aria-current="page"] { color: #fff; }
.over-hero .channel { border-color: transparent; background: rgba(255, 255, 255, .15); }
.over-hero .channel button { color: #fff; }
.over-hero .channel button + button { border-color: rgba(255, 255, 255, .25); }
.over-hero .channel button:hover { background: rgba(255, 255, 255, .25); }
.over-hero .channel button[aria-pressed="true"] { background: #fff; color: var(--primary-dark); }

/* Hero + search */
.hero { position: relative; color: #fff; background: #2457c5 url("/images/hero-burj-khalifa.jpg") center 35%/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 45, .35) 0%, rgba(5, 15, 45, 0) 40%, rgba(5, 15, 45, .25) 100%); }
.hero .wrap { position: relative; padding-block: 150px 96px; }
.hero h1 { display: flex; align-items: flex-end; gap: 4px; font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.hero h1 .dot { width: 10px; height: 10px; border-radius: 50%; background: #facc15; margin-bottom: 9px; flex: none; }

.search-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) auto; align-items: end; gap: 0; }
.search-card > .field { padding: 6px 10px; border-inline-start: 1px solid var(--line); }
.search-card > .field:first-child { border-inline-start: 0; }
.search-card > .btn { margin-inline-start: 8px; align-self: stretch; height: auto; min-height: 48px; }
.search-card .input { border-color: transparent; padding-inline: 6px; height: 40px; font-weight: 600; }
.search-card .input:hover { background: #f9fafb; }
.response-panel { margin-top: 18px; color: var(--ink); text-align: start; }
.response-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.response-head h2 { margin: 0; font-size: 20px; }
.response-panel pre { margin: 14px 0 0; max-height: 320px; overflow: auto; direction: ltr; text-align: start; white-space: pre-wrap; word-break: break-word; background: #f9fafb; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 4px; position: relative; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.input { height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding-inline: 12px; background: var(--paper); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus, .input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
button.input { text-align: start; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars-row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 8px; padding: 10px 14px 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px 12px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--paper); color: var(--ink-soft); transition: all .2s; }
.chip:hover { border-color: var(--primary); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--primary-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: var(--radius-sm); border: 0; background: var(--primary-dark); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.secondary { background: var(--primary-dark); }
.btn.secondary:hover { background: var(--primary-hover); }
.btn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f9fafb; border-color: var(--primary); color: var(--primary-dark); }
.btn.small { height: 40px; padding-inline: 16px; font-size: 14px; }
.btn.danger { background: var(--err); }
.btn.danger:hover { background: #b91c1c; }

.dropdown { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 30; max-height: 320px; overflow: auto; padding: 6px; color: var(--ink); }
.dropdown button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: start; border: 0; background: transparent; padding: 10px; border-radius: var(--radius-sm); cursor: pointer; }
.dropdown button:hover, .dropdown button.active { background: var(--primary-soft); }
.dropdown small { color: var(--muted); display: block; }
.dropdown .empty { padding: 10px; color: var(--muted); font-size: 14px; }
.guests-pop { min-width: 300px; padding: 14px; }
.guest-room { border-bottom: 1px solid var(--line); padding-block: 10px; }
.guest-room:last-of-type { border-bottom: 0; }
.guest-room h4 { margin: 0 0 6px; font-size: 14px; display: flex; justify-content: space-between; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding-block: 4px; font-size: 15px; }
.stepper div { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 700; color: var(--primary); }
.stepper button:hover { border-color: var(--primary); }
.ages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ages select { height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding-inline: 6px; }
.link-btn { border: 0; background: none; color: var(--primary-dark); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }

.trust { display: flex; gap: 28px; margin-top: 18px; font-size: 14px; color: #fff; flex-wrap: wrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.trust span { display: inline-flex; gap: 8px; align-items: center; }

/* Results: white sheet with rounded top over the hero, like the new hotels page */
main { padding-block: 32px 64px; }
.hero + main { position: relative; background: var(--paper); border-radius: 32px 32px 0 0; margin-top: -40px; max-width: none; padding-inline: max(20px, calc((100% - 1160px) / 2)); }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.results-head h2 { font-weight: 700; font-size: 26px; margin: 0; }
.results-head p { margin: 0; color: var(--muted); }
.results-head select { height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); padding-inline: 10px; background: var(--paper); }

.hotel { display: grid; grid-template-columns: minmax(200px, 35%) 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; transition: box-shadow .2s, border-color .2s; }
.hotel:hover { box-shadow: var(--shadow); }
.hotel-img { position: relative; overflow: hidden; min-height: 240px; height: 100%; background: #e5e7eb; }
.hotel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hotel:hover .hotel-img img { transform: scale(1.02); }
.hotel-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hotel-top { display: flex; justify-content: space-between; gap: 24px; }
.hotel h3 { font-weight: 700; font-size: 20px; margin: 0; line-height: 1.3; }
.stars { color: var(--star); display: inline-flex; gap: 1px; }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.addr { color: var(--ink-soft); font-size: 15px; display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; }
.addr .icon { width: 16px; height: 16px; margin-top: 4px; }
.price { text-align: end; flex: none; }
.price strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.price small { color: var(--muted); font-size: 13px; }
.hotel-actions { margin-top: auto; display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding-top: 10px; }
.hotel-actions .btn { min-width: 200px; }
.options { grid-column: 1 / -1; border-top: 1px solid var(--line); background: #fafafa; }
.option { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.option:last-child { border-bottom: 0; }
.option:hover { background: #fffdf6; }
.option-rooms { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.option-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 500; background: #f3f4f6; color: var(--ink-soft); }
.badge .icon { width: 14px; height: 14px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.option-price { font-weight: 700; font-size: 20px; text-align: end; }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 14px; line-height: 1.55; background: var(--primary-soft); color: #6b5208; border: 1px solid #f1e3b5; }
.notice.err { background: var(--err-soft); color: var(--err); border-color: #fecdca; }
.notice.ok { background: var(--ok-soft); color: var(--ok); border-color: #bbf7d0; }
.notice > .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.notice a { font-weight: 700; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-weight: 700; font-size: 22px; margin: 8px 0; }
.skeleton { height: 210px; border-radius: var(--radius); margin-bottom: 16px; background: linear-gradient(90deg, #eceef1 25%, #f6f7f9 50%, #eceef1 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Pages with panels */
.page-title { font-weight: 700; font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 6px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.panel h3 { font-size: 15px; margin: 16px 0 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guest-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.guest-row .input, .grid-2 .input { height: 44px; }
.summary { position: sticky; top: 88px; }
.summary-img { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #e5e7eb; margin-bottom: 14px; }
.summary-img img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; font-size: 15px; }
.kv span:first-child { color: var(--muted); }
.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-size: 22px; font-weight: 700; }
.policy { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.policy li { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; border-bottom: 1px dashed var(--line); }
.info-list { font-size: 14px; color: var(--ink-soft); padding-inline-start: 18px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-block: 14px; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.confirm-hero { text-align: center; padding: 32px 20px 8px; }
.confirm-hero .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.confirm-hero .tick .icon { width: 32px; height: 32px; }
.ref { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; background: var(--primary-soft); color: var(--primary-dark); border-radius: var(--radius-sm); padding: 8px 14px; display: inline-block; }
.narrow { max-width: 760px; }
.status-card { display: flex; gap: 14px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot.err { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.addr-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
code.big { font-size: 22px; font-weight: 700; background: var(--secondary-soft); color: #0b6b94; padding: 6px 12px; border-radius: var(--radius-sm); }

footer { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); padding-block: 32px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer strong { color: var(--ink); font-size: 18px; font-weight: 700; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--primary); }

@media (max-width: 980px) {
  .search-card { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .search-card .dest { grid-column: 1 / -1; }
  .search-card > .field:nth-child(2), .search-card > .field:nth-child(4) { border-inline-start: 0; }
  .search-card > .btn { grid-column: 1 / -1; margin-inline-start: 0; }
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 66px; inset-inline: 12px; background: var(--paper); flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a, .over-hero .nav a { color: var(--ink); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 16px; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="page"], .over-hero .nav a:hover, .over-hero .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-dark); }
  .menu-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); cursor: pointer; flex: none; }
  .site-header .wrap { gap: 10px; height: 60px; }
  .brand-logo { height: 32px; }
  .channel button { padding: 6px 10px; font-size: 13px; }
  .hero .wrap { padding-block: 104px 72px; }
  .search-card { grid-template-columns: 1fr; }
  .search-card > .field { border-inline-start: 0; border-top: 1px solid var(--line); }
  .search-card > .field:first-child { border-top: 0; }
  .hero + main { border-radius: 24px 24px 0 0; }
  .hotel { grid-template-columns: 1fr; }
  .hotel-img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .hotel-top { flex-direction: column; gap: 8px; }
  .price { text-align: start; }
  .hotel-actions .btn { min-width: 0; flex: 1; }
  .option { grid-template-columns: 1fr auto; }
  .option .btn { grid-column: 1 / -1; }
  .guest-row, .grid-2 { grid-template-columns: 1fr; }
}

/* Certification page */
.cert-case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert-head h2 { font-weight: 700; margin: 0; font-size: 22px; }
.cert-head p { margin: 4px 0 0; color: var(--muted); }
.cert-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 18px 0; }
.cert-facts dt { font-size: 13px; color: var(--muted); }
.cert-facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.cert-steps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; list-style: none; counter-reset: step; }
.cert-steps li { counter-increment: step; font-size: 13px; background: var(--primary-soft); border: 1px solid #f1e3b5; border-radius: 4px; padding: 3px 10px; }
.cert-steps li::before { content: counter(step) ". "; color: var(--muted); }
.cert-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Hotel page */
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; font-weight: 600; font-size: 15px; color: var(--primary-dark); text-decoration: none; transition: color .2s; }
.back-link:hover { color: var(--primary-hover); text-decoration: underline; }
.hotel-hero-img { position: relative; min-height: 320px; background: #e5e7eb; }
.hotel-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
a.hotel-img { display: block; }
.hotel h3 a { text-decoration: none; transition: color .2s; }
.hotel h3 a:hover { color: var(--primary-dark); }
.json-details summary { cursor: pointer; font-weight: 700; }

/* A page that cannot be shown, or a hotel with no rooms: centered message with the next step */
.state-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 32px; max-width: 480px; margin: 24px auto; font-size: 16px; }
/* On its own, the card sits in the middle of the space between header and footer. */
main:has(> .state-card) { display: flex; flex-direction: column; }
main:has(> .state-card) > .state-card { margin-block: auto; width: 100%; }
main:has(> .state-card) > .back-link { align-self: flex-start; }
.state-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; margin: 0 auto 20px; }
.state-icon .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.state-card h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.state-card p { max-width: 42ch; margin: 0 auto 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.state-card p a { color: var(--primary-dark); font-weight: 700; }
.state-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.json-details pre { max-height: 320px; overflow: auto; direction: ltr; text-align: start; white-space: pre-wrap; word-break: break-word; background: #f9fafb; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-size: 13px; }
@media (max-width: 760px) {
  .hotel-hero-img { min-height: 0; aspect-ratio: 16 / 9; }
  .state-card { padding: 40px 20px; margin-block: 8px; }
  .state-actions .btn { flex: 1 1 100%; }
}

/* Loader while a hotel's details and rooms are fetched */
.page-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 60vh; color: var(--muted); }
.search-loader { min-height: 420px; margin-bottom: 16px; }
.nav-loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--page); }
.nav-loader .page-loader { min-height: 0; }
.page-loader strong { font-size: 20px; color: var(--ink); }
/* The stay being opened, under the loader's title */
.loader-stay { display: grid; justify-items: center; gap: 4px; width: min(440px, 100%); margin-block: 6px 4px; padding: 14px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: 14px; }
.loader-stay b { font-size: 17px; line-height: 1.4; color: var(--ink); }
.loader-stay span { display: inline-flex; align-items: center; gap: 6px; }
.loader-stay .icon { width: 16px; height: 16px; color: var(--primary); }
.loader-ring { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 12px; }
.loader-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); border-inline-end-color: var(--secondary); animation: spin .9s linear infinite; }
.loader-ring img { width: 40px; height: 40px; filter: brightness(0); animation: pulse 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .loader-ring::before, .loader-ring img { animation-duration: 3s; } }

/* Two room options per row */
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.room-grid .room-card { grid-template-columns: 1fr; margin-bottom: 0; }
.room-grid .room-photo { min-height: 0; aspect-ratio: 16 / 9; }
.room-grid .room-main { padding: 16px 18px 6px; }
.room-grid .room-side { border-inline-start: 0; border-top: 1px solid var(--line); padding: 14px 18px 18px; align-items: stretch; margin-top: auto; }
@media (max-width: 640px) { .room-grid { grid-template-columns: 1fr; } }


/* Hotel photo gallery (Hotelbeds photos): main photo, previous / next, thumbnails */
.hotel-gallery { display: flex; flex-direction: column; background: #111827; }
.gallery-stage { position: relative; flex: 1; min-height: 260px; }
.gallery-nav { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .92); color: var(--ink); box-shadow: 0 2px 10px rgb(0 0 0 / .25); cursor: pointer; transition: background .2s, transform .15s; }
.gallery-nav:hover { background: #fff; transform: scale(1.06); }
.gallery-nav:focus-visible, .gallery-thumbs button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.gallery-nav[data-step="-1"] { inset-inline-start: 12px; }
.gallery-nav[data-step="1"] { inset-inline-end: 12px; }
.gallery-count { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; padding: 2px 10px; border-radius: 999px; background: rgb(17 24 39 / .72); color: #fff; font-size: 13px; font-weight: 600; direction: ltr; }
.gallery-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 auto; width: 76px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: #374151; opacity: .6; cursor: pointer; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button:hover, .gallery-thumbs button.active { opacity: 1; }
.gallery-thumbs button.active { border-color: #fff; }
.gallery-thumbs img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hotel-hero-img.hotel-gallery { aspect-ratio: auto; }
  .gallery-stage { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .gallery-thumbs button { width: 64px; }
}

/* Home page browse sections */
#home-sections { margin-top: 8px; }
.hs-block { margin-block: 40px; }
.hs-block h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.hs-row { position: relative; }
.hs-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-card { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: start; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 14px; cursor: pointer; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.hs-card:hover, .hs-card:focus-visible { box-shadow: var(--shadow); border-color: var(--primary); }
.hs-card > strong, .hs-card > .hs-addr, .hs-card > .hs-price { padding-inline: 14px; }
.hs-card > strong { margin-top: 8px; font-size: 16px; }
.hs-addr { color: var(--ink-soft); font-size: 14px; line-height: 1.45; flex: 1; }
.hs-price { text-align: end; color: var(--ink-soft); font-size: 14px; }
.hs-price b { font-size: 17px; color: var(--ink); }
.hs-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e5e7eb; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-score { position: absolute; inset-inline-start: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--primary); border-radius: 999px; padding: 2px 10px 2px 2px; font-size: 12px; color: var(--ink-soft); }
.hs-score b { background: var(--primary-dark); color: #fff; border-radius: 999px; padding: 1px 8px; }
.hs-score i { font-style: normal; }
.hs-arrow { position: absolute; top: 38%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.hs-arrow.prev { inset-inline-start: -14px; } .hs-arrow.next { inset-inline-end: -14px; }
.hs-arrow:hover { border-color: var(--primary); }
.hs-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.hs-stats > div { padding: 18px 12px; text-align: center; display: grid; gap: 6px; color: var(--ink-soft); }
.hs-stats > div + div { border-inline-start: 1px solid var(--line); }
.hs-stats b { color: var(--ink); font-size: 16px; }
.hs-about { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; line-height: 1.8; color: var(--ink-soft); font-size: 14px; }
.hs-about h3 { font-size: 16px; color: var(--ink); } .hs-about h4 { margin-top: 10px; font-size: 14px; color: var(--ink); }
.hs-about p { margin-block: 6px; }
.city-link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-dark); text-decoration: underline; cursor: pointer; }
.city-link:hover { color: var(--primary-hover); }
.city-link.plain { color: var(--ink-soft); text-decoration: none; text-align: start; }
.city-link.plain:hover { color: var(--primary-dark); text-decoration: underline; }
.hs-toggle { display: block; margin: 14px auto 0; background: none; border: 0; font: inherit; color: var(--primary-dark); cursor: pointer; }
.hs-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; scrollbar-width: none; }
.hs-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 4px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.hs-tabs button[aria-selected="true"] { border-bottom-color: var(--primary); color: var(--primary-dark); }
.hs-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; }
.hs-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 14px; font-size: 14px; }
@media (max-width: 900px) { .hs-card { flex-basis: calc((100% - 16px) / 2); } .hs-stats { grid-template-columns: repeat(2, 1fr); } .hs-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hs-block h2 { font-size: 22px; } .hs-card { flex-basis: 78%; } .hs-arrow { display: none; } }
