/* ═══════════════════════════════════════════════════════════════════════════
   Hotel funnel — results / detail / booking. Design system ported from the
   approved OtelBilet Hotels mockup. Search-form styles live in js/hotel-search.js
   (self-injected). Tokens used here: card #fff / border #EEF1F8 / shadow
   0 6px 18px rgba(7,36,111,.05) / text #0F1B33 / sub #5B6880 / muted #8893A8 /
   primary #0B3AD6 / accent #FF5C00 / green #0E9F6E.
   ═══════════════════════════════════════════════════════════════════════════ */

/* De-frame: the hero search wrap should not add its own box around the form
   (the form is a single clean card, like the flights search). */
.hotel-search-wrap {
  background: none !important; border: none !important; box-shadow: none !important;
  backdrop-filter: none !important; padding: 0 !important; max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 40;   /* lift above the sections below the hero */
}
/* The hero clips its overflow (for decorative blobs, which are display:none),
   which would cut off the date/guests dropdowns. Let them spill out fully. */
.hotel-hero { overflow: visible !important; }

/* ── Page shells ──────────────────────────────────────────────────────────── */
.hp-wrap { max-width: 1240px; margin: 0 auto; padding: 22px 24px 70px; }
/* Detail/booking pages put .hp-wrap directly under the fixed 64px navbar (no
   blue .hp-band to provide clearance like the results page), so add top padding
   to keep the gallery/content from hiding behind the navbar. */
.hp-wrap.hp-wrap-top { padding-top: 86px; }
.hp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  color: #0B3AD6; cursor: pointer; margin-bottom: 18px; background: none; border: none; }
.hp-back svg { width: 16px; height: 16px; }

.hp-resgrid { display: grid; grid-template-columns: 268px 1fr; gap: 22px; align-items: start; }
.hp-card-shadow { box-shadow: 0 6px 18px rgba(7,36,111,.05); }

/* results top band (compact search).
   Top padding clears the fixed 64px navbar (matches .hotel-hero's 88px on
   hotels.html) so the band title + search form aren't hidden behind it. */
