/*! Generated from the almidiaf-web stylesheet (apps/web/src/app/globals.css). Edit the source, then rebuild.
 * Includes Tailwind CSS preflight, MIT License, Copyright (c) Tailwind Labs, Inc. */

/*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

/*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Use the user's configured `sans` font-feature-settings by default.
  6. Use the user's configured `sans` font-variation-settings by default.
  7. Disable tap highlights on iOS.
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    'Noto Sans',
    Arial,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji'; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  3. Reset the default border style to a 1px solid border.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
  Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
  Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

/*
  Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
  1. Use the user's configured `mono` font-family by default.
  2. Use the user's configured `mono` font-feature-settings by default.
  3. Use the user's configured `mono` font-variation-settings by default.
  4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    'Liberation Mono',
    'Courier New',
    monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
  Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
  Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring:where(:not(iframe)) {
  outline: auto;
}

/*
  Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
  Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
  Make lists unstyled by default.
*/

ol,
ul,
menu {
  list-style: none;
}

/*
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
      This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

/*
  Restore default font weight.
*/

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

/*
  Restore indentation.
*/

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

/*
  Restore space after button.
*/

::file-selector-button {
  margin-inline-end: 4px;
}

/*
  Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
*/

::placeholder {
  opacity: 1;
}

/*
  Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
  crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
*/

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

/*
  Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
  Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

/*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/

::-webkit-datetime-edit {
  display: inline-flex;
}

/*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

/*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
*/

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

/*
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
  Correct the inability to style the border radius in iOS Safari.
*/

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

/*
  Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
  Make elements with the HTML hidden attribute stay hidden by default.
*/

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

:root {
  --font-readex: "Readex Pro";
  --font-markazi: "Markazi Text";
  --font-ui: var(--font-readex), system-ui, sans-serif;
  --font-display: var(--font-markazi), var(--font-readex), serif;
}


/* ==========================================================================
   Falak — photo-led booking for rest houses, farms, chalets and camps in Qatar
   White ground so photography carries the colour; one stone band and one navy
   band per page for rhythm; Falak navy for actions, a thin gold for ratings.
   Type: Markazi Text for headlines and Readex Pro for everything else. Both are
   bilingual families whose Arabic and Latin were drawn together.
   ========================================================================== */

