/* ==========================================================================
   SHARED COMPONENTS — Used across multiple pages
   Load order: design.css → shared.css → [page].css
   ========================================================================== */

/* ── Global font + base ──────────────────────────────────────────────────── */
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--color-bg);
  /* Push content below the fixed navbar.
     --tnav-h is measured by JS on each page; 73.95px is the safe default. */
  padding-top: var(--tnav-h, 73.95px);
}
a { color: inherit; }

.grecaptcha-badge { display: none; }

/* ── Topnav ──────────────────────────────────────────────────────────── */
/* position:fixed overrides Bootstrap sticky-top so the navbar never
   vanishes when body.no-scroll (overflow:hidden) kills position:sticky.
   z-index:1055 keeps it visible by itself, but intentionally BELOW the
   sheet-backdrop (1059) and .sheet (1060) so dialogs and bottom sheets
   correctly cover the navbar (standard mobile/web UX).

   Full z-index ladder:
     1050  .search-sticky.is-affixed (the search bar while it sticks)
     1055  .tnav  (fixed, visible alone; covered by sheets)
     1059  .sheet-backdrop
     1060  .sheet / centered dialog
     1063  .nav-overlay (mobile drawer backdrop — covers navbar)
     1064  .nav-drawer  (covers navbar)                                   */
.tnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1055;
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.tnav.scrolled {
  box-shadow: 0 4px 18px rgba(2,47,64,.08);
  border-bottom-color: var(--color-border);
}
.tnav-brand {
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em;
  color: var(--color-primary); text-decoration: none;
}

.tnav-nav { list-style: none; }
/* The links shrink before anything else in the bar does, each on one line: a name longer than
   130px ends in an ellipsis (the full name is its title). */
.tnav-menu { flex: 0 1 auto; min-width: 0; }
.tnav-nav li { flex: 0 1 auto; min-width: 0; }
.tnav-nav a {
  display: block; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500; font-size: 1.02rem; color: var(--color-text-primary);
  text-decoration: none; transition: color .15s;
}
.tnav-nav a:hover { color: var(--color-accent); }

/* ── Accent nav link (Offers) — replaces inline style ────────────────── */
.tnav-nav-offer { color: var(--color-accent) !important; font-weight: 800 !important; }

.tnav-btn-lang {
  white-space: nowrap;
  background: none; border: 1.5px solid var(--color-border); border-radius: 8px;
  padding: 8px 13px; font-weight: 700; font-size: .92rem; cursor: pointer;
  color: var(--color-text-primary); font-family: inherit;
  transition: border-color .15s;
}
.tnav-btn-lang:hover { border-color: var(--color-accent); color: var(--color-accent); }

.tnav-btn-add {
  background: var(--color-primary); color: #fff; border: 0;
  border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: .98rem;
  cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.tnav-btn-add:hover { background: var(--color-accent); color: #fff; }
#hamburger { border: none; font-size:1.4rem; }
.btn-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-primary); display: grid; place-items: center;
  cursor: pointer; font-size: 1.02rem; transition: border-color .15s, color .15s;
}
.btn-ico:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ── Header logged-in user menu (replaces the auth-sheet button) ──────── */
.acc-usermenu { position: relative; }
.acc-userbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 9px 3px 4px; border: 1.5px solid var(--color-border);
  background: var(--color-surface); border-radius: var(--radius-pill);
  cursor: pointer; transition: border-color .15s;
}
.acc-userbtn:hover { border-color: var(--color-accent); }
.acc-userbtn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.acc-userbtn i { font-size: .7rem; color: var(--color-text-secondary); }

.acc-userdrop { --bs-dropdown-min-width: 232px; padding: 8px; border: 1px solid var(--color-border); box-shadow: var(--shadow-pop); border-radius: 14px; }
.acc-userdrop .dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-weight: 500; font-size: .96rem; color: var(--color-text-primary);
}
.acc-userdrop .dropdown-item:hover { background: var(--color-surface-2); }
.acc-userdrop .dropdown-item i { width: 18px; text-align: center; color: var(--color-accent); }
.acc-userdrop .dropdown-item.text-danger i { color: inherit; }