.hp-band { background: linear-gradient(135deg,#06248a,#0B3AD6); padding: 84px 0 28px; }
.hp-band-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hp-band-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hp-band-title { color: #fff; font-size: 15px; font-weight: 700; opacity: .95; }
.hp-change { display: flex; align-items: center; gap: 8px; background: #fff; color: #0B3AD6;
  padding: 9px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: none; }

/* ── Filters sidebar ──────────────────────────────────────────────────────── */
.flt { position: sticky; top: 82px; background: #fff; border: 1px solid #EEF1F8; border-radius: 16px;
  padding: 18px; box-shadow: 0 6px 18px rgba(7,36,111,.05); }
.flt-head { display: flex; align-items: center; justify-content: space-between; }
.flt-head b { font-size: 16px; font-weight: 800; color: #0F1B33; }
.flt-reset { font-size: 12.5px; font-weight: 700; color: #0B3AD6; cursor: pointer; }
.flt-hr { height: 1px; background: #EEF1F8; margin: 14px 0; }
.flt-label { font-size: 13.5px; font-weight: 800; color: #0F1B33; margin-bottom: 8px; }
.flt-range { width: 100%; accent-color: #0B3AD6; }
.flt-range-val { font-size: 13px; font-weight: 700; color: #0B3AD6; margin-bottom: 8px; }
.flt-range-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: #8893A8; font-weight: 600; margin-top: 3px; }
.flt-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.flt-box { width: 19px; height: 19px; border-radius: 6px; border: 2px solid #C9D3E6; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.flt-check.on .flt-box { background: #0B3AD6; border-color: #0B3AD6; }
.flt-box svg { width: 11px; height: 11px; opacity: 0; }
.flt-check.on .flt-box svg { opacity: 1; }
.flt-check span.lbl { font-size: 13.5px; font-weight: 600; color: #0F1B33; flex: 1; }
.flt-stars { color: #f59e0b; letter-spacing: 1px; font-size: 14px; }
.flt-count { font-size: 12px; color: #8893A8; font-weight: 600; }
/* property name search */
.flt-search { position: relative; margin-bottom: 2px; }
.flt-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; }
.flt-search input { width: 100%; border: 1.5px solid #E6EAF2; border-radius: 11px; padding: 10px 12px 10px 34px;
  font-size: 13.5px; font-weight: 600; color: #0F1B33; outline: none; transition: border-color .15s; }
.flt-search input:focus { border-color: #0B3AD6; }
.flt-search input::placeholder { color: #9aa3b5; font-weight: 500; }
/* popular-filter toggle rows (free cancellation / breakfast / deals) */
.flt-toggle { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.flt-toggle .lbl { font-size: 13.5px; font-weight: 600; color: #0F1B33; flex: 1; }
.flt-toggle .flt-count { font-size: 12px; color: #8893A8; font-weight: 600; }
.flt-sw { width: 38px; height: 22px; border-radius: 999px; background: #D5DCEA; flex-shrink: 0; position: relative; transition: background .15s; }
.flt-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(7,36,111,.25); transition: transform .15s; }
.flt-toggle.on .flt-sw { background: #0B3AD6; }
.flt-toggle.on .flt-sw::after { transform: translateX(16px); }

/* ── Sort tabs + result meta ──────────────────────────────────────────────── */
.hp-sort { display: flex; background: #fff; border: 1px solid #EEF1F8; border-radius: 14px; padding: 6px;
  margin-bottom: 16px; box-shadow: 0 6px 18px rgba(7,36,111,.05); }
.hp-sort-tab { flex: 1; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: center; border: none; background: none; }
.hp-sort-tab b { display: block; font-size: 14px; font-weight: 800; color: #5B6880; }
.hp-sort-tab small { font-size: 12px; color: #8893A8; }
.hp-sort-tab.on { background: #EFF3FB; }
.hp-sort-tab.on b { color: #0B3AD6; }
.hp-resmeta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 2px; }
.hp-resmeta .cnt { font-size: 14px; color: #5B6880; font-weight: 600; }
.hp-resmeta .cur { font-size: 13px; color: #8893A8; }

/* ── Hotel card ───────────────────────────────────────────────────────────── */
.hc { background: #fff; border: 1.5px solid #EEF1F8; border-radius: 16px; box-shadow: 0 6px 18px rgba(7,36,111,.05);
  overflow: hidden; display: grid; grid-template-columns: 236px 1fr; margin-bottom: 14px; }
.hc-img { position: relative; min-height: 210px; background: #e9edf6 center/cover no-repeat; }
.hc-img .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,48,.02), rgba(7,18,48,.35)); }
.hc-photocount { position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.92); color: #0B3AD6;
  padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; }
.hc-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 210px; gap: 20px; }
.hc-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; margin-bottom: 4px; }
.hc-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: #0F1B33; }
.hc-loc { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13px; color: #5B6880; font-weight: 600; }
.hc-loc svg { width: 14px; height: 14px; flex-shrink: 0; }
.hc-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hc-chip { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #5B6880; font-weight: 600; }
.hc-chip svg { width: 14px; height: 14px; }
.hc-board { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; background: #E7F7F0;
  color: #0E9F6E; padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.hc-pricebox { border-left: 1px solid #EEF1F8; padding-left: 18px; display: flex; flex-direction: column; }
.hc-ratingrow { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.hc-ratingrow .word { font-size: 13px; font-weight: 800; color: #0F1B33; text-align: right; }
.hc-ratingrow .rev { font-size: 11.5px; color: #8893A8; text-align: right; }
.hc-ratebadge { width: 38px; height: 34px; border-radius: 9px; background: #0B3AD6; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 800; }
.hc-pricewrap { margin-top: auto; text-align: right; }
.hc-nights { font-size: 11.5px; color: #8893A8; font-weight: 600; }
.hc-price { font-size: 24px; font-weight: 800; letter-spacing: -.6px; color: #0F1B33; line-height: 1.12; margin: 2px 0; white-space: nowrap; }
.hc-total { font-size: 11.5px; color: #8893A8; margin-bottom: 8px; }
.hc-was { font-size: 13px; color: #98A2B3; text-decoration: line-through; font-weight: 600; }
.hc-save { display: inline-block; background: #E7F7F0; color: #0E9F6E; font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px; margin-bottom: 4px; }
.hc-deal { position: absolute; top: 12px; left: 12px; background: #0E9F6E; color: #fff; padding: 4px 9px;
  border-radius: 8px; font-size: 11.5px; font-weight: 800; box-shadow: 0 4px 12px rgba(14,159,110,.35); }
.hc-chip.ok { color: #0E9F6E; }
.hc-btn { width: 100%; background: #0B3AD6; color: #fff; border: none; padding: 11px; border-radius: 11px;
  font-size: 14px; font-weight: 800; cursor: pointer; }
.hc-btn:hover { background: #06248a; }

/* ── Empty / loading ──────────────────────────────────────────────────────── */
.hp-empty { background: #fff; border: 1px dashed #C2CCE0; border-radius: 16px; padding: 48px; text-align: center; }
.hp-empty h3 { font-size: 17px; font-weight: 800; color: #0F1B33; margin: 8px 0 4px; }
.hp-empty p { font-size: 14px; color: #8893A8; margin: 0; }
.hp-skel { background: #fff; border: 1px solid #EEF1F8; border-radius: 16px; height: 210px; margin-bottom: 14px;
  position: relative; overflow: hidden; }
.hp-skel::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent); animation: hpsh 1.3s infinite; }
@keyframes hpsh { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ── Detail: gallery ──────────────────────────────────────────────────────── */
.dg { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-bottom: 22px; }
.dg-cell { border-radius: 16px; background: #e9edf6 center/cover no-repeat; position: relative; overflow: hidden; cursor: pointer; }
.dg-main { grid-row: span 2; }
.dg-more { position: absolute; inset: 0; background: rgba(7,18,48,.55); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 15px; font-weight: 800; }
@media (max-width: 760px){ .dg { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; } .dg-main { grid-column: span 2; grid-row: auto; } }

/* ── Photo lightbox (hotel gallery + room photos) ───────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(7,12,28,.93);
  display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 82vh; border-radius: 12px; object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); user-select: none; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background .15s; }
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-close svg { width: 20px; height: 20px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13.5px; font-weight: 700; background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 600px){ .lb-nav { width: 42px; height: 42px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ── Room photo thumbnail in the room-select list ───────────────────────────── */
.room-top { display: flex; gap: 14px; align-items: flex-start; }
.room-thumb { width: 118px; height: 90px; border-radius: 10px; flex-shrink: 0; cursor: pointer;
  background: #e9edf6 center/cover no-repeat; position: relative; overflow: hidden; }
.room-thumb-more { position: absolute; bottom: 5px; right: 5px; background: rgba(7,18,48,.72); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.room-info { min-width: 0; flex: 1; }
@media (max-width: 600px){ .room-top { flex-direction: column; } .room-thumb { width: 100%; height: 150px; } }

.dcol { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
/* Grid children default to min-width:auto, so an intrinsically wide row inside
   (anchor-nav pills, sort tabs) would stretch the whole column past the phone
   viewport instead of scrolling within itself. */
.dcol > div, .hp-resgrid > div { min-width: 0; }
.dcard { background: #fff; border: 1px solid #EEF1F8; border-radius: 16px; padding: 22px; box-shadow: 0 6px 18px rgba(7,36,111,.05); }
.dcard + .dcard { margin-top: 16px; }
.dcard h2 { font-size: 17px; font-weight: 800; color: #0F1B33; margin: 0 0 16px; }
.d-amen { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.d-amen-item { display: flex; align-items: center; gap: 10px; }
.d-amen-ico { width: 36px; height: 36px; border-radius: 10px; background: #EFF3FB; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0B3AD6; }
.d-amen-item span { font-size: 13px; font-weight: 600; color: #0F1B33; }
.d-more-btn { margin-top: 16px; background: #EFF3FB; color: #0B3AD6; border: none; padding: 10px 18px;
  border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.d-more-btn:hover { background: #e3e9f8; }
@media (max-width: 760px){ #dReviews > div[style*="grid"] { grid-template-columns: 1fr !important; } }

/* room option */
.room { border: 2px solid #EEF1F8; border-radius: 14px; padding: 16px 18px; cursor: pointer;
  display: grid; grid-template-columns: 1fr 180px; gap: 16px; align-items: center; margin-bottom: 12px; }
.room.on { border-color: #0B3AD6; background: #F6F8FF; }
.room-name { font-size: 15.5px; font-weight: 800; color: #0F1B33; }
.room-feats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.room-feat { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.room-feat svg { width: 14px; height: 14px; }
.room-feat.green { color: #0E9F6E; } .room-feat.grey { color: #8893A8; }
.room-price-wrap { text-align: right; }
.room-nights { font-size: 11.5px; color: #8893A8; font-weight: 600; }
.room-price { font-size: 23px; font-weight: 800; letter-spacing: -.7px; color: #0F1B33; line-height: 1.15; margin: 2px 0; }
.room-sel { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12.5px; font-weight: 800; color: #8893A8; }
.room.on .room-sel { color: #0B3AD6; }
.room-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9D3E6; display: flex; align-items: center; justify-content: center; }
.room.on .room-radio { border-color: #0B3AD6; }
.room-radio span { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.room.on .room-radio span { background: #0B3AD6; }
/* room enrichments (static content + price comparison) */
.room-amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.room-amen span { font-size: 11.5px; font-weight: 600; color: #5B6880; background: #F1F4FA; padding: 3px 9px; border-radius: 7px; }
.room-desc { font-size: 12.5px; color: #8893A8; line-height: 1.5; margin-top: 10px; }
.room-was { font-size: 12.5px; color: #98A2B3; text-decoration: line-through; font-weight: 600; }
.room-save { font-size: 11px; font-weight: 800; color: #0E9F6E; background: #E7F7F0; display: inline-block; padding: 2px 7px; border-radius: 6px; margin-top: 3px; }

/* guest sentiment (category scores + pros/cons) */
.d-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; margin-bottom: 18px; }
.d-cat-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #0F1B33; margin-bottom: 5px; }
.d-cat-top b { color: #0B3AD6; }
.d-cat-bar { height: 6px; background: #EEF1F8; border-radius: 4px; overflow: hidden; }
.d-cat-bar span { display: block; height: 100%; background: #0B3AD6; border-radius: 4px; }
.d-senti { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.d-senti-h { font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.d-senti-h.good { color: #0E9F6E; } .d-senti-h.bad { color: #E5484D; }
.d-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.d-tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 8px; }
.d-tag.good { background: #E7F7F0; color: #0B7A52; } .d-tag.bad { background: #FDECEC; color: #C0343A; }

/* property policies */
.d-pol { display: flex; flex-direction: column; gap: 12px; }
.d-pol-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; }
.d-pol-k { font-size: 13px; font-weight: 700; color: #0F1B33; }
.d-pol-v { font-size: 13px; color: #5B6880; line-height: 1.5; }

/* sticky summary */
.summ { position: sticky; top: 82px; background: #fff; border: 1px solid #EEF1F8; border-radius: 16px;
  padding: 20px; box-shadow: 0 10px 28px rgba(7,36,111,.08); }
/* the agent portal has no fixed navbar — sticky elements hug the top there */
body[data-b2b-page] .summ, body[data-b2b-page] .flt, body[data-b2b-page] .hr-map { top: 16px; }
.summ h3 { font-size: 15px; font-weight: 800; color: #0F1B33; margin: 0 0 14px; }
.summ-dates { display: flex; gap: 10px; margin-bottom: 14px; }
.summ-date { flex: 1; background: #F7F9FD; border: 1px solid #EEF1F8; border-radius: 11px; padding: 10px 12px; }
.summ-date .k { font-size: 11px; color: #8893A8; font-weight: 700; text-transform: uppercase; }
.summ-date .v { font-size: 14px; font-weight: 800; color: #0F1B33; margin-top: 3px; }
.summ-line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 10px; }
.summ-line .k { color: #8893A8; } .summ-line .v { font-weight: 700; color: #0F1B33; }
.summ-hr { height: 1px; background: #EEF1F8; margin: 14px 0; }
.summ-total { display: flex; justify-content: space-between; align-items: flex-end; }
.summ-total .k { font-size: 14px; color: #5B6880; font-weight: 600; }
.summ-total .v { font-size: 28px; font-weight: 800; letter-spacing: -.8px; color: #0B3AD6; }
.summ-cta { width: 100%; margin-top: 16px; background: linear-gradient(135deg,#FF7A1A,#FF5C00); color: #fff;
  border: none; padding: 15px; border-radius: 13px; font-size: 16px; font-weight: 800; cursor: pointer; }
.summ-cta:hover { filter: brightness(1.05); }
.summ-cta:disabled { opacity: .6; cursor: not-allowed; }
.summ-free { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px;
  font-size: 12px; color: #0E9F6E; font-weight: 700; }
.summ-free svg { width: 15px; height: 15px; flex-shrink: 0; }
.summ-note { font-size: 12px; color: #8893A8; margin-top: 10px; text-align: center; }

/* booking form fields */
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.bf label { display: block; }
.bf-lbl { font-size: 12.5px; font-weight: 700; color: #5B6880; margin-bottom: 6px; }
.bf-input { width: 100%; border: 1.5px solid #E6EAF2; border-radius: 11px; padding: 12px 14px; font-size: 14.5px;
  font-weight: 600; color: #0F1B33; outline: none; transition: border-color .15s; }
.bf-input:focus { border-color: #0B3AD6; }
.bf-input.up { text-transform: uppercase; }
.bf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bf-chip { padding: 10px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  border: 1.5px solid #E6EAF2; color: #5B6880; background: #fff; }
.bf-chip.on { border-color: #0B3AD6; color: #0B3AD6; background: #F6F8FF; }
textarea.bf-input { min-height: 88px; resize: vertical; font-weight: 500; line-height: 1.5; }

/* ── Detail redesign: section anchor nav (injected by hotel-detail.js) ─────── */
.d-nav { position: sticky; top: 72px; z-index: 60; display: flex; gap: 4px; background: #fff;
  border: 1px solid #EEF1F8; border-radius: 999px; padding: 6px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(7,36,111,.06); overflow-x: auto; scrollbar-width: none; }
.d-nav::-webkit-scrollbar { display: none; }
.d-nav button { border: none; background: none; color: #5B6880; font-size: 13.5px; font-weight: 700;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .12s, background .12s; }
.d-nav button:hover { color: #0B3AD6; }
.d-nav button.on { background: #0B3AD6; color: #fff; }
/* the agent portal has no fixed navbar — stick to the very top instead */
body[data-b2b-page] .d-nav { top: 8px; }

/* ── Detail redesign: header ────────────────────────────────────────────────── */
.dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dh-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dh-stars { color: #f59e0b; letter-spacing: 1.5px; font-size: 14px; }
.dh-chip { font-size: 11.5px; font-weight: 700; color: #0B3AD6; background: #EFF3FB; padding: 3px 10px; border-radius: 999px; }
.dh-name { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.7px; color: #0F1B33; line-height: 1.15; }
.dh-addr { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 14px; color: #5B6880; font-weight: 600; flex-wrap: wrap; }
.dh-addr svg { flex-shrink: 0; }
.dh-map { color: #0B3AD6; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dh-map:hover { text-decoration: underline; }
.dh-rating { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dh-rword { text-align: right; }
.dh-rword b { display: block; font-size: 14px; font-weight: 800; color: #0F1B33; }
.dh-rword small { font-size: 12px; color: #8893A8; }
.dh-rbadge { min-width: 50px; height: 46px; border-radius: 12px 12px 12px 4px; background: #0B3AD6; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; padding: 0 8px; }
.d-desc { margin: 16px 0 0; font-size: 14.5px; color: #5B6880; line-height: 1.65; white-space: pre-line; }
.d-desc.clamp { max-height: 132px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.d-desc-btn { margin-top: 10px; background: none; border: none; color: #0B3AD6; font-size: 13.5px; font-weight: 800; cursor: pointer; padding: 0; }

/* gallery hover + "all photos" affordance */
.dg-cell { transition: filter .15s; }
.dg-cell:hover { filter: brightness(.93); }
.dg-all { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.95); color: #0F1B33; border: none; padding: 8px 13px; border-radius: 10px;
  font-size: 12.5px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(7,18,48,.18); }
.dg-all svg { width: 14px; height: 14px; }

/* room quantity stepper (detail page rooms card) */
.d-rooms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rq { display: flex; align-items: center; gap: 10px; }
.rq-lbl { font-size: 13px; font-weight: 700; color: #5B6880; }
.rq-ctl { display: inline-flex; align-items: center; border: 1.5px solid #E6EAF2; border-radius: 11px; overflow: hidden; background: #fff; }
.rq-btn { width: 36px; height: 36px; border: none; background: #fff; color: #0B3AD6; font-size: 18px; font-weight: 800; cursor: pointer; line-height: 1; }
.rq-btn:hover:not(:disabled) { background: #F6F8FF; }
.rq-btn:disabled { color: #C9D3E6; cursor: default; }
.rq-val { min-width: 36px; text-align: center; font-size: 14.5px; font-weight: 800; color: #0F1B33; }
.rq-note { font-size: 12.5px; font-weight: 600; color: #0B3AD6; margin: 6px 0 12px; min-height: 16px; }
.rq-note.err { color: #E5484D; }
.room-per { font-size: 12px; color: #5B6880; font-weight: 600; margin-top: 2px; }

/* room "select" button (replaces the old radio row) */
.room-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 9px;
  border: 1.5px solid #C9D3E6; background: #fff; color: #0B3AD6; font-size: 13px; font-weight: 800;
  padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: background .12s, border-color .12s; }
.room:hover .room-btn { border-color: #0B3AD6; }
.room.on .room-btn { background: #0B3AD6; border-color: #0B3AD6; color: #fff; }
.room-btn svg { width: 14px; height: 14px; }

/* ── Booking redesign: progress steps ───────────────────────────────────────── */
.bk-steps { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; }
.bk-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #8893A8; white-space: nowrap; }
.bk-step .n { width: 26px; height: 26px; border-radius: 50%; background: #E6EAF2; color: #5B6880;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; flex-shrink: 0; }
.bk-step.done { color: #0E9F6E; }
.bk-step.done .n { background: #E7F7F0; color: #0E9F6E; }
.bk-step.on { color: #0F1B33; }
.bk-step.on .n { background: #0B3AD6; color: #fff; }
.bk-sep { flex: 0 0 26px; height: 2px; background: #E6EAF2; border-radius: 2px; }

/* ── Booking redesign: guest blocks ─────────────────────────────────────────── */
.bfg { border: 1px solid #EEF1F8; border-radius: 14px; padding: 16px; background: #fff; }
.bfg + .bfg, .bfg + .bfg-add, .bfg-add + .bfg, .bfg-add + .bfg-add { margin-top: 12px; }
.bfg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bfg-ava { width: 34px; height: 34px; border-radius: 50%; background: #EFF3FB; color: #0B3AD6;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 800; flex-shrink: 0; }
.bfg-title { font-size: 14.5px; font-weight: 800; color: #0F1B33; }
.bfg-note { font-size: 12px; color: #8893A8; margin-top: 1px; }
.bfg-tag { margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: #F1F4FA; color: #8893A8; flex-shrink: 0; }
.bfg-tag.req { background: #EFF3FB; color: #0B3AD6; }
.bfg-x { margin-left: 8px; border: none; background: #F1F4FA; color: #5B6880; width: 26px; height: 26px;
  border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; flex-shrink: 0; }
.bfg-x:hover { background: #FDECEC; color: #C0343A; }
.bfg-room { font-size: 12px; font-weight: 800; color: #8893A8; text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 10px; }
.bfg-add { display: flex; align-items: center; gap: 9px; width: 100%; border: 1.5px dashed #C9D3E6;
  background: #FAFBFE; color: #0B3AD6; font-size: 13.5px; font-weight: 800; padding: 13px 16px;
  border-radius: 12px; cursor: pointer; text-align: left; transition: background .12s, border-color .12s; }
.bfg-add:hover { background: #F6F8FF; border-color: #0B3AD6; }
.bfg-add svg { width: 16px; height: 16px; flex-shrink: 0; }
.bfg-add small { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #8893A8; }
.bf-input.err { border-color: #E5484D; background: #FFF8F8; }

/* ── Booking redesign: trust strip ──────────────────────────────────────────── */
.bk-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.bk-trust-it { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #EEF1F8;
  border-radius: 13px; padding: 12px 14px; font-size: 12.5px; font-weight: 700; color: #5B6880; }
.bk-trust-it svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Sticky mobile book bar (detail + booking pages) ───────────────────────── */
.hp-bookbar { display: none; }
.hp-bookbar .bb-price { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: #0B3AD6; line-height: 1.1; }
.hp-bookbar .bb-sub { font-size: 11.5px; font-weight: 600; color: #8893A8; }
.hp-bookbar .bb-cta { flex-shrink: 0; background: linear-gradient(135deg,#FF7A1A,#FF5C00); color: #fff; border: none;
  padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; }
.hp-bookbar .bb-cta:disabled { opacity: .6; }

/* ── Results: mobile filter trigger + bottom-sheet drawer ──────────────────── */
.hp-fltwrap { display: contents; }
.hp-flt-head-m, .hp-flt-foot-m, .hp-mobtools, .hp-flt-backdrop { display: none; }

/* ════ MAP VIEW (Leaflet) ════════════════════════════════════════════════ */
.hp-meta-right { display: flex; align-items: center; gap: 14px; }
.hr-viewtoggle { display: inline-flex; background: #fff; border: 1px solid #E6EAF2; border-radius: 11px; padding: 3px; gap: 2px; }
.hr-viewtoggle button { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #5B6880; padding: 7px 13px; border-radius: 8px; line-height: 1; }
.hr-viewtoggle button svg { width: 15px; height: 15px; }
.hr-viewtoggle button.on { background: #0B3AD6; color: #fff; }

.hr-map { height: calc(100vh - 150px); min-height: 460px; border-radius: 16px; overflow: hidden;
  border: 1px solid #EEF1F8; box-shadow: 0 8px 28px rgba(7,36,111,.10); position: sticky; top: 80px; }
.hr-mapnote { font-size: 12.5px; color: #8893A8; margin-top: 8px; padding-left: 2px; }
.hr-more { display: flex; justify-content: center; padding: 8px 0 4px; }
.hr-more button { background: #fff; border: 1.5px solid #E6EAF2; color: #0B3AD6; font-size: 14px; font-weight: 800;
  padding: 12px 26px; border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.hr-more button:hover { background: #EFF3FB; border-color: #C7D3EC; }
/* keep the legally-required tile credit, but faint + minimal (no Leaflet flag) */
.leaflet-control-attribution { background: rgba(255,255,255,.65) !important; font-size: 10px !important;
  color: #b3bccb !important; padding: 1px 6px !important; box-shadow: none !important; }
.leaflet-control-attribution a { color: #9aa3b5 !important; text-decoration: none !important; }

/* price pin */
.hr-pinwrap { background: none; border: none; }
.hr-pin { display: inline-block; transform: translate(-50%, -100%); background: #0B3AD6; color: #fff; font-size: 13px;
  font-weight: 800; padding: 5px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 10px rgba(7,36,111,.30);
  border: 2px solid #fff; cursor: pointer; transition: background .12s, transform .12s; }
.hr-pin:hover, .hr-pin.active { background: #06248a; transform: translate(-50%, -100%) scale(1.08); z-index: 5; }

/* popup card */
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 14px 40px rgba(7,36,111,.22); }
.leaflet-popup-content { margin: 0; width: 230px !important; }
.hr-pop-img { height: 110px; background: #e9edf6 center/cover no-repeat; }
.hr-pop-body { padding: 11px 13px 13px; }
.hr-pop-stars { font-size: 12px; color: #E0A100; font-weight: 700; margin-bottom: 2px; }
.hr-pop-rate { background: #0B3AD6; color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.hr-pop-name { font-size: 14.5px; font-weight: 800; color: #0F1B33; line-height: 1.25; margin-bottom: 6px; }
.hr-pop-price { font-size: 16px; font-weight: 900; color: #0B3AD6; margin-bottom: 9px; }
.hr-pop-price small { font-size: 11px; font-weight: 600; color: #8893A8; }
.hr-pop-btn { display: block; width: 100%; background: #0B3AD6; color: #fff; border: none; padding: 9px; border-radius: 9px;
  font-size: 13.5px; font-weight: 800; cursor: pointer; }
.hr-pop-btn:hover { background: #06248a; }

/* ════ MOBILE ════ */
@media (max-width: 900px){
  .hp-resgrid, .dcol { grid-template-columns: 1fr; }
  /* results toolbar: let the meta row wrap and the sort tabs scroll */
  .hp-resmeta { flex-wrap: wrap; gap: 8px; }
  .hp-sort { overflow-x: auto; scrollbar-width: none; }
  .hp-sort::-webkit-scrollbar { display: none; }
  .hp-sort-tab { white-space: nowrap; }
  .hr-map { height: calc(100vh - 230px); position: static; top: auto; }
  /* leave room for the fixed filter toolbar when the map is the active view */
  body.hr-mapmode .hp-wrap { padding-bottom: 80px; }
  .summ { position: static; }
  .d-amen { grid-template-columns: 1fr 1fr; }
  .d-cats, .d-senti { grid-template-columns: 1fr; }
  .d-pol-row { grid-template-columns: 1fr; gap: 2px; }
  .bf-grid { grid-template-columns: 1fr; }
  .hc { grid-template-columns: 1fr; }
  .hc-body { grid-template-columns: 1fr; }
  .hc-pricebox { border-left: none; padding-left: 0; border-top: 1px solid #EEF1F8; padding-top: 14px; }

  /* keep page content clear of the fixed bottom bars */
  .hp-wrap { padding-bottom: 92px; }
  .footer { padding-bottom: 96px; }

  /* book bar */
  .hp-bookbar { display: flex; align-items: center; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1500; background: #fff; border-top: 1px solid #EEF1F8; box-shadow: 0 -8px 28px rgba(7,36,111,.12);
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); }
  .hp-bookbar .bb-meta { flex: 1; min-width: 0; }

  /* filter trigger toolbar */
  .hp-mobtools { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    background: #fff; border-top: 1px solid #EEF1F8; box-shadow: 0 -8px 28px rgba(7,36,111,.12);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .hp-mobtools-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #0B3AD6; color: #fff; border: none; padding: 13px; border-radius: 12px; font-size: 15px;
    font-weight: 800; cursor: pointer; }
  .hp-mobtools-btn svg { width: 18px; height: 18px; }
  .hp-mobtools-btn .badge { background: #fff; color: #0B3AD6; font-size: 12px; font-weight: 800;
    min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center;
    justify-content: center; padding: 0 6px; }

  /* drawer + backdrop */
  .hp-flt-backdrop { display: block; position: fixed; inset: 0; background: rgba(7,12,28,.5); z-index: 1590;
    opacity: 0; visibility: hidden; transition: opacity .25s; }
  body.flt-open .hp-flt-backdrop { opacity: 1; visibility: visible; }
  body.flt-open { overflow: hidden; }
  .hp-fltwrap { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 88vh; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1); z-index: 1600; box-shadow: 0 -12px 44px rgba(7,36,111,.22); }
  body.flt-open .hp-fltwrap { transform: none; }
  .hp-flt-head-m { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px;
    border-bottom: 1px solid #EEF1F8; flex-shrink: 0; }
  .hp-flt-head-m b { font-size: 17px; font-weight: 800; color: #0F1B33; }
  .hp-flt-head-m button { width: 34px; height: 34px; border: none; background: #F1F4FA; border-radius: 50%;
    font-size: 22px; line-height: 1; color: #5B6880; cursor: pointer; }
  #fltMount { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
  .flt { position: static; border: none; box-shadow: none; border-radius: 0; padding: 14px 16px 6px; }
  .hp-flt-foot-m { display: block; flex-shrink: 0; border-top: 1px solid #EEF1F8; background: #fff;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .hp-flt-apply-m { display: block; width: 100%; background: #0B3AD6; color: #fff; border: none; padding: 14px;
    border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; }

  /* tighter detail header on phones */
  #dHeader h1 { font-size: 22px !important; }
  .dh { flex-direction: column-reverse; }
  .dh-rating { flex-direction: row-reverse; }
  .dh-rword { text-align: left; }
  .bk-trust { grid-template-columns: 1fr; }
  .conf-grid { grid-template-columns: 1fr !important; }
}

/* ════ SMALL PHONES ════ */
@media (max-width: 600px){
  .hp-wrap { padding-left: 16px; padding-right: 16px; }
  .hp-band-inner { padding: 0 16px; }
  .hp-band { padding-top: 78px; }
  .dcard { padding: 18px 16px; }
  .dcard h2 { font-size: 16px; }
  .summ { padding: 18px 16px; }
  .hc-img { min-height: 178px; }
  .hc-body { padding: 16px; }
  .hc-name { font-size: 17px; }
  .hp-empty { padding: 36px 20px; }
  /* room option → single column with the price block dropping below */
  .room { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .room-price-wrap { text-align: left; border-top: 1px solid #EEF1F8; padding-top: 12px;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .room-price-wrap .room-nights { order: 3; }
  .room-sel { margin-top: 0; margin-left: auto; }
  .room-btn { margin-top: 0; margin-left: auto; }
  .hp-sort-tab { padding: 9px 10px; }
  .hp-sort-tab small { display: none; }
  .d-amen { grid-template-columns: 1fr; }
  .d-nav { border-radius: 14px; }
  /* steps: keep only the active step's label */
  .bk-sep { flex-basis: 14px; }
  .bk-step .t { display: none; }
  .bk-step.on .t { display: inline; }
}