:root {
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --surface-3: #e6dfd3;
  --ink: #15203a;
  --ink-2: #4a5266;
  --ink-3: #6f7587;
  --navy: #1c2f57;
  --navy-deep: #12213f;
  --navy-wash: #e8ecf4;
  --gold: #9a6f2a;
  --gold-soft: #c9a253;
  --gold-wash: #f5ecdc;
  --red: #b42318;
  --red-wash: #fdecea;
  --teal: #1e6a73;
  --teal-wash: #e3f0f1;
  --green: #1f7a4d;
  --green-wash: #e5f3ea;
  --line: rgb(21 32 58 / 0.12);
  --line-strong: rgb(21 32 58 / 0.26);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgb(21 32 58 / 0.05), 0 6px 18px -8px rgb(21 32 58 / 0.14);
  --shadow-2: 0 18px 50px -18px rgb(21 32 58 / 0.35);
  --gutter: clamp(16px, 4.5vw, 80px);
  --header-h: 72px;
  --measure: 68ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Legacy names still used by admin/booking components. */
  --paper: var(--canvas);
  --paper-2: var(--surface-2);
  --sheet: var(--surface);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .admin-side :focus-visible, .on-photo :focus-visible { outline-color: #fff; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.num, table, .tabular { font-variant-numeric: tabular-nums lining-nums; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
/* UI headings inside components use the interface face. */
.ui-h { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }
.display { font-family: var(--font-display); }
.strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.stack-s > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.dot-sep > * + *::before { content: "·"; margin-inline: 0.5em; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 0.9em 1.35em; border-radius: var(--radius-sm); border: 1px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
/* .btn-red is the historical name of the primary action. */
.btn-primary, .btn-red { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-line, .btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover, .btn-secondary:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); padding-inline: 0.8em; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn-on-photo { background: #fff; border-color: #fff; color: var(--ink); }
.btn-on-photo:hover { background: var(--canvas); border-color: var(--canvas); color: var(--ink); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-sm { font-size: 0.88rem; padding: 0.68em 1em; }
.btn-lg { font-size: 1.05rem; padding: 1em 1.6em; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.icon-btn:hover { border-color: var(--ink); }
.link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--navy); }
html[lang="en"] .brand b { font-size: 1.9rem; letter-spacing: -0.01em; }
.brand span { font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }
/* One-residence mode: the residence's name is the wordmark. */
.brand-residence b { font-size: 1.85rem; white-space: nowrap; }
/* The residence logo in the header: its own height, never squeezed by the nav. */
.brand-logo { align-items: center; }
.brand-logo img { display: block; height: 52px; width: auto; }
@media (max-width: 640px) { .brand-logo img { height: 44px; } }
html[lang="en"] .brand-residence b { font-size: 1.45rem; letter-spacing: -0.005em; }
@media (max-width: 640px) {
  .brand-residence b { font-size: 1.55rem; }
  html[lang="en"] .brand-residence b { font-size: 1.2rem; }
  .brand-residence span { display: none; }
}
.main-nav { display: flex; gap: 4px; font-size: 0.95rem; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; color: var(--ink-2); }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.lang-link:hover { background: var(--surface-2); }
/* "Book your day": the one primary action in the header. */
.header-book { padding-inline: 1.15em; white-space: nowrap; }
.header-book[aria-current="page"] { opacity: 0.55; pointer-events: none; }
.mobile-book { margin-bottom: 10px; padding-block: 1em; }
.saved-link { position: relative; }
.saved-link .count { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 5vw, 72px); }
.section-tight { padding-block: clamp(32px, 4vw, 52px); }
.band-stone { background: var(--surface-2); }
.band-navy { background: var(--navy-deep); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.section-line { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(22px, 3vw, 36px); flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.page-top { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.page-top h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.page-top .lead { margin-top: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* ---------- home hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 48px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(22px, 3vw, 36px); }
.hero-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.1; }
.hero-head h1 .nw { white-space: nowrap; }
.hero-head .lead { justify-self: end; }
.hero-media { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(360px, 44vw, 760px); }
.hero-media figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-3); }
.hero-media figure:first-child { grid-row: 1 / span 2; }
.hero-media img { object-fit: cover; }
.hero-media.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-media.count-2 { grid-template-rows: 1fr; }
.hero-media.count-1 figure:first-child, .hero-media.count-2 figure:first-child { grid-row: auto; }
.hero-media figcaption { position: absolute; inset-inline-start: 14px; top: 14px; background: rgb(255 255 255 / 0.94); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 0.82rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.hero-media figcaption a { text-decoration: none; }
.hero-search { position: relative; z-index: 3; margin-top: -44px; padding-inline: clamp(0px, 3vw, 40px); }
.hero-note { margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; text-align: center; }

/* ---------- search bar ---------- */
.searchbar { display: grid; grid-template-columns: 1.2fr 1.1fr 0.8fr 1fr auto; align-items: stretch; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-2); border: 1px solid var(--line); padding: 8px; }
.sb-field { position: relative; display: grid; align-content: center; gap: 2px; padding: 8px 20px; border-radius: 999px; min-width: 0; }
.sb-field + .sb-field::before { content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.sb-field:focus-within { background: var(--surface-2); }
.sb-field label { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.sb-field select, .sb-field input { border: 0; background: transparent; font: inherit; font-size: 0.95rem; color: var(--ink-2); padding: 0; outline: none; width: 100%; min-width: 0; appearance: none; }
.sb-field input[type="date"] { min-height: 1.6em; }
.sb-field input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.sb-submit { border-radius: 999px; padding-inline: 1.6em; }
.searchbar.compact { border-radius: var(--radius); box-shadow: var(--shadow-1); }

/* ---------- listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px); }
.listing-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lcard { position: relative; display: grid; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.lcard-media { position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.lcard-media img { object-fit: cover; transition: transform 0.7s var(--ease-out); }
.lcard:hover .lcard-media img { transform: scale(1.025); }
.lcard-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lcard-track::-webkit-scrollbar { display: none; }
.lcard-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.lcard-dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.lcard-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 0.6); }
.lcard-dots i[data-on="true"] { background: #fff; }
.lcard-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.2s; box-shadow: var(--shadow-1); }
.lcard-nav.prev { inset-inline-start: 10px; }
.lcard-nav.next { inset-inline-end: 10px; }
.lcard:hover .lcard-nav, .lcard-nav:focus-visible { opacity: 1; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.92); display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-1); transition: transform 0.15s var(--ease-out); }
.heart:hover { transform: scale(1.06); }
.heart[aria-pressed="true"] svg { fill: var(--red); color: var(--red); }
.lcard-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: rgb(255 255 255 / 0.94); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 0.76rem; font-weight: 600; }
.lcard-body { display: grid; gap: 3px; min-width: 0; }
.lcard-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lcard-title { font-family: var(--font-ui); font-size: 1.04rem; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-meta { color: var(--ink-2); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-price { margin-top: 4px; font-size: 0.95rem; }
.lcard-price b { font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.rating svg { color: var(--gold); fill: var(--gold); }
.rating .faint { font-weight: 400; }
.rating-new { font-size: 0.8rem; font-weight: 600; color: var(--gold); background: var(--gold-wash); border-radius: 999px; padding: 2px 8px; }

/* ---------- areas & occasions (home) ---------- */
.area-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 15vw, 280px); gap: 12px; }
.area-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-3); color: #fff; text-decoration: none; display: flex; align-items: end; }
.area-tile:first-child { grid-column: span 2; grid-row: span 2; }
.area-tile img { object-fit: cover; transition: transform 0.7s var(--ease-out); }
.area-tile:hover img { transform: scale(1.03); }
.area-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 16 30 / 0.62), rgb(10 16 30 / 0) 55%); }
.area-tile .label { position: relative; z-index: 1; padding: 16px 18px; display: grid; gap: 2px; }
.area-tile .label b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.area-tile:first-child .label b { font-size: 2rem; }
.area-tile .label span { font-size: 0.86rem; opacity: 0.92; }

.kind-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kind-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color 0.15s; }
html[dir="rtl"] .kind-link { padding: 10px 10px 10px 16px; }
.kind-link:hover { border-color: var(--ink); }
.kind-link .thumb { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex: none; }
.kind-link .thumb img { object-fit: cover; }
.kind-link small { color: var(--ink-3); font-weight: 400; }