/* ── Mobile nav drawer ───────────────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1063; /* above tnav (1062) */
  background: rgba(0,0,0,.42); opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0;
  width: min(82vw, 340px); z-index: 1064; /* above tnav (1062) */
  background: var(--color-surface); padding: 20px;
  transform: translateX(-110%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
[dir="rtl"] .nav-drawer { transform: translateX(110%); }
.nav-drawer.open { transform: none; }

.nav-drawer ul { list-style: none; padding: 0; margin: 0; }
.nav-drawer ul a {
  display: flex; align-items: center; gap: 12px; padding: 13px 10px;
  border-radius: 10px; font-weight: 500; font-size: 1.05rem;
  color: var(--color-text-primary); text-decoration: none;
  transition: background .13s;
}
.nav-drawer ul a:hover { background: var(--color-surface-2); }
.nav-drawer ul a i { width: 20px; text-align: center; color: var(--color-accent); }

/* overflow:hidden creates a Block Formatting Context which breaks position:sticky.
   overflow:clip prevents scrolling identically but does NOT create a BFC, so
   sticky elements continue to work while any sheet or drawer is open.
   Fallback: older browsers get overflow:hidden (sticky breaks there, same as before). */
.no-scroll { overflow: hidden; }
@supports (overflow: clip) { .no-scroll { overflow: clip; } }

/* ── Search bar (.sr2-bar) ───────────────────────────────────────────── */
.sr2-bar {
  display: flex; align-items: stretch; gap: 6px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px; padding: 8px;
  box-shadow: 0 8px 40px rgba(2,47,64,.22);
}
.sr2-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; background: transparent; border: 0; border-radius: 12px;
  cursor: pointer; text-align: start; font-family: inherit;
  color: var(--color-text-primary); transition: background .12s;
}
.sr2-field:hover { background: var(--color-surface-2); }
.sr2-field + .sr2-field { border-inline-start: 1px solid var(--color-border); }
.sr2-field .fi    { color: var(--color-accent); font-size: 1.05rem; flex-shrink: 0; }
.sr2-field .fl    { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sr2-field .lb    { font-size: .88rem; color: var(--color-text-secondary); font-weight: 500; line-height: 1.2; }
.sr2-field .val   { font-weight: 500; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; margin-top: 8px;}
.sr2-field .fchev { color: var(--color-text-secondary); font-size: .76rem; flex-shrink: 0; }

.sr2-go {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-cta); color: #fff; border: 0; border-radius: 12px;
  padding: 0 16px; font-weight: 800; font-size: 1.2rem; font-family: inherit;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .14s;
}
.sr2-go:hover { background: var(--color-accent); color: #fff; }

/* ── Carousel ────────────────────────────────────────────────────────── */
/* Asymmetric padding/margin prevents card hover shadow clipping at bottom */
.carousel { overflow: hidden; padding-block: 10px 22px; margin-block: -10px -22px; }
.carousel .swiper { overflow: visible; }

/* A card carousel (.car-auto) whose slides size themselves here, not in Swiper: each carousel sets
   how many slides show (--car-per-view, fractions allowed: 4.5 shows half of the fifth) and the gap
   between them (--car-gap), per screen width, in its page's CSS. Swiper runs with
   slidesPerView: 'auto' and measures these same slides.

   So a card has the same width before Swiper starts and after, at every screen width: the cards
   show from the first paint, and nothing resizes when Swiper starts. The formula is Swiper's own:
   (width − gap × (per view − 1)) ÷ per view.

   Only the carousel's own slides (the direct children): a card's photo slider inside is its own. */
.car-auto > .swiper-wrapper > .swiper-slide {
  width: calc((100% - (var(--car-per-view) - 1) * var(--car-gap)) / var(--car-per-view));
  margin-inline-end: var(--car-gap);
}
.car-auto > .swiper-wrapper > .swiper-slide:last-child { margin-inline-end: 0; }

.car-arrow {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-primary); display: grid; place-items: center;
  cursor: pointer; font-size: .92rem;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.car-arrow:hover { background: var(--color-accent); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(233,90,44,.3); }
.car-arrow.swiper-button-disabled { opacity: .38; cursor: default; pointer-events: none; }

/* ── "View all" pill ─────────────────────────────────────────────────── */
.hsec-see-all {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--color-cta); border-radius: 100px;
  color: var(--color-cta); font-weight: 700; font-size: 1.02rem;
  padding: 10px 28px; text-decoration: none; transition: background .15s, color .15s;
}
.hsec-see-all:hover { background: var(--color-cta); color: #fff; }
.hsec-see-all i { font-size: .78rem; }

/* ── Property card (.p-card) ─────────────────────────────────────────── */
.p-card {
  display: block; text-decoration: none; height: 100%;
  background: var(--color-surface); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.09);
  transition: transform .28s, box-shadow .28s; width: auto;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.13); }

/* overflow: hidden, not auto — this gallery is Swiper-only. Nothing here should let the
   browser's own native scroll answer a touch/trackpad gesture on the same element Swiper is
   dragging: that would drag the favourite/rating/arrow buttons (position:absolute children of
   this same box) away with the image, and desync Swiper's own idea of the current slide from
   what's actually on screen — which is also how a click can land on the card link underneath
   instead of the arrow button.

   Before Swiper has initialised, overflow:hidden alone already does the right thing: the
   slides stack in normal block flow and only the first one shows, clipped cleanly, with
   nothing to scroll — exactly what a brief pre-JS moment should look like. */
.p-card-img { position: relative; height: 210px; background: var(--color-surface-2); overflow: hidden; }

.p-card-img::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 40%);
}
/* Individual slides inside a .slide-img Swiper container. width:100% matches Swiper's own
   base-CSS default, made explicit here so the first slide is correctly sized from the very
   first paint regardless of stylesheet load order. */
.slide-img .swiper-slide { width: 100%; height: 100%; }
.slide-img .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 7;
  width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--color-primary);
  font-size: .65rem; opacity: 0; transition: opacity .18s;
}
.slide-img:hover .slide-arrow { opacity: 1; }
.slide-prev { inset-inline-start: 8px; }
.slide-next { inset-inline-end: 8px; }

