/* Phone-only overrides. Loaded with media="(max-width: 760px)" in index.html,
   so nothing here can affect the desktop layout. Add new phone tweaks here. */

/* Search box: two fields per row — [where, area] [check-in, check-out] [guests, price] then the button */
html body.site-mode .site .sbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body.site-mode .site .sbox .sf { grid-column: auto; min-width: 0; }
html body.site-mode .site .sbox .go { grid-column: 1 / -1; }

/* Date fields: value sits on the side (start), not centred (iOS Safari centres it by default) */
html body.site-mode .sbox .sf input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; text-align: start; }
html body.site-mode .sbox .sf input[type="date"]::-webkit-date-and-time-value { text-align: start; margin: 0; }
html[dir="rtl"] body.site-mode .sbox .sf input[type="date"]::-webkit-date-and-time-value { text-align: right; }
html[dir="ltr"] body.site-mode .sbox .sf input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* Price range fits in a half-width cell */
html body.site-mode .sbox .sf-range { gap: 4px; }

/* Home: ads banner first, then the search box; tighter spacing between sections */
html body.site-mode .site { gap: 28px; padding-top: 12px; }
html body.site-mode .site > .ads { order: -1; }

/* Ads banner: shorter */
html body.site-mode .ad-copy { gap: 8px; padding: 16px 16px 18px; }
html body.site-mode .ad-tag { height: 26px; font-size: 12px; }
html body.site-mode .ad h3 { font-size: 20px; line-height: 28px; }
html body.site-mode .ad p { font-size: 13px; line-height: 20px; }
html body.site-mode .ad-clock { height: 32px; }
html body.site-mode .ad-clock .num { font-size: 15px; }
html body.site-mode .ad-cta { font-size: 12.5px; gap: 8px; }
html body.site-mode .ad-btn { height: 36px; padding: 0 14px; font-size: 14px; }

/* Section titles and "see all" */
html body.site-mode .sec-h h2, html body.site-mode .arow-h h2 { font-size: 18px; line-height: 26px; }
html body.site-mode .sec-count { min-width: 26px; height: 26px; font-size: 13px; }
html body.site-mode .arow-go { height: 36px; padding: 0 12px; font-size: 14px; white-space: nowrap; flex: none; }
html body.site-mode .arow-h h2 { min-width: 0; }
html body.site-mode .arow-go svg { width: 16px; height: 16px; }

/* Card rows: one card and a third on screen so it reads as scrollable.
   Every home section scrolls sideways (rows, "all stays", why-us, reviews). Search results stay a list. */
html body.site-mode .arow-track,
html body.site-mode .site > .sblock .agrid,
html body.site-mode .site > .sblock .why-grid,
html body.site-mode .site > .sblock .rev-grid {
  display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 1.333);
  gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 4px 8px; margin: -4px;
}
html body.site-mode .arow-track::-webkit-scrollbar,
html body.site-mode .site > .sblock .agrid::-webkit-scrollbar,
html body.site-mode .site > .sblock .why-grid::-webkit-scrollbar,
html body.site-mode .site > .sblock .rev-grid::-webkit-scrollbar { display: none; }
html body.site-mode .arow-track > *, html body.site-mode .site > .sblock .agrid > *,
html body.site-mode .site > .sblock .why-grid > *, html body.site-mode .site > .sblock .rev-grid > * { scroll-snap-align: start; min-width: 0; }

/* Card name / code line in medium weight */
html body.site-mode .ac-sub { font-weight: 500; }

/* Rating: yellow star, 19px */
html body.site-mode .ac-rate { display: inline-flex; align-items: center; gap: 2px; }
html body.site-mode .ac-star { color: #F5B301; font-size: 19px; line-height: 1; }

/* ---------- Colour: brand primary (teal) + its complementary accent (warm coral) ---------- */
html body.site-mode { --accent: #1A9ECB; --accent-ink: #FFFFFF; --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--surface)); --accent-text: #0B7FA8; }
:root[data-theme="dark"] body.site-mode { --accent-text: #F3A27A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode { --accent-text: #F3A27A; } }

/* Section titles get a small accent mark */
html body.site-mode .sec-h h2::before, html body.site-mode .arow-h h2::before { content: ""; display: inline-block; width: 4px; height: 18px; margin-inline-end: 8px; border-radius: 4px; background: var(--accent); vertical-align: -3px; }
html body.site-mode .arow-go { color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }


/* Ads: accent call-to-action and dots */
html body.site-mode .ad-btn { background: var(--accent); color: var(--accent-ink); }
html body.site-mode .ad-btn svg { color: var(--accent-ink) !important; }
html body.site-mode .ad-btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
html body.site-mode .ads-dots button[aria-current="true"] { background: var(--accent); }

/* Cards: lighter shadow, accent "new" badge, accent fast-reply pill */
html body.site-mode .ac { box-shadow: 0 1px 3px rgba(18, 35, 46, .06); }
html body.site-mode .ac:hover { box-shadow: 0 2px 8px rgba(18, 35, 46, .08); }
html body.site-mode .ac-badge { box-shadow: none; }
html body.site-mode .ac-badge.is-new { background: var(--accent); color: var(--accent-ink); }
html body.site-mode .ac-fast { background: var(--accent-soft); color: var(--accent-text); }

/* Card price: amount 20px in primary, "for 2 nights" 16px medium */
html body.site-mode .ac-p { font-size: 16px; font-weight: 500; color: var(--ink-2); }
html body.site-mode .ac-p b { font-size: 20px; font-weight: 800; color: var(--primary-text); }
html body.site-mode .ac-p span { font-size: 16px; font-weight: 500; }
html body.site-mode .ac-p s { font-size: 14px; }

/* ---------- Icons and buttons in the accent colour ---------- */
html body.site-mode { --icon: var(--accent-text); }
html body.site-mode .ac-facts svg, html body.site-mode .feat svg, html body.site-mode .why-ic, html body.site-mode .ac-ph svg, html body.site-mode .gal-ph svg { color: var(--accent-text); }
html body.site-mode .why-ic { background: var(--accent-soft); }
html body.site-mode .sbox .sf::after, html body.site-mode .tabbar button[aria-current="true"] { color: var(--navy); }

/* Solid buttons */
html body.site-mode .sbox .go, html body.site-mode .btn.primary { background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent) !important; }
html body.site-mode .sbox .go svg, html body.site-mode .btn.primary svg { color: var(--accent-ink) !important; }
html body.site-mode .sbox .go:hover, html body.site-mode .btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000) !important; }

/* Outline buttons ("see all") */
html body.site-mode .arow-go { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
html body.site-mode .arow-go svg { color: var(--accent); }

/* Category chips ("الكل", "مباشر بحر"…) keep the brand primary colour, icons included */
html body.site-mode .site .cats .cat svg { color: currentColor; }

/* ---------- Ads banner: photo slides ---------- */
/* Layout: tag (and countdown) at the top, the view in the middle, then title, line, and the
   booking button with the stay name at the bottom over a dark wash. */
html body.site-mode .ads-view { border-radius: 20px; box-shadow: 0 6px 18px rgba(18, 35, 46, .14); }
html body.site-mode .ad { position: relative; display: block; min-height: 164px; height: 164px; isolation: isolate; --ad-c: 8, 84, 93; }
html body.site-mode .ad-sea { --ad-c: 6, 60, 68; }
html body.site-mode .ad-ink { --ad-c: 14, 28, 44; }
html body.site-mode .ad-hot { --ad-c: 110, 18, 26; }
html body.site-mode .ad-sun { --ad-c: 105, 52, 8; }
html body.site-mode .ad-bg { display: block; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 7s ease-out; }
html body.site-mode .ad[aria-hidden="true"] .ad-bg { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { html body.site-mode .ad-bg { transition: none; transform: none !important; } }
html body.site-mode .ad.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(var(--ad-c), .97) 0%, rgba(var(--ad-c), .85) 30%, rgba(var(--ad-c), .35) 58%, rgba(var(--ad-c), 0) 74%),
              linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 26%); }