.occ-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 1200px) {
  .occ-rows { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 72px); }
  .occ-row { grid-template-columns: clamp(180px, 14vw, 260px) minmax(0, 1fr); }
}
.occ-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.occ-row .ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.occ-row .ph img { object-fit: cover; }
.occ-row h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.occ-row p { color: var(--ink-2); margin-top: 4px; }
.occ-row h3 svg { display: inline-block; vertical-align: middle; margin-inline-start: 8px; color: var(--ink-3); transition: transform 0.2s var(--ease-out); }
.occ-row:hover h3 svg { transform: translateX(-4px); }
html[dir="ltr"] .occ-row:hover h3 svg { transform: translateX(4px); }
.occ-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* how booking works */
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.howto li { list-style: none; padding: 20px 22px 4px 0; padding-inline: 0 22px; border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.howto li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.howto li::before { counter-increment: step; content: counter(step); display: block; font-family: var(--font-ui); font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.howto b { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.howto.on-navy { border-top-color: rgb(255 255 255 / 0.35); }
.howto.on-navy li { border-inline-start-color: rgb(255 255 255 / 0.16); }
.howto.on-navy li::before { color: var(--gold-soft); }
.howto.on-navy p { color: rgb(255 255 255 / 0.78); }
.howto .promise-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.88rem; color: var(--gold-soft) !important; font-weight: 500; }
.howto .promise-line svg { flex: none; }
.howto p { color: var(--ink-2); font-size: 0.95rem; }

/* reviews */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.quote { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.55; }
html[lang="en"] .quote blockquote { font-size: 1.15rem; }
.quote footer { font-size: 0.9rem; color: var(--ink-2); }
.quote footer b { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { fill: currentColor; }
.stars .off { color: var(--surface-3); fill: var(--surface-3); }

.promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.promise li { list-style: none; display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.promise svg { flex: none; color: var(--navy); margin-top: 3px; }
.promise b { display: block; font-weight: 600; }
.promise span { color: var(--ink-2); font-size: 0.95rem; }

.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 0.82); margin-top: 8px; }

/* ---------- listings page ---------- */
.filterbar { position: sticky; top: var(--header-h); z-index: 30; background: var(--canvas); border-bottom: 1px solid var(--line); }
.filterbar .inner { display: flex; align-items: center; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.filterbar .inner::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.9rem; font-weight: 500; cursor: pointer; color: var(--ink); white-space: nowrap; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"], .pill[data-active="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill .n { font-size: 0.75rem; color: var(--ink-3); }
.pill[aria-pressed="true"] .n { color: rgb(255 255 255 / 0.75); }
.pill-input { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.9rem; white-space: nowrap; }
html[dir="rtl"] .pill-input { padding: 4px 14px 4px 6px; }
.pill-input input, .pill-input select { border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; padding: 5px 0; }
.pill-input:focus-within { border-color: var(--ink); }
.vsep { width: 1px; align-self: stretch; background: var(--line); margin-inline: 4px; flex: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px 16px; }
.results-head h1 { font-family: var(--font-ui); font-size: 1.15rem; font-weight: 600; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.results-layout.with-map { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.results-layout.with-map .listing-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.map-pane { position: sticky; top: calc(var(--header-h) + 72px); height: calc(100vh - var(--header-h) - 92px); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.map-pane .leaflet-container { width: 100%; height: 100%; font-family: var(--font-ui); }
.price-pin { display: inline-block; transform: translate(-50%, -50%); background: var(--surface); color: var(--ink); font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem; padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 10px rgb(21 32 58 / 0.25); border: 1px solid var(--line); white-space: nowrap; }
.price-pin[data-on="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.leaflet-div-icon.pin-wrap { background: none; border: 0; }
.map-card { display: grid; grid-template-columns: 96px 1fr; gap: 10px; text-decoration: none; color: var(--ink); width: 260px; font-family: var(--font-ui); }
.map-card .ph { position: relative; width: 96px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.map-card .ph img { object-fit: cover; }
.map-card b { display: block; font-size: 0.92rem; line-height: 1.3; }
.map-card span { font-size: 0.82rem; color: var(--ink-2); }

/* Share menu (ShareSave): opens under the share button, at its end edge. */
.share-wrap { position: relative; }
.share-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 30;
  min-width: 220px; padding: 8px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px -14px rgb(10 16 34 / 0.38);
  font-family: var(--font-ui);
  animation: share-in 0.18s var(--ease-out);
}
.share-menu-title { margin: 4px 10px 6px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3, var(--ink-2)); }
.share-menu a, .share-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; color: var(--ink);
  font: inherit; font-size: 0.92rem; font-weight: 500; text-align: start; text-decoration: none; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--surface-2); }
.share-menu svg { flex: none; color: var(--ink-2); }
.share-menu-url { display: block; width: calc(100% - 8px); margin: 0 4px 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.84rem; }
@keyframes share-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .share-menu { animation: none; } }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); }
.leaflet-popup-content { margin: 10px; }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty h2 { font-family: var(--font-ui); font-size: 1.2rem; font-weight: 600; }
.empty p { color: var(--ink-2); margin: 8px auto 18px; max-width: 46ch; }

/* popover & drawer */
.pop-wrap { position: relative; flex: none; }
.popover { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 40; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 16px; }
.popover .opt { display: flex; align-items: center; gap: 10px; padding: 8px 4px; cursor: pointer; border-radius: 8px; }
.popover .opt:hover { background: var(--surface-2); }
.popover .opt input { width: 18px; height: 18px; accent-color: var(--navy); }
.popover .opt small { margin-inline-start: auto; color: var(--ink-3); }
.popover-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgb(10 16 30 / 0.45); display: flex; justify-content: flex-end; }
.drawer { width: min(440px, 100%); height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.drawer-body fieldset { border: 0; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.drawer-body legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.drawer-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.check-grid label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check-grid input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- property page ---------- */
.prop-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.prop-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.prop-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 10px; color: var(--ink-2); }
.prop-head .meta > * + *::before { content: "·"; margin-inline: 0.55em; color: var(--ink-3); }
.prop-actions { display: flex; gap: 8px; }
.gallery-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(300px, 38vw, 640px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-mosaic > .tile { position: relative; padding: 0; border: 0; background: var(--surface-3); cursor: zoom-in; overflow: hidden; }
.gallery-mosaic > .tile:first-child { grid-row: 1 / span 2; }
.gallery-mosaic img { object-fit: cover; transition: filter 0.2s; }
.gallery-mosaic > .tile:hover img { filter: brightness(0.92); }
.gallery-mosaic .counter { display: none; position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 2; background: rgb(255 255 255 / 0.94); border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 600; }
.gallery-mosaic .all { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 2; }
.gallery-mosaic > .tile[data-extra="true"] { display: none; }
@media (max-width: 900px) { .gallery-mosaic > .tile[data-extra="true"] { display: block; } }
.gallery-mosaic.count-1 { grid-template-columns: 1fr; }
.gallery-mosaic.count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.count-2 > .tile:first-child { grid-row: auto; }
.gallery-mosaic.count-3, .gallery-mosaic.count-4 { grid-template-columns: 2fr 1fr; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: var(--canvas); overflow-y: auto; }
.lightbox-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); background: rgb(255 255 255 / 0.96); border-bottom: 1px solid var(--line); }
.lightbox-grid { max-width: 980px; margin: 0 auto; padding: 24px var(--gutter) 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lightbox-grid figure { margin: 0; }
.lightbox-grid figure:nth-child(3n + 1) { grid-column: 1 / -1; }
.lightbox-grid img { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--surface-3); }
.lightbox-grid figcaption { font-size: 0.86rem; color: var(--ink-2); margin-top: 6px; }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 24vw, 420px); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(24px, 3vw, 40px); }
.prop-section { padding-block: 32px; border-top: 1px solid var(--line); }
.prop-section:first-child { border-top: 0; padding-top: 0; }
.prop-section > h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 18px; }
.keyfacts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 28px; }
.keyfacts div { display: flex; align-items: center; gap: 10px; }
.keyfacts svg { color: var(--ink-2); flex: none; }
.keyfacts b { display: block; font-weight: 600; line-height: 1.3; }
.keyfacts span { font-size: 0.86rem; color: var(--ink-2); }
.tagline { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.5; margin-bottom: 14px; }
.prose-body p + p { margin-top: 14px; }
.prose-body { color: var(--ink); max-width: 68ch; }
.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.space { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.space b { display: block; font-weight: 600; }
.space .cap { font-family: var(--font-ui); font-weight: 300; font-size: 1.6rem; line-height: 1.1; margin-top: 8px; display: block; }
.space .cap small { font-family: var(--font-ui); font-size: 0.82rem; color: var(--ink-2); margin-inline-start: 4px; }
.space p { font-size: 0.88rem; color: var(--ink-2); margin-top: 4px; }
.amenity-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.amenity-groups h3 { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.amenity-groups ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.amenity { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.amenity svg { flex: none; color: var(--ink); }
.policy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.policy-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.policy-list dt { font-weight: 600; }
.policy-list dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tier-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tier-table td:last-child { text-align: end; font-weight: 600; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.rate-table th, .rate-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.rate-table thead th { font-weight: 600; color: var(--ink-2); font-size: 0.82rem; border-bottom: 1px solid var(--ink); }
.rate-table td.v { font-weight: 600; white-space: nowrap; }
.rate-table tbody tr:hover td { background: var(--surface); }
.map-box { position: relative; height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-box .leaflet-container { width: 100%; height: 100%; font-family: var(--font-ui); }
.map-box .leaflet-tile-pane, .map-pane .leaflet-tile-pane { filter: grayscale(1) sepia(0.12) brightness(1.04) contrast(0.92); }
.leaflet-bar { border: 0 !important; box-shadow: none !important; display: grid; gap: 6px; }
.leaflet-bar a, .leaflet-bar a:first-child, .leaflet-bar a:last-child { width: 34px !important; height: 34px !important; line-height: 34px !important; border-radius: 50% !important; border: 0 !important; box-shadow: var(--shadow-1); color: var(--ink) !important; }
.leaflet-control-attribution { font-size: 10px; background: rgb(255 255 255 / 0.85) !important; }
.home-pin { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgb(21 32 58 / 0.4); border: 3px solid #fff; }

.reviews-summary { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.reviews-summary .big { font-family: var(--font-ui); font-weight: 300; font-size: 3.4rem; line-height: 1; }
.bars { display: grid; gap: 6px; max-width: 360px; }
.bars div { display: grid; grid-template-columns: 14px 1fr 34px; gap: 10px; align-items: center; font-size: 0.85rem; }
.bars i { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bars i > span { display: block; height: 100%; background: var(--ink); }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.review { display: grid; gap: 8px; align-content: start; }
.review .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); font-weight: 600; flex: none; }
.review .who b { display: block; font-weight: 600; line-height: 1.3; }
.review .who span { font-size: 0.85rem; color: var(--ink-2); }
.review .reply { margin-top: 6px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.92rem; color: var(--ink-2); }

/* booking widget */
.bw { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 22px; }
.bw-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bw-price b { font-size: 1.5rem; font-weight: 700; }
.bw-fields { margin-top: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.bw-fields > * + * { border-top: 1px solid var(--line-strong); }
.bw-field { display: grid; gap: 2px; padding: 10px 14px; width: 100%; text-align: start; background: none; border: 0; cursor: pointer; }
.bw-field .k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
html[lang="ar"] .bw-field .k { text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.bw-field .v { font-size: 0.95rem; color: var(--ink-2); }
.bw-opts { margin-top: 12px; }
.bw-lines { margin-top: 16px; display: grid; gap: 8px; font-size: 0.95rem; }
.bw-lines div { display: flex; justify-content: space-between; gap: 12px; }
.bw-lines .total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.bw-note { font-size: 0.82rem; color: var(--ink-2); margin-top: 10px; text-align: center; }
.bw-cal { margin-top: 12px; }
.mobile-bookbar { display: none; }

/* ---------- generic content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.split-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.split > *, .split-aside > *, .book-layout > *, .prop-layout > *, .results-layout > *, .hero-head > * { min-width: 0; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-tight { padding: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-bottom: 18px; color: var(--ink-2); max-width: 70ch; }
.trust-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.trust-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trust-list svg { flex: none; color: var(--navy); margin-top: 4px; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table thead th { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); }

/* almanac: the data table used across admin */
.almanac { width: 100%; border-collapse: collapse; }
.almanac th, .almanac td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.almanac thead th { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-block: 9px; }
.almanac td.k { font-weight: 600; white-space: nowrap; }
.almanac td.v { font-weight: 600; white-space: nowrap; }
.almanac .hol { color: var(--red); }
.almanac .sum { color: var(--teal); }
.almanac tbody tr:hover td { background: rgb(255 255 255 / 0.6); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 0.88rem; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-wash); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
.input[aria-invalid="true"] { border-color: var(--red); }
.textarea { min-height: 110px; resize: vertical; }
.input-ltr { direction: ltr; text-align: start; }
html[dir="rtl"] .input-ltr { text-align: right; }
.hint { font-size: 0.85rem; color: var(--ink-2); }
.error { font-size: 0.9rem; color: var(--red); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.notice { border: 1px solid var(--line-strong); background: var(--surface); padding: 14px 16px; border-radius: var(--radius-sm); }
.notice-red { border-color: rgb(180 35 24 / 0.35); background: var(--red-wash); }
.notice-teal { border-color: rgb(30 106 115 / 0.3); background: var(--teal-wash); }
.notice-gold { border-color: rgb(154 111 42 / 0.3); background: var(--gold-wash); }

/* ---------- prose (documents, policies) ---------- */
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose p { margin: 10px 0; }
.prose ol, .prose ul { padding-inline-start: 1.4em; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 700; }
.prose .blank { display: inline-block; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px dashed var(--ink-3); padding-inline: 0.4em; border-radius: 4px; font-size: 0.9em; line-height: 1.5; }
.doc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding-block: clamp(48px, 6vw, 72px) 28px; margin-top: clamp(56px, 7vw, 96px); }
.site-footer a { color: rgb(255 255 255 / 0.84); text-decoration: none; transition: color 0.2s var(--ease-out); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: clamp(28px, 3.5vw, 56px); align-items: start; }
/* One-residence mode: brand, two link columns and contact (no "explore places"). */
.footer-grid.is-single { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr); }
.footer-grid h4 { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 16px; color: var(--gold-soft); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 0.95rem; }
.footer-brand b { font-family: var(--font-display); font-size: 3rem; line-height: 0.9; display: block; color: var(--gold-soft); }
.footer-brand p { color: rgb(255 255 255 / 0.74); margin-top: 14px; max-width: 32ch; font-size: 0.95rem; line-height: 1.75; }
.footer-book { margin-top: 20px; }
.site-footer .footer-book, .site-footer .footer-book:hover { color: var(--ink); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgb(255 255 255 / 0.84); line-height: 1.6; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--gold-soft); }
.footer-ask { display: inline-block; margin-top: 16px; font-weight: 600; border-bottom: 1px solid rgb(255 255 255 / 0.35); padding-bottom: 2px; }
.footer-ask:hover { border-bottom-color: #fff; }
.footer-legal { margin-top: clamp(36px, 4vw, 52px); padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 0.85rem; color: rgb(255 255 255 / 0.66); }
.footer-legal > div { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- booking flow ---------- */
.prop-mini { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.prop-mini .ph { position: relative; width: 88px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.prop-mini .ph img { object-fit: cover; }
.prop-mini b { display: block; font-weight: 600; line-height: 1.3; }
.prop-mini span { font-size: 0.86rem; color: var(--ink-2); }
/* Booking steps: all four always in view; they wrap onto a second line rather than slide on narrow phones. */
.steps { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; font-weight: 600; padding: 0; }
.steps li { list-style: none; padding: 10px 14px; color: var(--ink-3); white-space: nowrap; border-radius: 999px; }
@media (max-width: 640px) {
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 0.78rem; }
  .steps li { white-space: normal; text-align: center; line-height: 1.35; padding: 8px 4px; border-radius: 12px; display: grid; place-items: center; }
}
.steps li[aria-current="step"] { color: #fff; background: var(--ink); }
.steps li[data-done="true"] { color: var(--ink); }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 64px); align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.summary-row b { font-weight: 600; white-space: nowrap; }
.summary-total { font-weight: 700; font-size: 1.1rem; }
.pay-box { padding: 28px; text-align: center; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pay-amount { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-top: 6px; }
.pay-amount strong { font-family: var(--font-ui); font-weight: 300; font-size: 3rem; line-height: 1.1; }

/* month calendar (property page & booking) */
.month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.month-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.month-head button { background: none; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink); }
.month-head button:hover:not(:disabled) { border-color: var(--ink); }
.month-head button:disabled { opacity: 0.3; cursor: default; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 6px; gap: 2px; }
.month-dow { font-size: 0.74rem; font-weight: 600; color: var(--ink-3); text-align: center; padding: 6px 0; }
.cell { min-height: 58px; border: 0; border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: none; font: inherit; color: var(--ink); cursor: pointer; transition: background 0.12s; }
.cell:hover:not(:disabled) { background: var(--surface-2); }
.cell .n { font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.cell .p { font-size: 0.7rem; color: var(--ink-2); direction: ltr; }
.cell[data-season="holiday"] .p { color: var(--red); font-weight: 600; }
.cell[data-season="summer"] .p { color: var(--teal); font-weight: 600; }
.cell[data-booked="true"], .cell:disabled { cursor: default; color: var(--ink-3); }
.cell[data-booked="true"] .n { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.cell[data-booked="true"] .p { color: var(--ink-3); font-weight: 400; }
.cell[data-past="true"] { opacity: 0.35; }
.cell[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cell[aria-pressed="true"] .p { color: rgb(255 255 255 / 0.85); }
.cell.in-range { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cell-empty { min-height: 58px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px 12px; font-size: 0.78rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; margin-inline-end: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background 0.2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: inset-inline-start 0.2s var(--ease-out); }
.switch input:checked { background: var(--navy); }
.switch input:checked::after { inset-inline-start: 21px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { background: none; border: 0; width: 36px; height: 36px; font-size: 1.15rem; cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--surface-2); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.sig { width: 100%; height: 170px; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; display: block; }
.doc-box { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px 20px; }
.doc-box h1 { font-size: 1.3rem; }
.doc-box h2 { font-size: 1.1rem; }
.badge { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }

/* ---------- date picker (search & filters) ---------- */
.date-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; color: var(--ink-2); padding: 0; cursor: pointer; text-align: start; }
/* The date button inside a form: same box as the other inputs. */
.date-btn.date-input { display: flex; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.date-btn.date-input:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-wash); }
.date-btn.date-input svg { flex: none; color: var(--ink-3); }
.field > span:has(> .date-btn.date-input) { display: flex !important; width: 100%; }
.date-btn .clear { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.date-pop { position: absolute; top: calc(100% + 12px); z-index: 60; width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 10px; }
.date-pop .dp-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; font-weight: 600; }
.date-pop .dp-head button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.date-pop .dp-head button:disabled { opacity: 0.3; cursor: default; }
.date-pop .dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.date-pop .dp-dow { font-size: 0.72rem; color: var(--ink-3); text-align: center; padding: 4px 0; }
.date-pop .dp-day { height: 38px; border: 0; border-radius: 50%; background: none; cursor: pointer; font: inherit; font-size: 0.9rem; color: var(--ink); }
.date-pop .dp-day:hover:not(:disabled) { background: var(--surface-2); }
.date-pop .dp-day:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; }
.date-pop .dp-day[aria-pressed="true"] { background: var(--ink); color: #fff; }
.date-pop .dp-foot { display: flex; justify-content: space-between; padding: 8px 4px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.sb-collapsed { display: none; width: 100%; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 14px; cursor: pointer; text-align: start; font: inherit; color: var(--ink); }
.sb-collapsed b { display: block; font-weight: 600; }
.sb-collapsed span { font-size: 0.85rem; color: var(--ink-2); }
.sb-collapsed svg { flex: none; }
.m-counter { display: none; }
.spaces-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.spaces-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spaces-list b { font-weight: 600; }
.spaces-list span { color: var(--ink-2); font-size: 0.92rem; text-align: end; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 40px; }
.services-grid h3 { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.services-grid ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.services-grid li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.soon-tag { flex: none; font-size: 0.74rem; font-weight: 600; color: var(--gold); background: var(--gold-wash); border-radius: 999px; padding: 2px 9px; }
.months-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.months-2 > .month-col + .month-col { border-inline-start: 1px solid var(--line); }
@media (max-width: 1180px) { .months-2 { grid-template-columns: 1fr; } .months-2 > .month-col + .month-col, .month-col-title { display: none; } }
@media (max-width: 900px) { .spaces-list { grid-template-columns: 1fr; } }

/* ---------- skeletons ---------- */
.sk { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-card .sk-ph { aspect-ratio: 4 / 3.1; border-radius: var(--radius); }
.sk-line { height: 14px; margin-top: 10px; }

/* ---------- admin (Operate: precision over expression) ---------- */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; font-size: 0.97rem; }
.admin-side { background: var(--navy-deep); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.admin-side .brand b, .admin-side .wordmark b { color: var(--gold-soft); font-size: 1.8rem; }
.admin-side .brand span, .admin-side .wordmark span { color: rgb(255 255 255 / 0.7); }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; }
.wordmark b { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.wordmark span { font-size: 0.78rem; }
/* The operator's logo (Falak Trading) above «لوحة الإدارة» in the admin sidebar. */
.admin-side .wordmark:has(.wordmark-logo) { flex-direction: column; align-items: flex-start; gap: 6px; }
.wordmark-logo { display: block; width: 150px; height: auto; }
.admin-nav { display: grid; gap: 2px; font-size: 0.92rem; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: rgb(255 255 255 / 0.8); }
.admin-nav a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 3px 0 0 var(--gold-soft); }
html[dir="rtl"] .admin-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold-soft); }
.admin-main { padding: 28px clamp(16px, 3vw, 36px) 64px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-family: var(--font-ui); font-size: 1.6rem; font-weight: 700; }
.admin h2, .admin h3 { font-family: var(--font-ui); font-weight: 600; }
/* Nothing in the admin scrolls sideways: panels show their whole content, and tables reflow to fit (below). */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel h2 { font-size: 1.02rem; margin-bottom: 12px; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.panels > * { min-width: 0; }

/* Phone numbers, emails, references and codes may break rather than push a table wider than its box. */
.almanac td[dir="ltr"], .almanac td [dir="ltr"] { overflow-wrap: anywhere; }

/* .rows: short lists without a header (dashboard, versions, seasons). Each row lays out its cells in a line
   and wraps them onto a second line when the panel is narrow; the last cell (status or action) sits at the end. */
.almanac.rows, .almanac.rows tbody { display: block; width: 100%; }
.almanac.rows tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.almanac.rows td { display: block; padding: 0; border: 0; min-width: 0; }
.almanac.rows td:first-child { flex: 0 1 auto; }
.almanac.rows td:last-child:not(:first-child) { margin-inline-start: auto; }
.almanac.rows tbody tr:hover td { background: none; }

/* .table-fit + .almanac.stack: data tables with a header. Wide enough, a normal table; narrower than 860px,
   every row becomes a small card whose cells carry their column name (data-label). */
.table-fit { container: tablefit / inline-size; }
@container tablefit (max-width: 860px) {
  .almanac.stack, .almanac.stack tbody { display: block; width: 100%; }
  .almanac.stack thead { display: none; }
  .almanac.stack tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .table-fit:not(.panel) .almanac.stack tr { padding-inline: 0; } /* already inside a padded panel */
  .almanac.stack tr:last-child { border-bottom: 0; }
  .almanac.stack td { display: block; padding: 0; border: 0; min-width: 0; }
  .almanac.stack td.lead { grid-column: 1 / -1; font-size: 1rem; }
  .almanac.stack td.wide { grid-column: 1 / -1; max-width: none !important; }
  .almanac.stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 0.74rem; font-weight: 600; color: var(--ink-3, var(--ink-2)); }
  .almanac.stack tbody tr:hover td { background: none; }
  .almanac.stack td input[type="number"] { min-width: 0; }
}
.stat-line { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; overflow: hidden; }
.stat-line > div { flex: 1 1 160px; padding: 14px 16px; border-inline-start: 1px solid var(--line); }
.stat-line > div:first-child { border-inline-start: 0; }
.stat-line dt { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }
.stat-line dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 700; }
.table-compact th, .table-compact td { padding: 9px 10px; font-size: 0.93rem; }
.table-compact td.k { font-size: 0.93rem; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.tag[data-s="hold"] { background: var(--gold-wash); color: var(--gold); }
.tag[data-s="confirmed"] { background: var(--teal-wash); color: var(--teal); }
.tag[data-s="paid"] { background: var(--green-wash); color: var(--green); }
.tag[data-s="checked_in"] { background: var(--navy); color: #fff; }
.tag[data-s="checked_out"], .tag[data-s="settled"] { background: var(--surface-2); }
.tag[data-s="cancelled"], .tag[data-s="expired"], .tag[data-s="failed"] { background: var(--red-wash); color: var(--red); }
/* Content editor (admin → محتوى الموقع): label, Arabic, English side by side; stacked on narrow screens. */
.ce-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-bottom: 18px; }
.ce-search svg { flex: none; color: var(--ink-2); }
.ce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ce-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: start; color: var(--ink); cursor: pointer; }
.ce-open:hover { background: var(--surface-2); }
.ce-open .small { flex-basis: 100%; }
.ce-head { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 18px 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.ce-form { display: grid; gap: 4px; }
.ce-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ce-row-one { grid-template-columns: 200px minmax(0, 1fr); }
.ce-label { font-size: 0.86rem; font-weight: 600; padding-top: 9px; overflow-wrap: anywhere; }
.ce-slots { grid-column: 2 / -1; font-size: 0.78rem; color: var(--ink-2); }
.ce-row .textarea { min-height: 0; field-sizing: content; max-height: 24lh; }
.ce-check { display: inline-flex; align-items: center; gap: 8px; padding-top: 8px; }
.ce-group { display: grid; gap: 2px; }
.ce-group-named { padding-block: 6px; }
.ce-group-title { font-weight: 700; font-size: 0.95rem; margin: 14px 0 4px; }
.ce-list-field { display: grid; gap: 10px; padding: 8px 0 14px; }
.ce-item { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 10px; background: var(--surface); }
.ce-item-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.ce-image { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.ce-thumb { width: 160px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.ce-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ce-image-actions { display: grid; gap: 8px; flex: 1 1 240px; min-width: 0; }
.ce-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -6px 18px -12px rgb(10 16 34 / 0.3); }
.ce-bar .notice { margin: 0; }
.ce-steps { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 14px; }
.ce-steps li > b { display: block; margin-bottom: 4px; }
@media (max-width: 900px) {
  .ce-head { display: none; }
  .ce-row, .ce-row-one { grid-template-columns: minmax(0, 1fr); }
  .ce-label { padding-top: 0; }
  .ce-slots { grid-column: auto; }
}

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .field { min-width: 160px; }
.rate-grid input { width: 100%; min-width: 72px; padding: 7px 8px; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; }
.check-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button[aria-pressed="true"][data-v="note"] { background: var(--red); }
.cal-admin .cell { min-height: 92px; cursor: default; align-items: stretch; justify-content: flex-start; border-radius: 8px; border: 1px solid var(--line); }
.cal-admin .cell .n { font-size: 0.9rem; }
.cal-entry { display: block; font-size: 0.72rem; font-weight: 600; padding: 2px 6px; margin-top: 3px; border-radius: 4px; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; background: var(--teal); }
.cal-entry[data-s="hold"] { background: var(--gold); }
.cal-entry[data-s="checked_in"] { background: var(--navy); }
.cal-entry[data-block="true"] { background: var(--ink-3); }
.prop-switch { display: inline-flex; align-items: center; gap: 8px; }
.prop-switch select { min-width: 220px; }
.thumb-sm { position: relative; width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--surface-3); flex: none; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .listing-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid.four > :nth-child(4) { display: none; }
  .results-layout.with-map { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .results-layout.with-map .listing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-nav[data-open="true"] { display: grid; position: fixed; inset: var(--header-h) 0 0; background: var(--canvas); padding: 20px var(--gutter); align-content: start; gap: 2px; z-index: 49; font-size: 1.15rem; font-weight: 500; overflow-y: auto; }
  .mobile-nav a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .searchbar { grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); }
  .sb-field + .sb-field::before { display: none; }
  .sb-field { border: 1px solid var(--line); border-radius: var(--radius); margin: 4px; }
  .sb-submit { grid-column: 1 / -1; margin: 4px; border-radius: var(--radius); padding-block: 1em; }
  .hero-search { margin-top: -28px; }
  .prop-layout, .book-layout, .split-aside { grid-template-columns: minmax(0, 1fr); }
  .bw { position: static; }
  .summary, .aside-sticky { position: static; }
  .footer-grid, .footer-grid.is-single { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid:not(.is-single) > :last-child { grid-column: 1 / -1; }
  .results-layout.with-map { grid-template-columns: minmax(0, 1fr); }
  .map-pane { position: relative; top: 0; height: 60vh; order: -1; }
  .results-layout.with-map .listing-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
}
@media (max-width: 900px) {
  .hero-head { grid-template-columns: 1fr; }
  .hero-head .lead { justify-self: start; }
  .hero-media { grid-template-columns: 1fr; grid-template-rows: 1fr; height: clamp(300px, 70vw, 460px); }
  .hero-media figure:not(:first-child) { display: none; }
  .hero-media figure:first-child { grid-row: auto; }
  .area-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .howto { grid-template-columns: 1fr 1fr; }
  .howto li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .promise, .split, .amenity-groups, .policy-list, .review-list { grid-template-columns: 1fr; }
  .gallery-mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; height: clamp(260px, 64vw, 420px); }
  .gallery-mosaic::-webkit-scrollbar { display: none; }
  .gallery-mosaic > .tile { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery-mosaic > .tile:first-child { grid-row: auto; }
  .gallery-mosaic .all { display: none; }
  .gallery-mosaic .counter { display: block; position: sticky; }
  .gallery-wrap { position: relative; }
  .gallery-wrap .m-counter { display: block; }
  .listing-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-grid.four > :nth-child(4) { display: grid; }
  .occ-row { grid-template-columns: 140px minmax(0, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .mobile-bookbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 12px var(--gutter); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px -12px rgb(21 32 58 / 0.25); }
  .mobile-bookbar b { font-size: 1.05rem; }
  .has-bookbar { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .brand span, .header-actions .hide-sm { display: none; }
  .brand b { font-size: 1.8rem; }
  .searchbar { grid-template-columns: 1fr; }
  .listing-grid.four { grid-template-columns: minmax(0, 1fr); }
  .area-bento { grid-template-columns: minmax(0, 1fr); }
  .area-tile:first-child { grid-column: auto; grid-row: span 1; }
  .howto { grid-template-columns: 1fr; }
  .howto li { border-inline-start: 0; padding-inline-start: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .form-grid, .check-grid, .range-pair { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid.is-single { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child, .footer-grid.is-single > :last-child { grid-column: 1 / -1; }
  .header-book { padding-inline: 0.9em; font-size: 0.84rem; }
  .reviews-summary { grid-template-columns: 1fr; gap: 12px; }
  .lightbox-grid { grid-template-columns: 1fr; }
  .cell { min-height: 50px; }
  .cell .p { font-size: 0.62rem; }
  .prop-head h1 { font-size: 1.8rem; }
  .occ-row { grid-template-columns: 104px minmax(0, 1fr); }
  .listing-grid.four, .area-bento.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .listing-grid.four > *, .area-bento.rail > * { scroll-snap-align: start; }
  .listing-grid.four::-webkit-scrollbar, .area-bento.rail::-webkit-scrollbar { display: none; }
  .area-bento.rail { grid-auto-rows: 220px; }
  .area-bento.rail .area-tile:first-child { grid-row: auto; }
  .searchbar[data-open="false"] .sb-field, .searchbar[data-open="false"] .sb-submit { display: none; }
  .sb-collapsed { display: flex; }
  .searchbar[data-open="true"] .sb-collapsed { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