.slide-dots { position: absolute; bottom: 36px; inset-inline: 0; z-index: 7; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.slide-dot  { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.52); transition: all .2s; }
.slide-dot.active { background: #fff; width: 14px; border-radius: 4px; }

/* Wraps one or two .card-offer-tag badges (Monthly Rentals shows both the
   "monthly" tag and, when discounted, the percent-off tag) so they stack
   vertically — the wrapper positions itself on the card, not each tag. */
.card-offer-tags {
  position: absolute; inset-block-start: 11px; inset-inline-start: 10px; z-index: 5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.card-offer-tag {
  background: #C89B3C; color: #fff; font-weight: 800;
  padding: 4px 10px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 4px;
}

.card-wish {
  position: absolute; inset-block-start: 10px; inset-inline-end: 11px; z-index: 5;
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
  display: grid; place-items: center; font-size: .85rem;
  color: var(--color-text-secondary); transition: all .14s;
}
.card-wish:hover, .card-wish.active { background: #fff; color: #E23B3B; }
/* The loading spinner is red whether the heart is being filled or emptied, like the heart itself. */
.card-wish .btn-spinner { color: #E23B3B; }

.card-rating {
  position: absolute; inset-block-end: 10px; inset-inline-end: 11px; z-index: 5;
  display: flex; align-items: center; gap: 3px;
  color: #fff; font-size: .94rem; font-weight: 700;
}
.card-rating .fa-star { color: #F0A63A; font-size: .68rem; }
.card-rating span     { opacity: .7; }

.p-card-body  { padding: 13px 15px 15px; }
.p-card-title { font-size: 1.08rem; font-weight: 500; color: var(--color-text-primary); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card-loc   { font-size: .9rem; color: var(--color-text-secondary); display: flex; align-items: center; gap: 4px; margin-bottom: 9px; }
.p-card-loc .fa-location-dot { font-size: .66rem; color: var(--color-accent); }

.p-card-ams { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding-block: 9px; margin-bottom: 11px; touch-action: pan-x; }
.p-card-ams::-webkit-scrollbar { display: none; }
.p-am   { display: flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; padding-inline: 9px; color: var(--color-text-secondary); }
.p-am:first-child { padding-inline-start: 0; }
.p-am i { color: var(--color-text-secondary); font-size: .68rem; }
.p-am-s { width: 1px; height: 12px; background: var(--color-border); flex-shrink: 0; }

.p-card-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-old    { display: block; font-size: .88rem; color: var(--color-text-secondary); text-decoration: line-through; line-height: 1; margin-bottom: 2px; }
.price-val    { font-size: 1.3rem; font-weight: 800; color: var(--color-accent); line-height: 1; }
.price-unit   { font-size: .86rem; color: var(--color-text-secondary); }

/* ── Sticky search bar (components/search-bar-sticky.js) ────────────────────────
   The bar's wrapper (.search-sticky) is lifted to <body> and fixed while the page is scrolled past
   it; its spacer keeps its place. The top offset is set by the script (under a fixed header, or 0).
   Labels are hidden while it sticks, so the bar is compact. */
/* The bar and its spacer never serve as the browser's scroll anchor: moving the bar into <body>
   would otherwise make the browser nudge the scroll, which can flip the bar back. */
.search-sticky,
.search-sticky-spacer { overflow-anchor: none; }

.search-sticky.is-affixed {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .09);
  animation: search-sticky-in .2s ease;
}
.search-sticky.is-affixed .sr2-field .lb  { display: none; }
.search-sticky.is-affixed .sr2-field .val { margin-top: 0; }
@keyframes search-sticky-in { from { opacity: 0; } to { opacity: 1; } }

/* A unit booked or blocked for the searched dates (search results only). */
.p-card-status { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 50px; font-size: .9rem; font-weight: 700; background: #E9E9E9; color: var(--color-text-secondary); }

/* ── Sheet / Drawer system ───────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 1059;
  background: rgba(0,0,0,.44); opacity: 0; pointer-events: none; transition: opacity .28s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: all; }

/* Flex-column layout: handle + head are fixed, .sheet-body scrolls, .sr2-foot is fixed */
.sheet {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 1060;
  background: var(--color-surface); border-radius: 22px 22px 0 0;
  padding: 0; max-height: 88dvh;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(110%);
  /* visibility hidden by default — snaps invisible on page load (no wandering).
     Delay matches the transform duration so the element hides AFTER sliding away. */
  visibility: hidden;
  transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s .32s;
  box-shadow: 0 -6px 32px rgba(0,0,0,.12);
}
/* When opening: visibility goes visible immediately (delay 0s), then transform slides in */
.sheet.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s 0s; }

.sheet-handle { width: 40px; height: 4px; background: var(--color-border); border-radius: 4px; margin: 12px auto 0; flex-shrink: 0; }
.sheet-head   { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.sheet-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* Scrollable body area inside each sheet */
.sheet-body {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 14px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Desktop: all sheets → centered dialog */
@media (min-width: 768px) {
  .sheet {
    bottom: auto; inset-inline: auto;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0; pointer-events: none;
    max-width: 480px; width: calc(100% - 40px);
    max-height: 85vh;
    border-radius: 20px;
    /* visibility delay matches the longer of transform/.25s and opacity/.25s */
    transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s, visibility 0s .25s;
  }
  .sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: all;
    visibility: visible; transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s, visibility 0s 0s;
  }
  .sheet-handle { display: none; }
  #authSheet    { max-width: 420px; }
  /* Dates sheet wider to accommodate 2 flatpickr months side by side */
  #homeDatesSheet { max-width: 660px; }
}

/* Suppress ALL sheet transitions while the window is being resized —
   prevents sheets from "wandering" when crossing the 768 px breakpoint */
.is-resizing .sheet,
.is-resizing .sheet.open { transition: none !important; }

/* ── Sheet options (single/multi select) ─────────────────────────────── */
.sr2-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 0; background: transparent; font-family: inherit;
  font-size: 1.02rem; font-weight: 500; cursor: pointer; color: var(--color-text-primary);
  transition: background .12s; margin-block: 2px;
}
.sr2-opt:hover { background: var(--color-surface-2); }
.sr2-opt.on    { background: rgba(233,90,44,.08); color: var(--color-accent); }
.sr2-opt .ol   { flex: 1; text-align: start; }
.sr2-opt .ock, .sr2-destlist .ock { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-border); flex-shrink: 0; transition: all .14s; position: relative; }
.sr2-opt.on .ock { background: var(--color-accent); border-color: var(--color-accent); }
/* .sr2-opt.on .ock::after { content:"\f00c"; font-family: "Font Awesome 7 Free"; position: absolute; top: 1px; height: 15px; width: 15px; font-weight: 900; color: #fff; inset-inline-start:1px; font-size: 10px; } */

/* Destination search */
.sr2-destsearch {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-surface-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px;
  /* Stays visible while .sr2-destlist scrolls beneath it — its existing
     background is already solid, so no extra opacity handling is needed. */
  position: sticky; top: 0; z-index: 2;
}
.sr2-destsearch i { color: var(--color-text-secondary); }
.sr2-destsearch input { background: none; border: 0; outline: none; flex: 1; font-family: inherit; font-size: 1.02rem; color: var(--color-text-primary); }

.sr2-destlist { display: flex; flex-direction: column; gap: 2px; }
.sr2-destlist button {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 10px; border: 0; background: transparent; font-family: inherit;
  font-size: 1.02rem; font-weight: 500; cursor: pointer; color: var(--color-text-primary);
  text-align: start; width: 100%; transition: background .12s;
}
.sr2-destlist button:hover { background: var(--color-surface-2); }
.sr2-destlist button.on    { background: rgba(233,90,44,.08); color: var(--color-accent); }
.sr2-destlist button i { color: var(--color-accent); width: 18px; text-align: center; flex-shrink: 0; }
/* Single-select tick — reuses .sr2-opt's own circle styling; margin-inline-start:auto pushes
   it to the end regardless of the icon+text before it, no extra wrapper markup needed. */
.sr2-destlist .ock { margin-inline-start: auto; }
.sr2-destlist button.on .ock { background: var(--color-accent); border-color: var(--color-accent); }

/* ── Calendar inside sheet (.cal-wrap) ───────────────────────────────── */
.cal-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }

/* Outer shell */
.cal-wrap .flatpickr-calendar.inline { width: 100% !important; box-shadow: none !important; border: none !important; }
.cal-wrap .flatpickr-calendar        { width: 100% !important; }

/* Brand colours for the calendar header */
.cal-wrap .flatpickr-months .flatpickr-month { color: var(--color-primary); }
.cal-wrap .flatpickr-current-month { font-family: 'Tajawal', sans-serif; text-align: center; }

/* RTL-specific overrides (direction, nav-button swap, arrow flip, range
   border-radius) live in the RTL OVERRIDES section at the bottom of this file. */

/* Fluid grid — each container uses flex:1 so the layout works for both
   1-month mobile (one container fills 100 %) and 2-month desktop
   (two containers split 50 %/50 % automatically).                           */
.cal-wrap .flatpickr-innerContainer,
.cal-wrap .flatpickr-rContainer       { width: 100% !important; }
.cal-wrap .flatpickr-weekdays         { display: flex !important; width: 100% !important; }
.cal-wrap .flatpickr-weekdaycontainer { flex: 1 1 0% !important; min-width: 0 !important; }
.cal-wrap .flatpickr-weekday          { flex: 0 0 calc(100% / 7) !important; max-width: calc(100% / 7) !important; }
.cal-wrap .flatpickr-days             { display: flex !important; width: 100% !important; }
.cal-wrap .dayContainer               { flex: 1 1 0% !important; min-width: 0 !important; }
.cal-wrap .dayContainer + .dayContainer { box-shadow: none; }
.cal-wrap .flatpickr-day              { flex: 0 0 calc(100% / 7) !important; max-width: calc(100% / 7) !important; }
/* Mobile: flatpickr JS sets an inline pixel width on dayContainer that
   prevents it from filling the full cal-wrap. Override it here only.
   Desktop (≥768px) is handled by the two-column divider block below.  */
@media (max-width: 767px) {
  .cal-wrap .dayContainer { width: 100% !important; max-width: 100% !important; }
  .cal-wrap .flatpickr-days { max-width: 100% !important; }
}

/* ── Two-month desktop divider ───────────────────────────────────────────
   flex: 1 1 0% (above) gives both columns an equal, content-independent
   width that doesn't shift when navigating months.

   gap on both flex rows creates a symmetric channel; with flex: 1 1 0%
   each column is exactly (100% − gap) / 2, so the gap midpoint is always
   at exactly 50% of the container.

   A single ::after on flatpickr-innerContainer draws one line that spans
   both the weekday header and the day grid — one rule instead of two.

   inset-inline-start is RTL/LTR-aware:
     LTR → left  : left edge of 1 px line at calc(50% − 0.5px) → centre ✓
     RTL → right : right edge at calc(50% − 0.5px) → centre = 50% ✓        */
@media (min-width: 768px) {
  .cal-wrap .flatpickr-weekdays,
  .cal-wrap .flatpickr-days { gap: 36px !important; }

  .cal-wrap .flatpickr-innerContainer { position: relative; }
  .cal-wrap .flatpickr-innerContainer::after {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: calc(50% - 0.5px);
    width: 1px;
    background: var(--color-border);
    pointer-events: none;
  }
}

/* Range highlight colours */
.cal-wrap .flatpickr-day.selected,
.cal-wrap .flatpickr-day.startRange,
.cal-wrap .flatpickr-day.endRange {
  background: var(--color-accent) !important; border-color: var(--color-accent) !important; color: #fff !important;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* .cal-wrap .flatpickr-day.inRange {
  background: rgba(233,90,44,.12) !important;
  box-shadow: -5px 0 0 rgba(233,90,44,.12), 5px 0 0 rgba(233,90,44,.12) !important;
} */

.cal-input-hidden { position: absolute; opacity: 0; pointer-events: none; }

/* ── Sheet footer (clear + apply) — pinned at bottom of flex sheet ───── */
.sr2-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 24px; border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.sr2-foot .clear,
.sr2-foot .cancel {
  background: none; border: 1.5px solid var(--color-border); border-radius: 10px;
  padding: 10px 18px; font-family: inherit; font-weight: 700; cursor: pointer;
  color: var(--color-text-secondary); transition: border-color .14s;
}
.sr2-foot .clear:hover,
.sr2-foot .cancel:hover { border-color: var(--color-text-secondary); }
.sr2-foot .apply {
  flex: 1; background: var(--color-cta); color: #fff; border: 0;
  border-radius: 10px; padding: 11px 20px; font-family: inherit; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .14s;
}
.sr2-foot .apply:hover { background: var(--color-accent); }
.sr2-foot .apply:disabled {
  background: var(--color-surface-2); color: var(--color-text-secondary);
  cursor: not-allowed;
}

/* ── Mobile search sheet fields ──────────────────────────────────────── */
.hsf-field {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-surface-2); border-radius: 14px; padding: 13px 14px;
  /* Button resets so <button> looks identical to <label> */
  border: 0; cursor: pointer; font-family: inherit;
  width: 100%; text-align: start;
}
.hsf-ic   { color: var(--color-accent); font-size: .95rem; flex-shrink: 0; width: 18px; }
.hsf-t    { flex: 1; min-width: 0; }
.hsf-lb   { display: block; font-size: .84rem; color: var(--color-text-secondary); font-weight: 500; margin-bottom: 2px; }
/* .hsf-sel used both on <select> (legacy) and <div> (sub-sheet value display) */
.hsf-sel  { display: block; font-size: 1.02rem; font-weight: 500; color: var(--color-text-primary); width: 100%; background: none; border: 0; outline: none; font-family: inherit; }
.hsf-chev { color: var(--color-text-secondary); font-size: .7rem; flex-shrink: 0; }

/* ── Auth / OTP sheet ────────────────────────────────────────────────── */
/* .auth-body doubles as .sheet-body — flex:1 + overflow for the auth sheet */
.auth-body    { flex: 1; overflow-y: auto; min-height: 0; padding: 14px 20px 20px; -webkit-overflow-scrolling: touch; }
.auth-logo    { text-align: center; }
.auth-tagline { font-size: var(--fs-h3); color: var(--color-text-primary); }
.auth-terms   { font-size: var(--fs-sm); color: var(--color-text-secondary); }
.auth-terms a { font-weight: 700; color: var(--color-accent); }

.auth-otp-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--color-text-secondary); font-size: var(--fs-sm); font-weight: 700;
  font-family: inherit;
}
.auth-otp-back:hover { color: var(--color-text-primary); }
.auth-otp-timer { font-size: var(--fs-md); color: var(--color-text-secondary); }
.auth-otp-timer span { font-weight: 800; color: var(--color-accent); }