html body.site-mode .ad-copy { position: static; min-height: 164px; height: 164px; max-width: none; justify-content: flex-end; align-items: stretch; gap: 1px; padding: 42px 14px 12px; }
/* top row: tag on the start side, countdown on the end side */
html body.site-mode .ad-tag { position: absolute; top: 12px; inset-inline-start: 12px; height: 26px; padding: 0 10px; font-size: 11.5px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .35); }
html body.site-mode .ad-clock { position: absolute; top: 12px; inset-inline-end: 12px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 11.5px; gap: 4px; }
html body.site-mode .ad-clock .num { font-size: 12.5px; }
/* bottom block */
html body.site-mode .ad h3 { font-size: 20px; line-height: 28px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
html body.site-mode .ad p { max-width: none; font-size: 13px; line-height: 19px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.site-mode .ad-cta { margin-top: 6px; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; opacity: 1; }
html body.site-mode .ad-cta span { min-width: 0; font-size: 12px; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; order: 2; }
html body.site-mode .ad-cta span::before { content: "📍 "; }
html body.site-mode .ad-btn { order: 1; flex: none; height: 34px; padding: 0 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
/* No photo at all: colour gradient with the offer's icon on the far side */
html body.site-mode .ad:not(.has-bg) .ad-art { display: grid; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 45%; z-index: -1; background: none; }
html body.site-mode .ad:not(.has-bg) .ad-art img { display: none; }
html body.site-mode .ad:not(.has-bg) .ad-art img.ad-pic { display: block; width: 92px; height: 92px; border-radius: 16px; object-fit: cover; transform: translateY(-14px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); border: 2px solid rgba(255, 255, 255, .5); }
html body.site-mode .ad:not(.has-bg) .ad-emoji { font-size: 52px; opacity: .85; transform: translateY(-14px); }
html body.site-mode .ads { gap: 10px; }
html body.site-mode .ads-dots button { width: 6px; height: 6px; }
html body.site-mode .ads-dots button[aria-current="true"] { width: 20px; }

/* Category chips: only the selected one is coloured (primary), the rest light grey */
html body.site-mode .site .cats .cat { background: #EEF1F3; color: #4A5A63; box-shadow: none; }
html body.site-mode .site .cats .cat:hover { background: #E3E8EB; }
html body.site-mode .site .cats .cat[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: none; }
:root[data-theme="dark"] body.site-mode .site .cats .cat:not([aria-pressed="true"]) { background: var(--surface-2); color: var(--ink-2); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]) { background: var(--surface-2); color: var(--ink-2); box-shadow: none; } }

/* ---------- Ads banner scrolls by hand (no auto-advance on phones); same look as before: one full-width slide ---------- */
html body.site-mode .ads-view { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 20px; box-shadow: 0 6px 18px rgba(18, 35, 46, .14); }
html body.site-mode .ads-view::-webkit-scrollbar { display: none; }
html body.site-mode .ads-track { transform: none !important; transition: none; }
html body.site-mode .ad { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
html body.site-mode .ads-arrow { display: none; }
html body.site-mode .ad-cta .ad-n::before { content: "🏠 "; }

/* ---------- Apartment page: 20px title with the offer countdown beside it ---------- */
html body.site-mode .apt-trow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
html body.site-mode .apt-head h1 { font-size: 20px; line-height: 28px; min-width: 0; }
html body.site-mode .apt-cd { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; padding: 6px 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
html body.site-mode .apt-cd small { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
html body.site-mode .apt-cd-b { display: flex; gap: 4px; }
html body.site-mode .apt-cd-b span { display: flex; flex-direction: column; align-items: center; min-width: 30px; padding: 3px 2px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
html body.site-mode .apt-cd-b b { font-size: 15px; line-height: 18px; font-weight: 800; }
html body.site-mode .apt-cd-b b.tick { animation: none; }
html body.site-mode .apt-cd-b i { font-style: normal; font-size: 9.5px; line-height: 12px; opacity: .9; }

/* ================= Stay page (phone) ================= */
/* frame colours: in dark mode every frame is a lighter tone than the page so it stands out */
html body.site-mode { --m-frame: var(--surface); --m-line: transparent; --m-tile: var(--accent-soft); --m-tile-pri: color-mix(in srgb, var(--primary) 12%, var(--surface)); --m-pri-ink: var(--primary); --m-tile-red: color-mix(in srgb, #E5484D 12%, var(--surface)); --m-red-ink: #B42318;
  --m-cal: #FFFFFF; --m-field: #F4F5F6; --m-field-in: var(--surface); }
:root[data-theme="dark"] body.site-mode { --m-frame: #1A2C3E; --m-line: rgba(255, 255, 255, .10); --m-tile: color-mix(in srgb, var(--accent) 26%, #26384A); --m-tile-pri: color-mix(in srgb, #0E2D4A 45%, #26384A); --m-pri-ink: #FFFFFF; --m-tile-red: color-mix(in srgb, #E5484D 30%, #26384A); --m-red-ink: #FFFFFF;
  --m-cal: #1A2C3E; --m-field: #314650; --m-field-in: #3B525D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode { --m-frame: #1A2C3E; --m-line: rgba(255, 255, 255, .10); --m-tile: color-mix(in srgb, var(--accent) 26%, #26384A); --m-tile-pri: color-mix(in srgb, #0E2D4A 45%, #26384A); --m-pri-ink: #FFFFFF; --m-tile-red: color-mix(in srgb, #E5484D 30%, #26384A); --m-red-ink: #FFFFFF;
  --m-cal: #1A2C3E; --m-field: #314650; --m-field-in: #3B525D; } }
html body.site-mode .m-only { display: revert !important; }
/* type scale on this page: 14px to 24px, medium to bold */
html body.site-mode .apt, html body.site-mode .apt * { font-weight: 500; }
html body.site-mode .apt b, html body.site-mode .apt strong, html body.site-mode .apt h1, html body.site-mode .apt h2, html body.site-mode .apt h3, html body.site-mode .apt th { font-weight: 700; }
html body.site-mode .apt .sec-note, html body.site-mode .apt small, html body.site-mode .apt .lmeta, html body.site-mode .apt .bb-note, html body.site-mode .apt .bb-foot, html body.site-mode .apt .cal-legend, html body.site-mode .apt .tag-sum span, html body.site-mode .apt .crumbs { font-size: 14px; line-height: 22px; }
html body.site-mode .apt h2, html body.site-mode .apt .cal-h h2, html body.site-mode .apt .apt-h { font-size: 18px; line-height: 28px; margin: 0; }
html body.site-mode .apt .apt-h { margin-bottom: -6px; }
/* spacing between blocks: 14px to 20px */
html body.site-mode .site.apt { gap: 16px; }
html body.site-mode .apt .apt-main { gap: 20px; }
html body.site-mode .apt .apt-sec { gap: 14px; }
html body.site-mode .apt .apt-sum h2 { font-size: 18px; line-height: 28px; }
html body.site-mode .apt .apt-ref { font-size: 14px; }
/* header: no WhatsApp / share / save buttons (share and heart live on the photos); video button beside the title */
html body.site-mode .apt-head { flex-wrap: nowrap; align-items: center; gap: 10px; }
html body.site-mode .apt-head > div { min-width: 0; flex: 1; }
html body.site-mode .apt-head .toolbar { display: none !important; }
html body.site-mode .apt-head h1 { font-size: 18px; line-height: 28px; }
html body.site-mode .yt-btn { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex !important; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 999px; background: rgba(10, 18, 26, .62); color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body.site-mode .yt-btn svg { flex: none; }
/* photos: one big scrollable strip with dots, share on the right, heart on the left */
html body.site-mode .apt .gal { display: none !important; }
html body.site-mode .m-gal { display: block !important; position: relative; margin: 0 calc(24px - var(--page-x)); aspect-ratio: auto; height: auto; overflow: visible; border-radius: 0; background: none; }
html body.site-mode .m-gal .uc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; height: auto; background: var(--surface-2); border-radius: 20px; box-shadow: 0 6px 18px rgba(20, 35, 45, .12); }
html body.site-mode .m-gal .uc-track::-webkit-scrollbar { display: none; }
html body.site-mode .m-gal .uc-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; }
html body.site-mode .m-gal-ph { aspect-ratio: 4 / 3; height: auto; border-radius: 20px; overflow: hidden; }
html body.site-mode .m-gal-btn { position: absolute; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; }
html body.site-mode .m-gal-btn svg { width: 20px; height: 20px; }
html body.site-mode .m-gal-btn.is-share { inset-inline-start: 12px; color: var(--primary); }
html body.site-mode .m-gal-btn.is-fav { inset-inline-end: 12px; color: #E5484D; }
html body.site-mode .m-gal-btn.is-fav svg path { fill: transparent; stroke: currentColor; }
html body.site-mode .m-gal-btn.is-fav[aria-pressed="true"] { color: #E5484D; }
html body.site-mode .m-gal-btn.is-fav[aria-pressed="true"] svg path { fill: currentColor; }
html body.site-mode .m-gal .uc-dots { position: static; margin-top: 12px; height: 16px; align-items: center; transform: none; width: auto; padding: 0; background: none; display: flex !important; justify-content: center; gap: 6px; }
html body.site-mode .m-gal .uc-dots i { width: 7px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .2s; }
html body.site-mode .m-gal .uc-dots i.on { width: 18px; background: var(--accent); }
html body.site-mode .m-ph { position: relative; }
html body.site-mode .m-gal .m-count { position: absolute; bottom: 12px; inset-inline-start: 12px; display: flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(15, 25, 35, .62); color: #fff; font-size: 14px; font-weight: 600; }
html body.site-mode .m-gal .m-count b { color: #fff; }
/* thumbnails under the big photo */
html body.site-mode .m-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
html body.site-mode .m-thumbs::-webkit-scrollbar { display: none; }
html body.site-mode .m-thumbs button { flex: 0 0 calc((100% - 24px) / 4); aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); scroll-snap-align: start; opacity: .75; transition: opacity .2s, border-color .2s; }
html body.site-mode .m-thumbs button[aria-current="true"] { border-color: var(--primary); opacity: 1; }
html body.site-mode .m-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* main highlights: white frame, each one in a light-orange frame */
html body.site-mode .apt .highlights { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--m-line); border-radius: 16px; background: var(--m-frame); }
html body.site-mode .apt .highlights > div { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; background: var(--m-tile); }
html body.site-mode .apt .highlights > div > svg { color: var(--accent-text); flex: none; }
html body.site-mode .apt .highlights b { font-size: 16px; line-height: 24px; }
html body.site-mode .apt .highlights span span { font-size: 14px; line-height: 22px; }
/* description: fixed frame, the text scrolls inside */
html body.site-mode .apt .apt-desc { max-height: 176px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--m-line); border-radius: 16px; background: var(--m-frame); font-size: 15px; line-height: 26px; }
/* section notes (e.g. extra services subtitle) */
html body.site-mode .apt .apt-sec .sec-note { font-size: 16px; line-height: 24px; color: #121212; opacity: .7; }
:root[data-theme="dark"] body.site-mode .apt .apt-sec .sec-note { color: var(--ink); }
/* amenities & house rules: one big white frame, small framed tiles, 3 per row with an icon */
html body.site-mode .apt .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--m-line); border-radius: 16px; background: var(--m-frame); align-content: start; }
html body.site-mode .apt .sec-am:not(.am-open) .feat:nth-child(n+10) { display: none; }
html body.site-mode .am-more { display: flex !important; justify-content: center; align-items: center; width: 100%; height: 44px; margin-top: 10px; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-frame); color: var(--primary); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
html body.site-mode .apt .feat { flex-direction: column; justify-content: center; text-align: center; gap: 6px; height: 84px; min-height: 0; overflow: hidden; padding: 10px 6px; border-radius: 12px; background: var(--m-tile-pri); font-size: 14px; line-height: 20px; }
html body.site-mode .apt .feat > svg:first-child { display: none; }
html body.site-mode .apt .feat .am-ic { display: block !important; font-style: normal; font-size: 22px; line-height: 26px; }
html body.site-mode .apt .feat.rule { background: var(--m-tile-pri); color: var(--ink); }
html body.site-mode .apt .feat.rule.rule-no { background: var(--m-tile-red); color: var(--m-red-ink); }
html body.site-mode .apt .feat.rule > svg:first-child { display: block; width: 22px; height: 22px; color: var(--m-pri-ink); }
html body.site-mode .apt .feat.rule.rule-no > svg:first-child { color: var(--m-red-ink); }
html body.site-mode .apt .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* calendar on a white card */
/* booking box: each date in its own light-grey frame, date on the start side, calendar icon on the end side */
html body.site-mode .apt .bb-dates { padding: 0; background: none; gap: 10px; }
html body.site-mode .apt .bb-dates .bb-f { position: relative; padding: 10px 12px; border-radius: 12px; background: var(--m-field); }
html body.site-mode .apt .bb-f label { font-size: 14px; line-height: 20px; }
html body.site-mode .apt .bb-dates input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; cursor: pointer; }
html body.site-mode .apt .bb-face { display: flex !important; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--ink); }
html body.site-mode .apt .bb-face svg { width: 20px; height: 20px; flex: none; color: var(--primary); }
html body.site-mode .apt .bb-guests { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--m-field); }
html body.site-mode .apt .bb-guests label { display: flex; flex-direction: column; }
html body.site-mode .apt .bb-max { display: block !important; font-size: 14px; font-weight: 500; color: var(--muted); }
html body.site-mode .apt .bb-guests select { flex: none; width: 112px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--m-field-in); color: var(--ink); font-size: 15px; }
html body.site-mode .apt .bb-quote .change:last-child b { color: var(--primary); font-size: 18px; }
html body.site-mode .apt .promo input { background: var(--m-field); border-color: transparent; color: var(--ink); }
html body.site-mode .apt .promo .btn { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
html body.site-mode .apt .bb-price b { font-size: 24px; }
/* no "similar stays" on phones */
html body.site-mode .apt .similar { display: none !important; }

/* booking box, offers and map frames lifted off the dark page too */
html body.site-mode .apt .book-box { background: var(--m-frame); border-color: var(--m-line); }
/* no sticky request bar on the phone: the booking box at the end of the page has the button, and it sits right above the footer */
/* bottom booking bar: only once dates give a bookable total, and never while the booking box is on screen */
html body.site-mode .apt .mbar:not(.is-ready), html body.site-mode.bb-vis .apt .mbar.is-ready { display: none !important; }
html body.site-mode .apt .mbar.is-ready { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px; padding: 10px 10px 10px 16px; border: 1px solid var(--m-line); border-radius: 20px; background: var(--m-frame, #FFFFFF); color: var(--ink); box-shadow: 0 10px 30px rgba(10, 40, 60, .18); }
html body.site-mode .apt .mbar.is-ready .muted { color: var(--ink-3, #6B7785); }
html body.site-mode .apt .mbar.is-ready b { font-size: 20px; color: var(--primary); }
html body.site-mode .apt .mbar.is-ready .btn.primary { height: 46px; padding: 0 22px; border-radius: 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
html body.site-mode .site.apt:has(.mbar.is-ready) { padding-bottom: 90px; }
html body.site-mode .site.apt { padding-bottom: 0; }
/* photo buttons sit on white in both modes: keep their own colours in dark mode (beats the dark "every icon is white" rule) */
:root[data-theme="dark"] body.site-mode .m-gal-btn svg { color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode .m-gal-btn svg { color: inherit; } }
:root[data-theme="dark"] body.site-mode .m-gal-btn.is-share { color: var(--brand-light, #0E2D4A); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode .m-gal-btn.is-share { color: var(--brand-light, #0E2D4A); } }

/* phone order of the stay page: details, offers, amenities, house rules right after them, calendar, reviews, map, then extra services just above the booking box */
html body.site-mode .apt .highlights { display: none !important; }
html body.site-mode .apt .apt-main > .apt-sum { order: 1; }
html body.site-mode .apt .apt-main > .apt-desc-h, html body.site-mode .apt .apt-main > .apt-desc { order: 2; }
html body.site-mode .apt .apt-main > .sec-offers { order: 3; }
html body.site-mode .apt .apt-main > .sec-am { order: 4; }
html body.site-mode .apt .apt-main > .sec-rules { order: 5; }
html body.site-mode .apt .apt-main > .sec-cal { order: 6; }
html body.site-mode .apt .apt-main > .sec-rev { order: 7; }
html body.site-mode .apt .apt-main > .sec-map { order: 8; }
html body.site-mode .apt .apt-main > .sec-svc { order: 9; }
html body.site-mode .apt .unit-grid { gap: 20px; }
/* extra services price */
html body.site-mode .apt .svc-pr { font-size: 20px; line-height: 28px; font-weight: 700; }
/* stay code sits in the subtitle; the one under the rules is hidden */
html body.site-mode .apt .apt-ref { display: none; }
html body.site-mode .apt .lmeta .apt-code { display: inline !important; color: var(--muted); }
/* map: a fixed drop pin, the map itself can't be moved */
html body.site-mode .apt .geo-map iframe { pointer-events: none; }
html body.site-mode .apt .geo-map .geo-ring { display: none; }
html body.site-mode .apt .geo-map { position: relative; }
html body.site-mode .apt .geo-pin { display: block !important; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -100%); color: #E5484D; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); pointer-events: none; }
html body.site-mode .apt .geo-pin svg { width: 40px; height: 40px; color: #E5484D !important; }
html body.site-mode .site.apt + .sfoot { margin-top: 20px; }

/* ===== cards, filters, stay header (phone) ===== */
/* cards: no green dot; a glowing "free today" pill on the left of the title row; a full-width "view details" button at the bottom */
html body.site-mode .ac .live-dot { display: none !important; }
html body.site-mode .ac-avail { display: inline-flex !important; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 10px; border-radius: 999px; background: #E3F6EA; color: #17663E; font-size: 14px; font-weight: 600; white-space: nowrap; }
html body.site-mode .ac-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ac-glow 1.6s ease-out infinite; }
@keyframes ac-glow { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { html body.site-mode .ac-avail::before { animation: none; } }
:root[data-theme="dark"] body.site-mode .ac-avail { background: rgba(34, 197, 94, .18); color: #8BE3AE; }
html body.site-mode .ac-more { display: flex !important; width: 100%; height: 46px; margin-top: 12px; justify-content: center; align-items: center; border-radius: 12px; font-size: 16px; font-weight: 700; }
/* filters: the option frames take the calendar's unavailable-day colour */
html body.site-mode .filters .chip:not([aria-pressed="true"]), html body.site-mode .filters .range input { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); border-color: transparent; }
html body.site-mode .filters .chip:not([aria-pressed="true"]) .chip-n { background: var(--surface); }
/* stay page: photos first, then the title row with the video button on the left */
html body.site-mode .site.apt { display: flex; flex-direction: column; }
html body.site-mode .site.apt > .crumbs { order: 0; }
html body.site-mode .site.apt > .apt-head { order: 1; }
html body.site-mode .site.apt > .m-gal { order: 2; }
html body.site-mode .site.apt > .unit-grid, html body.site-mode .site.apt > .similar, html body.site-mode .site.apt > .mbar { order: 3; }
html body.site-mode .sbox .sf { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
html body.site-mode .sbox .sf + .sf::before { display: none; }
html body.site-mode .ac-sub { display: flex; align-items: center; gap: 8px; }
html body.site-mode .ac-sub .ac-sub-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "متاحة النهارده" sits on the price row, on the far side from the price. */
html body.site-mode .ac-foot .ac-p { flex: none; white-space: nowrap; }
html body.site-mode .ac-foot .ac-avail { margin-inline-start: auto; }
html body.site-mode .ac-foot:has(.ac-avail) .ac-fast { display: none; }
/* stats strip (rooms · baths · guests) replaces the summary line */
html body.site-mode .apt .apt-sum > h2, html body.site-mode .apt .apt-sum > p { display: none; }
html body.site-mode .apt-stats { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 12px 0; border: 1px solid var(--m-line); border-radius: 16px; background: var(--m-frame); }
html body.site-mode .apt-stats > span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; color: var(--primary); text-align: center; }
html body.site-mode .apt-stats > span + span { border-inline-start: 1px solid var(--m-line); }
html body.site-mode .apt-stats i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--m-tile-pri, #E6F1F8); color: var(--primary); }
html body.site-mode .apt-stats svg { width: 28px; height: 28px; }
html body.site-mode .apt-stats b { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 20px; white-space: nowrap; }
/* Locked map: the embed is drawn larger than its frame so its zoom buttons and footer fall outside;
   the pin moves with the map's centre, and the OpenStreetMap credit stays as a small label. */
html body.site-mode .apt .geo-map { overflow: hidden; }
html body.site-mode .apt .geo-map iframe { position: absolute; top: 0; left: 0; width: calc(100% + 64px); height: calc(100% + 56px); }
html body.site-mode .apt .geo-pin { left: calc(50% + 32px); top: calc(50% + 28px); }
html body.site-mode .apt .geo-attr { display: block !important; position: absolute; bottom: 6px; inset-inline-end: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .8); color: #44505C; font-size: 10px; pointer-events: none; }
/* "Available today" pill: drops under the price when the card is too narrow for both */
html body.site-mode .ac-foot { flex-wrap: wrap; row-gap: 8px; }
html body.site-mode .ac-foot .ac-avail { flex: none; white-space: nowrap; }

/* Card footer: smaller price, "متاحة النهارده" on the same line at the far side */
html body.site-mode .ac-p { font-size: 13px; }
html body.site-mode .ac-p b { font-size: 16px; }
html body.site-mode .ac-p span { font-size: 13px; }
html body.site-mode .ac-p s { font-size: 12px; }
html body.site-mode .ac-foot { flex-wrap: nowrap !important; align-items: center; gap: 8px; }
html body.site-mode .ac-foot .ac-p { flex: 0 1 auto; min-width: 0; }
html body.site-mode .ac-foot .ac-avail { height: 22px; padding: 0 8px; gap: 4px; font-size: 11.5px; margin-inline-start: auto; }
html body.site-mode .ac-foot:has(.ac-avail) .ac-p s { display: none; }
html body.site-mode .ac-foot .ac-avail::before { width: 7px; height: 7px; }
html body.site-mode .ac-more { font-size: 14px !important; font-weight: 600 !important; }
/* smaller logo in the phone header */
html body.site-mode .snav2 .lg-mark { height: 32px; }
html body.site-mode .snav2 .lg-word { gap: 6px; }
html body.site-mode .snav2 .lg-word .lg-ar { height: 16px; }
html body.site-mode .snav2 .lg-word .lg-lat { height: 15px; margin-top: 3px; }
html body.site-mode .snav2 .lg-word i { height: 15px; }
html body.site-mode .snav2 .slogo { gap: 8px !important; }
html body.site-mode .ad-navy { --ad-c: 10, 32, 54; }
html body.site-mode .ad-gold { --ad-c: 98, 72, 32; }
/* Buttons: navy fill with gold text (was gold fill with navy text) */
html body.site-mode { --btn-bg: #012E62; --btn-ink: #FFFFFF; }
html body.site-mode .sbox .go, html body.site-mode .btn.primary, html body.site-mode .apt .mbar.is-ready .btn.primary { background: var(--btn-bg) !important; color: var(--btn-ink) !important; border-color: var(--btn-bg) !important; }
html body.site-mode .sbox .go:hover, html body.site-mode .btn.primary:hover { background: color-mix(in srgb, var(--btn-bg) 85%, #000) !important; }
html body.site-mode .sbox .go svg, html body.site-mode .btn.primary svg { color: var(--btn-ink) !important; }
html body.site-mode .ad-btn { background: var(--btn-bg); color: var(--btn-ink); }
html body.site-mode .ad-btn:hover { background: color-mix(in srgb, var(--btn-bg) 85%, #000); }
:root[data-theme="dark"] body.site-mode :is(.sbox .go, .btn.primary, .ad-btn) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--btn-ink) 55%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode :is(.sbox .go, .btn.primary, .ad-btn) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--btn-ink) 55%, transparent); } }

/* v6: dark mode keeps navy buttons readable with a sky outline */
:root[data-theme="dark"] body.site-mode :is(.sbox .go, .btn.primary, .ad-btn) { box-shadow: inset 0 0 0 1px rgba(26, 158, 203, .55); }
html body.site-mode .ac-badge, html body.site-mode .ac-badges .ac-badge, html body.site-mode .ac-avail { font-weight: 500 !important; }
:root:not([data-theme="dark"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]) { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:root:not([data-theme="dark"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]) svg { color: var(--sky, #1A9ECB); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.site-mode .site .cats .cat:not([aria-pressed="true"]) { background: var(--surface-2); color: var(--ink-2); box-shadow: none; } }
html body.site-mode .bk-submit-side { display: none !important; }
html body.site-mode .bk-submit-end { display: flex !important; margin-top: 16px; }
html body.site-mode .change.bk-type { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 4px; }
html body.site-mode .change.bk-type > * { position: static !important; width: 100%; text-align: start; }
html body.site-mode .apt .bb-ro .bb-l { font-size: 14px; }
html body.site-mode .apt .bb-ro .bb-v { font-size: 16px; margin-top: 6px; }
html body.site-mode .apt .sec-svc h2 { font-size: 20px; }
html body.site-mode .apt .sec-svc h2, html body.site-mode .apt .svc-pr, html body.site-mode .apt .svc b { font-size: 16px; line-height: 1.5; }
html body.site-mode .apt .cal-h h2 { font-size: 16px; line-height: 24px; font-weight: 500; }
html body.site-mode .apt .mini-cal .cd.clash { background: #FDECEC !important; border-color: #E5484D !important; color: #B42318 !important; }
html body.site-mode .apt .cal-rent { margin: -4px 0 10px; }
html body.site-mode .apt .mini-cal .cd.clash, html body.site-mode .apt .mini-cal .cd.clash b, html body.site-mode .apt .mini-cal .cd.clash small { opacity: 1; text-decoration: none; }

/* Nightly / monthly switch: a light track with the chosen side as a raised white pill */
html body.site-mode .apt .bk-mode { gap: 4px; padding: 6px; border: 0; border-radius: 20px; background: #ECECE6; }
html body.site-mode .apt .bk-mode button { flex-direction: row; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 0; border-radius: 15px; color: #727789; box-shadow: none; }
html body.site-mode .apt .bk-mode button b { font-size: 17px; font-weight: 700; }
html body.site-mode .apt .bk-mode button svg { flex: none; }
html body.site-mode .apt .bk-mode button[aria-pressed="true"] { background: #FFFFFF; border: 0; color: var(--ink, #0A1F44); box-shadow: 0 2px 6px rgba(10, 31, 68, .12); }
html[data-theme="dark"] body.site-mode .apt .bk-mode { background: var(--surface-2); }
html[data-theme="dark"] body.site-mode .apt .bk-mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }

/* Switch track takes the feature tiles colour; labels 16px; 12px from the month line to the hint */
html body.site-mode .apt .bk-mode { background: var(--m-tile-pri, var(--surface-2)); }
html body.site-mode .apt .bk-mode button b { font-size: 16px; }
html body.site-mode .apt .sec-cal .cal-h { margin-bottom: 0; }
html body.site-mode .apt .sec-cal .cal-rent { margin: 0; }
html body.site-mode .apt .sec-cal .cal-h + .sec-note, html body.site-mode .apt .sec-cal .cal-rent + .sec-note, html body.site-mode .apt .sec-cal .cal-clash + .sec-note { margin-top: -2px; } /* the section already has a 14px gap */
html body.site-mode .apt .sec-cal .cal-rent + .cal-clash { margin-top: -2px; }

/* Search dates: an empty date field shows "اختار اليوم" (iPhone shows nothing at all, Chrome shows mm/dd/yyyy) */
html body.site-mode .sbox .sf { position: relative; }
html body.site-mode .sbox .sf input[type="date"] { min-height: 26px; }
html body.site-mode .sbox .sf .d-ph { display: none; position: absolute; right: 54px; left: 16px; bottom: 14px; text-align: right; font-size: inherit; color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; }
html body.site-mode .sbox .sf input[type="date"]:invalid + .d-ph { display: block; }
html body.site-mode .sbox .sf input[type="date"]:invalid::-webkit-datetime-edit { color: transparent; }
html[dir="ltr"] body.site-mode .sbox .sf .d-ph { left: 54px; right: 16px; text-align: left; }
/* Booking box: price per night 16px */
html body.site-mode .book-box .bb-price b, html body.site-mode .book-box .bb-price b.num { font-size: 16px; line-height: 24px; }

/* Inner frames (features, rules, stats icons, service icons, card facts, search fields, nightly/monthly switch, hints):
   a pale muted turquoise instead of the page colour, so they stand apart from the background. */
html body.site-mode { --tq-tile: #E9F6F4; --tq-ink: #0A3B44; }
:root[data-theme="dark"] body.site-mode { --tq-tile: color-mix(in srgb, #2BB3A6 20%, #1A2C3E); --tq-ink: var(--ink); }
html body.site-mode { --m-tile-pri: var(--tq-tile); }
html body.site-mode .apt .feat:not(.rule-no),
html body.site-mode .apt-stats i, html body.site-mode .svc-ic, html body.site-mode .ac-facts li,
html body.site-mode .sbox .sf, html body.site-mode .why-ic, html body.site-mode .ac-fast,
html body.site-mode .apt .bk-mode, html body.site-mode .bb-hint, html body.site-mode .apt-code { background: var(--tq-tile) !important; }
html body.site-mode .apt .feat:not(.rule-no), html body.site-mode .ac-facts li { color: var(--tq-ink); }
/* Features (not the rules): four smaller tiles per row */
html body.site-mode .apt .feat-grid:not(.rules) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; }
html body.site-mode .apt .feat-grid:not(.rules) .feat { height: 68px; padding: 8px 4px; gap: 4px; font-size: 12px; line-height: 16px; border-radius: 10px; }
html body.site-mode .apt .feat-grid:not(.rules) .feat > :first-child { font-size: 20px; line-height: 24px; width: 24px; height: 24px; }
html body.site-mode .apt .sec-am:not(.am-open) .feat:nth-child(n+9) { display: none; }
/* Feature and rule tiles: medium text */
html body.site-mode .apt .feat, html body.site-mode .apt .feat span, html body.site-mode .apt .feat b { font-weight: 500; }
/* Nightly/monthly switch: turquoise outline a little darker than its fill */
html body.site-mode .apt .bk-mode { border: 1.5px solid #B5E0DA !important; }
:root[data-theme="dark"] body.site-mode .apt .bk-mode { border-color: color-mix(in srgb, #2BB3A6 45%, #1A2C3E) !important; }

/* Stay page (phone): calmer layout, sections split by thin lines instead of white boxes inside boxes */
html body.site-mode .apt .apt-host { margin: 4px 0 0; padding: 16px 0; border-bottom: 0; border-top-color: var(--line, #DCE4EE); }
html body.site-mode .apt .apt-sec { border-top: 1px solid var(--m-line, #DCE4EE); padding-top: 18px; }
html body.site-mode .apt .feat-grid { background: transparent; border: 0; padding: 0; }
html body.site-mode .apt .trust li { font-size: 13.5px; }
html body.site-mode .apt .apt-main > .apt-host, html body.site-mode .apt .apt-main > .sec-trust { order: 1; }
/* white page with thin lines between sections, like the approved mock-up */
html body.site-mode main:has(.site.apt) { background: var(--surface, #fff); }
html body.site-mode .apt .apt-main > .apt-sec, html body.site-mode .apt .apt-main > .apt-desc-h { border-top: 1px solid var(--line, #DCE4EE); padding-top: 18px; margin-top: 0; }
html body.site-mode .apt .apt-main > .apt-desc-h { margin-bottom: 10px; }
html body.site-mode .apt .apt-stats, html body.site-mode .apt .apt-desc, html body.site-mode .apt .cal2 { background: var(--surface, #fff); }
html body.site-mode .apt .apt-desc { border: 0; padding: 0; max-height: none; }

/* ===== Home redesign (phone): white page, banner on top, one-line search, icon tabs, frameless photo cards ===== */
html body.site-mode main:has(.site) { background: var(--surface, #fff); }
html body.site-mode .site .m-ads { margin: 0 0 0; }
html body.site-mode .site .m-ads .ads { margin-bottom: 0; }
/* search: a pill on top of the banner's bottom edge; the full form opens under it */
html body.site-mode .site .discover { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 6px; }
html body.site-mode .site .discover.over-ads { margin-top: -26px; position: relative; z-index: 3; }
html body.site-mode .site .s-pill { display: flex !important; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 0 12px; padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 22px rgba(10, 31, 68, .12); text-align: start; font: inherit; color: var(--ink); cursor: pointer; }
html body.site-mode .site .s-pill-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--navy, #012E62); color: #fff; display: flex; align-items: center; justify-content: center; }
html body.site-mode .site .s-pill-ic svg { width: 19px; height: 19px; }
html body.site-mode .site .s-pill-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html body.site-mode .site .s-pill-t b { font-size: 15px; font-weight: 600; }
html body.site-mode .site .s-pill-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.site-mode .site .s-pill-f { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--navy, #012E62); }
html body.site-mode .site .s-pill-f svg { width: 18px; height: 18px; }
html body.site-mode .site .discover .sbox { display: none !important; }
html body.site-mode .site .discover.s-open .sbox { display: grid !important; margin: 12px 0 4px; }
html body.site-mode .site .discover.s-open .s-pill { box-shadow: none; }
/* category tabs: icon above the label, a line under the one that is on */
html body.site-mode .site .cats { gap: 22px !important; padding: 16px 16px 0 !important; margin: 0 -16px !important; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
html body.site-mode .site .cats .cat { flex-direction: column !important; gap: 5px !important; height: auto !important; min-height: 0 !important; padding: 0 2px 10px !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: transparent !important; color: var(--muted) !important; box-shadow: none !important; font-size: 12.5px !important; font-weight: 500 !important; }
html body.site-mode .site .cats .cat svg { width: 24px !important; height: 24px !important; }
html body.site-mode .site .cats .cat[aria-pressed="true"] { color: var(--navy, #012E62) !important; border-bottom-color: var(--navy, #012E62) !important; font-weight: 700 !important; }
/* section headings: title with a small line under it; "الكل" as a turquoise pill */
html body.site-mode .site .gov-h h2::before, html body.site-mode .site .arow-h h2::before, html body.site-mode .site .sec-h h2::before { display: none !important; }
html body.site-mode .site .gov-h h2, html body.site-mode .site .arow-h h2, html body.site-mode .site .sec-h h2 { padding: 0 !important; border: 0 !important; }
html body.site-mode .site .sec-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body.site-mode .site .sec-tt small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
html body.site-mode .site .gov-go, html body.site-mode .site .arow-go { height: 30px !important; padding: 0 12px !important; border: 1px solid #B5E0DA !important; background: var(--tq-tile, #E9F6F4) !important; color: var(--sky-deep, #0B7FA8) !important; border-radius: 999px !important; font-size: 13px !important; box-shadow: none !important; align-self: flex-start; }
/* cards: no box; a big rounded photo and the text under it */
html body.site-mode .site .ac { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible !important; }
html body.site-mode .site .ac .ac-media { border-radius: 18px !important; overflow: hidden; aspect-ratio: 1 / 1; height: auto !important; }
html body.site-mode .site .ac .ac-media img, html body.site-mode .site .ac .ac-ph { width: 100%; height: 100% !important; object-fit: cover; }
html body.site-mode .site .ac .ac-heart { background: rgba(255, 255, 255, .92) !important; }
html body.site-mode .site .ac .ac-body { padding: 10px 2px 0 !important; gap: 3px !important; }
html body.site-mode .site .ac .ac-t h3 { font-size: 15px !important; }
html body.site-mode .site .ac .ac-sub { font-size: 13px !important; }
html body.site-mode .site .ac .ac-facts, html body.site-mode .site .ac .ac-hl, html body.site-mode .site .ac .ac-more { display: none !important; }
html body.site-mode .site .ac .ac-line { display: block !important; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.site-mode .site .ac .ac-foot { border: 0 !important; padding: 4px 0 0 !important; margin: 0 !important; }
/* destinations: photo squares with the name at the bottom */
html body.site-mode .site .dest-card { border-radius: 16px !important; aspect-ratio: 1 / 1.05; }
/* "your booking is safe" strip at the end of the home rows */
html body.site-mode .site .safe-strip { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--tq-tile, #E9F6F4); color: var(--tq-ink, #0A3B44); font-size: 13px; line-height: 1.55; }
html body.site-mode .site .safe-strip > svg { flex: none; width: 24px; height: 24px; color: var(--sky-deep, #0B7FA8); }
html body.site-mode .site .safe-strip b { display: block; font-size: 14.5px; color: var(--ink); }
html body.site-mode .site .ac .ac-heart { border-radius: 50% !important; border: 0 !important; }
html body.site-mode .site .sblock, html body.site-mode .site .why-grid, html body.site-mode .site .rev-track, html body.site-mode .site .rev-grid { background: transparent !important; }
/* top bar matches the white page (home, places and stay pages) */
html body.site-mode main:has(.site) .snav { background: color-mix(in srgb, var(--surface, #fff) 92%, transparent) !important; border-bottom: 1px solid var(--line); }

/* ===== Stay page lower half (phone) ===== */
/* about: three lines, then "show more" */
html body.site-mode .apt .apt-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: none !important; }
html body.site-mode .apt .apt-desc.open { display: block; -webkit-line-clamp: unset; }
html body.site-mode .apt .desc-more { order: 2; align-self: flex-start; margin: 6px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy, #012E62); text-decoration: underline; cursor: pointer; }
/* house rules as a list */
html body.site-mode .apt .sec-rules .feat-grid.rules { display: none !important; }
html body.site-mode .apt .rule-list { display: flex !important; flex-direction: column; list-style: none; margin: 0; padding: 0; }
html body.site-mode .apt .rule-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; }
html body.site-mode .apt .rule-list i { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tq-tile, #E9F6F4); color: var(--navy, #012E62); display: flex; align-items: center; justify-content: center; }
html body.site-mode .apt .rule-list i svg { width: 19px; height: 19px; }
html body.site-mode .apt .rule-list b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
html body.site-mode .apt .rule-list small { display: block; font-size: 13px; color: var(--muted); }
html body.site-mode .apt .rule-list li.no i { background: #FDECEC; color: #B42318; }
html body.site-mode .apt .rule-list li.no b { color: #B42318; }
html body.site-mode .apt .cal-pick { margin: -6px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--sky-deep, #0B7FA8); }
/* extra services: cards side by side with an add button */
html body.site-mode .apt .svc-list { display: flex !important; flex-direction: row !important; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
html body.site-mode .apt .svc-list::-webkit-scrollbar { display: none; }
html body.site-mode .apt .svc-list .svc { flex: 0 0 74%; scroll-snap-align: start; display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "ic ic" "tx tx" "pr add"; align-items: center; row-gap: 6px; padding: 14px !important; border: 1px solid var(--line) !important; border-radius: 16px !important; background: var(--surface) !important; text-align: start; }
html body.site-mode .apt .svc-list .svc .svc-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
html body.site-mode .apt .svc-list .svc > span:nth-child(2) { grid-area: tx; }
html body.site-mode .apt .svc-list .svc b { display: block; font-size: 15px; font-weight: 700; }
html body.site-mode .apt .svc-list .svc small { display: block; font-size: 13px; color: var(--muted); }
html body.site-mode .apt .svc-list .svc .svc-pr { grid-area: pr; font-size: 16px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.3; }
html body.site-mode .apt .svc-list .svc .svc-pr small { font-size: 11.5px; font-weight: 400; }
html body.site-mode .apt .svc-list .svc .svc-add { grid-area: add; display: inline-flex !important; padding: 6px 16px; border: 1.5px solid var(--navy, #012E62); border-radius: 10px; color: var(--navy, #012E62); font-size: 13.5px; font-weight: 600; }
html body.site-mode .apt .svc-list .svc[aria-pressed="true"] { border-color: var(--navy, #012E62) !important; }
html body.site-mode .apt .svc-list .svc[aria-pressed="true"] .svc-add { background: var(--navy, #012E62); color: #fff; }
html body.site-mode .apt .svc-list .svc[aria-pressed="true"], html body.site-mode .apt .svc-list .svc[aria-pressed="true"] b, html body.site-mode .apt .svc-list .svc[aria-pressed="true"] .svc-pr { background: var(--surface) !important; color: var(--ink) !important; }
html body.site-mode .apt .svc-list .svc[aria-pressed="true"] small { color: var(--muted) !important; }
html body.site-mode .apt .svc-list .svc[aria-pressed="true"] .svc-add { background: var(--navy, #012E62) !important; color: #fff !important; }

/* The booking box closes the stay page: a clear outline around it */
html body.site-mode .apt .book-box { border: 2px solid #9DD6CE !important; box-shadow: 0 6px 20px rgba(10, 31, 68, .06) !important; }
html body.site-mode .apt .cal2 { padding: 10px; border: 1px solid var(--m-line); border-radius: 16px; }
html body.site-mode .apt .cal2 .cd-dow { font-size: 14px; }
html body.site-mode .apt .cal2 .cd small { font-size: 11px; }

/* ===== Stay page (phone): numbers strip in one outlined bar, amenities as a two-column list, tighter spacing ===== */
html body.site-mode .apt .apt-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 0 !important; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: 14px !important; background: var(--surface) !important; box-shadow: none !important; }
html body.site-mode .apt .apt-stats > span { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px !important; min-width: 0; }
html body.site-mode .apt .apt-stats > span + span { border-inline-start: 1px solid var(--line); }
html body.site-mode .apt .apt-stats i { width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; color: var(--navy, #012E62); }
html body.site-mode .apt .apt-stats i svg { width: 22px !important; height: 22px !important; }
html body.site-mode .apt .apt-stats b { font-size: 12.5px !important; font-weight: 500 !important; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* amenities: two columns, a navy line icon and the name; 6 before "show all" */
html body.site-mode .apt .sec-am .feat-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 12px !important; padding: 0 !important; }
html body.site-mode .apt .sec-am .feat { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 10px !important; height: auto !important; min-height: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--ink) !important; font-size: 14.5px !important; line-height: 1.4 !important; text-align: start !important; }
html body.site-mode .apt .sec-am .feat > svg:first-child, html body.site-mode .apt .sec-am .feat .am-ic { display: none !important; }
html body.site-mode .apt .sec-am .feat .am-line { display: inline-flex !important; flex: none; width: 24px; height: 24px; color: var(--navy, #012E62); }
html body.site-mode .apt .sec-am .feat .am-line svg { width: 24px; height: 24px; }
html body.site-mode .apt .sec-am:not(.am-open) .feat:nth-child(n+7) { display: none !important; }
html body.site-mode .apt .sec-am .am-more { margin-top: 14px !important; width: 100%; border: 1px solid var(--navy, #012E62) !important; background: var(--surface) !important; color: var(--navy, #012E62) !important; border-radius: 12px !important; min-height: 44px; font-weight: 700; }
/* spacing: 16px between sections, 8px under headings */
html body.site-mode .apt .apt-main { gap: 0 !important; }
html body.site-mode .apt .apt-main > .apt-sec, html body.site-mode .apt .apt-main > .apt-desc-h { padding-top: 16px !important; margin-top: 16px !important; }
html body.site-mode .apt .apt-sec > h2, html body.site-mode .apt .apt-desc-h { margin-bottom: 8px !important; }
html body.site-mode .apt .apt-main > .apt-desc { margin-top: 0 !important; }
html body.site-mode .apt .apt-host { padding: 12px 0 !important; margin: 16px 0 0 !important; }
html body.site-mode .apt .rule-list li { padding: 6px 0; }
html body.site-mode .apt .apt-stats b { white-space: normal !important; overflow: visible !important; }

/* House rules (phone): two columns, plain icons */
html body.site-mode .apt .rule-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
html body.site-mode .apt .rule-list li { padding: 0 !important; gap: 8px !important; align-items: flex-start; }
html body.site-mode .apt .rule-list i { width: 22px !important; height: 22px !important; background: none !important; border-radius: 0 !important; margin-top: 1px; }
html body.site-mode .apt .rule-list i svg { width: 21px !important; height: 21px !important; }
html body.site-mode .apt .rule-list li.no i { background: none !important; }
html body.site-mode .apt .rule-list b { font-size: 14px !important; }
html body.site-mode .apt .rule-list small { font-size: 12.5px !important; }
/* Nightly / monthly (phone): tabs with a line under the chosen one */
html body.site-mode .apt .bk-mode { display: flex !important; gap: 0 !important; padding: 0 !important; margin: 0 0 12px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; }
html body.site-mode .apt .bk-mode button { flex: 1; min-height: 44px !important; padding: 8px !important; border: 0 !important; border-bottom: 2px solid transparent !important; margin-bottom: -1px; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: #727789 !important; }
html body.site-mode .apt .bk-mode button b { font-size: 15px !important; font-weight: 700 !important; }
html body.site-mode .apt .bk-mode button svg { width: 20px; height: 20px; }
html body.site-mode .apt .bk-mode button[aria-pressed="true"] { color: var(--navy, #012E62) !important; border-bottom-color: var(--navy, #012E62) !important; background: none !important; }
/* Home cards (phone): a thin frame around each card, the photo inset inside it */
html body.site-mode .site .ac { border: 1px solid var(--line) !important; border-radius: 18px !important; padding: 6px 6px 12px !important; background: var(--surface) !important; }
html body.site-mode .site .ac .ac-media { border-radius: 13px !important; }
html body.site-mode .site .ac .ac-body { padding: 10px 6px 0 !important; }

/* ===== Stay page (phone): tighter lower half ===== */
html body.site-mode .apt .apt-sec > h2, html body.site-mode .apt .apt-desc-h { font-size: 16px !important; line-height: 1.4 !important; margin: 0 0 8px !important; }
html body.site-mode .apt .apt-main > .apt-sec, html body.site-mode .apt .apt-main > .apt-desc-h { border-top-color: #EEF2F6 !important; padding-top: 14px !important; margin-top: 14px !important; }
html body.site-mode .apt .apt-sec { gap: 0 !important; }
html body.site-mode .apt .apt-desc { font-size: 14px !important; line-height: 1.7 !important; }
html body.site-mode .apt .desc-more { font-size: 13px; margin-top: 4px; }
/* trust card + offers as short lines; the separate offers section goes */
html body.site-mode .apt .trust { padding: 10px 12px !important; gap: 6px !important; }
html body.site-mode .apt .trust li { font-size: 13px !important; align-items: center; }
html body.site-mode .apt .trust li svg { width: 16px; height: 16px; margin: 0; }
html body.site-mode .apt .apt-main > .sec-offers { display: none !important; }
html body.site-mode .apt .offer-lines { display: flex !important; flex-direction: column; gap: 6px; margin-top: 8px; }
html body.site-mode .apt .offer-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F6D58E; font-size: 13px; color: var(--ink); }
html body.site-mode .apt .offer-line b { font-weight: 700; }
/* amenities: smaller icons, closer rows, a text link for the rest */
html body.site-mode .apt .sec-am .feat-grid { gap: 10px 10px !important; }
html body.site-mode .apt .sec-am .feat { font-size: 13.5px !important; gap: 8px !important; }
html body.site-mode .apt .sec-am .feat .am-line, html body.site-mode .apt .sec-am .feat .am-line svg { width: 20px; height: 20px; }
html body.site-mode .apt .sec-am .am-more { width: auto !important; min-height: 0 !important; margin-top: 10px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 13px !important; text-decoration: underline; justify-content: flex-start; }
/* rules: one short line each */
html body.site-mode .apt .rule-list { gap: 9px 10px !important; }
html body.site-mode .apt .rule-list li { align-items: center !important; gap: 6px !important; }
html body.site-mode .apt .rule-list b { font-size: 13px !important; font-weight: 500 !important; }
html body.site-mode .apt .rule-list i, html body.site-mode .apt .rule-list i svg { width: 18px !important; height: 18px !important; }
/* calendar: month and arrows first, then the tabs, a one-line hint; day selection unchanged */
html body.site-mode .apt .sec-cal .cal-h { order: -1; margin-bottom: 6px !important; }
html body.site-mode .apt .sec-cal .cal-h h2 { font-size: 16px !important; font-weight: 700 !important; }
html body.site-mode .apt .sec-cal .cal-nav .btn { width: 32px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; }
html body.site-mode .apt .sec-cal .bk-mode { margin: 0 0 8px !important; }
html body.site-mode .apt .sec-cal .bk-mode button { min-height: 38px !important; padding: 4px !important; }
html body.site-mode .apt .sec-cal .bk-mode button b { font-size: 14px !important; }
html body.site-mode .apt .sec-cal .sec-note { font-size: 12px !important; margin: 0 0 8px !important; }
html body.site-mode .apt .sec-cal .cal-h + .sec-note, html body.site-mode .apt .sec-cal .cal-rent + .sec-note, html body.site-mode .apt .sec-cal .cal-clash + .sec-note { margin-top: 0 !important; }
html body.site-mode .apt .cal2 .cd { min-height: 46px; }

/* ===== Search sheet (phone) ===== */
body.sheet-open { overflow: hidden; }
html body.site-mode .s-sheet { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: flex-end; }
html body.site-mode .s-sheet-bg { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(10, 31, 68, .45); cursor: default; }
html body.site-mode .s-sheet-in { position: relative; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; animation: shUp .22s ease-out; }
@keyframes shUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
html body.site-mode .sh-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 4px; }
html body.site-mode .sh-top { display: flex; align-items: center; justify-content: space-between; }
html body.site-mode .sh-top b { font-size: 18px; font-weight: 700; }
html body.site-mode .sh-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
html body.site-mode .sh-box { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
html body.site-mode .sh-box h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
html body.site-mode .sh-box h4 small { font-size: 12px; font-weight: 400; color: var(--muted); }
html body.site-mode .sh-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow-y: auto; }
html body.site-mode .sh-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; cursor: pointer; }
html body.site-mode .sh-chip.on { background: var(--navy, #012E62); border-color: var(--navy, #012E62); color: #fff; }
html body.site-mode .sh-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html body.site-mode .sh-dates .sf { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--tq-tile, #E9F6F4); }
html body.site-mode .sh-dates .sf label { font-size: 12px; color: var(--muted); }
html body.site-mode .sh-dates .sf input { border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); padding: 0; min-height: 26px; }
html body.site-mode .sh-dates .sf .d-ph { display: none; position: absolute; right: 38px; bottom: 9px; font-size: 14px; color: var(--muted); pointer-events: none; }
html body.site-mode .sh-dates .sf input:invalid + .d-ph { display: block; }
html body.site-mode .sh-dates .sf input:invalid::-webkit-datetime-edit { color: transparent; }
html body.site-mode .sh-dates > input { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); }
html body.site-mode .sh-row { display: flex; align-items: center; justify-content: space-between; }
html body.site-mode .sh-row h4 { margin: 0; }
html body.site-mode .sh-step { display: flex; align-items: center; gap: 14px; }
html body.site-mode .sh-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #B5E0DA; background: var(--surface); color: var(--navy, #012E62); font-size: 18px; cursor: pointer; }
html body.site-mode .sh-step b { min-width: 20px; text-align: center; font-size: 16px; }
html body.site-mode .sh-price summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
html body.site-mode .sh-price summary::-webkit-details-marker { display: none; }
html body.site-mode .sh-price summary h4 { margin: 0; }
html body.site-mode .sh-price summary small { color: var(--muted); font-size: 13px; }
html body.site-mode .sh-price[open] .sh-dates { margin-top: 10px; }
html body.site-mode .sh-foot { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 0 4px; margin-top: 2px; background: var(--surface); border-top: 1px solid var(--line); }
html body.site-mode .sh-foot .linkbtn { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; }
html body.site-mode .sh-go { flex: 1; min-height: 48px; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; border-radius: 12px; }
html body.site-mode .sh-go svg { width: 18px; height: 18px; }

/* ===== Stay header (phone): back to the area, the name only, one info line, offer strip ===== */
html body.site-mode .apt .crumbs { display: none !important; }
html body.site-mode .apt .apt-back { display: inline-flex !important; align-items: center; gap: 4px; margin: 4px 0 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--sky-deep, #0B7FA8); cursor: pointer; }
html body.site-mode .apt .apt-back svg { width: 16px; height: 16px; }
html body.site-mode .apt .apt-head h1 { font-size: 20px !important; line-height: 1.35 !important; margin: 0 !important; }
html body.site-mode .apt .apt-head .t-sea, html body.site-mode .apt .apt-head .lm-place, html body.site-mode .apt .apt-head .apt-cd, html body.site-mode .apt .apt-head .apt-code { display: none !important; }
html body.site-mode .apt .apt-head .lmeta { margin-top: 4px; gap: 6px 8px; align-items: center; font-size: 13px; }
html body.site-mode .apt .apt-head .lm-sea { display: inline-flex !important; background: var(--tq-tile, #E9F6F4); color: #0B6E5F; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
html body.site-mode .apt .m-offer { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: #FDECEC; border: 1px solid #F5B5B5; color: #B42318; }
html body.site-mode .apt .m-offer > b { font-size: 13.5px; font-weight: 700; }
html body.site-mode .apt .m-offer-b { display: inline-flex; gap: 4px; }
html body.site-mode .apt .m-offer-b b { min-width: 28px; padding: 2px 6px; border-radius: 6px; background: #B42318; color: #fff; text-align: center; font-size: 13.5px; font-weight: 700; }
html body.site-mode .apt .apt-head { display: block !important; }
html body.site-mode .apt .apt-head > div { width: 100%; }
html body.site-mode .apt .apt-head .apt-trow { display: block !important; }
html body.site-mode .apt .apt-head .verified, html body.site-mode .apt .apt-head .toolbar { display: none !important; }
html body.site-mode .apt .apt-head .lmeta { display: flex !important; flex-wrap: wrap; }

/* ===== Map + extra services (phone) ===== */
html body.site-mode .apt .sec-map .geo-map { height: 170px !important; aspect-ratio: auto !important; border-radius: 14px !important; }
html body.site-mode .apt .geo-exp { position: absolute; bottom: 8px; left: 8px; z-index: 2; display: inline-flex !important; align-items: center; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--navy, #012E62); font-size: 12.5px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
html body.site-mode .apt .geo-map .geo-attr { left: auto !important; right: 8px !important; }
html body.site-mode .apt .geo-cap { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0 !important; font-size: 12.5px !important; line-height: 1.55; color: var(--muted); }
html body.site-mode .apt .geo-cap svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--sky-deep, #0B7FA8); }
html body.site-mode .apt .geo-cap b { color: var(--ink); font-weight: 500; }
html body.site-mode .apt .sec-svc > .sec-note { display: none !important; }
html body.site-mode .apt .svc-list { flex-direction: column !important; gap: 0 !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; scroll-snap-type: none !important; }
html body.site-mode .apt .svc-list .svc { flex: none !important; width: 100%; grid-template-columns: 38px minmax(0, 1fr) auto 34px !important; grid-template-areas: "ic tx pr add" !important; column-gap: 10px !important; row-gap: 0 !important; padding: 10px 0 !important; border: 0 !important; border-top: 1px solid #EEF2F6 !important; border-radius: 0 !important; background: none !important; }
html body.site-mode .apt .svc-list .svc:first-child { border-top: 0 !important; }
html body.site-mode .apt .svc-list .svc .svc-ic { width: 38px !important; height: 38px !important; border-radius: 10px !important; font-size: 18px !important; }
html body.site-mode .apt .svc-list .svc b { font-size: 14px !important; }
html body.site-mode .apt .svc-list .svc small { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.site-mode .apt .svc-list .svc .svc-pr { font-size: 13.5px !important; text-align: left; align-items: flex-end; }
html body.site-mode .apt .svc-list .svc .svc-add { width: 32px; height: 32px; padding: 0 !important; justify-content: center; align-items: center; border-radius: 50% !important; font-size: 17px !important; }
html body.site-mode .apt .svc-list .svc[aria-pressed="true"] { border-color: #EEF2F6 !important; }
html body.site-mode .apt .svc-list:not(.svc-open) .svc:nth-child(n+4) { display: none !important; }
html body.site-mode .apt .svc-list:has(.svc:nth-child(5)) + .svc-more { display: inline-flex !important; }
html body.site-mode .apt .svc-more { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--navy, #012E62); text-decoration: underline; cursor: pointer; }
html body.site-mode .apt .svc-list:not(:has(.svc:nth-child(5))) .svc { display: grid !important; }

/* ===== Card badges (phone): small pills close together in the corner; "free today" first with a green dot ===== */
html body.site-mode .site .ac .ac-badges { top: 8px !important; right: 8px !important; left: auto !important; gap: 4px !important; align-items: flex-start !important; flex-direction: column !important; }
html body.site-mode .site .ac .ac-badge { font-size: 11px !important; font-weight: 500 !important; line-height: 1 !important; padding: 5px 9px !important; border-radius: 999px !important; min-height: 0 !important; box-shadow: none !important; }
html body.site-mode .site .ac .ac-badge.is-live { display: inline-flex !important; align-items: center; gap: 5px; background: rgba(255, 255, 255, .95) !important; color: var(--ink) !important; }
html body.site-mode .site .ac .ac-badge.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #22A45D; }
html body.site-mode .site .ac .ac-avail { display: none !important; }
html body.site-mode .site .ac .ac-heart { width: 30px !important; height: 30px !important; top: 8px !important; left: 8px !important; color: var(--navy, #012E62) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .15) !important; }
html body.site-mode .site .ac .ac-heart svg { width: 16px !important; height: 16px !important; fill: none; stroke: currentColor; stroke-width: 2; }
html body.site-mode .site .ac .ac-heart[aria-pressed="true"] { color: #E5484D !important; }
html body.site-mode .site .ac .ac-heart[aria-pressed="true"] svg { fill: currentColor; }
html body.site-mode .site .ac .ac-badges > .ac-badge, html body.site-mode .site .ac .ac-badges > .ac-badge[class] { font-size: 11px !important; line-height: 1 !important; padding: 5px 9px !important; height: auto !important; min-height: 0 !important; }

/* ===== Booking box (phone): navy head with the total, one row for dates + guests, deposit up front ===== */
html body.site-mode .apt .book-box { padding: 0 0 4px !important; border: 2px solid var(--navy) !important; border-radius: 22px !important; overflow: hidden; background: #fff !important; box-shadow: 0 10px 28px rgba(1, 46, 98, .14) !important; gap: 0 !important; display: flex; flex-direction: column; }
html body.site-mode .apt .book-box > *:not(.bb-hd) { margin-inline: 16px !important; }
html body.site-mode .book-box .bb-price, html body.site-mode .book-box .bb-foot, html body.site-mode .book-box .bb-tot, html body.site-mode .book-box .tbanner { display: none !important; }
html body.site-mode .book-box .bb-hd { display: block; background: var(--navy); color: #fff; padding: 14px 16px; }
html body.site-mode .book-box .bb-hd-r { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
html body.site-mode .book-box .bb-hd small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
html body.site-mode .book-box .bb-hd small s { color: rgba(255, 255, 255, .65); }
html body.site-mode .book-box .bb-hd b { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; color: #fff; }
html body.site-mode .book-box .bb-save { flex: none; background: #FEB834; color: #0A1F44; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; margin-top: 2px; }
html body.site-mode .book-box .bb-row { display: grid !important; grid-template-columns: 1fr 1fr .85fr; margin-top: 14px !important; border: 1px solid #DCE4EE; border-radius: 14px; overflow: hidden; }
html body.site-mode .book-box .bb-row .bb-dates { display: contents !important; }
html body.site-mode .book-box .bb-row .bb-f { margin: 0 !important; padding: 8px 10px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; }
html body.site-mode .book-box .bb-row .bb-f + .bb-f, html body.site-mode .book-box .bb-row .bb-guests { border-inline-start: 1px solid #DCE4EE !important; }
html body.site-mode .book-box .bb-row .bb-l, html body.site-mode .book-box .bb-row .bb-guests label { font-size: 11px !important; color: var(--muted) !important; font-weight: 500 !important; margin: 0 !important; }
html body.site-mode .book-box .bb-row .bb-v { font-size: 14px !important; font-weight: 700 !important; }
html body.site-mode .book-box .bb-row .bb-max { display: none !important; }
html body.site-mode .book-box .bb-row select { border: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; font-size: 14px !important; font-weight: 700 !important; background-color: transparent !important; width: 100%; box-shadow: none !important; }
html body.site-mode .book-box .bb-note { margin-top: 10px !important; }
html body.site-mode .book-box .bb-quote { margin-top: 8px !important; }
html body.site-mode .book-box .bb-quote .change { padding: 6px 0 !important; border: 0 !important; font-size: 13.5px; color: #33415C; }
html body.site-mode .book-box .bb-quote .num.up { color: #0F7A52 !important; }
html body.site-mode .book-box .bb-hint { margin: 6px 0 0 !important; text-align: center; }
html body.site-mode .book-box .bb-dep { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px !important; padding: 10px 12px; border-radius: 14px; background: var(--tq-tile); }
html body.site-mode .book-box .bb-dep span { font-size: 13px; color: var(--tq-ink); }
html body.site-mode .book-box .bb-dep b { font-size: 16px; font-weight: 700; color: var(--tq-ink); flex: none; }
html body.site-mode .book-box .bb-cta { margin-top: 14px !important; width: auto !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 12px !important; border-radius: 14px !important; min-height: 52px; }
html body.site-mode .book-box .bb-cta.primary { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
html body.site-mode .book-box .bb-cta span { font-size: 16px; font-weight: 700; }
html body.site-mode .book-box .bb-cta .bb-sub { display: block !important; font-size: 12px; font-weight: 400; opacity: .85; }
html body.site-mode .book-box .bb-trust { display: flex !important; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 12px 0 10px; font-size: 12px; color: var(--muted); }
html body.site-mode .book-box .bb-trust span { display: inline-flex; align-items: center; gap: 4px; }
html body.site-mode .book-box .bb-trust svg { width: 15px; height: 15px; color: var(--sky-deep); }

/* ===== Spacing pass (phone): one rhythm for the home sections, edges lined up at 16px ===== */
html body.site-mode .site > .discover { margin-bottom: 0 !important; }
html body.site-mode .site > .gov-sec, html body.site-mode .site > .safe-strip, html body.site-mode .site > .sblock, html body.site-mode .site > .arow { margin-top: 0 !important; margin-bottom: 0 !important; }
html body.site-mode .site > .arow, html body.site-mode .site > .gov-sec, html body.site-mode .site > .sblock { display: flex !important; flex-direction: column; gap: 12px !important; }
html body.site-mode .site > .arow > .arow-h, html body.site-mode .site > .gov-sec > .gov-h, html body.site-mode .site > .sblock > .sec-h { margin: 0 !important; }
html body.site-mode .discover .s-pill { margin-inline: 0 !important; }
html body.site-mode .m-gal { margin-inline: 0 !important; }

/* Login / account page: flat on white, tighter title block, links and terms centred. */
html body.site-mode main:has(.auth) { background: var(--surface, #fff) !important; }
html body.site-mode main:has(.auth) .snav { background: var(--surface, #fff) !important; border-bottom: 1px solid var(--line); }
html body.site-mode .auth { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 8px 16px 24px !important; margin: 8px auto 0 !important; gap: 0 !important; }
html body.site-mode .auth h1 { font-size: 24px !important; margin: 0 !important; }
html body.site-mode .auth > p.muted:first-of-type { margin: 4px 0 0 !important; }
html body.site-mode .auth .g-btn { margin-top: 24px !important; height: 50px; border-radius: 14px !important; font-weight: 700; }
html body.site-mode .auth .or-line { margin: 18px 0 !important; }
html body.site-mode .auth .email-login { display: flex; flex-direction: column; gap: 12px !important; }
html body.site-mode .auth .email-login .field { margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
html body.site-mode .auth .email-login .field label { margin: 0 !important; }
html body.site-mode .auth .email-login input { height: 48px; border-radius: 12px !important; }
html body.site-mode .auth .email-login .btn.primary { height: 50px; border-radius: 14px !important; margin-top: 4px; font-size: 16px; }
html body.site-mode .auth .email-login .linkbtn { align-self: center; }
html body.site-mode .auth > p.muted:not(:first-of-type) { text-align: center; margin: 16px 0 0 !important; }
html body.site-mode .auth > p.muted + p.muted { margin-top: 8px !important; }
html body.site-mode .site:has(.empty-st) > .sec-h { margin-bottom: 0 !important; }
/* Page titles (saved, trips, messages): 16px to the first block instead of 52px. */
html body.site-mode .site > .sec-h { margin-bottom: -12px !important; }
html body.site-mode .site > .sec-h + .empty-st { padding-top: 56px; }
/* Messages list: one frame per conversation, not a frame inside a frame. */
html body.site-mode .conv-list { border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; gap: 10px !important; }
html body.site-mode .conv-list .btn { min-height: 60px; padding: 12px 14px !important; border-radius: 14px !important; }
/* Trips: the stay photo spans the card on the phone. */
html body.site-mode .trip > .thumb { width: 100% !important; height: 150px !important; }
/* Account page (signed in): rows and buttons get room. */
html body.site-mode .auth > .change { padding: 12px 0 !important; }
html body.site-mode .auth > .change:first-of-type { margin-top: 16px; }
html body.site-mode .auth > .btn { margin-top: 10px !important; height: 48px; border-radius: 14px !important; justify-content: center; }
html body.site-mode .auth > .change + .btn { margin-top: 20px !important; }
html body.site-mode .discover .s-pill { margin: 0 !important; width: 100% !important; max-width: none !important; align-self: stretch !important; box-sizing: border-box; }
html body.site-mode .discover .cats { margin-inline: -16px !important; padding-inline: 16px !important; width: calc(100% + 32px) !important; max-width: none !important; box-sizing: border-box; align-self: auto !important; }
html body.site-mode .site .discover.over-ads { margin-top: -10px !important; }