/* A form field, the same on every guest-web form and component: .gw-fld holds its label, its
   input and its error message; .gw-input is the one-line input (or a box, on a textarea). */
.gw-fld { display: flex; flex-direction: column; }
.gw-fld label { font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-secondary); margin-bottom: 6px; }
.gw-input {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface-2); padding: 11px 13px; font-family: inherit;
  font-size: .98rem; color: var(--color-text-primary); transition: border-color .14s, background .14s;
}
.gw-input:focus { outline: 0; border-color: var(--color-accent); background: var(--color-surface); }
.gw-input[readonly] { color: var(--color-text-secondary); cursor: default; }

/* A field with an error, the same on every guest-web form, sheet and component: Http.markInvalid
   adds .is-invalid, and the field's own border turns the error colour — a .gw-input, a sheet's
   textarea, checkout's promo field, Bootstrap's .form-control (the login sheet, search's name
   filter), any field added later. !important keeps the field red while the guest is typing in it,
   over each field's own :focus colour. */
:is(input, textarea, select).is-invalid { border-color: var(--color-deal) !important; }

/* A field's error message, the same on every guest-web form, sheet and component. Bootstrap's
   .invalid-feedback places it (under its field, hidden until Http.markInvalid shows it with
   .d-block); this is only its look. */
.invalid-feedback { margin-top: 5px; font-size: var(--fs-sm); color: var(--color-deal); }

/* border is transparent (not none) so the invalid-state color swap below doesn't shift layout —
   Http.markInvalid adds .is-invalid to #authPhone itself, which has no visible border of its own
   (this row's background pill is the border), so :has() reaches up to color the row that does. */
.phone-row {
  display: flex; align-items: center; gap: 10px; background: var(--color-surface-2);
  border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px;
}
.phone-row:has(.is-invalid) { border-color: var(--color-deal); }
.phone-row .cc { color: var(--color-text-secondary); font-weight: 700; white-space: nowrap; }
.phone-row input { background: none; border: 0; outline: none; font-family: inherit; font-size: .94rem; flex: 1; }
.phone-row .iti { flex: 1; }
.phone-row .iti input { width: 100%; }

.otp-row   { display: flex; justify-content: center; gap: 10px; }
.otp-input {
  width: 54px; height: 54px; border-radius: 12px;
  border: 2px solid var(--color-border); text-align: center;
  font-size: 1.4rem; font-weight: 800; font-family: inherit;
  outline: none; transition: border-color .14s;
}
.otp-input:focus { border-color: var(--color-accent); }

.form-group { margin-bottom: 1rem; }
.form-label { font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-secondary); }
.form-control {
  /* The space inside the field on the left and right, named so its invalid state below reuses it. */
  --form-control-pad-x: 13px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface-2); padding: 11px var(--form-control-pad-x); font-family: inherit;
  font-size: .98rem; color: var(--color-text-primary); transition: border-color .14s, background .14s;
}
.form-control:focus { border-color: var(--color-accent); background: var(--color-surface); box-shadow: none; }

/* Bootstrap adds three things of its own to an invalid .form-control: a warning icon, extra padding
   on one side to make room for it, and a red glow on focus. None of the site's other fields has
   them, so they are taken back off — the field keeps only the red border above, like every other
   one.

   The padding goes back to the field's own (--form-control-pad-x above) on both sides
   (padding-inline), not only the right: the site loads Bootstrap's left-to-right build for both
   languages today, which adds the space on the right even in Arabic, but its right-to-left build
   adds it on the left. Changing the field's padding above changes this one with it. */
.form-control.is-invalid { background-image: none; padding-inline: var(--form-control-pad-x); }
.form-control.is-invalid:focus { box-shadow: none; }

/* ── Footer — dark brand theme ───────────────────────────────────────── */
.dfoot {
  background: #060C1A;
  border-top: none;
  color: #B0BEC5;
  padding: 3rem 0 2rem;
}
.dfoot h6 {
  font-weight: 700; font-size: 1rem;
  color: #FFFFFF; margin-bottom: 14px; text-align: start;
}
.dfoot ul li a {
  font-size: .98rem; color: #B0BEC5;
  text-decoration: none; display: block; text-align: start;
  transition: color .13s;
}
.dfoot ul li a:hover { color: var(--color-accent); }
.df-brand-name { font-weight: 800; font-size: 1.5rem; color: #FFFFFF; }
.df-blurb { color: #B0BEC5; }
/* The contact lines follow the page's direction (start side), icon first. This is more specific than the
   generic ".dfoot ul li a" link rule above, which makes links blocks. The number and the email are
   wrapped in <bdi dir="ltr"> in the markup, so they read left to right inside an Arabic line. The list's own start padding is removed: the browser's
   default is on the right in Arabic, which pushed the lines in from the logo's edge. */
.df-contact { padding-inline-start: 0; }
.df-contact li + li { margin-top: .35rem; }
.dfoot .df-contact li a { display: flex; align-items: center; gap: .5rem; }
.dfoot .df-contact i { flex: none; width: 1.2em; text-align: center; }
.df-social a {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,.08);
  color: #B0BEC5; text-decoration: none; font-size: .94rem;
  transition: background .14s, color .14s;
}
.df-social a:hover { background: var(--color-accent); color: #fff; }
.df-copy { font-size: .96rem; color: #6B7A80; }
.df-compliance {
  padding-inline-start: 13px;
  width: 80%;
}
.df-compliance li { position: relative; padding-inline-start: 4px; }
.df-compliance li::before {
    content: "\f00c";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    position: absolute;
    inset-inline-start: -14px;
    top: 1px;
    color: #28a745;
    font-size: 12px;
}

/* ── Footer trust badges ─────────────────────────────────────────────── */
.f-trust {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .86rem; color: rgba(255,255,255,.38);
}

/* ── Nav drawer action buttons (add property + language) ─────────────── */
.nav-drawer-actions {
  border-top: 1px solid var(--color-border);
  padding-top: 14px; margin-top: 4px;
}
.nav-drawer-actions .tnav-btn-add {
  display: flex; align-items: center; justify-content: center;
  width: 100%; text-decoration: none;
}
.nav-drawer-actions .tnav-btn-lang { width: 100%; text-align: center; }

/* ── Slightly more horizontal padding on small screens ───────────────── */
@media (max-width: 1200px) {
  .container-xl { padding-inline: 20px; }
}

@media (max-width: 575.98px) {
  .container { padding-inline: 20px; }
}

/* ── Utility ─────────────────────────────────────── */
.page-content > main { padding-block: 16px 60px; }
.text-accent { color: var(--color-accent); }
.bg-accent { background: var(--color-cta); border-color: var(--color-cta); color: #fff}
.border-text-accent { border-color: var(--color-cta); color: var(--color-cta);}
.bg-accent-hover:hover { background: var(--color-accent); color: #fff; }
.bg-accent-hover:hover > * { color: #fff; }

/* ==========================================================================
   RTL OVERRIDES — applied when <html dir="rtl">
   ========================================================================== */

html[dir="rtl"] .breadcrumb-item:first-child { padding-left: 0.5rem; }
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-left: 0.5rem;
  padding-right: 0;
}

/* Calendar — RTL layout + nav-button swap (prev on right, next on left) */
html[dir="rtl"] .cal-wrap .flatpickr-calendar  { direction: rtl; }
html[dir="rtl"] .cal-wrap .flatpickr-months    { position: relative; }
html[dir="rtl"] .cal-wrap .flatpickr-prev-month { left: auto  !important; right: 0 !important; }
html[dir="rtl"] .cal-wrap .flatpickr-next-month { right: auto !important; left: 0 !important; }

/* Flip flatpickr month-nav SVG arrows for RTL:
   prev-month is positioned on the RIGHT → needs a right-pointing → arrow
   next-month is positioned on the LEFT  → needs a left-pointing  ← arrow
   scaleX(-1) on the SVG flips each icon's facing direction.              */
html[dir="rtl"] .cal-wrap .flatpickr-prev-month svg,
html[dir="rtl"] .cal-wrap .flatpickr-next-month svg { transform: scaleX(-1); }

/* RTL range-cap border-radius:
   flatpickr defaults startRange to round on the LEFT (LTR start).
   In our RTL calendar the start date sits on the RIGHT, so we
   swap the rounded corners so the cap faces the correct side.    */
html[dir="rtl"] .cal-wrap .flatpickr-day.startRange:not(.endRange) {
  border-radius: 0 50px 50px 0 !important;   /* round on right  */
}
html[dir="rtl"] .cal-wrap .flatpickr-day.endRange:not(.startRange) {
  border-radius: 50px 0 0 50px !important;   /* round on left   */
}

html[dir="rtl"] .cal-wrap .flatpickr-current-month input.cur-year {
  direction: ltr;
}

/* ==========================================================================
   FILTER SHEET SUB-COMPONENTS
   Used by search page filter sheets — not duplicated in search.css
   ========================================================================== */

/* ── Price sheet ─────────────────────────────────────────────────────── */
.sr2-price-val {
  font-size: 1.15rem; font-weight: 800; color: var(--color-primary);
}
.sr2-price-sep { color: var(--color-text-secondary); margin-inline: 6px; }

/* Quick price presets */
.sr2-quick h5 { font-size: .9rem; font-weight: 700; margin-bottom: 8px; color: var(--color-text-primary); }
.sr2-quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sr2-quick-row button {
  border: 1.5px solid var(--color-border); border-radius: 50px;
  padding: 5px 14px; background: none; font-family: inherit;
  font-size: .86rem; font-weight: 600; cursor: pointer;
  color: var(--color-text-primary); transition: border-color .14s, background .14s, color .14s;
}
.sr2-quick-row button:hover { border-color: var(--color-accent); }
.sr2-quick-row button.active {
  border-color: var(--color-accent);
  background: rgba(233,90,44,.09);
  color: var(--color-accent);
}

/* ── A lookup icon (amenity, facility, "suitable for") drawn as a mask in the chip's own colour ── */
.chip-icon {
  display: inline-block; width: 1em; height: 1em; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ── Amenities grid ──────────────────────────────────────────────────── */
.sr2-amen { display: flex; flex-wrap: wrap; gap: 8px; }
.sr2-amen .am {
  border: 1.5px solid var(--color-border); border-radius: 50px;
  padding: 7px 16px; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 500; font-family: inherit;
  color: var(--color-text-primary);
  transition: border-color .14s, background .14s, color .14s;
}
.sr2-amen .am:hover { border-color: var(--color-text-secondary); }
.sr2-amen .am.on {
  border-color: var(--color-accent);
  background: rgba(233,90,44,.09);
  color: var(--color-accent);
}
.sr2-amen .am i { font-size: .8rem; }

/* ── Sub-section heading inside sheet ────────────────────────────────── */
.sr2-section-title {
  font-size: .88rem; font-weight: 700;
  color: var(--color-text-secondary); text-transform: uppercase;
  letter-spacing: .04em; margin-block: 18px 10px;
}
.sr2-section-title:first-child { margin-top: 0; }

/* ── Stepper rows (bedrooms, capacity, etc.) ─────────────────────────── */
.sr2-step {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.sr2-step:last-of-type { border-bottom: none; }
.sr2-step-label { font-weight: 500; font-size: 1rem; color: var(--color-text-primary); }

.sr2-step-ctrl { display: flex; align-items: center; gap: 14px; }
.st-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--color-border); background: none;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  color: var(--color-text-primary);
  transition: border-color .14s, background .14s, color .14s;
  font-family: inherit;
}
.st-btn:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.st-btn:disabled { opacity: .35; cursor: default; }
.st-v { font-weight: 700; font-size: 1.05rem; min-width: 24px; text-align: center; }
/* Hidden input stores stepper value for AJAX param */
.st-hidden { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* ── Loading / error states ─────────────────────────────────────────────── */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  min-height: 280px;
}
.page-error {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ── Pagination — accent theme ─────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; }
.pagination .page-link {
  color: var(--color-text-primary);
  border-color: var(--color-border);
  border-radius: 8px !important;
  font-weight: 600;
  padding: 7px 14px;
  transition: background .15s, border-color .15s, color .15s;
}
.pagination .page-item.active .page-link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.pagination .page-link:hover {
  background: var(--color-surface-2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.pagination .page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.pagination { gap: 4px; }

/* ── FAQ accordion (.faq-accordion) — shared by every landing page type ─── */
.faq-accordion .accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-size: var(--fs-h3);
  font-weight: 500;
  padding: 18px 20px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-accent);
  background: rgba(233, 90, 44, .07);
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }

/* Chevron to the far end of the row, in both directions. Bootstrap ships `margin-left: auto`,
   which in RTL pushes it to the start — landing it next to the question instead of opposite. */
.faq-accordion .accordion-button::after {
  margin-left: 0;
  margin-inline-start: auto;
}
.faq-accordion .accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E95A2C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.faq-accordion .accordion-body { font-size: var(--fs-body); color: var(--color-text-secondary); line-height: 1.45; }

/* ==========================================================================
   TOAST NOTIFICATIONS — driven by notify.js (window.Notify).
   RTL/LTR safe (logical properties + text-align:start); long messages wrap.
   ========================================================================== */
.notify-host {
  position: fixed; inset-block-end: 20px; inset-inline: 0; z-index: 1200;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-inline: 16px; pointer-events: none;
}
.notify {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(92vw, 380px); width: fit-content;
  background: var(--color-primary); color: #fff;
  padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  font-size: .92rem; font-weight: 600; line-height: 1.5;
  text-align: start;
  opacity: 0; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}
.notify.is-in { opacity: 1; transform: none; }
.notify > i { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.notify > span {
  min-width: 0;
  white-space: normal;          /* long text wraps to multiple lines */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.notify--success > i { color: #6EE7B7; }
.notify--error   { background: var(--color-deal); }
.notify--warning { background: #B45309; }
.notify--info    { background: #1D4ED8; }

/* ── Date-range-sheet nights-summary strip — shared by every page with a
   dates sheet (home, search, unit-detail, checkout). Ported from the
   unit-detail mockup's own styles, unchanged. */
.ud-dates-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-surface-2); margin-bottom: 14px; font-size: .9rem;
}
.ud-dates-summary-range {
  display: flex; align-items: center; gap: 8px;
}
.ud-dates-summary-item { font-weight: 700; color: var(--color-primary); }
.ud-dates-summary-arrow { color: var(--color-text-secondary); font-size: .8rem; }
.ud-dates-summary-nights {
  font-size: .88rem; font-weight: 600; color: #fff;
  background: var(--color-accent); border-radius: 50px; padding: 2px 10px;
}
@media (max-width: 480px) {
  .ud-dates-summary { text-align: center; flex-direction: column; }
}

/* ── App download banner (guest-web::app-banner component) ──────────────
   Shared, not Home-specific — any page using the component gets this. */
.dapp2 {
  background: linear-gradient(135deg, var(--color-primary) 0%, #053D55 60%, #085476 100%);
  color: #fff; position: relative; overflow: hidden;
  min-height: 320px;
}
.dapp2 .row { z-index: 1; }
.dapp2-text { text-align: center; }
.da2-tag {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(233,90,44,.2); color: rgb(255,168,110);
  border: 1px solid rgba(233,90,44,.35); border-radius: 50px;
  padding: 5px 14px; font-size: .96rem; font-weight: 800;
}
.da2-app-logo { margin-inline: auto; border-radius: 14px; position: relative; z-index: 1; }
.da2-tag::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset-inline-start: -72px; inset-block-start: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,90,44,.3) 0%, transparent 65%);
}
.da2-title { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 800; line-height: 1.2; color: #fff; }
.da2-desc  { position: relative; z-index: 1; color: rgba(255,255,255,.72); font-size: 1.04rem; }

/* Guest's CTA and both owner store buttons share this one style on purpose —
   two apps, equal footing, no "primary vs secondary" visual hierarchy between them. */
.da2-one-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-accent); color: #fff; border-radius: 10px;
  padding: 10px 22px; font-weight: 800; font-size: 1.08rem; text-decoration: none;
  box-shadow: 0 6px 22px rgba(233,90,44,.38); transition: background .14s;
}
.da2-one-btn:hover { background: var(--color-cta); color: #fff; }
.da2-one-btn i { font-size: 1.25rem; }

.dapp2-owner .d-flex { justify-content: center; }

/* Divider between the guest/owner halves — a vertical rule side by side on
   desktop; a centered horizontal rule above the owner block once they stack. */
@media (min-width: 992px) {
  .dapp2-owner { border-inline-start: 1px solid rgba(255,255,255,.14); padding-inline-start: 2rem; }
}
@media (max-width: 991.98px) {
  .dapp2-owner {
    border-top: 1px solid rgba(255,255,255,.14); padding-top: 2rem; margin-inline: auto;
  }
  .da2-title { font-size: 1.5rem; }
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────
   Bootstrap's own .breadcrumb / .breadcrumb-item (the same structure legacy's pages use), themed
   onto this design system's tokens through Bootstrap's own CSS variables rather than by
   overriding its classes. Shared by every page that shows one (landing, unit detail). */
.landing-breadcrumb {
    --bs-breadcrumb-divider-color: var(--color-text-secondary);
    --bs-breadcrumb-item-active-color: var(--color-text-secondary);
}
.landing-breadcrumb .breadcrumb-item a { color: var(--color-text-primary); text-decoration: none; }
.landing-breadcrumb .breadcrumb-item a:hover { color: var(--color-accent); }

/* ── Pill list — a wrap of pills or chips capped at 3 rows, scrollable past that ───────────
   Default: a plain flex-wrap capped at 3 rows tall, overflow hidden rather than scrollable — a
   short list sits on one line well under the cap and is never clipped; a long list is capped from
   the very first paint instead of rendering fully expanded and then being capped later, so there's
   nothing to visibly snap into place once JS runs.
   .pill-list--scroll (added by components/pill-list.js only when the list really has more content
   than the cap can show): swaps to a 3-row grid with horizontal scroll past that, so the hidden
   pills become reachable. It can't be the default — grid-auto-flow: column always pre-allocates all
   3 row-tracks, so a short list would be spread thin down the column instead of sitting on one
   line. Only the real wrapped height can tell, which is why JS decides, not CSS.
   A list sets how tall one row is (--pill-row-h) and the gap (--pill-gap); the cap is worked out
   from them, so lists of different pill sizes share these rules. Defaults match the landing pills. */
.pill-list {
    --pill-rows: 3;
    --pill-row-h: 40px;
    --pill-gap: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--pill-gap);
    max-height: calc(var(--pill-rows) * var(--pill-row-h) + (var(--pill-rows) - 1) * var(--pill-gap) + 2px);
    overflow: hidden;
}
.pill-list--scroll {
    display: grid;
    grid-template-rows: repeat(var(--pill-rows), auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    /* Always scroll (not auto): the bar is always drawn, so a guest can see the list moves sideways. */
    overflow-x: scroll;
    overflow-y: hidden;
    padding-block: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.pill-list--scroll::-webkit-scrollbar { height: 6px; }
.pill-list--scroll::-webkit-scrollbar-track { background: transparent; }
.pill-list--scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-pill); }
.pill-list--scroll::-webkit-scrollbar-thumb:hover { background: var(--color-text-secondary); }

/* ── Brand colour helpers ───────────────────────────────────────────────────────────────────
   One class per brand colour, so a page puts a colour on an element instead of writing the rule
   again. .text-accent and .bg-accent already exist in design.css; these are the rest. */
.text-brand { color: var(--color-primary); }
.text-star { color: #F0A63A; }
.bg-brand { background: var(--color-primary); color: #fff; }
.bg-surface-2 { background: var(--color-surface-2); }
.bg-accent-soft { background: rgba(233, 90, 44, .07); }
.border-accent { border-color: var(--color-accent); }

/* ── Trust card (guest-web::trust-card) — the account page's right column, and checkout's ─────
   A warm card with round icon chips, after the checkout design's trust column. */
.trust-card {
  background: #FCEDE3; border-radius: var(--radius-card); padding: 20px; margin-bottom: 18px;
}
.trust-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 1rem; margin-bottom: 8px;
}
.trust-card-head i { color: var(--color-accent); font-size: 1.15rem; }
.trust-card-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.trust-card-item + .trust-card-item { border-top: 1px solid rgba(0, 0, 0, .06); }
.trust-card-txt b { display: block; font-size: .92rem; }
.trust-card-txt p { font-size: .8rem; color: var(--color-text-secondary); margin-bottom: 0; line-height: 1.2rem; }
.trust-card-ic {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-surface); display: grid; place-items: center; font-size: 1rem;
}
.trust-card-ic--green  { color: #1F9D6B; }
.trust-card-ic--blue   { color: #2E6FD6; }
.trust-card-ic--accent { color: var(--color-accent); }
.trust-card-ic--purple { color: #7c3aed; }

/* ── Skeletons: grey stand-ins while a list loads ───────────────────────── */
/* .skel is any grey block with a soft light passing over it. A card's skeleton mode (unit-card and
   booking-card, skeleton prop) builds the card's frame from these, inside the card's own .p-card,
   so a skeleton is exactly as big as the card that replaces it. The booking card's own rows are in
   profile.css, beside the booking card's styles. */
.skel {
  background: linear-gradient(90deg, var(--color-surface-2) 25%, #fff 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: skel-shine 1.4s ease-in-out infinite;
}
/* The light moves the other way in Arabic, from the reading start. */
[dir="rtl"] .skel { animation-direction: reverse; }
@keyframes skel-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* A skeleton card is not a link: no lift on hover, no pointer. */
.skel-card, .skel-card:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.09); cursor: default; }
/* The card photo's dark bottom shade is for text over a photo; a skeleton has none. */
.skel-card .p-card-img::after { content: none; }

/* A grey text line. */
.skel-line { height: 12px; border-radius: 6px; margin-bottom: 10px; }
.skel-h-lg { height: 16px; }
.skel-w-25 { width: 25%; } .skel-w-30 { width: 30%; } .skel-w-40 { width: 40%; }
.skel-w-50 { width: 50%; } .skel-w-70 { width: 70%; } .skel-w-80 { width: 80%; }

/* The unit card's rows. Each line's height plus its margins equals the room that row takes on a
   real card (title 30.6px, location 32px, the features row's 23px of content, price 26px), so the
   cards replace the skeletons without the list jumping. A change to those rows in .p-card above
   needs the same change here.

   The body is a flex column only so that neighbouring margins add up instead of collapsing into
   each other, which would make the skeleton shorter than the card. */
.skel-card .p-card-body { display: flex; flex-direction: column; }
.skel-title    { height: 16px; border-radius: 6px; margin: 6px 0 9px; }
.skel-loc      { height: 12px; border-radius: 6px; margin: 5px 0 15px; }
.skel-ams-line { height: 12px; border-radius: 6px; margin: 4.5px 0; }
.skel-price    { height: 16px; border-radius: 6px; margin: 5px 0; }

/* ── Empty state (components/empty-state): a list with nothing in it ───── */
/* A large icon in a soft circle and a short message, centred where the list would be — the same
   look as the search page's "no results" (search.css .sr-empty). */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; min-height: 45vh; padding: 32px 16px;
}
.empty-state[hidden] { display: none; }
.empty-state-ic {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent-soft, rgba(233, 90, 44, .09)); color: var(--color-accent); font-size: 2rem;
}
.empty-state-text { max-width: 350px; margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--color-accent); line-height: 1.5; }

/* ── Read more — text cut to a few lines with a "More / Show less" button (common.js ReadMore) ── */
.read-more-text {
  display: -webkit-box; -webkit-line-clamp: var(--read-more-lines, 4); -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-read-more].is-expanded .read-more-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
