/*!
 * Homelia: main stylesheet
 * Built from assets/css/src/. Do not edit this file directly; edit the
 * source files and run "node build.js".
 * Requires Bootstrap 5.3 (load bootstrap.min.css BEFORE this file).
 */

/* ==========================================================================
   00 · DESIGN TOKENS
   Change a value here and the whole template updates.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Primitives: raw palette --------------------------------------- */
  --white: #FFFFFF;

  --sand-50: #F7F6F0;   /* page background */
  --sand-100: #EFEDE2;
  --sand-200: #E4E1D2;
  --sand-300: #D2CEBB;
  --sand-400: #B5B09A;

  --green-50: #F1F5F0;
  --green-100: #E8EDE7; /* surface */
  --green-200: #CBD9D0;
  --green-300: #9FC4B4;
  --green-500: #4F8F76;
  --green-600: #3C7A63;
  --green-700: #2E6B57; /* hover */
  --green-900: #173F35; /* primary */
  --green-950: #0F2D25;
  --green-900-rgb: 23, 63, 53;   /* the same colors as channels, for rgba() overlays and shadows; the customizer updates them */
  --green-overlay-rgb: 10, 30, 25; /* deep overlay tone used over photos */

  --charcoal-200: #D6D9D6;
  --charcoal-300: #A3A9A5;
  --charcoal-600: #5F6763;
  --charcoal-700: #3F4743;
  --charcoal-900: #252B28; /* text */

  --brass-100: #FAF2DE;
  --brass-300: #EECE88;
  --brass-400: #E6B751;
  --brass-500: #E0A526; /* accent (Amber) */
  --brass-500-rgb: 224, 165, 38;
  --brass-700: #926B19;

  --red-100: #F8E3DF;
  --red-600: #B3402F;
  --blue-100: #E1ECF4;
  --blue-600: #2F6690;

  /* ---- Semantic color: use these in components ----------------------- */
  --color-bg-page: var(--sand-50);
  --color-bg-card: var(--white);
  --color-bg-surface: var(--green-100);
  --color-bg-surface-hover: var(--green-200);
  --color-bg-surface-pressed: var(--green-300);
  --color-bg-subtle: var(--sand-100);
  --color-bg-inverse: var(--green-900);
  --color-bg-primary: var(--green-900);
  --color-bg-primary-hover: var(--green-700);
  --color-bg-primary-pressed: var(--green-950);
  --color-bg-accent: var(--brass-500);
  --color-bg-accent-hover: var(--brass-400);
  --color-bg-accent-pressed: var(--brass-300);
  --color-bg-accent-subtle: var(--brass-100);
  --color-bg-disabled: var(--sand-200);
  --color-bg-success-subtle: var(--green-100);
  --color-bg-danger-subtle: var(--red-100);
  --color-bg-info-subtle: var(--blue-100);
  --color-bg-header-scrolled: rgba(247, 246, 240, 0.96);
  --color-bg-media: var(--white); /* behind drawings such as floor plans */

  --color-text-primary: var(--charcoal-900);
  --color-text-secondary: var(--charcoal-600);
  --color-text-disabled: var(--charcoal-300);
  --color-text-inverse: var(--sand-50);
  --color-text-brand: var(--green-900);
  --color-text-link: var(--green-700);
  --color-text-accent: var(--brass-700);
  --color-text-on-accent: var(--charcoal-900);
  --color-text-danger: var(--red-600);
  --color-text-success: var(--green-700);
  --color-text-info: var(--blue-600);

  --color-border-default: var(--sand-300);
  --color-border-subtle: var(--sand-200);
  --color-border-strong: var(--charcoal-300);
  --color-border-brand: var(--green-900);
  --color-border-focus: var(--green-500);
  --color-border-danger: var(--red-600);

  /* ---- Spacing (4px base) -------------------------------------------- */
  --spacing-0: 0;
  --spacing-2xs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* ---- Radius -------------------------------------------------------- */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* ---- Control and icon sizes ---------------------------------------- */
  --size-control-sm: 36px;
  --size-control-md: 44px;
  --size-control-lg: 52px;
  --size-icon-sm: 16px;
  --size-icon-md: 20px;
  --size-icon-lg: 24px;

  /* ---- Typography ---------------------------------------------------- */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- Shadows (forest-tinted) --------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(var(--green-900-rgb), 0.08), 0 1px 3px rgba(var(--green-900-rgb), 0.06);
  --shadow-md: 0 4px 12px rgba(var(--green-900-rgb), 0.10), 0 2px 4px rgba(var(--green-900-rgb), 0.05);
  --shadow-lg: 0 12px 32px rgba(var(--green-900-rgb), 0.14), 0 4px 8px rgba(var(--green-900-rgb), 0.05);
  --focus-ring: 0 0 0 3px rgba(79, 143, 118, 0.35);

  /* ---- Motion -------------------------------------------------------- */
  --transition-fast: 150ms ease;
}

/* ==========================================================================
   01 · BASE
   Maps the design tokens onto Bootstrap 5.3 variables, then sets typography,
   links, focus and the icon helper. Loads AFTER bootstrap.min.css.
   ========================================================================== */

:root {
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--color-text-primary);
  --bs-body-color-rgb: 37, 43, 40;
  --bs-body-bg: var(--color-bg-page);
  --bs-body-bg-rgb: 247, 246, 240;
  --bs-heading-color: var(--color-text-brand);
  --bs-secondary-color: var(--color-text-secondary);
  --bs-secondary-bg: var(--color-bg-subtle);
  --bs-tertiary-bg: var(--color-bg-subtle);
  --bs-emphasis-color: var(--color-text-primary);
  --bs-border-color: var(--color-border-default);
  --bs-border-radius: var(--radius-md);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-border-radius-xl: var(--radius-xl);
  --bs-border-radius-pill: var(--radius-full);
  --bs-primary: var(--green-900);
  --bs-primary-rgb: 23, 63, 53;
  --bs-link-color: var(--color-text-link);
  --bs-link-color-rgb: 46, 107, 87;
  --bs-link-hover-color: var(--green-900);
  --bs-link-hover-color-rgb: 23, 63, 53;
  --bs-focus-ring-color: rgba(79, 143, 118, 0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-page);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green-200); color: var(--green-950); }

/* ---- Headings: Fraunces for h1-h4, DM Sans for h5-h6 ------------------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--bs-heading-color);
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.5rem); line-height: 1.2; }
h2, .h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2rem); line-height: 1.25; }
h3, .h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem); line-height: 1.33; letter-spacing: 0; }
h4, .h4 { font-size: 1.25rem; line-height: 1.4; letter-spacing: 0; }
h5, .h5, h6, .h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--bs-heading-color);
}
h5, .h5 { font-size: 1.125rem; line-height: 1.45; }
h6, .h6 { font-size: 1rem; line-height: 1.5; }

.display-1, .display-2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--bs-heading-color);
  letter-spacing: -0.02em;
}
.display-1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 4rem); line-height: 1.12; }
.display-2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3rem); line-height: 1.17; }

.lead { font-size: 1.125rem; line-height: 1.55; font-weight: 400; color: var(--color-text-secondary); }
.small, small { font-size: 0.875rem; }
.text-caption { font-size: 0.75rem; line-height: 1.33; color: var(--color-text-secondary); }

/* Eyebrow / overline label above headings */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-500);
}

/* Text colour helpers that follow the tokens */
.text-brand { color: var(--color-text-brand) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-accent { color: var(--color-text-accent) !important; }
.bg-page { background-color: var(--color-bg-page) !important; }
.bg-surface { background-color: var(--color-bg-surface) !important; }
.bg-brand { background-color: var(--color-bg-primary) !important; color: var(--color-text-inverse); }

/* ---- Links ------------------------------------------------------------ */
a { text-underline-offset: 0.2em; transition: color var(--transition-fast); }

/* ---- Keyboard focus: one consistent ring everywhere -------------------- */
:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
}

/* ---- Icons (inline SVG sprite, see assets/js/icons.js) ------------------ */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.icon-fill { fill: currentColor; stroke-width: 1.5; }
.icon-sm { width: var(--size-icon-sm); height: var(--size-icon-sm); }
.icon-md { width: var(--size-icon-md); height: var(--size-icon-md); }
.icon-lg { width: var(--size-icon-lg); height: var(--size-icon-lg); }

/* ---- Respect users who prefer less motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   COMPONENT · BUTTON
   Variants:  .btn-primary  .btn-secondary  .btn-accent  .btn-outline-primary  .btn-ghost
   Sizes:     .btn-sm (36)  default (44)  .btn-lg (52)
   Modifiers: .btn-pill (icon buttons: see icon-button.css)  .is-loading  .w-100
   Built on Bootstrap's .btn so JS plugins and utilities keep working.
   ========================================================================== */

body .btn {
  --bs-btn-padding-x: var(--spacing-lg);
  --bs-btn-padding-y: 0;
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.25;
  --bs-btn-border-width: 1.5px;
  --bs-btn-border-radius: var(--radius-md);
  --bs-btn-focus-box-shadow: none;
  --bs-btn-box-shadow: none;
  --bs-btn-active-shadow: none;
  /* Flat by design: also neutralises gradients/bevels from Bootswatch-style themes */
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-height: var(--size-control-md);
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), transform var(--transition-fast);
}
body .btn:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
  box-shadow: none;
}
body .btn:active:not(:disabled):not(.disabled) { transform: translateY(1px); }
body .btn .icon { width: var(--size-icon-md); height: var(--size-icon-md); vertical-align: 0; }

/* ---- Sizes -------------------------------------------------------------- */
body .btn-sm {
  --bs-btn-padding-x: var(--spacing-md);
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: var(--radius-md);
  min-height: var(--size-control-sm);
}
body .btn-sm .icon { width: var(--size-icon-sm); height: var(--size-icon-sm); }
body .btn-lg {
  --bs-btn-padding-x: var(--spacing-xl);
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: var(--radius-md);
  min-height: var(--size-control-lg);
}

/* ---- Primary ------------------------------------------------------------ */
body .btn-primary {
  --bs-btn-color: var(--color-text-inverse);
  --bs-btn-bg: var(--color-bg-primary);
  --bs-btn-border-color: var(--color-bg-primary);
  --bs-btn-hover-color: var(--color-text-inverse);
  --bs-btn-hover-bg: var(--color-bg-primary-hover);
  --bs-btn-hover-border-color: var(--color-bg-primary-hover);
  --bs-btn-active-color: var(--color-text-inverse);
  --bs-btn-active-bg: var(--color-bg-primary-pressed);
  --bs-btn-active-border-color: var(--color-bg-primary-pressed);
  --bs-btn-disabled-color: var(--color-text-disabled);
  --bs-btn-disabled-bg: var(--color-bg-disabled);
  --bs-btn-disabled-border-color: var(--color-bg-disabled);
}

/* ---- Secondary (soft green) -------------------------------------------- */
body .btn-secondary {
  --bs-btn-color: var(--color-text-brand);
  --bs-btn-bg: var(--color-bg-surface);
  --bs-btn-border-color: var(--color-bg-surface);
  --bs-btn-hover-color: var(--color-text-brand);
  --bs-btn-hover-bg: var(--color-bg-surface-hover);
  --bs-btn-hover-border-color: var(--color-bg-surface-hover);
  --bs-btn-active-color: var(--color-text-brand);
  --bs-btn-active-bg: var(--color-bg-surface-pressed);
  --bs-btn-active-border-color: var(--color-bg-surface-pressed);
  --bs-btn-disabled-color: var(--color-text-disabled);
  --bs-btn-disabled-bg: var(--color-bg-disabled);
  --bs-btn-disabled-border-color: var(--color-bg-disabled);
}

/* ---- Accent (brass) for marketing CTAs --------------------------------- */
body .btn-accent {
  --bs-btn-color: var(--color-text-on-accent);
  --bs-btn-bg: var(--color-bg-accent);
  --bs-btn-border-color: var(--color-bg-accent);
  --bs-btn-hover-color: var(--color-text-on-accent);
  --bs-btn-hover-bg: var(--color-bg-accent-hover);
  --bs-btn-hover-border-color: var(--color-bg-accent-hover);
  --bs-btn-active-color: var(--color-text-on-accent);
  --bs-btn-active-bg: var(--color-bg-accent-pressed);
  --bs-btn-active-border-color: var(--color-bg-accent-pressed);
  --bs-btn-disabled-color: var(--color-text-disabled);
  --bs-btn-disabled-bg: var(--color-bg-disabled);
  --bs-btn-disabled-border-color: var(--color-bg-disabled);
}

/* ---- Outline ------------------------------------------------------------ */
body .btn-outline-primary {
  --bs-btn-color: var(--color-text-brand);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--color-border-brand);
  --bs-btn-hover-color: var(--color-text-brand);
  --bs-btn-hover-bg: var(--color-bg-surface);
  --bs-btn-hover-border-color: var(--color-border-brand);
  --bs-btn-active-color: var(--color-text-brand);
  --bs-btn-active-bg: var(--color-bg-surface-hover);
  --bs-btn-active-border-color: var(--color-border-brand);
  --bs-btn-disabled-color: var(--color-text-disabled);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--color-border-default);
}

/* ---- Ghost (text only) -------------------------------------------------- */
body .btn-ghost {
  --bs-btn-color: var(--color-text-brand);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--color-text-brand);
  --bs-btn-hover-bg: var(--color-bg-surface);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--color-text-brand);
  --bs-btn-active-bg: var(--color-bg-surface-hover);
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: var(--color-text-disabled);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: transparent;
}

/* ---- Modifiers ---------------------------------------------------------- */
body .btn-pill { --bs-btn-border-radius: var(--radius-full); }

/* Loading: keeps width, hides label, shows a spinner */
body .btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
body .btn.is-loading > * { visibility: hidden; }
body .btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--btn-spinner, var(--color-text-inverse));
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
body .btn-secondary.is-loading,
body .btn-outline-primary.is-loading,
body .btn-ghost.is-loading,
body .btn-accent.is-loading { --btn-spinner: var(--color-text-brand); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- On dark backgrounds -------------------------------------------------- */
body .btn-light {
  --bs-btn-color: var(--green-900);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--white);
  --bs-btn-hover-color: var(--green-900);
  --bs-btn-hover-bg: var(--sand-100);
  --bs-btn-hover-border-color: var(--sand-100);
  --bs-btn-active-color: var(--green-900);
  --bs-btn-active-bg: var(--sand-200);
  --bs-btn-active-border-color: var(--sand-200);
}
body .btn-outline-light {
  --bs-btn-color: var(--white);
  --bs-btn-border-color: rgba(255, 255, 255, 0.6);
  --bs-btn-hover-color: var(--green-900);
  --bs-btn-hover-bg: var(--white);
  --bs-btn-hover-border-color: var(--white);
  --bs-btn-active-color: var(--green-900);
  --bs-btn-active-bg: var(--sand-100);
  --bs-btn-active-border-color: var(--sand-100);
}

/* ==========================================================================
   Icon button: .btn.btn-icon  .btn-favorite  .btn-overlay
   Combine with any .btn variant. Always add an aria-label.
   ========================================================================== */
body .btn-icon {
  --bs-btn-padding-x: 0;
  width: var(--size-control-md);
  padding: 0;
}
body .btn-icon.btn-sm { width: var(--size-control-sm); }
body .btn-icon.btn-lg { width: var(--size-control-lg); }
body .btn-icon.btn-lg .icon { width: var(--size-icon-lg); height: var(--size-icon-lg); }

/* Favorite (heart) toggle: state lives in aria-pressed */
body .btn-favorite {
  --bs-btn-color: var(--color-text-secondary);
  --bs-btn-bg: var(--color-bg-card);
  --bs-btn-border-color: var(--color-border-default);
  --bs-btn-hover-color: var(--red-600);
  --bs-btn-hover-bg: var(--red-100);
  --bs-btn-hover-border-color: var(--red-600);
  --bs-btn-active-color: var(--red-600);
  --bs-btn-active-bg: var(--red-100);
  --bs-btn-active-border-color: var(--red-600);
  --bs-btn-padding-x: 0;
  width: var(--size-control-md);
  padding: 0;
}
body .btn-favorite.btn-sm { width: var(--size-control-sm); }
body .btn-favorite[aria-pressed="true"] {
  --bs-btn-color: var(--red-600);
  --bs-btn-border-color: var(--red-600);
  --bs-btn-bg: var(--red-100);
}
body .btn-favorite[aria-pressed="true"] .icon { fill: currentColor; }

/* Overlay: white glass button that stays readable on any photo */
body .btn-overlay {
  --bs-btn-color: var(--green-900);
  --bs-btn-bg: rgba(255, 255, 255, 0.94);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--green-900);
  --bs-btn-hover-bg: var(--white);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--green-900);
  --bs-btn-active-bg: var(--white);
  --bs-btn-active-border-color: transparent;
  box-shadow: var(--shadow-sm);
}
body .btn-overlay.btn-favorite { --bs-btn-bg: rgba(255, 255, 255, 0.94); --bs-btn-border-color: transparent; }
body .btn-overlay.btn-favorite[aria-pressed="true"] { --bs-btn-bg: var(--white); --bs-btn-color: var(--red-600); }

/* ==========================================================================
   COMPONENT · FORMS
   Text input, textarea, select, checkbox, radio, switch, input with icon,
   validation states. Uses Bootstrap's markup (.form-control, .form-select,
   .form-check) so existing Bootstrap knowledge and JS still apply.
   Sizes: .form-control-sm (36)  default (44)  .form-control-lg (52)
   ========================================================================== */

:root {
  --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F7F6F0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  --dash-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F7F6F0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 10h10'/%3E%3C/svg%3E");
  --dot-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2.2' fill='%23F7F6F0'/%3E%3C/svg%3E");
  --knob-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%235F6763'/%3E%3C/svg%3E");
  --knob-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23F7F6F0'/%3E%3C/svg%3E");
}

/* ---- Labels and help text ---------------------------------------------- */
body .form-label {
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
body .form-text {
  margin-top: var(--spacing-2xs);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* ---- Text input / select ------------------------------------------------ */
body .form-control,
body .form-select {
  min-height: var(--size-control-md);
  padding: 0 var(--spacing-md);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}
body .form-control::placeholder { color: var(--color-text-secondary); opacity: 0.85; }
body .form-control:hover:not(:disabled):not([readonly]),
body .form-select:hover:not(:disabled) { border-color: var(--color-border-strong); }
body .form-control:focus,
body .form-select:focus {
  color: var(--color-text-primary);
  background-color: var(--color-bg-card);
  border-color: var(--color-border-focus);
  box-shadow: none;
  outline: 0;
}
body .form-control:disabled,
body .form-select:disabled {
  color: var(--color-text-disabled);
  background-color: var(--color-bg-subtle);
  border-color: var(--color-border-subtle);
  cursor: not-allowed;
}
body .form-control[readonly] { background-color: var(--color-bg-subtle); }

/* Sizes */
body .form-control-sm,
body .form-select-sm {
  min-height: var(--size-control-sm);
  padding: 0 var(--spacing-sm);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}
body .form-control-lg,
body .form-select-lg {
  min-height: var(--size-control-lg);
  padding: 0 var(--spacing-md);
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Textarea */
body textarea.form-control {
  min-height: 120px;
  padding: var(--spacing-sm) var(--spacing-md);
  resize: vertical;
}

/* Select: custom chevron in brand green */
body .form-select {
  --bs-form-select-bg-img: var(--chevron-down);
  padding-right: 44px;
  background-image: var(--chevron-down);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
body .form-select-sm { padding-right: 40px; background-position: right 12px center; }

/* ---- Validation --------------------------------------------------------- */
body .form-control.is-invalid,
body .form-select.is-invalid { border-color: var(--color-border-danger); background-image: none; padding-right: var(--spacing-md); }
body .form-select.is-invalid { background-image: var(--chevron-down); padding-right: 44px; }
body .form-control.is-invalid:focus,
body .form-select.is-invalid:focus { border-color: var(--color-border-danger); box-shadow: none; }
body .form-control.is-valid,
body .form-select.is-valid { border-color: var(--green-600); background-image: none; padding-right: var(--spacing-md); }
body .form-select.is-valid { background-image: var(--chevron-down); padding-right: 44px; }
body .form-control.is-valid:focus,
body .form-select.is-valid:focus { border-color: var(--green-600); box-shadow: none; }
body .invalid-feedback { margin-top: var(--spacing-2xs); font-size: 0.8125rem; color: var(--color-text-danger); }
body .valid-feedback { margin-top: var(--spacing-2xs); font-size: 0.8125rem; color: var(--color-text-success); }

/* ---- Input with icon ---------------------------------------------------- */
.input-icon { position: relative; }
.input-icon > .icon {
  position: absolute;
  top: 50%;
  left: var(--spacing-md);
  transform: translateY(-50%);
  width: var(--size-icon-md);
  height: var(--size-icon-md);
  color: var(--color-text-secondary);
  pointer-events: none;
}
.input-icon > .form-control { padding-left: 46px; }
.input-icon > .icon-end { left: auto; right: var(--spacing-md); }
.input-icon > .icon-end ~ .form-control { padding-left: var(--spacing-md); padding-right: 46px; }

/* ---- Input group (prefix / suffix text) -------------------------------- */
body .input-group-text {
  min-height: var(--size-control-md);
  padding: 0 var(--spacing-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
}

/* ---- Checkbox and radio ------------------------------------------------- */
body .form-check { min-height: 24px; padding-left: 2rem; margin-bottom: var(--spacing-xs); }
body .form-check .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  margin-left: -2rem;
  background-color: var(--color-bg-card);
  border: 1.5px solid var(--color-border-strong);
  box-shadow: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
body .form-check-input[type="checkbox"] { border-radius: 5px; }
body .form-check-input[type="radio"] { border-radius: 50%; }
body .form-check-input:hover:not(:disabled) { border-color: var(--color-border-brand); }
body .form-check-input:focus { box-shadow: none; border-color: var(--color-border-brand); }
body .form-check-input:focus-visible { outline: 3px solid var(--color-border-focus); outline-offset: 2px; }
body .form-check-input:checked,
body .form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--color-bg-primary);
  border-color: var(--color-bg-primary);
}
body .form-check-input:checked[type="checkbox"] { background-image: var(--check-white); background-size: 100% 100%; }
body .form-check-input[type="checkbox"]:indeterminate { background-image: var(--dash-white); background-size: 100% 100%; }
body .form-check-input:checked[type="radio"] { background-image: var(--dot-white); background-size: 100% 100%; }
body .form-check-input:disabled { opacity: 0.5; }
body .form-check-input:disabled ~ .form-check-label { color: var(--color-text-disabled); opacity: 1; }
body .form-check-label { font-size: 1rem; cursor: pointer; }
body .form-check-input:disabled ~ .form-check-label { cursor: not-allowed; }
body .form-check-input.is-invalid { border-color: var(--color-border-danger); }
body .form-check-input.is-invalid ~ .form-check-label { color: var(--color-text-danger); }

/* ---- Switch ------------------------------------------------------------- */
body .form-switch { padding-left: 3.5rem; }
body .form-switch .form-check-input {
  --bs-form-switch-bg: var(--knob-off);
  width: 44px;
  height: 24px;
  margin-left: -3.5rem;
  margin-top: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-subtle);
  background-image: var(--knob-off);
  background-position: left center;
  background-size: contain;
  transition: background-position var(--transition-fast), background-color var(--transition-fast);
}
body .form-switch .form-check-input:focus { --bs-form-switch-bg: var(--knob-off); background-image: var(--knob-off); }
body .form-switch .form-check-input:checked {
  --bs-form-switch-bg: var(--knob-on);
  background-color: var(--color-bg-primary);
  background-image: var(--knob-on);
  background-position: right center;
  background-size: contain; /* the checkbox rule above sets 100% 100%, which stretches the knob */
}
body .form-switch .form-check-input:checked:focus { background-image: var(--knob-on); background-position: right center; background-size: contain; }
body .form-switch .form-check-label { line-height: 24px; }

/* ---- File input ----------------------------------------------------------- */
body .form-control[type="file"] { padding: 0 var(--spacing-md) 0 0; line-height: calc(var(--size-control-md) - 2px); }
body .form-control[type="file"]::file-selector-button {
  height: calc(var(--size-control-md) - 2px);
  margin: 0 var(--spacing-md) 0 0;
  padding: 0 var(--spacing-lg);
  border: 0;
  border-right: 1px solid var(--color-border-default);
  border-radius: 0;
  background: var(--color-bg-surface);
  color: var(--color-text-brand);
  font-weight: 600;
  cursor: pointer;
}
body .form-control[type="file"]:hover::file-selector-button { background: var(--color-bg-surface-hover); }

body .resize-none { resize: none; }

/* ---- Selectable card (radio/checkbox with icon) ----------------------------- */
.check-card-group { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.check-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-md);
  border: 1px solid var(--color-border-default); border-radius: var(--radius-lg);
  background: var(--color-bg-card); color: var(--color-text-secondary);
  font-weight: 600; font-size: 0.9375rem; text-align: center; cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.check-card:hover { border-color: var(--color-border-brand); color: var(--color-text-brand); }
.btn-check:checked + .check-card { border-color: var(--color-border-brand); background: var(--color-bg-surface); color: var(--color-text-brand); box-shadow: inset 0 0 0 1px var(--color-border-brand); }
.btn-check:focus-visible + .check-card, .btn-check:focus-visible + .chip { box-shadow: var(--focus-ring); }
.btn-check:disabled + .check-card, .btn-check:disabled + .chip { opacity: .5; cursor: not-allowed; }

/* ---- Toggle chip (pill) ------------------------------------------------------ */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.chip {
  display: inline-flex; align-items: center; gap: var(--spacing-xs);
  height: var(--size-control-sm); padding: 0 var(--spacing-lg);
  border: 1px solid var(--color-border-default); border-radius: var(--radius-full);
  background: var(--color-bg-card); color: var(--color-text-primary);
  font-size: 0.875rem; font-weight: 600; cursor: pointer; user-select: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.chip:hover { border-color: var(--color-border-brand); }
.btn-check:checked + .chip { background: var(--color-bg-primary); border-color: var(--color-bg-primary); color: var(--color-text-inverse); }

/* No glow on form fields when focused: the border colour change is the focus cue */
body :is(.form-control, .form-select, textarea, select, input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"]):focus { box-shadow: none; outline: 0; }

/* ==========================================================================
   COMPONENT · BADGE / STATUS LABEL
   Listing:   .badge-sale  .badge-rent  .badge-sold  .badge-featured  .badge-new
   Feedback:  .badge-success  .badge-danger  .badge-info  .badge-neutral  .badge-outline
   Modifiers: .badge-pill  .badge-lg  .badge-dot
   ========================================================================== */

body .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--color-text-primary);
  background-color: var(--color-bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}
body .badge .icon { width: 12px; height: 12px; vertical-align: 0; }

/* ---- Listing status ----------------------------------------------------- */
body .badge-sale     { color: var(--color-text-inverse); background-color: var(--color-bg-primary); }
body .badge-rent     { color: var(--color-text-on-accent); background-color: var(--color-bg-accent); }
body .badge-sold     { color: var(--color-text-inverse); background-color: var(--charcoal-700); }
body .badge-featured { color: var(--brass-500); background-color: var(--color-bg-accent-subtle); }
body .badge-new      { color: var(--color-text-brand); background-color: var(--color-bg-surface); }

/* ---- Feedback ----------------------------------------------------------- */
body .badge-success  { color: var(--color-text-success); background-color: var(--color-bg-success-subtle); }
body .badge-danger   { color: var(--color-text-danger); background-color: var(--color-bg-danger-subtle); }
body .badge-info     { color: var(--color-text-info); background-color: var(--color-bg-info-subtle); }
body .badge-neutral  { color: var(--color-text-secondary); background-color: var(--color-bg-subtle); }
body .badge-outline  { color: var(--color-text-brand); background-color: transparent; border-color: var(--color-border-default); }

/* ---- Modifiers ---------------------------------------------------------- */
body .badge-pill { border-radius: var(--radius-full); padding-left: 12px; padding-right: 12px; }
body .badge-lg { padding: 8px 14px; font-size: 0.875rem; }
body .badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ==========================================================================
   COMPONENT · AVATAR
   Sizes:     .avatar-xs (24)  .avatar-sm (32)  default (40)  .avatar-lg (56)
              .avatar-xl (80)  .avatar-2xl (120)
   Modifiers: .avatar-square  .avatar-status (+ .is-offline)
   Group:     .avatar-group  with  .avatar-more
   Content:   an <img> or up to two initials.
   ========================================================================== */

.avatar {
  --avatar-size: 40px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: calc(var(--avatar-size) * 0.38);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-brand);
  background-color: var(--color-bg-surface);
  user-select: none;
}
.avatar > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.avatar-xs  { --avatar-size: 24px; }
.avatar-sm  { --avatar-size: 32px; }
.avatar-lg  { --avatar-size: 56px; }
.avatar-xl  { --avatar-size: 80px; }
.avatar-2xl { --avatar-size: 120px; }

.avatar-square { border-radius: var(--radius-md); }
.avatar-xl.avatar-square, .avatar-2xl.avatar-square { border-radius: var(--radius-lg); }

/* Colour options for initials */
.avatar-brand  { color: var(--color-text-inverse); background-color: var(--color-bg-primary); }
.avatar-accent { color: var(--color-text-on-accent); background-color: var(--color-bg-accent); }

/* Presence dot */
.avatar-status::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: max(10px, calc(var(--avatar-size) * 0.26));
  height: max(10px, calc(var(--avatar-size) * 0.26));
  border: 2px solid var(--color-bg-card);
  border-radius: 50%;
  background-color: var(--green-500);
}
.avatar-status.is-offline::after { background-color: var(--charcoal-300); }

/* Overlapping stack */
.avatar-group { display: inline-flex; align-items: center; }
.avatar-group > .avatar {
  border: 2px solid var(--color-bg-page);
  box-sizing: content-box;
}
.avatar-group > .avatar + .avatar { margin-left: -10px; }
.avatar-group > .avatar-more {
  color: var(--color-text-inverse);
  background-color: var(--color-bg-primary);
  font-size: calc(var(--avatar-size) * 0.34);
}

/* ==========================================================================
   COMPONENT · RATING (STARS)
   Display:  <span class="rating" style="--rating: 4.5" role="img" aria-label="Rated 4.5 out of 5"></span>
             Supports decimals. Sizes: .rating-sm  default  .rating-lg
   Input:    .rating-input  (five radio buttons, see components.html)
   ========================================================================== */

.rating {
  --rating: 0;
  --star-size: 18px;
  display: inline-block;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
  vertical-align: middle;
  background: linear-gradient(90deg,
    var(--brass-500) calc(var(--rating) / 5 * 100%),
    var(--color-border-default) calc(var(--rating) / 5 * 100%));
  -webkit-mask: var(--star-mask) repeat-x left center / var(--star-size) var(--star-size);
          mask: var(--star-mask) repeat-x left center / var(--star-size) var(--star-size);
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.4L12 17.4l-5.8 3 1.1-6.4L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E");
}
.rating-sm { --star-size: 14px; }
.rating-lg { --star-size: 24px; }

/* Rating with the number and review count */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.rating-summary strong { color: var(--color-text-primary); font-weight: 700; }

/* ---- Interactive input ---------------------------------------------------
   Radios are written 5 → 1 in the markup and shown 1 → 5 with row-reverse. */
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.rating-input > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rating-input > label {
  display: inline-flex;
  padding: 2px;
  color: var(--color-border-default);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.rating-input > label .icon { width: 28px; height: 28px; vertical-align: 0; }
.rating-input > label:hover { transform: scale(1.1); }
.rating-input > input:checked ~ label,
.rating-input > label:hover,
.rating-input > label:hover ~ label { color: var(--brass-500); }
.rating-input > input:focus-visible + label {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   COMPONENT · SKELETON LOADER
   Blocks:   .skeleton  .skeleton-text  .skeleton-title  .skeleton-circle
             .skeleton-image  .skeleton-button
   Use:      Add placeholder markup while data loads, then swap in real content.
             Add aria-hidden="true" to the placeholder and aria-busy="true"
             to the region that is loading.
   ========================================================================== */

.skeleton {
  display: block;
  background-color: var(--color-bg-surface);
  background-image: linear-gradient(90deg,
    var(--color-bg-surface) 0%, var(--color-bg-subtle) 40%, var(--color-bg-surface) 80%);
  background-size: 300% 100%;
  border-radius: var(--radius-sm);
  color: transparent;
  user-select: none;
  pointer-events: none;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-text   { height: 0.875rem; margin-bottom: var(--spacing-xs); }
.skeleton-text:last-child { margin-bottom: 0; }
.skeleton-text.w-75 { width: 75% !important; }
.skeleton-text.w-50 { width: 50% !important; }
.skeleton-text.w-25 { width: 25% !important; }
.skeleton-title  { height: 1.5rem; width: 60%; margin-bottom: var(--spacing-sm); }
.skeleton-circle { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.skeleton-image  { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.skeleton-button { width: 120px; height: var(--size-control-md); border-radius: var(--radius-md); }

@keyframes skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Reduced motion: a calm static block */
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background-image: none; }
}

/* ==========================================================================
   Tooltip. Theme for the Bootstrap tooltip (data-bs-toggle="tooltip", started by site.js)
   plus a no-JavaScript version ([data-tip]). See components/tooltip.html.
   ========================================================================== */
.tooltip {
  --bs-tooltip-bg: var(--color-bg-primary);
  --bs-tooltip-color: var(--white);
  --bs-tooltip-border-radius: var(--radius-md);
  --bs-tooltip-padding-x: 0.75rem;
  --bs-tooltip-padding-y: 0.4rem;
  --bs-tooltip-font-size: 0.8125rem;
  --bs-tooltip-max-width: 240px;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-arrow-width: 0.75rem;
  --bs-tooltip-arrow-height: 0.375rem;
  font-family: var(--font-body);
}
.tooltip-inner { font-weight: 500; line-height: 1.4; box-shadow: var(--shadow-md); }

/* Variants: add data-bs-custom-class="tooltip-light" (or -brass, -rich) */
.tooltip.tooltip-light { --bs-tooltip-bg: var(--color-bg-card); --bs-tooltip-color: var(--color-text-primary); }
.tooltip.tooltip-light .tooltip-inner { border: 1px solid var(--color-border-default); }
.tooltip.tooltip-brass { --bs-tooltip-bg: var(--brass-500, #C0903F); --bs-tooltip-color: var(--charcoal-900); }
.tooltip.tooltip-rich { --bs-tooltip-max-width: 280px; --bs-tooltip-padding-x: 1rem; --bs-tooltip-padding-y: 0.75rem; --bs-tooltip-border-radius: var(--radius-lg); }
.tooltip.tooltip-rich .tooltip-inner { text-align: start; font-weight: 400; }
.tooltip.tooltip-rich strong { display: block; margin-bottom: 2px; font-size: 0.875rem; }

/* Text that has a tooltip */
.has-tip { text-decoration: underline dotted; text-decoration-color: var(--color-text-secondary); text-underline-offset: 4px; cursor: help; }

/* No-JavaScript version: <button data-tip="Text" data-tip-pos="top|bottom|start|end"> */
[data-tip] { position: relative; }
[data-tip]::before, [data-tip]::after { position: absolute; z-index: 1080; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.16s ease, transform 0.16s ease; }
[data-tip]::after {
  content: attr(data-tip); padding: 0.4rem 0.75rem; border-radius: var(--radius-md); background: var(--color-bg-primary); color: var(--white);
  font: 500 0.8125rem/1.4 var(--font-body); width: max-content; max-width: 220px; white-space: normal; box-shadow: var(--shadow-md); text-align: center;
  inset-inline-start: 50%; bottom: calc(100% + 9px); transform: translate(-50%, 4px);
}
[data-tip]::before { content: ""; inset-inline-start: 50%; bottom: calc(100% + 3px); width: 10px; height: 10px; background: var(--color-bg-primary); transform: translate(-50%, 4px) rotate(45deg); border-radius: 2px; }
[data-tip]:hover::before, [data-tip]:hover::after, [data-tip]:focus-visible::before, [data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { transform: translate(-50%, 0); }
[data-tip]:hover::before, [data-tip]:focus-visible::before { transform: translate(-50%, 0) rotate(45deg); }
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 9px); }
[data-tip-pos="bottom"]::before { bottom: auto; top: calc(100% + 3px); }
[data-tip-pos="start"]::after, [data-tip-pos="end"]::after { bottom: auto; top: 50%; transform: translate(0, -50%); }
[data-tip-pos="start"]::before, [data-tip-pos="end"]::before { bottom: auto; top: 50%; transform: translate(0, -50%) rotate(45deg); }
[data-tip-pos="start"]::after { inset-inline-start: auto; inset-inline-end: calc(100% + 9px); }
[data-tip-pos="start"]::before { inset-inline-start: auto; inset-inline-end: calc(100% + 3px); }
[data-tip-pos="end"]::after { inset-inline-start: calc(100% + 9px); }
[data-tip-pos="end"]::before { inset-inline-start: calc(100% + 3px); }
[data-tip-pos="start"]:hover::after, [data-tip-pos="start"]:focus-visible::after, [data-tip-pos="end"]:hover::after, [data-tip-pos="end"]:focus-visible::after { transform: translate(0, -50%); }
[data-tip-pos="start"]:hover::before, [data-tip-pos="start"]:focus-visible::before, [data-tip-pos="end"]:hover::before, [data-tip-pos="end"]:focus-visible::before { transform: translate(0, -50%) rotate(45deg); }
@media (hover: none) { [data-tip]::before, [data-tip]::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .tooltip.fade { transition: none; } [data-tip]::before, [data-tip]::after { transition: none; } }

/* ==========================================================================
   TABS · .nav-tabs (underline) and .nav-pills (filled). Bootstrap markup and JS.
   ========================================================================== */
body .nav-tabs {
  --bs-nav-tabs-border-width: 0;
  --bs-nav-link-color: var(--color-text-secondary);
  --bs-nav-link-hover-color: var(--color-text-brand);
  gap: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border-default);
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
body .nav-tabs::-webkit-scrollbar { display: none; }
body .nav-tabs .nav-link {
  padding: var(--spacing-md) 0; margin-bottom: -1px; white-space: nowrap;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  font-weight: 600; color: var(--color-text-secondary);
}
body .nav-tabs .nav-link:hover:not(.active) { color: var(--color-text-brand); border-bottom-color: var(--color-border-default); }
body .nav-tabs .nav-link.active { color: var(--color-text-brand); border-bottom-color: var(--color-bg-accent); background: none; }
body .nav-tabs .nav-link:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

body .nav-pills {
  --bs-nav-pills-link-active-bg: var(--color-bg-primary);
  --bs-nav-pills-link-active-color: var(--color-text-inverse);
  gap: var(--spacing-sm);
}
body .nav-pills .nav-link {
  height: var(--size-control-sm); display: inline-flex; align-items: center; padding: 0 var(--spacing-lg);
  border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 600; color: var(--color-text-secondary);
  background: var(--color-bg-card); border: 1px solid var(--color-border-default);
}
body .nav-pills .nav-link:hover:not(.active) { border-color: var(--color-border-brand); color: var(--color-text-brand); }
body .nav-pills .nav-link.active { border-color: var(--color-bg-primary); }
body .nav-pills .nav-link:focus-visible { box-shadow: var(--focus-ring); }
body .tab-content { padding-top: var(--spacing-xl); }

/* ==========================================================================
   LAYOUT · container, sections, section heading, breadcrumbs, page banner,
   pagination. These are the building blocks every page is made of.
   ========================================================================== */

/* ---- Container ------------------------------------------------------------ */
:root { --container-max: 1240px; --container-narrow: 820px; --container-wide: 1440px; --container-gutter: 24px; --section-space: 96px; }
body .container {
  max-width: var(--container-max);
  padding-inline: var(--container-gutter);
}
body .container.container-narrow { max-width: var(--container-narrow); }
body .container.container-wide { max-width: var(--container-wide); }
@media (max-width: 575.98px) { :root { --section-space: 64px; } }

/* ---- Section: vertical rhythm between page blocks ------------------------------ */
.section { padding-block: var(--section-space); }
.section-sm { padding-block: calc(var(--section-space) * 0.6); }
.section-lg { padding-block: calc(var(--section-space) * 1.4); }
.section-surface { background: var(--color-bg-surface); }
.section-subtle { background: var(--color-bg-subtle); }
.section-brand { background: var(--color-bg-primary); color: var(--color-text-inverse); }
.section-brand h1, .section-brand h2, .section-brand h3, .section-brand h4 { color: var(--color-text-inverse); }
.section-brand .eyebrow { color: var(--brass-500); }
.section-brand .section-heading p { color: rgba(247, 246, 240, 0.78); }

/* ---- Section heading --------------------------------------------------------- */
.section-heading { max-width: 640px; margin-bottom: var(--spacing-3xl); }
.section-heading .eyebrow { display: block; margin-bottom: var(--spacing-sm); }
.section-heading h2 { margin: 0 0 var(--spacing-md); }
.section-heading p { margin: 0; font-size: 1.0625rem; color: var(--color-text-secondary); }
.section-heading.is-tight { margin-bottom: var(--spacing-xl); } /* heading beside an image, followed by a short list */
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading.has-line h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: var(--spacing-md);
  border-radius: 2px; background: var(--color-bg-accent);
}
.section-heading.is-center.has-line h2::after { margin-inline: auto; }
/* Split: heading on the left, action link or button on the right */
.section-heading.is-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--spacing-xl); flex-wrap: wrap; }
.section-heading.is-split > div { max-width: 640px; }

/* ---- Breadcrumbs ----------------------------------------------------------------- */
body .breadcrumb {
  --bs-breadcrumb-divider: "/";
  --bs-breadcrumb-divider-color: var(--color-text-disabled);
  --bs-breadcrumb-item-active-color: var(--color-text-secondary);
  --bs-breadcrumb-margin-bottom: 0;
  --bs-breadcrumb-item-padding-x: 0.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}
body .breadcrumb-item a { color: var(--color-text-link); text-decoration: none; font-weight: 500; }
body .breadcrumb-item a:hover { color: var(--color-text-brand); text-decoration: underline; }
.breadcrumb-chevron .breadcrumb-item + .breadcrumb-item::before {
  content: ""; width: 14px; height: 14px; margin-top: 3px; background: currentColor; opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  padding: 0;
}

/* ---- Page banner: title strip on inner pages ----------------------------------------- */
.page-banner { padding-block: var(--spacing-3xl) var(--spacing-2xl); background: var(--color-bg-surface); border-bottom: 1px solid var(--color-border-subtle); }
.page-banner h1 { margin: var(--spacing-md) 0 var(--spacing-sm); font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { margin: 0; max-width: 60ch; color: var(--color-text-secondary); }
.page-banner.is-dark { background: var(--color-bg-primary); border: 0; color: var(--color-text-inverse); }
.page-banner.is-dark h1 { color: var(--color-text-inverse); }
.page-banner.is-dark p, .page-banner.is-dark .breadcrumb-item.active { color: rgba(247, 246, 240, 0.78); }
.page-banner.is-dark .breadcrumb-item a { color: var(--brass-500); }
.page-banner.is-dark .breadcrumb { --bs-breadcrumb-divider-color: rgba(247, 246, 240, 0.4); }

/* ---- Pagination ------------------------------------------------------------------------ */
body .pagination {
  --bs-pagination-padding-x: 0;
  --bs-pagination-padding-y: 0;
  --bs-pagination-font-size: 0.9375rem;
  --bs-pagination-color: var(--color-text-primary);
  --bs-pagination-bg: var(--color-bg-card);
  --bs-pagination-border-width: 1px;
  --bs-pagination-border-color: var(--color-border-default);
  --bs-pagination-border-radius: var(--radius-md);
  --bs-pagination-hover-color: var(--color-text-brand);
  --bs-pagination-hover-bg: var(--color-bg-surface);
  --bs-pagination-hover-border-color: var(--color-border-brand);
  --bs-pagination-focus-color: var(--color-text-brand);
  --bs-pagination-focus-bg: var(--color-bg-surface);
  --bs-pagination-focus-box-shadow: var(--focus-ring);
  --bs-pagination-active-color: var(--color-text-inverse);
  --bs-pagination-active-bg: var(--color-bg-primary);
  --bs-pagination-active-border-color: var(--color-bg-primary);
  --bs-pagination-disabled-color: var(--color-text-disabled);
  --bs-pagination-disabled-bg: var(--color-bg-disabled);
  --bs-pagination-disabled-border-color: var(--color-border-subtle);
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}
body .page-link {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-xs);
  min-width: var(--size-control-md); height: var(--size-control-md); padding-inline: var(--spacing-md);
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none; box-shadow: none;
}
body .page-item:not(:first-child) .page-link { margin-left: 0; }
body .page-item:first-child .page-link, body .page-item:last-child .page-link,
body .page-item:not(:first-child) .page-link, body .page-item:not(:last-child) .page-link { border-radius: var(--radius-md); }
body .page-item.active .page-link { box-shadow: none; }
body .page-link:focus-visible { box-shadow: var(--focus-ring); }
body .pagination-sm .page-link { min-width: var(--size-control-sm); height: var(--size-control-sm); padding-inline: var(--spacing-sm); font-size: 0.875rem; }
body .pagination-lg .page-link { min-width: var(--size-control-lg); height: var(--size-control-lg); font-size: 1rem; }
.page-ellipsis .page-link { border-color: transparent; background: transparent; pointer-events: none; }
/* Simple prev / next with a status line */
.pagination-simple { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
@media (max-width: 575.98px) { .pagination-simple .pagination-summary { order: -1; flex: 0 0 100%; text-align: center; } .pagination-simple .btn { flex: 1; } }
.pagination-summary { font-size: 0.9375rem; color: var(--color-text-secondary); }
.pagination-summary strong { color: var(--color-text-primary); }
.load-more { text-align: center; }
.load-more p { margin: 0 0 var(--spacing-md); font-size: 0.9375rem; color: var(--color-text-secondary); }
.load-more .progress { height: 4px; max-width: 220px; margin: 0 auto var(--spacing-lg); background: var(--color-bg-surface); }
.load-more .progress-bar { background: var(--color-bg-primary); }

/* ---- Fancy scroll: slim rounded scrollbar and soft fade at the edges ---------------------
   Vertical:    <div class="scroll-fancy" style="max-height: 400px">
   Horizontal:  <div class="scroll-fancy-x">
   Scrollbar only (no fade, any direction): .scrollbar-fancy
   Already included, no class needed: .scroll-row, .table-responsive in .table-card, .compare-wrap,
   .offcanvas-body and the tab strip (.nav-tabs, fade only).
   Pure CSS, no library. The fade uses scroll-driven animation where supported
   (Chrome, Edge, Safari 26+) and is simply left out elsewhere. */
@property --fade-top { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-bottom { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-left { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-right { syntax: "<length>"; inherits: false; initial-value: 0px; }

.scroll-fancy { overflow-y: auto; overscroll-behavior: contain; }
.scroll-fancy-x { overflow-x: auto; overscroll-behavior-x: contain; }
.scrollbar-fancy { overflow: auto; }

/* The shared scrollbar look */
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body)::-webkit-scrollbar { width: 10px; height: 10px; }
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body)::-webkit-scrollbar-track { margin: 8px; background: transparent; }
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body)::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: var(--radius-full); background: var(--green-300); background-clip: padding-box; transition: background-color var(--transition-fast); }
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body):hover::-webkit-scrollbar-thumb,
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body):focus-within::-webkit-scrollbar-thumb { background-color: var(--green-500); background-clip: padding-box; }
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body)::-webkit-scrollbar-thumb:hover,
:is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body)::-webkit-scrollbar-thumb:active { background-color: var(--green-700); background-clip: padding-box; }
/* Firefox has no ::-webkit-scrollbar, so it gets the standard thin scrollbar */
@supports not selector(::-webkit-scrollbar) {
  :is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body) { scrollbar-width: thin; scrollbar-color: var(--green-300) transparent; }
  :is(.scroll-fancy, .scroll-fancy-x, .scrollbar-fancy, .scroll-row, .table-card .table-responsive, .compare-wrap, .offcanvas-body):hover { scrollbar-color: var(--green-500) transparent; }
}

@supports (animation-timeline: scroll()) {
  @keyframes scroll-fade {
    0%   { --fade-top: 0px;  --fade-bottom: 28px; }
    4%   { --fade-top: 28px; --fade-bottom: 28px; }
    96%  { --fade-top: 28px; --fade-bottom: 28px; }
    100% { --fade-top: 28px; --fade-bottom: 0px; }
  }
  @keyframes scroll-fade-x {
    0%   { --fade-left: 0px;  --fade-right: 32px; }
    4%   { --fade-left: 32px; --fade-right: 32px; }
    96%  { --fade-left: 32px; --fade-right: 32px; }
    100% { --fade-left: 32px; --fade-right: 0px; }
  }
  .scroll-fancy {
    animation: scroll-fade linear both; animation-timeline: scroll(self);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  }
  :is(.scroll-fancy-x, .scroll-row, .table-card .table-responsive, .compare-wrap, .nav-tabs) {
    animation: scroll-fade-x linear both; animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) { :is(.scroll-fancy, .scroll-fancy-x, .scroll-row) { scroll-behavior: auto; } }

/* Scroll-in animations start a little outside the section (slide-left, slide-right).
   Clip them so the page never scrolls sideways before they arrive. clip, unlike hidden, keeps position: sticky working. */
main { overflow-x: clip; }

/* ==========================================================================
   HEADER + NAVIGATION + MOBILE NAVIGATION
   .site-header > .site-topbar (optional) + .site-navbar
   Variants: .is-transparent (over a hero)  .is-dark
   Add data-sticky to the header to keep it at the top; site.js adds
   .is-scrolled after the page moves.
   ========================================================================== */
.site-header { position: relative; z-index: 1030; background: var(--color-bg-page); border-bottom: 1px solid var(--color-border-subtle); transition: background-color var(--transition-fast), box-shadow var(--transition-fast); }
.site-header[data-sticky] { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: var(--color-bg-header-scrolled); backdrop-filter: blur(8px); }

/* Top bar: contact details and social links */
.site-topbar { background: var(--color-bg-inverse); color: rgba(247, 246, 240, 0.85); font-size: 0.8125rem; }
.site-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-lg); min-height: 40px; flex-wrap: wrap; }
.site-topbar ul { display: flex; align-items: center; gap: var(--spacing-lg); margin: 0; padding: 0; list-style: none; }
.site-topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.site-topbar a:hover { color: var(--white); text-decoration: underline; }
.site-topbar .icon { width: 15px; height: 15px; vertical-align: 0; }

.site-navbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-lg); min-height: 76px; }

/* Logo: replace the mark with your own SVG or image */
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: var(--color-text-brand); text-decoration: none; white-space: nowrap; }
.site-logo:hover { color: var(--color-text-brand); }
.site-logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-bg-primary); color: var(--color-text-inverse); }
/* Two logo marks: green one on the sticky/solid header, brass one on the transparent header and dark footer */
.site-logo-mark.site-logo-mark--img, .site-footer .site-logo-mark.site-logo-mark--img, .auth-media .site-logo-mark.site-logo-mark--img, .is-transparent:not(.is-scrolled) .site-logo-mark.site-logo-mark--img, .is-dark .site-logo-mark.site-logo-mark--img { background: none; width: 32px; height: 32px; }
.site-logo-img { width: 32px; height: 32px; border-radius: 0; object-fit: contain; flex: none; }
/* Header logo: 50 x 50 */
.site-header .site-logo .site-logo-mark.site-logo-mark--img, .site-header .site-logo .site-logo-img { width: 50px; height: 50px; }
.site-logo-img.logo-static { display: none; }
.is-transparent:not(.is-scrolled) .site-logo-img.logo-static, .is-dark .site-logo-img.logo-static, .auth-media .site-logo-img.logo-static, .site-footer:not(.is-light) .site-logo-img.logo-static { display: block; }
.is-transparent:not(.is-scrolled) .site-logo-img.logo-sticky, .is-dark .site-logo-img.logo-sticky, .auth-media .site-logo-img.logo-sticky, .site-footer:not(.is-light) .site-logo-img.logo-sticky { display: none; }
.site-logo-mark .icon { width: 20px; height: 20px; vertical-align: 0; }

/* Main menu */
.site-menu { display: flex; align-items: center; gap: var(--spacing-2xs); margin: 0 auto 0 var(--spacing-lg); padding: 0; list-style: none; }
.site-menu > li > a, .site-menu > li > .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: none;
  font-size: 0.9375rem; font-weight: 600; color: var(--color-text-primary); text-decoration: none; cursor: pointer;
}
.site-menu > li > a:hover, .site-menu > li > .dropdown-toggle:hover, .site-menu .show > .dropdown-toggle { background: var(--color-bg-surface); color: var(--color-text-brand); }
.site-menu > li > a[aria-current="page"], .site-menu > li > a.active, .site-menu > li > .dropdown-toggle.active { color: var(--color-text-brand); background: var(--color-bg-surface); }
.site-menu .dropdown-toggle::after { display: none; }
.site-menu .dropdown-toggle .icon { width: 16px; height: 16px; vertical-align: 0; transition: transform var(--transition-fast); }
.site-menu .dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-actions { display: flex; align-items: center; gap: var(--spacing-sm); }

/* Dropdown (used by the menu and anywhere else) */
body .dropdown-menu {
  --bs-dropdown-padding-x: 8px; --bs-dropdown-padding-y: 8px; --bs-dropdown-min-width: 220px;
  --bs-dropdown-border-color: var(--color-border-subtle); --bs-dropdown-border-radius: var(--radius-lg);
  --bs-dropdown-box-shadow: 0 30px 80px -20px rgb(15 40 32 / 38%), 0 4px 16px rgb(15 40 32 / 8%); --bs-dropdown-link-color: var(--color-text-primary);
  --bs-dropdown-link-hover-bg: var(--color-bg-surface); --bs-dropdown-link-hover-color: var(--color-text-brand);
  --bs-dropdown-link-active-bg: var(--color-bg-primary); --bs-dropdown-link-active-color: var(--color-text-inverse);
  --bs-dropdown-item-padding-x: 14px; --bs-dropdown-item-padding-y: 10px; --bs-dropdown-divider-bg: var(--color-border-subtle);
  font-size: 0.9375rem; box-shadow: var(--bs-dropdown-box-shadow);
}
body .dropdown-item { border-radius: var(--radius-sm); font-weight: 500; }
body .dropdown-item small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--color-text-secondary); }
body .dropdown-item.active small { color: inherit; }

/* Variant: transparent over a hero */
.site-header.is-transparent { position: absolute; inset: 0 0 auto 0; background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.site-header.is-transparent[data-sticky] { position: fixed; }
/* Once the page has moved, the see-through header gets the normal solid background */
.site-header.is-transparent.is-scrolled { background: var(--color-bg-header-scrolled); border-color: var(--color-border-subtle); }
.is-transparent:not(.is-scrolled) .site-logo, .is-dark .site-logo { color: var(--white); }
.is-transparent:not(.is-scrolled) .site-logo-mark { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.is-transparent:not(.is-scrolled) .site-menu > li > a, .is-transparent:not(.is-scrolled) .site-menu > li > .dropdown-toggle,
.is-dark .site-menu > li > a, .is-dark .site-menu > li > .dropdown-toggle { color: var(--white); }
.is-transparent:not(.is-scrolled) .site-menu > li > a[aria-current="page"], .is-transparent:not(.is-scrolled) .site-menu > li > a.active, .is-transparent:not(.is-scrolled) .site-menu > li > .dropdown-toggle.active { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.is-transparent:not(.is-scrolled) .site-menu > li > a:hover, .is-transparent:not(.is-scrolled) .site-menu > li > .dropdown-toggle:hover,
.is-dark .site-menu > li > a:hover, .is-dark .site-menu > li > .dropdown-toggle:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.is-transparent:not(.is-scrolled) .btn-outline-primary { --bs-btn-color: var(--white); --bs-btn-border-color: rgba(255, 255, 255, 0.6); --bs-btn-hover-bg: var(--white); --bs-btn-hover-color: var(--green-900); --bs-btn-hover-border-color: var(--white); }
/* Variant: dark */
.site-header.is-dark { background: var(--color-bg-inverse); border-color: rgba(255, 255, 255, 0.12); }
.is-dark .site-logo-mark { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.is-dark .btn-outline-primary { --bs-btn-color: var(--white); --bs-btn-border-color: rgba(255, 255, 255, 0.6); --bs-btn-hover-bg: var(--white); --bs-btn-hover-color: var(--green-900); --bs-btn-hover-border-color: var(--white); }

/* ---- Mobile navigation: an offcanvas panel ------------------------------------ */
.mobile-nav.offcanvas { --bs-offcanvas-width: min(360px, 90vw); }
.mobile-nav .offcanvas-header { justify-content: space-between; padding: var(--spacing-md) var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); }
.mobile-nav .offcanvas-body { display: flex; flex-direction: column; padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg); }
.mobile-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu > li { border-bottom: 1px solid var(--color-border-subtle); }
.mobile-menu a, .mobile-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; border: 0; background: none;
  font-size: 1.0625rem; font-weight: 600; color: var(--color-text-primary); text-align: left; text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu button:hover { color: var(--color-text-brand); }
.mobile-menu a[aria-current="page"] { color: var(--color-text-brand); }
.mobile-menu a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-bg-accent); }
.mobile-menu button .icon { transition: transform var(--transition-fast); }
.mobile-menu button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-submenu { margin: 0 0 var(--spacing-sm); padding: 0 0 0 var(--spacing-md); list-style: none; border-left: 2px solid var(--color-border-default); }
.mobile-submenu a { padding: 10px 0; font-size: 0.9375rem; font-weight: 500; color: var(--color-text-secondary); }
.mobile-nav-footer { margin-top: auto; padding-top: var(--spacing-xl); display: grid; gap: var(--spacing-sm); }
.mobile-nav-contact { display: flex; flex-wrap: wrap; gap: var(--spacing-md); margin: 0 0 var(--spacing-sm); padding: 0; list-style: none; font-size: 0.875rem; color: var(--color-text-secondary); }
.mobile-nav-contact a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }

/* Active and ghost states on transparent / dark bars */
.is-transparent:not(.is-scrolled) .site-menu > li > a[aria-current="page"], .is-dark .site-menu > li > a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.is-transparent:not(.is-scrolled) .site-actions .btn-ghost, .is-dark .site-actions .btn-ghost { --bs-btn-color: var(--white); --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: rgba(255, 255, 255, 0.14); }

/* Between 992px and 1199px the menu is full width, so the extra header buttons would run off the screen.
   The mobile menu and the pages still offer Add property and the language switch. */
/* With the Components item the menu is wider: the language switch becomes icon-only, then Add property goes. */
@media (min-width: 1200px) { body .site-actions .lang-switch { gap: 0; padding: 0 13px; font-size: 0; } body .site-actions .lang-switch .lang-caret { margin-inline-start: 4px; } }
@media (min-width: 1200px) and (max-width: 1279.98px) { .site-actions > .btn-primary { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-menu { margin-left: var(--spacing-md); }
  .site-menu > li > a, .site-menu > li > .dropdown-toggle { padding-inline: 7px; font-size: 0.875rem; }
  .site-actions > .btn-primary, .site-actions > .lang-switch { display: none !important; }
}

/* Wider header frame on large screens so the full menu, including a mega menu item, fits */
@media (min-width: 1400px) { .site-navbar > .container { max-width: 1320px; } }

/* Menu dropdowns open flush under the header (no gap) and share one animation.
   The menu list is as tall as the header, so "top: 100%" is the bottom edge of the header. */
@media (min-width: 992px) {
  .site-menu { align-self: stretch; }
  .site-menu > li { display: flex; align-items: center; align-self: stretch; }
  .site-menu > li.dropdown { --bs-dropdown-spacer: 0px; }
  body .site-menu .dropdown-menu { margin-top: 0; }
  body .site-menu .dropdown-menu.show { animation: mega-in .22s ease-out both; }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) { body .site-menu .dropdown-menu.show { animation: none; } }
/* Multi-level dropdown: li.dropdown-submenu > a.dropdown-item.submenu-toggle + ul.dropdown-menu (nest as deep as needed) */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .submenu-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-sm); }
.dropdown-submenu > .submenu-toggle .icon { width: 16px; height: 16px; flex: none; opacity: .7; }
body .dropdown-submenu > .dropdown-menu { top: -9px; left: 100%; margin: 0 0 0 2px; }
body .dropdown-submenu > .dropdown-menu.flip { left: auto; right: 100%; margin: 0 2px 0 0; }
.dropdown-submenu.show > .submenu-toggle { background: var(--color-bg-surface); color: var(--color-text-brand); }
@media (min-width: 992px) {
  body .dropdown-submenu:hover > .dropdown-menu, body .dropdown-submenu:focus-within > .dropdown-menu, body .dropdown-submenu.show > .dropdown-menu { display: block; animation: mega-in .2s ease-out both; }
  .dropdown-submenu:hover > .submenu-toggle { background: var(--color-bg-surface); color: var(--color-text-brand); }
}
@media (max-width: 991.98px) {
  body .dropdown-submenu > .dropdown-menu { position: static; margin: 0 0 0 var(--spacing-md); box-shadow: none; border: 0; border-left: 2px solid var(--color-border-default); border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { body .dropdown-submenu > .dropdown-menu { animation: none !important; } }
.site-logo:has(.site-logo-mark--img) { font-size: 1.7rem; }

/* Header icon buttons share one size, and the mobile menu button looks like the language button (same circle, border and fill) */
.site-actions > .btn-icon .icon, .site-actions .lang-switch--icon .icon { width: 20px; height: 20px; }
.site-actions > .btn-outline-primary.btn-icon[data-bs-target="#mobileNav"] {
  --bs-btn-border-color: var(--color-border-default); --bs-btn-hover-border-color: var(--color-border-default); --bs-btn-active-border-color: var(--color-border-default);
  --bs-btn-bg: var(--color-bg-card); --bs-btn-hover-bg: var(--color-bg-surface); --bs-btn-active-bg: var(--color-bg-surface);
  --bs-btn-color: var(--color-text-brand); --bs-btn-hover-color: var(--color-text-brand); --bs-btn-active-color: var(--color-text-brand);
  width: var(--size-control-md, 44px); height: var(--size-control-md, 44px); padding: 0; border-radius: var(--radius-full);
}
/* The book and user glyphs sit smaller inside their box than the globe and menu glyphs, so they get a little more room to look the same size */
.site-actions > .btn-ghost.btn-icon .icon { width: 22px; height: 22px; }

/* Footer logo: always the static mark, 50 x 50, with the name */
.site-footer .site-logo-mark.site-logo-mark--img, .site-footer .site-logo-img { width: 50px; height: 50px; }
.site-footer .site-logo-img.logo-static { display: block; }

/* ==========================================================================
   FOOTER · .site-footer (dark by default)  .site-footer.is-light
   Parts: .footer-brand  .footer-title  .footer-links  .footer-contact
          .footer-social  .footer-newsletter  .footer-bottom
   ========================================================================== */
.site-footer { background: var(--green-950); color: rgba(247, 246, 240, 0.78); font-size: 0.9375rem; }
.site-footer-main { padding-block: var(--spacing-4xl) var(--spacing-3xl); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .site-logo { color: var(--white); }
.site-footer .site-logo-mark { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.footer-brand p { max-width: 36ch; margin: var(--spacing-md) 0 var(--spacing-lg); }
.footer-title { margin: 0 0 var(--spacing-md); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { flex: none; margin-top: 3px; color: var(--brass-500); }
.footer-social { display: flex; gap: var(--spacing-sm); margin: 0; padding: 0; list-style: none; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(247, 246, 240, 0.25); border-radius: 50%; color: var(--white); transition: background-color var(--transition-fast), border-color var(--transition-fast); }
.footer-social a:hover { background: var(--color-bg-accent); border-color: var(--color-bg-accent); color: var(--color-text-on-accent); text-decoration: none; }
.footer-newsletter p { margin: 0 0 var(--spacing-md); }
.footer-newsletter .input-group .form-control { background: rgba(255, 255, 255, 0.08); border-color: rgba(247, 246, 240, 0.25); color: var(--white); }
.footer-newsletter .input-group .form-control::placeholder { color: rgba(247, 246, 240, 0.55); }
.footer-bottom { border-top: 1px solid rgba(247, 246, 240, 0.14); padding-block: var(--spacing-lg); font-size: 0.875rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--spacing-lg); margin: 0; padding: 0; list-style: none; }
.footer-bottom span a { text-decoration: underline; text-underline-offset: 3px; }

/* Light variant */
.site-footer.is-light { background: var(--color-bg-surface); color: var(--color-text-secondary); }
.site-footer.is-light a:hover { color: var(--color-text-brand); }
.site-footer.is-light .site-logo { color: var(--color-text-brand); }
.site-footer.is-light .site-logo-mark { background: var(--color-bg-primary); color: var(--color-text-inverse); }
.site-footer.is-light .footer-title { color: var(--color-text-brand); }
.site-footer.is-light .footer-contact .icon { color: var(--color-text-accent); }
.site-footer.is-light .footer-social a { border-color: var(--color-border-default); color: var(--color-text-brand); }
.site-footer.is-light .footer-bottom { border-color: var(--color-border-default); }
.site-footer.is-light .footer-newsletter .input-group .form-control { background: var(--color-bg-card); border-color: var(--color-border-default); color: var(--color-text-primary); }
.site-footer.is-light .footer-newsletter .input-group .form-control::placeholder { color: var(--color-text-secondary); }
/* Compact variant: bottom bar only */
.site-footer.is-compact .site-footer-main { display: none; }
@media (max-width: 767.98px) { .site-footer-main { padding-block: var(--spacing-3xl) var(--spacing-2xl); } }

/* ==========================================================================
   MODAL + OFFCANVAS (drawer) + toast-ready surfaces. Bootstrap markup and JS.
   Variants: .modal-confirm  .modal-auth  .modal-lightbox  .offcanvas-filters
   ========================================================================== */
body .modal {
  --bs-modal-border-radius: var(--radius-xl);
  --bs-modal-border-width: 0;
  --bs-modal-box-shadow: var(--shadow-lg);
  --bs-modal-padding: var(--spacing-lg);
  --bs-modal-header-padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm);
  --bs-modal-header-border-width: 0;
  --bs-modal-footer-border-width: 0;
  --bs-modal-footer-gap: var(--spacing-sm);
  --bs-modal-bg: var(--color-bg-card);
  --bs-modal-color: var(--color-text-primary);
}
body .modal-title { font-family: var(--font-heading); font-size: 1.5rem; }
body .modal-header { gap: var(--spacing-md); }
body .modal-header .btn-close { margin: 0; margin-inline-start: auto; flex-shrink: 0; align-self: flex-start; }
body .modal-footer { padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg); }
body .modal-backdrop { --bs-backdrop-bg: var(--green-950); --bs-backdrop-opacity: 0.55; }
body .btn-close:focus { box-shadow: var(--focus-ring); }
.modal-subtitle { margin: var(--spacing-2xs) 0 0; font-size: 0.9375rem; color: var(--color-text-secondary); }

/* Confirm: icon on top, centered text */
.modal-confirm .modal-body { padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-sm); text-align: center; }
.modal-confirm .modal-footer { justify-content: center; }
.modal-confirm .modal-footer .btn { flex: 1; }
.modal-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--spacing-md); border-radius: 50%; background: var(--color-bg-danger-subtle); color: var(--color-text-danger); }
.modal-icon.is-success { background: var(--color-bg-success-subtle); color: var(--color-text-success); }
.modal-icon .icon { width: 26px; height: 26px; vertical-align: 0; }

/* Auth: sign in form with divider */
.modal-auth .modal-body { display: grid; gap: var(--spacing-md); }
.divider-text { display: flex; align-items: center; gap: var(--spacing-md); font-size: 0.8125rem; color: var(--color-text-secondary); }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--color-border-default); }

/* Lightbox: dark, image only */
.modal-lightbox .modal-content { background: transparent; box-shadow: none; }
.modal-lightbox .btn-close { position: absolute; top: var(--spacing-sm); inset-inline-end: var(--spacing-sm); z-index: 2; width: 36px; height: 36px; padding: 0; border-radius: 50%; background-color: rgba(255, 255, 255, 0.92); background-size: 14px; box-shadow: var(--shadow-md); opacity: 1; }
.modal-lightbox img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }

/* Offcanvas: side drawer */
body .offcanvas {
  --bs-offcanvas-bg: var(--color-bg-card);
  --bs-offcanvas-color: var(--color-text-primary);
  --bs-offcanvas-border-width: 0;
  --bs-offcanvas-box-shadow: var(--shadow-lg);
  --bs-offcanvas-padding-x: var(--spacing-lg);
  --bs-offcanvas-padding-y: var(--spacing-lg);
}
body .offcanvas-title { font-family: var(--font-heading); font-size: 1.375rem; }
body .offcanvas-backdrop { --bs-backdrop-bg: var(--green-950); --bs-backdrop-opacity: 0.55; }
.offcanvas-filters .offcanvas-footer, .offcanvas .offcanvas-footer { display: flex; gap: var(--spacing-sm); padding: var(--spacing-md) var(--spacing-lg); border-top: 1px solid var(--color-border-subtle); background: var(--color-bg-card); }
.offcanvas .offcanvas-footer .btn { flex: 1; }

/* ==========================================================================
   PROPERTY CARD · grid (default) and list (.property-card--list)
   Whole card is clickable through one .stretched-link on the title.
   Buttons inside (favorite, share) sit above the link.
   Modifiers: .is-featured  .is-sold  .property-card--compact  .property-card--list
   ========================================================================== */
.property-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.property-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-border-default); }
.property-card.is-featured { border-color: var(--brass-400); box-shadow: 0 0 0 1px var(--brass-400); }

.property-card-media { position: relative; overflow: hidden; background: var(--color-bg-subtle); }
.property-card-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.property-card:hover .property-card-media img { transform: scale(1.04); }
.property-card-badges { position: absolute; top: var(--spacing-sm); left: var(--spacing-sm); display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.property-card-actions { position: absolute; top: var(--spacing-sm); right: var(--spacing-sm); display: flex; gap: 6px; z-index: 3; }
.property-card-photos {
  position: absolute; left: var(--spacing-sm); bottom: var(--spacing-sm); z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-full); background: rgba(var(--green-900-rgb), 0.82); color: var(--white); font-size: 0.8125rem; font-weight: 600;
}
.property-card-photos .icon { width: 14px; height: 14px; vertical-align: 0; }

.property-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--spacing-lg); }
.property-card-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--color-text-brand); }
.property-card-price small { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); }
.property-card-title { margin: var(--spacing-xs) 0 var(--spacing-2xs); font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.property-card-title a { color: var(--color-text-primary); text-decoration: none; }
.property-card:hover .property-card-title a { color: var(--color-text-link); }
.property-card-title a:focus-visible { outline: none; }
.property-card:has(.property-card-title a:focus-visible) { box-shadow: var(--focus-ring); }
.property-card-address { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 0.875rem; color: var(--color-text-secondary); }
.property-card-address .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; vertical-align: 0; color: var(--brass-500); }
.property-card-specs {
  display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-lg); margin: var(--spacing-md) 0 0; padding: var(--spacing-md) 0 0;
  border-top: 1px solid var(--color-border-subtle); list-style: none; font-size: 0.875rem; font-weight: 600; color: var(--color-text-primary);
}
.property-card-specs li { display: inline-flex; align-items: center; gap: 6px; }
.property-card-specs .icon { width: 18px; height: 18px; vertical-align: 0; color: var(--color-text-secondary); }
.property-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-sm); padding: var(--spacing-md) var(--spacing-lg); border-top: 1px solid var(--color-border-subtle); background: var(--color-bg-page); font-size: 0.8125rem; color: var(--color-text-secondary); }
.property-card-agent { display: inline-flex; align-items: center; gap: var(--spacing-sm); font-weight: 600; color: var(--color-text-primary); }

/* Sold: faded image, no hover lift */
.property-card.is-sold .property-card-media img { filter: grayscale(0.7); opacity: 0.8; }
.property-card.is-sold .property-card-price { color: var(--color-text-secondary); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Compact: smaller padding, for sidebars and similar-listings rows */
.property-card--compact .property-card-body { padding: var(--spacing-md); }
.property-card--compact .property-card-price { font-size: 1.25rem; }
.property-card--compact .property-card-title { font-size: 1rem; }

/* ---- List layout: image left, details right (stacks on phones) -------------------------- */
.property-card--list { flex-direction: row; height: auto; }
.property-card--list .property-card-media { flex: 0 0 38%; max-width: 380px; min-width: 240px; }
.property-card--list .property-card-media img { height: 100%; aspect-ratio: auto; min-height: 220px; }
.property-card--list .property-card-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.property-card--list .property-card-body { padding: var(--spacing-lg) var(--spacing-xl); }
.property-card--list .property-card-summary { margin: var(--spacing-sm) 0 0; font-size: 0.9375rem; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-card--list .property-card-top { display: flex; justify-content: space-between; gap: var(--spacing-md); align-items: flex-start; }
@media (max-width: 767.98px) {
  .property-card--list { flex-direction: column; }
  .property-card--list .property-card-media { flex: none; max-width: none; min-width: 0; }
  .property-card--list .property-card-media img { aspect-ratio: 4 / 3; height: auto; }
  .property-card--list .property-card-body { padding: var(--spacing-lg); }
}

/* ==========================================================================
   PROPERTY GALLERY
   1) .property-gallery : one large photo + four small ones, opens a lightbox
   2) [data-gallery] .gallery-thumbs : large photo with a thumbnail strip
   ========================================================================== */
.property-gallery { position: relative; display: grid; gap: var(--spacing-sm); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 460px; border-radius: var(--radius-lg); overflow: hidden; }
.property-gallery .gallery-item { position: relative; display: block; padding: 0; border: 0; background: var(--color-bg-subtle); overflow: hidden; cursor: zoom-in; }
.property-gallery .gallery-item.is-main { grid-row: 1 / span 2; }
.property-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease, filter var(--transition-fast); }
.property-gallery .gallery-item:hover img { transform: scale(1.04); }
.property-gallery .gallery-item:focus-visible { outline: 3px solid var(--color-border-focus); outline-offset: -3px; }
.gallery-more {
  position: absolute; right: var(--spacing-md); bottom: var(--spacing-md); z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  height: var(--size-control-sm); padding: 0 var(--spacing-md); border: 0; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95); color: var(--color-text-brand); font-size: 0.875rem; font-weight: 700; box-shadow: var(--shadow-md);
}
.gallery-more .icon { width: 16px; height: 16px; vertical-align: 0; }
@media (max-width: 767.98px) {
  .property-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; height: auto; }
  .property-gallery .gallery-item.is-main { grid-column: 1 / -1; grid-row: auto; }
  .property-gallery .gallery-item:nth-child(n+4) { display: none; }
}

/* Lightbox carousel (inside .modal-lightbox) */
.gallery-carousel .carousel-item img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--green-950); }
.gallery-carousel .carousel-caption { position: static; padding: var(--spacing-sm) 0 0; color: rgba(255, 255, 255, 0.85); font-size: 0.875rem; text-align: center; }
.gallery-carousel .carousel-control-prev, .gallery-carousel .carousel-control-next { width: 56px; opacity: 1; }
.gallery-carousel .carousel-control-prev-icon, .gallery-carousel .carousel-control-next-icon { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background-color: rgba(var(--green-900-rgb), 0.8); background-size: 50%; }

/* Thumbnail strip variant */
.gallery-thumbs-wrap .gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-subtle); }
.gallery-thumbs-wrap .gallery-main img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--spacing-sm); margin: var(--spacing-sm) 0 0; padding: 0; list-style: none; }
.gallery-thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); overflow: hidden; background: none; opacity: 0.7; transition: opacity var(--transition-fast), border-color var(--transition-fast); }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--color-bg-primary); }
.gallery-thumbs button:focus-visible { box-shadow: var(--focus-ring); opacity: 1; }
.gallery-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================================
   SEARCH FORM + ADVANCED FILTERS
   .segmented  (Buy / Rent switch)   .search-card  (+ --inline)
   .filters-panel / .filter-group    .filter-chip (active filters)
   input.form-range (price slider)
   ========================================================================== */

/* ---- Segmented control ------------------------------------------------------ */
.segmented { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius-full); background: var(--color-bg-surface); }
.segmented-item {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 var(--spacing-lg);
  border-radius: var(--radius-full); font-size: 0.9375rem; font-weight: 600; color: var(--color-text-secondary); cursor: pointer; user-select: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.segmented-item:hover { color: var(--color-text-brand); }
.btn-check:checked + .segmented-item { background: var(--color-bg-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn-check:focus-visible + .segmented-item { box-shadow: var(--focus-ring); }
.segmented.is-block { display: flex; width: 100%; }
.segmented.is-block .segmented-item { flex: 1; }

/* ---- Search card -------------------------------------------------------------- */
.search-card { padding: var(--spacing-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.search-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }
.search-card-title { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; }
.search-fields { display: grid; gap: var(--spacing-md); }
.search-field label { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); }
.search-actions { display: flex; align-items: end; gap: var(--spacing-sm); }
.search-actions .btn { flex: 1; }
.search-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--color-text-link); text-decoration: none; background: none; border: 0; padding: 0; }
.search-link:hover { color: var(--color-text-brand); text-decoration: underline; }

/* Inline (hero): fields in one row from 992 px */
@media (min-width: 992px) {
  .search-card--inline .search-fields { grid-template-columns: 1.6fr 1fr 1fr 1fr auto; align-items: end; }
  .search-card--inline .search-actions .btn { flex: none; }
}
@media (min-width: 576px) and (max-width: 991.98px) { .search-card--inline .search-fields { grid-template-columns: 1fr 1fr; } .search-card--inline .search-actions { grid-column: 1 / -1; } }
/* Pill search bar: a single rounded bar for compact hero designs */
.search-bar { display: flex; align-items: center; gap: var(--spacing-xs); --search-bar-radius: var(--radius-full); padding: 6px 6px 6px var(--spacing-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-default); border-radius: var(--search-bar-radius); box-shadow: var(--shadow-md); }
.search-bar:focus-within { border-color: var(--color-border-focus); box-shadow: var(--shadow-md), var(--focus-ring); }
.search-bar .icon { flex: none; color: var(--color-text-accent); }
.search-bar input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font-size: 1rem; color: var(--color-text-primary); }
.search-bar input:focus { outline: none; }
.search-bar .btn { flex: none; }
/* The button follows the bar's radius, less the 6px padding so the two curves stay concentric. Change --search-bar-radius on .search-bar to reshape both. */
body .search-bar .btn { --bs-btn-border-radius: max(calc(var(--search-bar-radius) - 6px), 0px); }

/* ---- Range slider ---------------------------------------------------------------- */
body .form-range { height: 24px; background: none; }
body .form-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--color-bg-surface-pressed); }
body .form-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--color-bg-surface-pressed); }
body .form-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; border: 3px solid var(--color-bg-card); border-radius: 50%; background: var(--color-bg-primary); box-shadow: var(--shadow-md); transition: transform var(--transition-fast); }
body .form-range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--color-bg-card); border-radius: 50%; background: var(--color-bg-primary); box-shadow: var(--shadow-md); }
body .form-range:hover::-webkit-slider-thumb { transform: scale(1.1); }
body .form-range:focus { box-shadow: none; }
body .form-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--shadow-md), var(--focus-ring); }
body .form-range:focus-visible::-moz-range-thumb { box-shadow: var(--shadow-md), var(--focus-ring); }
.range-output { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-text-secondary); }
.range-output strong { color: var(--color-text-brand); }

/* ---- Advanced filters panel --------------------------------------------------------- */
.filters-panel { background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); }
.filters-panel-head { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-md) var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); }
.filters-panel-head h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }
.filter-group { padding: var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group-title { display: block; margin: 0 0 var(--spacing-md); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); }
.filters-panel-foot { display: flex; gap: var(--spacing-sm); padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg); }
.filters-panel-foot .btn { flex: 1; }
.filter-options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.filter-options .form-check { margin: 0; }

/* Active filters row */
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 var(--spacing-md); border-radius: var(--radius-full); background: var(--color-bg-surface); color: var(--color-text-brand); font-size: 0.875rem; font-weight: 600; }
.filter-chip button { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.filter-chip button:hover { background: var(--color-bg-surface-pressed); }
.filter-chip button:focus-visible { box-shadow: var(--focus-ring); }
.filter-chip .icon { width: 14px; height: 14px; vertical-align: 0; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.results-bar-count { font-size: 0.9375rem; color: var(--color-text-secondary); }
.results-bar-count strong { color: var(--color-text-primary); }
.filters-panel .check-card-group { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-sm); }
.filters-panel .check-card { padding: var(--spacing-md) var(--spacing-xs); font-size: 0.8125rem; }

/* The Search button is as tall as the fields next to it (fields are 44px high). */
.search-card .search-actions .btn,
.search-card .btn.btn-lg[type="submit"],
.map-hero-form .btn.btn-lg[type="submit"] { height: 44px; min-height: 44px; padding-block: 0; }

/* Filters drawer on the map listing: groups run edge to edge */
.offcanvas#filtersDrawer .filter-group { padding-left: 0; padding-right: 0; }

/* ==========================================================================
   PROPERTY DETAILS BUILDING BLOCKS
   .property-specs (key facts)   .spec-table (details list)
   .amenities (feature list)     .floor-plan (plan card)
   ========================================================================== */

/* ---- Key facts: icon, value, label ---------------------------------------------- */
.property-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--spacing-md); margin: 0; padding: 0; list-style: none; }
.property-specs li { display: flex; align-items: center; gap: var(--spacing-md); }
.spec-icon { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-bg-surface); color: var(--color-text-brand); }
.spec-icon .icon { width: 24px; height: 24px; vertical-align: 0; }
.spec-value { display: block; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: var(--color-text-brand); }
.spec-label { display: block; font-size: 0.8125rem; color: var(--color-text-secondary); }
/* Boxed: each fact in its own card */
.property-specs--boxed li { flex-direction: column; align-items: flex-start; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); gap: var(--spacing-sm); }
/* Bar: one strip, with dividers */
.property-specs--bar { gap: 0; padding: var(--spacing-md) 0; border-block: 1px solid var(--color-border-default); }
.property-specs--bar li { padding: 0 var(--spacing-xs); border-left: 1px solid var(--color-border-default); }
.property-specs--bar li:first-child { padding-left: 0; border-left: 0; }
.property-specs--bar .spec-icon { width: 40px; height: 40px; background: none; }

/* ---- Details list: label and value rows ---------------------------------------------- */
.spec-table { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--spacing-2xl); }
.spec-table > div { display: flex; justify-content: space-between; gap: var(--spacing-md); padding: 14px 0; border-bottom: 1px solid var(--color-border-subtle); }
.spec-table dt { font-weight: 500; color: var(--color-text-secondary); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; color: var(--color-text-primary); }
@media (max-width: 767.98px) { .spec-table { grid-template-columns: 1fr; } .property-specs--bar { gap: var(--spacing-md); } .property-specs--bar li { border-left: 0; padding: 0; } }

/* ---- Amenities ----------------------------------------------------------------------------- */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--spacing-md) var(--spacing-lg); margin: 0; padding: 0; list-style: none; }
.amenities li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--color-text-primary); }
.amenities .icon { flex: none; width: 22px; height: 22px; vertical-align: 0; color: var(--color-text-brand); }
.amenities li.is-unavailable { color: var(--color-text-disabled); text-decoration: line-through; }
.amenities li.is-unavailable .icon { color: var(--color-text-disabled); }
/* Check variant: green tick, text only */
.amenities--check .icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--color-bg-surface); color: var(--color-text-success); stroke-width: 3; }
/* Tiles variant: icon above label */
.amenities--tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.amenities--tiles li { flex-direction: column; justify-content: center; gap: var(--spacing-sm); padding: var(--spacing-lg) var(--spacing-sm); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); font-size: 0.9375rem; text-align: center; transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.amenities--tiles li:hover { border-color: var(--color-border-brand); background: var(--color-bg-surface); }
.amenities--tiles .icon { width: 28px; height: 28px; }

/* ---- Floor plan card ---------------------------------------------------------------------------- */
.floor-plan { background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.floor-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); padding: var(--spacing-lg) var(--spacing-lg) 0; }
.floor-plan-head h3 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }
.floor-plan-body { padding: var(--spacing-lg); }
.floor-plan-image { display: block; width: 100%; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: var(--color-bg-media); }
.floor-plan-meta { display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-lg); margin: var(--spacing-lg) 0 0; padding: 0; list-style: none; font-size: 0.9375rem; font-weight: 600; }
.floor-plan-meta li { display: inline-flex; align-items: center; gap: 8px; }
.floor-plan-meta .icon { width: 18px; height: 18px; vertical-align: 0; color: var(--color-text-secondary); }
.floor-plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg); border-top: 1px solid var(--color-border-subtle); background: var(--color-bg-page); }
.floor-plan-price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-text-brand); }
.floor-plan .tab-content { padding-top: var(--spacing-lg); }

/* Detail actions: share and compare share the soft border and white background of the favorite button */
.detail-actions .btn-outline-primary.btn-icon { --bs-btn-border-color: var(--color-border-default); --bs-btn-bg: var(--color-bg-card); }

/* ==========================================================================
   AGENT CARD · vertical (default), .agent-card--horizontal, .agent-contact
   ========================================================================== */
.agent-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition-fast); }
.agent-card:hover { box-shadow: var(--shadow-lg); }
.agent-card-photo { position: relative; background: var(--color-bg-surface); overflow: hidden; }
.agent-card-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms ease; }
.agent-card:hover .agent-card-photo img { transform: scale(1.04); }
.agent-card-photo .badge { position: absolute; top: var(--spacing-sm); left: var(--spacing-sm); }
.agent-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--spacing-lg); }
.agent-card-name { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.agent-card-name a { color: var(--color-text-brand); text-decoration: none; }
.agent-card-role { margin: 2px 0 var(--spacing-sm); font-size: 0.875rem; color: var(--color-text-secondary); }
.agent-card-stats { display: flex; gap: var(--spacing-lg); margin: var(--spacing-md) 0 0; padding: var(--spacing-md) 0 0; border-top: 1px solid var(--color-border-subtle); list-style: none; }
.agent-card-stats li { display: flex; flex-direction: column; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); }
.agent-card-stats strong { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: 0; text-transform: none; color: var(--color-text-brand); }
.agent-card-actions { display: flex; gap: var(--spacing-sm); margin-top: auto; padding-top: var(--spacing-lg); }
.agent-card-actions .btn:first-child { flex: 1; }
.agent-card-social { display: flex; gap: var(--spacing-xs); margin: var(--spacing-md) 0 0; padding: 0; list-style: none; }
.agent-card-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border-default); color: var(--color-text-brand); transition: background-color var(--transition-fast); }
.agent-card-social a:hover { background: var(--color-bg-surface); }
.agent-card-social .icon { width: 16px; height: 16px; vertical-align: 0; }

.agent-card--horizontal { flex-direction: row; height: auto; }
.agent-card--horizontal .agent-card-photo { flex: 0 0 38%; max-width: 220px; }
.agent-card--horizontal .agent-card-photo img { height: 100%; aspect-ratio: auto; min-height: 200px; }
@media (max-width: 575.98px) { .agent-card--horizontal { flex-direction: column; } .agent-card--horizontal .agent-card-photo { flex: none; max-width: none; } .agent-card--horizontal .agent-card-photo img { aspect-ratio: 4 / 3; height: auto; } }

/* Contact card: sits in the sidebar of the property details page */
.agent-contact { padding: var(--spacing-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.agent-contact-head { display: flex; align-items: center; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }
.agent-contact-head strong { display: block; font-size: 1.0625rem; color: var(--color-text-brand); }
.agent-contact-head > div > span { display: block; font-size: 0.875rem; color: var(--color-text-secondary); }
.agent-contact-head .rating-summary { display: flex; margin-top: var(--spacing-2xs); }
.agent-contact form { display: grid; gap: var(--spacing-sm); }

/* Call and email icon buttons stay perfectly square */
.agent-card-actions .btn-icon, .agent-row .btn-icon, .agent-card--horizontal .btn-icon { flex: 0 0 var(--size-control-md); align-self: flex-start; width: var(--size-control-md); height: var(--size-control-md); min-width: var(--size-control-md); aspect-ratio: 1 / 1; }

/* Narrow cards (4 columns, sidebars): "View profile" and the icon buttons cannot share one row, so stack them.
   View profile takes the full width and the other buttons share the row below. This follows the card's own
   width, not the screen width, so the same card works in 2, 3 or 4 columns. */
.agent-card-body { container-type: inline-size; container-name: agent-body; }
@container agent-body (max-width: 16.5rem) {
  .agent-card-actions { flex-wrap: wrap; }
  .agent-card-actions .btn:first-child { flex: 1 1 100%; }
  .agent-card-actions .btn:not(:first-child) { flex: 1 1 0; width: auto; min-width: 0; aspect-ratio: auto; }
}
.agent-card-actions .btn:first-child { min-width: 0; padding-inline: var(--spacing-sm); white-space: nowrap; }

/* ==========================================================================
   AGENCY CARD · cover image, logo tile, tags, stats. .agency-card--featured is wide.
   ========================================================================== */
.agency-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition-fast); }
.agency-card:hover { box-shadow: var(--shadow-lg); }
.agency-card-cover { position: relative; overflow: hidden; background: var(--color-bg-surface); }
.agency-card-cover img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform 400ms ease; }
.agency-card:hover .agency-card-cover img { transform: scale(1.04); }
.agency-card-cover .badge { position: absolute; top: var(--spacing-sm); left: var(--spacing-sm); }
.agency-card-logo { position: relative; z-index: 1; display: block; width: 64px; height: 64px; margin: -32px 0 0 var(--spacing-lg); border: 4px solid var(--color-bg-card); border-radius: var(--radius-lg); background: var(--color-bg-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.agency-card-logo img { display: block; width: 100%; height: 100%; }
.agency-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg); }
.agency-card-name { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.agency-card-name a { color: var(--color-text-brand); text-decoration: none; }
.agency-card-name a::after { content: ""; position: absolute; inset: 0; }
.agency-card-place { display: flex; align-items: center; gap: 6px; margin: 2px 0 var(--spacing-sm); font-size: 0.875rem; color: var(--color-text-secondary); }
.agency-card-place .icon { width: 16px; height: 16px; vertical-align: 0; }
.agency-card-text { margin: var(--spacing-sm) 0 0; font-size: 0.9375rem; color: var(--color-text-secondary); }
.agency-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--spacing-md) 0 0; padding: 0; list-style: none; }
.agency-card-tags li { padding: 2px 10px; border-radius: 999px; background: var(--color-bg-surface); font-size: 0.75rem; font-weight: 600; color: var(--color-text-brand); }
.agency-card-stats { display: flex; gap: var(--spacing-lg); margin: auto 0 0; padding: var(--spacing-md) 0 0; border-top: 1px solid var(--color-border-subtle); list-style: none; }
.agency-card-tags + .agency-card-stats, .agency-card-text + .agency-card-stats { margin-top: var(--spacing-md); }
.agency-card-stats li { display: flex; flex-direction: column; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); }
.agency-card-stats strong { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: 0; text-transform: none; color: var(--color-text-brand); }

.agency-card--featured { flex-direction: row; height: auto; }
.agency-card--featured .agency-card-cover { flex: 0 0 44%; }
.agency-card--featured .agency-card-cover { min-height: 320px; }
.agency-card--featured .agency-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.agency-card--featured .agency-card-logo { position: absolute; bottom: var(--spacing-lg); left: var(--spacing-lg); margin: 0; }
.agency-card--featured .agency-card-body { padding: var(--spacing-xl); justify-content: center; }
.agency-card--featured .agency-card-name { font-size: 1.75rem; }
@media (max-width: 767.98px) {
  .agency-card--featured { flex-direction: column; }
  .agency-card--featured .agency-card-cover { flex: none; }
  .agency-card--featured .agency-card-cover { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Lists inside cards never get the browser or documentation left padding */
.agency-card-tags, .agency-card-stats { padding-left: 0 !important; padding-inline-start: 0 !important; }

/* ==========================================================================
   PRELOADER · full-screen loading screen, shown until the page has loaded.
   Add <div class="preloader" data-preloader> after <body> and the "is-loading"
   class on <html> (see the head snippet). Hidden when JavaScript is off.
   Only transform and opacity are animated.
   ========================================================================== */
.preloader { display: none; position: fixed; inset: 0; z-index: 2000; place-items: center; background: var(--color-bg-page); transition: opacity 450ms ease, visibility 0s linear 450ms; }
html.js .preloader { display: grid; }
html.js .preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loading { overflow: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-lg); }
.preloader-mark { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--color-bg-primary); color: var(--color-text-inverse, #fff); animation: preloader-pulse 1.4s ease-in-out infinite; }
.preloader-mark .icon { width: 34px; height: 34px; }
.preloader-mark:has(.preloader-logo) { background: none; }
.preloader-logo { width: 72px; height: 72px; border-radius: var(--radius-lg); }
.preloader-mark::after { content: ""; position: absolute; inset: -10px; border: 2px solid var(--color-border-default); border-top-color: var(--brass-500, #C0903F); border-radius: calc(var(--radius-lg) + 8px); animation: preloader-spin 1.1s linear infinite; }
.preloader-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-text-brand); }
.preloader-bar { width: 160px; height: 4px; border-radius: 999px; background: var(--color-bg-surface); overflow: hidden; }
.preloader-bar::before { content: ""; display: block; height: 100%; border-radius: inherit; background: var(--color-bg-primary); transform-origin: left center; animation: preloader-bar 1.4s ease-in-out infinite; }
@keyframes preloader-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.92); } }
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-bar { 0% { transform: translateX(-100%) scaleX(0.4); } 100% { transform: translateX(260%) scaleX(0.4); } }

/* Variation: skyline. Seven buildings rise and fall in turn (components/preloader.html) */
.preloader-skyline { display: flex; align-items: flex-end; gap: 6px; height: 68px; padding: 0 8px; border-bottom: 2px solid var(--color-border-default); }
.preloader-skyline i { display: block; width: 14px; border-radius: 3px 3px 0 0; background: var(--color-bg-primary); transform-origin: bottom center; animation: preloader-rise 1.3s ease-in-out infinite; }
.preloader-skyline i:nth-child(1) { height: 30px; }
.preloader-skyline i:nth-child(2) { height: 46px; animation-delay: 0.1s; }
.preloader-skyline i:nth-child(3) { height: 38px; animation-delay: 0.2s; }
.preloader-skyline i:nth-child(4) { height: 68px; animation-delay: 0.3s; background: var(--brass-500, #C0903F); }
.preloader-skyline i:nth-child(5) { height: 42px; animation-delay: 0.4s; }
.preloader-skyline i:nth-child(6) { height: 54px; animation-delay: 0.5s; }
.preloader-skyline i:nth-child(7) { height: 34px; animation-delay: 0.6s; }
@keyframes preloader-rise { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* Variation: house outline. A house draws itself, then the door appears (components/preloader.html) */
.preloader-house { display: block; width: 88px; height: 88px; }
.preloader-house svg { display: block; width: 100%; height: 100%; overflow: visible; }
.preloader-house-line { fill: none; stroke: var(--color-text-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: preloader-draw 2.4s ease-in-out infinite; }
.preloader-house-door { fill: var(--brass-500, #C0903F); opacity: 0; animation: preloader-door 2.4s ease-in-out infinite; }
@keyframes preloader-draw { 0% { stroke-dashoffset: 100; opacity: 0; } 4% { opacity: 1; } 55%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes preloader-door { 0%, 50% { opacity: 0; } 65%, 85% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader-mark, .preloader-mark::after, .preloader-bar::before, .preloader-skyline i, .preloader-house-line, .preloader-house-door { animation: none; }
  .preloader-bar::before { transform: scaleX(0.5); }
  .preloader-skyline i { transform: scaleY(0.8); }
  .preloader-house-line { stroke-dashoffset: 0; }
  .preloader-house-door { opacity: 1; }
}
/* Contained version for demos: fills its parent instead of the screen */
.preloader--contained { display: grid; position: relative; inset: auto; z-index: 0; min-height: 260px; border-radius: var(--radius-lg); }

/* ==========================================================================
   HERO SLIDER · full-width property slider (Bootstrap carousel, fade)
   .hero-slider > .carousel > .carousel-item > .hero-slide
   Each slide: image + dark overlay + caption (.hero-slide-body)
   ========================================================================== */
.hero-slider { position: relative; background: var(--green-950); }
/* Slides swap instantly (no crossfade): each new slide plays its own photo and text entrance */
.hero-slider .carousel-item, .hero-slider .carousel-fade .active.carousel-item-start, .hero-slider .carousel-fade .active.carousel-item-end { transition: none; }
.hero-slide { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(460px, 62vh, 640px); padding-block: var(--spacing-3xl) 120px; color: var(--white); }
.hero-slide { background: var(--green-950); overflow: hidden; }
.hero-slide > img { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--green-overlay-rgb), 0.5) 0%, rgba(var(--green-overlay-rgb), 0.5) 34%, rgba(var(--green-overlay-rgb), 0.18) 62%, rgba(var(--green-overlay-rgb), 0.05) 100%); }
[dir="rtl"] .hero-slide::before { background: linear-gradient(270deg, rgba(var(--green-overlay-rgb), 0.5) 0%, rgba(var(--green-overlay-rgb), 0.5) 34%, rgba(var(--green-overlay-rgb), 0.18) 62%, rgba(var(--green-overlay-rgb), 0.05) 100%); }
.hero-slide-body { max-width: 560px; }
.hero-slide-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--spacing-md); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-500); }
.hero-slide-tag::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero-slide-title { margin: 0 0 var(--spacing-sm); font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; color: var(--white); }
.hero-slide-price { margin: 0 0 var(--spacing-md); font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--brass-500); }
.hero-slide-address { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--spacing-md); color: rgba(247, 246, 240, 0.86); }
.hero-slide-address .icon { width: 18px; height: 18px; vertical-align: 0; }
.hero-slide-specs { display: flex; flex-wrap: wrap; gap: var(--spacing-sm) var(--spacing-lg); margin: 0 0 var(--spacing-xl); padding: 0; list-style: none; font-size: 0.9375rem; }
.hero-slide-specs li { display: inline-flex; align-items: center; gap: 6px; }
.hero-slide-specs .icon { width: 18px; height: 18px; vertical-align: 0; color: var(--brass-500); }
/* caption plays in when the slide becomes active */
.hero-slider .carousel-item.active .hero-slide-body > * { animation: hero-slide-in 700ms ease both; }
.hero-slider .carousel-item.active .hero-slide-body > :nth-child(2) { animation-delay: 80ms; }
.hero-slider .carousel-item.active .hero-slide-body > :nth-child(3) { animation-delay: 160ms; }
.hero-slider .carousel-item.active .hero-slide-body > :nth-child(4) { animation-delay: 240ms; }
.hero-slider .carousel-item.active .hero-slide-body > :nth-child(5) { animation-delay: 320ms; }
.hero-slider .carousel-item.active .hero-slide-body > :nth-child(6) { animation-delay: 400ms; }
/* Photo: the same soft zoom-out as other hero backgrounds, on load and on each slide change */
.hero-slider .carousel-item.active .hero-slide > img { animation: hero-slide-photo 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both; }
@keyframes hero-slide-photo { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
html.is-loading .hero-slider .carousel-item.active .hero-slide > img { animation: none; }
/* wait for the loading screen so the first slide plays on page load */
html.is-loading .hero-slider .carousel-item.active .hero-slide-body > * { animation: none; }
@keyframes hero-slide-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slider .carousel-item.active .hero-slide-body > *, .hero-slider .carousel-item.active .hero-slide > img { animation: none; } .hero-slider .carousel-item { transition: none; } }
/* controls */
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { top: 50%; bottom: auto; width: 48px; height: 48px; margin-inline: var(--spacing-lg); border-radius: 50%; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(4px); opacity: 1; transform: translateY(-50%); transition: background-color var(--transition-fast); }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { background: rgba(255, 255, 255, 0.3); }
.hero-slider .carousel-control-prev .icon, .hero-slider .carousel-control-next .icon { width: 22px; height: 22px; color: var(--white); vertical-align: 0; }
.hero-slider .carousel-indicators { bottom: 84px; margin-bottom: 0; }
.hero-slider .carousel-indicators [data-bs-target] { width: 28px; height: 4px; margin-inline: 4px; border: 0; border-radius: 2px; background: var(--white); opacity: 0.45; transition: opacity var(--transition-fast), width var(--transition-fast); }
.hero-slider .carousel-indicators .active { width: 44px; opacity: 1; background: var(--brass-400); }
@media (max-width: 991.98px) { .hero-slide > img { width: 100%; opacity: 0.55; } .hero-slide::before { background: rgba(var(--green-overlay-rgb), 0.28); } }
@media (max-width: 767.98px) { .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; } .hero-slide { padding-bottom: 130px; } }
/* the search strip that overlaps the bottom of the slider */
.hero-slider + .hero-search { margin-top: -64px; }

/* ==========================================================================
   MORTGAGE CALCULATOR · <div class="mortgage-calc" data-mortgage>
   Sliders with live values and a monthly payment. site.js does the math.
   ========================================================================== */
.mortgage-calc { padding: var(--spacing-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.mortgage-title { margin: 0 0 var(--spacing-md); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-text-brand); }
.mortgage-field { margin-bottom: var(--spacing-md); }
.mortgage-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--spacing-sm); margin-bottom: 6px; font-size: 0.875rem; color: var(--color-text-secondary); }
.mortgage-field-head output { font-weight: 700; color: var(--color-text-brand); unicode-bidi: isolate; direction: ltr; }
.mortgage-result { margin: var(--spacing-lg) 0 0; padding: var(--spacing-md); border-radius: var(--radius-md); background: var(--color-bg-primary); color: var(--color-text-inverse); text-align: center; }
.mortgage-result small { display: block; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.mortgage-result strong { display: block; margin: 2px 0; font-family: var(--font-heading); font-size: 2rem; line-height: 1.2; unicode-bidi: isolate; direction: ltr; }
.mortgage-result span { font-size: 0.875rem; opacity: 0.85; }

/* ==========================================================================
   LOGO STRIP · row of partner or agency logos with names
   <ul class="logo-strip"><li><img src="" alt=""><span>Name</span></li></ul>
   ========================================================================== */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--spacing-lg) var(--spacing-xl); margin: 0; padding: 0; list-style: none; }
.logo-strip li { display: inline-flex; align-items: center; gap: var(--spacing-sm); opacity: 0.7; filter: grayscale(1); transition: opacity var(--transition-fast), filter var(--transition-fast); }
.logo-strip li:hover { opacity: 1; filter: none; }
.logo-strip img { width: 44px; height: 44px; border-radius: var(--radius-md); }
.logo-strip span { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--color-text-brand); }

/* Variations */
.logo-strip--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-card); }
.logo-strip--grid li { justify-content: center; padding: var(--spacing-lg); border: 0 solid var(--color-border-subtle); border-width: 0 1px 1px 0; margin: 0 -1px -1px 0; }
@media (max-width: 575.98px) { .logo-strip--grid { grid-template-columns: repeat(2, 1fr); } }
.logo-strip--cards { gap: var(--spacing-md); }
.logo-strip--cards li { padding: var(--spacing-md) var(--spacing-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); opacity: 1; filter: none; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.logo-strip--cards li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-strip--text { gap: 0; }
.logo-strip--text li { padding: 0 var(--spacing-xl); }
.logo-strip--text li + li { border-inline-start: 1px solid var(--color-border-default); }
.logo-strip--text span { font-size: 1.25rem; letter-spacing: 0.01em; }
@media (max-width: 575.98px) { .logo-strip--text li { padding: var(--spacing-xs) var(--spacing-md); } }

/* Swipe sliders (data-swiper="logos" / "logos-auto") */
.logo-slider-head { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.logo-slider-head .sw-nav { width: 40px; height: 40px; }
.logo-slider .swiper-slide { height: auto; }
.logo-slide { display: flex; align-items: center; justify-content: center; gap: var(--spacing-sm); height: 100%; padding: var(--spacing-md); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); opacity: 0.8; filter: grayscale(1); transition: opacity var(--transition-fast), filter var(--transition-fast); }
.logo-slide:hover { opacity: 1; filter: none; }
.logo-slide img { width: 36px; height: 36px; border-radius: var(--radius-md); flex: none; }
.logo-slide span { font-family: var(--font-heading); font-weight: 600; color: var(--color-text-brand); font-size: 1rem; white-space: nowrap; }
.logo-slider--soft .logo-slide { background: transparent; border-color: transparent; }
.logo-slider--soft .swiper-wrapper { transition-timing-function: linear; }
.logo-slider:not(.swiper-initialized) .swiper-slide { flex-basis: 220px; }
.logo-slider .swiper-wrapper { display: flex; }
.logo-slider:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; }
.logo-slider:not(.swiper-initialized) .swiper-slide { flex: 0 0 220px; }

/* ==========================================================================
   HERO MODERN · big headline, pill search bar and a picture collage
   .hero-modern > .container > .hero-modern-grid > (.hero-modern-copy + .hero-modern-art)
   .pill-search is the one-line rounded search bar (works on its own too).
   ========================================================================== */
.hero-modern { position: relative; overflow: hidden; padding-block: var(--spacing-3xl) var(--spacing-4xl); background: var(--color-bg-page); }
.hero-modern::before { content: ""; position: absolute; inset-inline-end: -12%; top: -30%; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, var(--color-bg-surface), transparent); z-index: 0; }
.hero-modern-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: var(--spacing-3xl); }
.hero-modern-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--spacing-lg); padding: 6px 16px 6px 8px; border: 1px solid var(--color-border-default); border-radius: 999px; background: var(--color-bg-card); font-size: 0.875rem; font-weight: 600; color: var(--color-text-brand); }
.hero-modern-pill i { position: relative; width: 10px; height: 10px; margin-inline: 6px; border-radius: 50%; background: var(--green-500); }
.hero-modern-pill i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green-500); opacity: 0; animation: hm-ping 2s ease-out infinite; }
@keyframes hm-ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.hero-modern-title { margin: 0 0 var(--spacing-lg); font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; color: var(--color-text-brand); }
.hero-modern-title em { font-style: italic; color: var(--brass-500); }
.hero-modern-lead { max-width: 46ch; margin: 0 0 var(--spacing-xl); font-size: 1.1875rem; color: var(--color-text-secondary); }
.hero-modern-proof { display: flex; align-items: center; gap: var(--spacing-md); margin-top: var(--spacing-xl); font-size: 0.9375rem; color: var(--color-text-secondary); }
.hero-modern-proof strong { color: var(--color-text-brand); }

/* Pill search */
.pill-search { display: flex; align-items: center; gap: var(--spacing-xs); max-width: 640px; padding: 8px 8px 8px 8px; border: 1px solid var(--color-border-subtle); border-radius: 999px; background: var(--color-bg-card); box-shadow: var(--shadow-lg); }
.pill-search-field { position: relative; flex: 1 1 0; min-width: 0; padding: 4px var(--spacing-lg); }
.pill-search-field + .pill-search-field::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 0; width: 1px; background: var(--color-border-default); }
.pill-search-field label { display: block; margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); }
.pill-search-field .form-control, .pill-search-field .form-select { height: 28px; min-height: 0; padding: 0; border: 0; background-color: transparent; box-shadow: none; font-weight: 600; color: var(--color-text-primary); }
.pill-search-field .form-select { background-position: right 0 center; padding-inline-end: 22px; }
.pill-search .btn { flex: none; width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.pill-search .btn .icon { width: 22px; height: 22px; }
@media (max-width: 575.98px) {
  .pill-search { flex-direction: column; align-items: stretch; padding: var(--spacing-md); border-radius: var(--radius-xl); }
  .pill-search-field { padding: 8px 4px; }
  .pill-search-field + .pill-search-field::before { inset: 0 0 auto 0; width: auto; height: 1px; }
  .pill-search .btn { width: 100%; height: 48px; border-radius: 999px; }
}

/* Picture collage */
.hero-modern-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 180px 200px; gap: var(--spacing-md); }
.hero-tile { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.hero-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-tile--a { grid-row: 1 / 3; }
.hero-tile--b { grid-row: 1 / 2; }
.hero-tile--c { grid-row: 2 / 4; }
.hero-tile--d { grid-row: 3 / 4; grid-column: 1; }
.hero-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--color-bg-card); box-shadow: var(--shadow-lg); font-size: 0.8125rem; line-height: 1.25; color: var(--color-text-secondary); }
.hero-chip strong { display: block; font-family: var(--font-heading); font-size: 1.0625rem; color: var(--color-text-brand); }
.hero-chip .icon-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.hero-chip .icon-badge .icon { width: 20px; height: 20px; vertical-align: 0; }
.hero-chip--top { top: 38%; inset-inline-start: -28px; }
.hero-chip--bottom { bottom: 14%; inset-inline-end: -12px; }
@media (max-width: 991.98px) {
  .hero-modern { padding-block: var(--spacing-2xl) var(--spacing-3xl); }
  .hero-modern-grid { grid-template-columns: 1fr; gap: var(--spacing-2xl); }
  .hero-modern-art { grid-template-rows: 180px 140px 160px; }
  .hero-chip--top { inset-inline-start: 8px; }
  .hero-chip--bottom { inset-inline-end: 8px; }
}

/* ==========================================================================
   MARQUEE · endless sliding line of words. Put the items twice (the second
   copy is aria-hidden) so the loop is seamless.
   <div class="marquee"><div class="marquee-track"><ul>...</ul><ul aria-hidden="true">...</ul></div></div>
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--color-border-subtle); background: var(--color-bg-card); }
.marquee-track { display: flex; width: max-content; animation: marquee-slide 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: var(--spacing-xl); padding-block: var(--spacing-lg); padding-inline-end: var(--spacing-xl); font-family: var(--font-heading); font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 600; white-space: nowrap; color: var(--color-text-brand); }
.marquee li::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--color-bg-accent); }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--color-text-brand); }
@keyframes marquee-slide { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-slide-rtl; }
@keyframes marquee-slide-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; flex-wrap: wrap; animation: none; }
  .marquee ul[aria-hidden="true"] { display: none; }
}

/* Swipe marquee (Swiper, data-swiper="marquee") */
.marquee-swipe { border-block: 1px solid var(--color-border-subtle); background: var(--color-bg-card); }
.marquee-swipe .swiper-wrapper { display: flex; transition-timing-function: linear; }
.marquee-swipe .swiper-slide { width: auto; flex: none; display: inline-flex; align-items: center; gap: var(--spacing-xl); padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-lg) 0; font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; color: var(--color-text-brand); white-space: nowrap; }
.marquee-swipe .swiper-slide::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--color-bg-accent); }
.marquee-swipe .swiper-slide:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--color-text-brand); }
.marquee-swipe:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; }
.marquee-swipe--solid { background: var(--color-bg-primary); border-color: var(--color-bg-primary); }
.marquee-swipe--solid .swiper-slide { color: var(--color-text-inverse); }
.marquee-swipe--solid .swiper-slide:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--color-text-inverse); }

/* ==========================================================================
   BENTO GRID · mixed-size tiles in one tidy grid (4 columns on desktop)
   .bento > .bento-tile  + --wide (2 cols) --tall (2 rows) --big (2x2)
   Looks: --image (picture + dark fade) --brand --accent --surface
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: var(--spacing-md); }
.bento-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--spacing-xs); min-width: 0; padding: var(--spacing-xl); overflow: hidden; isolation: isolate; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); color: var(--color-text-primary); text-decoration: none; transition: transform 300ms ease, box-shadow 300ms ease; }
a.bento-tile:hover, .bento-tile.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-tile--wide { grid-column: span 2; }
.bento-tile--tall { grid-row: span 2; }
.bento-tile--big { grid-column: span 2; grid-row: span 2; }
.bento-tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
a.bento-tile:hover > img { transform: scale(1.05); }
.bento-tile--image { border: 0; color: var(--white); }
.bento-tile--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(var(--green-overlay-rgb), 0.85) 0%, rgba(var(--green-overlay-rgb), 0.1) 60%, transparent 100%); }
.bento-tile--brand { border: 0; background: var(--color-bg-primary); color: var(--color-text-inverse); }
.bento-tile--accent { border: 0; background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.bento-tile--surface { border: 0; background: var(--color-bg-surface); }
.bento-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.bento-title { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: inherit; }
.bento-tile--big .bento-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.bento-text { margin: 0; font-size: 0.9375rem; opacity: 0.88; }
.bento-number { font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; line-height: 1; unicode-bidi: isolate; direction: ltr; text-align: start; }
.bento-top { margin-bottom: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-sm); }
.bento-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); color: inherit; transition: transform 300ms ease; }
.bento-arrow .icon { width: 20px; height: 20px; vertical-align: 0; }
a.bento-tile:hover .bento-arrow { transform: rotate(-45deg); }
.bento-tile--accent .bento-arrow, .bento-tile--surface .bento-arrow { background: rgba(0, 0, 0, 0.1); }
.bento-tile .btn { align-self: flex-start; margin-top: var(--spacing-sm); }
@media (max-width: 991.98px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-tile--big { grid-column: span 2; } }
@media (max-width: 575.98px) { .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(180px, auto); } .bento-tile--wide, .bento-tile--big { grid-column: auto; } .bento-tile--tall, .bento-tile--big { grid-row: span 1; min-height: 280px; } }
@media (prefers-reduced-motion: reduce) { .bento-tile, .bento-tile > img, .bento-arrow { transition: none; } }
.bento-tile--image .badge-featured { background: var(--brass-500); color: var(--charcoal-900); }

/* ==========================================================================
   AREA LIST · big names to hover or tap, a picture changes beside them.
   <div class="area-list" data-area-list> .area-list-items > a.area-list-item
   + .area-list-media > img (one per item, same order). site.js swaps them.
   Without JavaScript the first picture stays visible.
   ========================================================================== */
.area-list { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--spacing-3xl); align-items: start; }
.area-list-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-border-default); }
.area-list-item { display: flex; align-items: center; gap: var(--spacing-lg); padding: var(--spacing-lg) 0; border-bottom: 1px solid var(--color-border-default); color: var(--color-text-secondary); text-decoration: none; transition: color 200ms ease, padding 300ms ease; }
.area-list-num { width: 2.5rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; }
.area-list-name { flex: 1; font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; }
.area-list-count { font-size: 0.9375rem; }
.area-list-item .icon { width: 28px; height: 28px; opacity: 0; transform: translateX(-8px); transition: opacity 200ms ease, transform 300ms ease; }
.area-list-item.is-active, .area-list-item:hover, .area-list-item:focus-visible { color: var(--color-text-brand); padding-inline-start: var(--spacing-md); }
.area-list-item.is-active .icon, .area-list-item:hover .icon, .area-list-item:focus-visible .icon { opacity: 1; transform: none; }
.area-list-media { position: sticky; top: 120px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.area-list-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 500ms ease, transform 700ms ease; }
.area-list-media img.is-active { opacity: 1; transform: none; }
.area-list-media img:first-child { opacity: 1; transform: none; }
.area-list.has-js .area-list-media img:first-child:not(.is-active) { opacity: 0; transform: scale(1.06); }
[dir="rtl"] .area-list-item .icon { transform: scaleX(-1) translateX(-8px); }
[dir="rtl"] .area-list-item.is-active .icon, [dir="rtl"] .area-list-item:hover .icon { transform: scaleX(-1); }
@media (max-width: 991.98px) { .area-list { grid-template-columns: 1fr; } .area-list-media { display: none; } }
@media (prefers-reduced-motion: reduce) { .area-list-item, .area-list-item .icon, .area-list-media img { transition: none; } }

/* ==========================================================================
   MASONRY · cards of different heights in balanced columns (CSS columns)
   <div class="masonry"> any cards </div>   3 columns, 2 on tablet, 1 on phone
   ========================================================================== */
.masonry { column-count: 3; column-gap: var(--spacing-lg); }
.masonry > * { display: block; margin-bottom: var(--spacing-lg); break-inside: avoid; }
.masonry > .testimonial-card { height: auto; }
@media (max-width: 991.98px) { .masonry { column-count: 2; } }
@media (max-width: 575.98px) { .masonry { column-count: 1; } }

/* ==========================================================================
   CTA GIANT · one huge sentence and two buttons on a rounded brand panel
   ========================================================================== */
.cta-giant { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 8vw, 104px) var(--spacing-xl); border-radius: var(--radius-xl); background: var(--color-bg-primary); color: var(--color-text-inverse); text-align: center; }
.cta-giant::before, .cta-giant::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta-giant::before { width: 420px; height: 420px; inset-inline-start: -140px; top: -180px; background: rgba(255, 255, 255, 0.07); }
.cta-giant::after { width: 300px; height: 300px; inset-inline-end: -90px; bottom: -150px; background: rgba(var(--brass-500-rgb), 0.35); }
.cta-giant-title { max-width: 14ch; margin: 0 auto var(--spacing-xl); font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; color: inherit; }
.cta-giant-title em { font-style: italic; color: var(--brass-500); }
.cta-giant-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-md); }

/* Photo version: add class cta-giant--photo and an <img class="cta-giant-bg"> as the first child. */
.cta-giant--photo { background: var(--green-950); }
.cta-giant-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.cta-giant--photo::before { inset: 0; width: auto; height: auto; border-radius: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 42, 35, 0.82) 0%, rgba(15, 42, 35, 0.55) 55%, rgba(15, 42, 35, 0.25) 100%); }
.cta-giant--photo::after { display: none; }
.cta-giant-bg[data-parallax] { top: -45%; bottom: auto; height: 190%; }

/* ==========================================================================
   HERO BUSINESS · dark brand hero with a consultation form card
   .hero-business > .container > .hero-business-grid > (copy + .lead-card)
   ========================================================================== */
.hero-business { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--spacing-3xl) 128px; background: var(--green-950); color: var(--white); }
.hero-business > img { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-business > img[data-parallax] { top: -25%; bottom: auto; height: 150%; }
.hero-business::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--green-overlay-rgb), 0.84) 0%, rgba(var(--green-overlay-rgb), 0.52) 60%, rgba(var(--green-overlay-rgb), 0.2) 100%); }
[dir="rtl"] .hero-business::before { background: linear-gradient(270deg, rgba(var(--green-overlay-rgb), 0.84) 0%, rgba(var(--green-overlay-rgb), 0.52) 60%, rgba(var(--green-overlay-rgb), 0.2) 100%); }
.hero-business-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: var(--spacing-3xl); }
.hero-business-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--spacing-md); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-500); }
.hero-business-eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero-business-title { margin: 0 0 var(--spacing-lg); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--white); }
.hero-business-title em { font-style: normal; color: var(--brass-500); }
.hero-business-lead { max-width: 52ch; margin: 0 0 var(--spacing-xl); font-size: 1.125rem; color: rgba(247, 246, 240, 0.85); }
.hero-business-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }
.hero-business-trust { display: flex; flex-wrap: wrap; gap: var(--spacing-sm) var(--spacing-xl); margin: var(--spacing-xl) 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: rgba(247, 246, 240, 0.85); }
.hero-business-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-business-trust .icon { width: 18px; height: 18px; vertical-align: 0; color: var(--brass-500); }
/* the form card */
.lead-card { padding: var(--spacing-xl); border-radius: var(--radius-xl); background: var(--color-bg-card); color: var(--color-text-primary); box-shadow: var(--shadow-lg); }
.lead-card h2 { margin: 0 0 4px; font-size: 1.5rem; color: var(--color-text-brand); }
.lead-card > p { margin: 0 0 var(--spacing-lg); font-size: 0.9375rem; color: var(--color-text-secondary); }
.lead-card form { display: grid; gap: var(--spacing-sm); }
.lead-card .btn { margin-top: var(--spacing-xs); }
.lead-card small { display: block; margin-top: var(--spacing-sm); font-size: 0.8125rem; text-align: center; color: var(--color-text-secondary); }
@media (max-width: 991.98px) { .hero-business { padding-block: var(--spacing-2xl) 112px; } .hero-business-grid { grid-template-columns: 1fr; gap: var(--spacing-2xl); } .hero-business::before { background: rgba(var(--green-overlay-rgb), 0.7); } }

/* ==========================================================================
   HERO VIDEO · full-screen looping background video with a poster image
   <div class="hero hero--photo hero--video"> + .hero-bg > video[poster] + button[data-video-toggle]
   The poster image is also the CSS background, so it shows until the video plays,
   and stays when the visitor pauses it or prefers reduced motion.
   ========================================================================== */
.hero--video { min-height: min(100svh, 920px); display: flex; align-items: center; }
.hero--video .hero-bg { background-color: var(--green-900); background-position: center; background-size: cover; background-repeat: no-repeat; } /* background-image is set inline on the element */
.hero--video .hero-bg video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.hero--video.is-video-ready .hero-bg video { opacity: 1; }
.hero--video .hero-content { padding-block: 176px 160px; }
.hero-video-toggle { position: absolute; inset-inline-end: max(var(--spacing-lg), calc((100% - 1320px) / 2 + 12px)); bottom: 120px; z-index: 3; display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-full); background: rgba(var(--green-overlay-rgb), 0.5); backdrop-filter: blur(8px); color: var(--white); font-size: 0.8125rem; font-weight: 600; line-height: 1; cursor: pointer; }
.hero-video-toggle:hover { background: rgba(var(--green-overlay-rgb), 0.7); }
.hero-video-toggle .icon { width: 16px; height: 16px; flex: none; vertical-align: 0; }
.hero-video-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-video-toggle .is-play { display: none; }
.hero-video-toggle[aria-pressed="true"] .is-play { display: inline-flex; }
.hero-video-toggle[aria-pressed="true"] .is-pause { display: none; }
/* the search card sits over the bottom of the hero */
.hero--video + .hero-search { margin-top: -88px; position: relative; z-index: 4; }
/* how it works */
.video-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-lg); margin: 0; padding: 0; list-style: none; counter-reset: vstep; }
.video-step { position: relative; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); counter-increment: vstep; }
.video-step::before { content: "0" counter(vstep); display: block; margin-bottom: var(--spacing-md); font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; color: var(--brass-500); }
.video-step h3 { margin: 0 0 var(--spacing-xs); font-size: 1.125rem; }
.video-step p { margin: 0; font-size: 0.9375rem; color: var(--color-text-secondary); }
.video-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; inset-inline-start: 100%; width: var(--spacing-lg); height: 2px; background: var(--brass-400); }
/* tour split with a play badge */
.tour-media { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.tour-media { background-color: var(--green-900); background-position: center; background-size: cover; }
.tour-media img, .tour-media video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tour-media video { opacity: 0; transition: opacity 0.9s ease; }
.tour-media.is-video-ready video { opacity: 1; }
.tour-media-badge { position: absolute; inset-inline-start: var(--spacing-md); bottom: var(--spacing-md); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--radius-full); background: rgba(var(--green-overlay-rgb), 0.62); backdrop-filter: blur(8px); color: var(--white); font-size: 0.875rem; font-weight: 600; }
.tour-media-badge .icon-badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brass-400); color: var(--green-950); }
.tour-media-badge .icon { width: 16px; height: 16px; vertical-align: 0; }
.tour-list { display: grid; gap: var(--spacing-md); margin: 0 0 var(--spacing-xl); padding: 0; list-style: none; }
.tour-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--spacing-md); align-items: start; }
.tour-list .icon-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-bg-surface, var(--surface-100)); color: var(--color-text-brand); }
.tour-list strong { display: block; }
.tour-list span.d { font-size: 0.9375rem; color: var(--color-text-secondary); }
@media (max-width: 991.98px) { .video-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .video-step::after { display: none; } .hero--video .hero-content { padding-block: 140px 128px; } }
@media (max-width: 575.98px) { .video-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hero--video .hero-bg video { transition: none; } }

/* ==========================================================================
   STAT BAR · a row of big numbers on a card. Overlaps the section above when
   it follows a hero: .hero-business + .stat-bar-wrap
   ========================================================================== */
.stat-bar-wrap { position: relative; z-index: 2; margin-top: -64px; }
.stat-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: var(--spacing-lg) 0; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); box-shadow: var(--shadow-lg); }
.stat-bar-item { padding: var(--spacing-md) var(--spacing-xl); text-align: center; }
.stat-bar-item + .stat-bar-item { border-inline-start: 1px solid var(--color-border-subtle); }
.stat-bar-item strong { display: block; font-family: var(--font-heading); font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.1; color: var(--color-text-brand); unicode-bidi: isolate; direction: ltr; }
.stat-bar-item span { font-size: 0.875rem; color: var(--color-text-secondary); }
@media (max-width: 767.98px) { .stat-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-bar-item:nth-child(3) { border-inline-start: 0; } .stat-bar-item:nth-child(n+3) { border-top: 1px solid var(--color-border-subtle); } }

/* ==========================================================================
   VERTICAL TABS · list of topics on the side, details on the other
   Bootstrap tab markup: .vtabs > .vtabs-nav (.nav.flex-column) + .tab-content
   ========================================================================== */
.vtabs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--spacing-xl); align-items: start; }
.vtabs-nav { display: grid; gap: var(--spacing-xs); }
.vtabs-nav .nav-link { display: flex; align-items: center; gap: var(--spacing-md); width: 100%; padding: var(--spacing-md) var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); text-align: start; color: var(--color-text-primary); transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast); }
.vtabs-nav .nav-link:hover { border-color: var(--color-border-strong); }
.vtabs-nav .nav-link.active { border-color: var(--color-border-brand); background: var(--color-bg-surface); box-shadow: inset 4px 0 0 var(--color-border-brand); color: var(--color-text-brand); }
[dir="rtl"] .vtabs-nav .nav-link.active { box-shadow: inset -4px 0 0 var(--color-border-brand); }
.vtabs-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-bg-surface); color: var(--color-text-brand); }
.vtabs-nav .nav-link.active .vtabs-icon { background: var(--color-bg-primary); color: var(--color-text-inverse); }
.vtabs-icon .icon { width: 22px; height: 22px; vertical-align: 0; }
.vtabs-nav strong { display: block; font-size: 1.0625rem; }
.vtabs-nav small { display: block; font-size: 0.8125rem; color: var(--color-text-secondary); }
.vtabs-panel { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); }
.vtabs-panel > img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--color-bg-surface); }
.vtabs-body { padding: var(--spacing-xl); }
.vtabs-body h3 { margin: 0 0 var(--spacing-sm); font-size: 1.75rem; color: var(--color-text-brand); }
.vtabs-body p { color: var(--color-text-secondary); }
.vtabs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-xs) var(--spacing-lg); margin: var(--spacing-lg) 0; padding: 0; list-style: none; }
.vtabs-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9375rem; }
.vtabs-list .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; vertical-align: 0; color: var(--color-text-success); }
@media (max-width: 991.98px) { .vtabs { grid-template-columns: 1fr; } .vtabs-nav { grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; padding-bottom: var(--spacing-xs); } }
@media (max-width: 575.98px) { .vtabs-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   HORIZONTAL TABS · a row of tabs on top, the selected panel underneath
   Bootstrap tab markup: .htabs > .htabs-nav (.nav) + .tab-content > .htabs-panel
   Variants: default (underline), .htabs--pills (segmented bar), .htabs--center
   ========================================================================== */
.htabs-nav { display: flex; flex-wrap: nowrap; gap: var(--spacing-xs); overflow-x: auto; border-bottom: 1px solid var(--color-border-subtle); scrollbar-width: none; }
.htabs-nav::-webkit-scrollbar { display: none; }
.htabs-nav .nav-link { position: relative; display: inline-flex; align-items: center; gap: 10px; flex: none; padding: var(--spacing-md) var(--spacing-lg); border: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; background: transparent; font-weight: 600; white-space: nowrap; color: var(--color-text-secondary); transition: color 160ms ease, background-color 160ms ease; }
.htabs-nav .nav-link::after { content: ""; position: absolute; inset-inline: var(--spacing-lg); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-border-brand); transform: scaleX(0); transform-origin: center; transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.htabs-nav .nav-link:hover { color: var(--color-text-primary); background: var(--color-bg-surface); }
.htabs-nav .nav-link.active { color: var(--color-text-brand); background: transparent; }
.htabs-nav .nav-link.active::after { transform: scaleX(1); }
.htabs-nav .icon { width: 20px; height: 20px; vertical-align: 0; }
.htabs-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--color-bg-surface); font-size: 0.75rem; font-weight: 700; color: var(--color-text-secondary); }
.htabs-nav .nav-link.active .htabs-count { background: var(--color-bg-primary); color: var(--color-text-inverse); }
.htabs-panels { padding-top: var(--spacing-xl); }
.htabs-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--spacing-xl); align-items: center; }
.htabs-panel > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.htabs-body .eyebrow { margin-bottom: var(--spacing-xs); }
.htabs-body h3 { margin: 0 0 var(--spacing-sm); font-size: 1.75rem; color: var(--color-text-brand); }
.htabs-body p { color: var(--color-text-secondary); }
.htabs-list { display: grid; gap: var(--spacing-xs); margin: var(--spacing-lg) 0; padding: 0; list-style: none; }
.htabs-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9375rem; }
.htabs-list .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; vertical-align: 0; color: var(--color-text-success); }
.htabs .tab-pane.active .htabs-panel > * { animation: htabs-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.htabs .tab-pane.active .htabs-panel > :nth-child(2) { animation-delay: 90ms; }
/* Vertical tabs: the same entrance when a panel is shown */
.vtabs .tab-pane.active .vtabs-panel > * { animation: htabs-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.vtabs .tab-pane.active .vtabs-panel > :nth-child(2) { animation-delay: 90ms; }
@keyframes htabs-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .htabs .tab-pane.active .htabs-panel > *, .vtabs .tab-pane.active .vtabs-panel > * { animation: none; } .htabs-nav .nav-link::after { transition: none; } }

/* Segmented bar: tabs sit in a rounded track, the active one is filled */
.htabs--pills .htabs-nav { display: inline-flex; max-width: 100%; gap: 4px; padding: 6px; border: 1px solid var(--color-border-subtle); border-radius: 999px; background: var(--color-bg-surface); }
.htabs--pills .htabs-nav .nav-link { padding: 10px var(--spacing-lg); border-radius: 999px; }
.htabs--pills .htabs-nav .nav-link::after { display: none; }
.htabs--pills .htabs-nav .nav-link:hover { background: var(--color-bg-card); }
.htabs--pills .htabs-nav .nav-link.active { background: var(--color-bg-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.htabs--pills .htabs-nav .nav-link.active .htabs-count { background: rgba(255, 255, 255, 0.2); color: var(--color-text-inverse); }

/* Centered tab row */
.htabs--center { text-align: center; }
.htabs--center .htabs-nav { justify-content: center; }
.htabs--center.htabs--pills .htabs-nav { display: inline-flex; }
.htabs--center .htabs-panel { text-align: start; }

@media (max-width: 767.98px) { .htabs-panel { grid-template-columns: 1fr; gap: var(--spacing-lg); } .htabs--center .htabs-nav { justify-content: flex-start; } }

/* ==========================================================================
   CASE CARD · a finished project: picture, sector tag, two result numbers
   ========================================================================== */
.case-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); transition: box-shadow var(--transition-fast), transform 300ms ease; }
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-card-media { position: relative; overflow: hidden; background: var(--color-bg-surface); }
.case-card-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 500ms ease; }
.case-card:hover .case-card-media img { transform: scale(1.05); }
.case-card-media .badge { position: absolute; top: var(--spacing-sm); inset-inline-start: var(--spacing-sm); }
.case-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--spacing-lg); }
.case-card-title { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.case-card-title a { color: var(--color-text-brand); text-decoration: none; }
.case-card-place { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--spacing-md); font-size: 0.875rem; color: var(--color-text-secondary); }
.case-card-place .icon { width: 16px; height: 16px; vertical-align: 0; }
.case-card-results { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); margin: 0 0 var(--spacing-md); padding: var(--spacing-md) 0; border-block: 1px solid var(--color-border-subtle); }
.case-card-results div { display: flex; flex-direction: column; }
.case-card-results dd { order: -1; margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-text-brand); unicode-bidi: isolate; direction: ltr; text-align: start; }
.case-card-results dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); }
.case-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 0.9375rem; font-weight: 700; color: var(--color-text-link); text-decoration: none; }
.case-card-more::after { content: ""; position: absolute; inset: 0; }
.case-card-more .icon { width: 16px; height: 16px; vertical-align: 0; }
@media (prefers-reduced-motion: reduce) { .case-card, .case-card-media img { transition: none; } }

/* ==========================================================================
   TEAM CARD · square photo, name, role, social links
   ========================================================================== */
.team-card { text-align: start; }
.team-card-photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-surface); }
.team-card-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(0.6); transition: filter 400ms ease, transform 500ms ease; }
.team-card:hover .team-card-photo img { filter: none; transform: scale(1.04); }
.team-card-name { margin: var(--spacing-md) 0 2px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-text-brand); }
.team-card-role { margin: 0; font-size: 0.9375rem; color: var(--color-text-secondary); }
.team-card-social { display: flex; gap: var(--spacing-xs); margin: var(--spacing-sm) 0 0; padding: 0; list-style: none; }
.team-card-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--color-border-default); border-radius: 50%; color: var(--color-text-brand); transition: background-color var(--transition-fast); }
.team-card-social a:hover { background: var(--color-bg-surface); }
.team-card-social .icon { width: 16px; height: 16px; vertical-align: 0; }
@media (prefers-reduced-motion: reduce) { .team-card-photo img { transition: none; } }

.team-card-social { padding-left: 0 !important; padding-inline-start: 0 !important; }

/* ==========================================================================
   REPORT ROW · a downloadable document line: icon, title, details, button
   ========================================================================== */
.report-list { display: grid; gap: var(--spacing-sm); margin: 0; padding: 0; list-style: none; }
.report-row { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.report-row:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.report-row-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-bg-accent-subtle); color: var(--brass-500); }
.report-row-icon .icon { width: 24px; height: 24px; vertical-align: 0; }
.report-row-body { flex: 1; min-width: 0; }
.report-row-title { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--color-text-brand); }
.report-row-meta { display: flex; flex-wrap: wrap; gap: 2px var(--spacing-md); margin: 2px 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--color-text-secondary); }
@media (max-width: 575.98px) { .report-row { flex-wrap: wrap; } .report-row .btn { width: 100%; } }

.report-row-meta { padding-left: 0 !important; padding-inline-start: 0 !important; }

/* ==========================================================================
   RTL · right-to-left support (Arabic, Hebrew, Persian, Urdu).
   Turn it on from ONE place: <html lang="ar" dir="rtl"> and load
   bootstrap.rtl.min.css instead of bootstrap.min.css. Nothing else changes.
   Everything below only applies when dir="rtl", so left-to-right pages are untouched.
   ========================================================================== */
html[dir="rtl"] {
  --font-heading: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
[dir="rtl"] body { text-align: right; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .eyebrow, [dir="rtl"] .agent-card-stats li, [dir="rtl"] .agency-card-stats li { letter-spacing: 0; }

/* Maps, phone numbers and emails keep their natural left-to-right shape */
[dir="rtl"] .map-view, [dir="rtl"] .map-hero .map-view { direction: ltr; }
[dir="rtl"] .map-popup, [dir="rtl"] .map-hero-panel, [dir="rtl"] .map-hero-bar, [dir="rtl"] .map-notice { direction: rtl; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { unicode-bidi: plaintext; }

/* Arrows and chevrons that point sideways turn around */
[dir="rtl"] svg.icon:has(use[href$="#i-arrow-right"]),
[dir="rtl"] svg.icon:has(use[href$="#i-arrow-left"]),
[dir="rtl"] svg.icon:has(use[href$="#i-chevron-right"]),
[dir="rtl"] svg.icon:has(use[href$="#i-chevron-left"]),
[dir="rtl"] svg.icon:has(use[href$="#i-quote"]) { scale: -1 1; }
[dir="rtl"] .blog-card:hover .blog-card-more .icon { transform: translateX(-4px); }

/* Corner positions */
[dir="rtl"] .property-card-badges, [dir="rtl"] .blog-card-media .badge, [dir="rtl"] .agent-card-photo .badge,
[dir="rtl"] .agency-card-cover .badge, [dir="rtl"] .location-card .badge, [dir="rtl"] .map-popup-media .badge { left: auto; right: var(--spacing-sm); }
[dir="rtl"] .location-card .badge { right: var(--spacing-md); }
[dir="rtl"] .property-card-actions { right: auto; left: var(--spacing-sm); }
[dir="rtl"] .property-card-photos, [dir="rtl"] .property-card-media > .property-card-photos { left: auto; right: var(--spacing-sm); }
[dir="rtl"] .gallery-more { right: auto; left: var(--spacing-md); }
[dir="rtl"] .about-badge { right: auto; left: -16px; }
[dir="rtl"] .cta-banner::before { right: auto; left: -80px; }
[dir="rtl"] .cta-banner::after { right: auto; left: 120px; }
[dir="rtl"] .hero-float.is-top { left: auto; right: -32px; }
[dir="rtl"] .hero-float.is-bottom { right: auto; left: -24px; }
[dir="rtl"] .back-to-top { right: auto; left: 24px; }
[dir="rtl"] .agency-card--featured .agency-card-logo { left: auto; right: var(--spacing-lg); }
[dir="rtl"] .agency-card-logo { margin: -32px var(--spacing-lg) 0 0; }
[dir="rtl"] .agency-card--featured .agency-card-logo { margin: 0; }
[dir="rtl"] .widget-title::after { left: auto; right: 0; }
[dir="rtl"] .map-steps li::after { left: auto; right: 21px; }
[dir="rtl"] .password-field button { right: auto; left: 4px; }
[dir="rtl"] .password-field .form-control { padding-right: var(--spacing-md); padding-left: 52px; }
[dir="rtl"] .avatar-status::after { right: auto; left: 0; }
[dir="rtl"] .visually-hidden-focusable:focus { left: auto; right: 8px; }

/* Spacing */
[dir="rtl"] .avatar-group > .avatar + .avatar { margin-left: 0; margin-right: -10px; }
[dir="rtl"] .compare-best::after { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .comment time { margin-left: 0; margin-right: var(--spacing-sm); }
[dir="rtl"] .article-head .avatar { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .progress-value em { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .progress-value, [dir="rtl"] .detail-price, [dir="rtl"] .spec-table dd, [dir="rtl"] .review-list dd { text-align: left; }
[dir="rtl"] .dash-menu .badge, [dir="rtl"] .location-card--row .location-card-arrow, [dir="rtl"] body .alert .btn-close { margin-left: 0; margin-right: auto; }
[dir="rtl"] .article ul, [dir="rtl"] .article ol { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .mobile-submenu { padding: 0 var(--spacing-md) 0 0; border-left: 0; border-right: 2px solid var(--color-border-default); }
[dir="rtl"] .mobile-menu button { text-align: right; }
[dir="rtl"] .article blockquote { border-left: 0; border-right: 4px solid var(--color-bg-accent); border-radius: var(--radius-md) 0 0 var(--radius-md); }
[dir="rtl"] body .toast.toast-success, [dir="rtl"] body .toast.toast-danger, [dir="rtl"] body .toast.toast-warning { border-left-color: transparent; }
[dir="rtl"] body .toast.toast-success { border-right-color: var(--green-500); }
[dir="rtl"] body .toast.toast-danger { border-right-color: var(--red-600); }
[dir="rtl"] body .toast.toast-warning { border-right-color: var(--brass-500); }
[dir="rtl"] .property-specs--bar li { border-left: 0; border-right: 1px solid var(--color-border-default); }
[dir="rtl"] .property-specs--bar li:first-child { padding-left: var(--spacing-xs); padding-right: 0; border-right: 0; }
[dir="rtl"] .category-grid--row .category-card, [dir="rtl"] .testimonial-feature .testimonial-author { text-align: right; }
[dir="rtl"] .stepper li::after { left: -8px; right: 44px; }
[dir="rtl"] .compare-table th[scope="row"] { left: auto; right: 0; }

/* Form fields */
[dir="rtl"] body .form-select { padding-right: var(--spacing-md); padding-left: 44px; background-position: left 14px center; }
[dir="rtl"] body .form-select-sm { padding-right: var(--spacing-sm); padding-left: 40px; background-position: left 12px center; }
[dir="rtl"] body .form-select.is-invalid, [dir="rtl"] body .form-select.is-valid { padding-right: var(--spacing-md); padding-left: 44px; }
[dir="rtl"] .input-icon > .icon { left: auto; right: var(--spacing-md); }
[dir="rtl"] .input-icon > .form-control { padding-left: var(--spacing-md); padding-right: 46px; }
[dir="rtl"] .input-icon > .icon-end { right: auto; left: var(--spacing-md); }
[dir="rtl"] .input-icon > .icon-end ~ .form-control { padding-right: var(--spacing-md); padding-left: 46px; }
[dir="rtl"] body .form-check { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] body .form-check .form-check-input { margin-left: 0; margin-right: -2rem; float: right; }
[dir="rtl"] body .form-switch { padding-left: 0; padding-right: 3.5rem; }
[dir="rtl"] body .form-switch .form-check-input { margin-left: 0; margin-right: -3.5rem; background-position: right center; }
[dir="rtl"] body .form-switch .form-check-input:checked, [dir="rtl"] body .form-switch .form-check-input:checked:focus { background-position: left center; }
[dir="rtl"] body .form-control[type="file"]::file-selector-button { margin: 0 0 0 var(--spacing-md); border-right: 0; border-left: 1px solid var(--color-border-default); }

/* Language switch (see components/lang-switch.html) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: var(--size-control-md, 44px); padding: 0 14px; border: 1px solid var(--color-border-default); border-radius: var(--radius-full); background: var(--color-bg-card); color: var(--color-text-brand); font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: background-color var(--transition-fast); }
.lang-switch:hover { background: var(--color-bg-surface); color: var(--color-text-brand); }
.lang-switch .icon { width: 18px; height: 18px; vertical-align: 0; }
/* Dropdown variation: the same pill is the toggle of a Bootstrap dropdown (components/lang-switch.html) */
button.lang-switch { cursor: pointer; }
.lang-switch.dropdown-toggle::after { display: none; }
.lang-switch .lang-caret { width: 16px; height: 16px; margin-inline-start: 2px; transition: transform var(--transition-fast); }
.lang-switch[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-dropdown .dropdown-menu { --bs-dropdown-min-width: 200px; }
.lang-dropdown .dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.lang-dropdown .dropdown-item .icon { flex-shrink: 0; width: 18px; height: 18px; vertical-align: 0; }
.lang-dropdown .dropdown-item[aria-current="true"] { background: var(--color-bg-surface); color: var(--color-text-brand); font-weight: 700; }

/* Numbers with + or % keep their sign on the correct side */
[dir="rtl"] [data-count], [dir="rtl"] .hero-stats strong, [dir="rtl"] .about-badge strong, [dir="rtl"] .stat-card strong, [dir="rtl"] .property-card-price { unicode-bidi: isolate; direction: ltr; text-align: right; }
[dir="rtl"] .stats .stat-value { text-align: center; }

/* Icon-only dropdown toggle */
.lang-switch--icon, body .site-actions .lang-switch--icon { width: var(--size-control-md, 44px); padding: 0; gap: 0; justify-content: center; font-size: 0; }
.lang-switch--icon .icon { width: 20px; height: 20px; }

/* Header language dropdown: opens flush under the header, same animation as the menu dropdowns */
.site-actions .lang-dropdown .dropdown-menu { margin-top: 8px; }
@media (min-width: 992px) {
  .site-actions { align-self: stretch; }
  .site-actions .lang-dropdown { align-self: stretch; display: flex; align-items: center; --bs-dropdown-spacer: 0px; }
  .site-actions .lang-dropdown .dropdown-menu { margin-top: 0; }
  .site-actions .lang-dropdown .dropdown-menu.show { animation: mega-in .22s ease-out both; }
}
@media (prefers-reduced-motion: reduce) { .site-actions .lang-dropdown .dropdown-menu.show { animation: none; } }
[dir="rtl"] body .dropdown-submenu > .dropdown-menu { left: auto; right: 100%; margin: 0 2px 0 0; }
[dir="rtl"] body .dropdown-submenu > .dropdown-menu.flip { right: auto; left: 100%; margin: 0 0 0 2px; }
[dir="rtl"] .dropdown-submenu > .submenu-toggle .icon { transform: scaleX(-1); }

/* ==========================================================================
   DARK MODE · switch it from ONE place: <html data-theme="dark">.
   Only the semantic tokens change (see tokens.css), so every component
   follows. Use data-theme="light" (or leave it out) for the light version.
   The primary and accent colors stay editable: they come from the
   --green-* and --brass-* scales, which the customizer or you can change.
   ========================================================================== */
html[data-theme="dark"],
html.has-adaptive [data-adaptive="brand"],
html.has-adaptive [data-adaptive="dark"] {
  color-scheme: dark;

  --color-bg-page: #0F1512;
  --color-bg-card: #17201C;
  --color-bg-surface: #1F2B26;
  --color-bg-surface-hover: #283630;
  --color-bg-surface-pressed: #324139;
  --color-bg-subtle: #131B17;
  --color-bg-inverse: #0A0F0D;
  --color-bg-primary: var(--green-600);
  --color-bg-primary-hover: var(--green-500);
  --color-bg-primary-pressed: var(--green-700);
  --color-bg-accent-subtle: rgba(var(--brass-500-rgb), 0.16);
  --color-bg-disabled: #222D28;
  --color-bg-success-subtle: #1B3A2E;
  --color-bg-danger-subtle: #3C1F1B;
  --color-bg-info-subtle: #1A2C3A;
  --color-bg-header-scrolled: rgba(15, 21, 18, 0.94);
  --color-bg-sold: #3A4A43;
  --color-bg-media: #E9ECE7;

  --color-text-primary: #ECEFEA;
  --color-text-secondary: #A5B0AA;
  --color-text-disabled: #66726C;
  --color-text-inverse: #F7F6F0;
  --color-text-brand: var(--green-200);
  --color-text-link: var(--green-300);
  --color-text-accent: var(--brass-300);
  --color-text-danger: #EA8777;
  --color-text-success: var(--green-300);
  --color-text-info: #84B6DB;

  --color-border-default: #2F3E37;
  --color-border-subtle: #25312C;
  --color-border-strong: #4B5B54;
  --color-border-brand: var(--green-300);
  --color-border-focus: var(--green-300);
  --color-border-danger: #EA8777;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
  --focus-ring: 0 0 0 3px rgba(159, 196, 180, 0.4);

  /* Bootstrap variables that the theme does not set itself */
  --bs-body-bg: var(--color-bg-page);
  --bs-body-color: var(--color-text-primary);
  --bs-secondary-color: var(--color-text-secondary);
  --bs-emphasis-color: var(--color-text-primary);
  --bs-border-color: var(--color-border-default);
  --bs-border-color-translucent: var(--color-border-subtle);
  --bs-tertiary-bg: var(--color-bg-subtle);
  --bs-secondary-bg: var(--color-bg-surface);
  --bs-link-color: var(--color-text-link);
  --bs-link-hover-color: var(--green-200);
}

/* Things that use raw colors */
html[data-theme="dark"] .site-header { background: var(--color-bg-page); }
html[data-theme="dark"] .site-header.is-dark { background: var(--color-bg-inverse); }
html[data-theme="dark"] .site-header.is-transparent:not(.is-scrolled) { background: transparent; } /* transparent header over a hero stays transparent in dark mode; it only turns dark once it sticks */
html[data-theme="dark"] body .btn-primary { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }
html[data-theme="dark"] body .btn-outline-primary { --bs-btn-color: var(--green-200); --bs-btn-border-color: var(--green-300); --bs-btn-hover-color: var(--color-bg-page); --bs-btn-hover-bg: var(--green-200); --bs-btn-hover-border-color: var(--green-200); --bs-btn-active-color: #0F1512; --bs-btn-active-bg: var(--green-200); --bs-btn-active-border-color: var(--green-200); }
html[data-theme="dark"] .site-footer { background: var(--color-bg-inverse); }
html[data-theme="dark"] body .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html[data-theme="dark"] body .alert-success { --bs-alert-color: var(--green-200); --bs-alert-border-color: #2E5C49; }
html[data-theme="dark"] body .alert-danger { --bs-alert-color: #F2B4A9; --bs-alert-border-color: #6B3A33; }
html[data-theme="dark"] body .alert-info { --bs-alert-color: #B5D5EB; --bs-alert-border-color: #2F4F66; }
html[data-theme="dark"] body .alert-warning { --bs-alert-color: var(--brass-300); --bs-alert-border-color: #6E5426; }
html[data-theme="dark"] body .badge-sold { background-color: var(--color-bg-sold); }
html[data-theme="dark"] .btn-overlay, html[data-theme="dark"] body .btn-overlay.btn-favorite { --bs-btn-bg: color-mix(in srgb, var(--color-bg-card) 90%, transparent); --bs-btn-color: var(--green-200); --bs-btn-hover-bg: #17201C; --bs-btn-hover-color: var(--green-100); }
html[data-theme="dark"] body .btn-overlay.btn-favorite[aria-pressed="true"] { --bs-btn-bg: var(--color-bg-card); --bs-btn-color: #EA8777; }
html[data-theme="dark"] .map-view, html[data-theme="dark"] .map-view--demo { filter: brightness(0.82) contrast(1.05); }
html[data-theme="dark"] .about-badge, html[data-theme="dark"] .hero-float { color: var(--color-text-on-accent); }
html[data-theme="dark"] img.avatar-img, html[data-theme="dark"] .avatar img { opacity: 0.92; }
html[data-theme="dark"] .map-box img { filter: brightness(0.72) contrast(1.05); }
html[data-theme="dark"] .map-box-frame { filter: invert(0.92) hue-rotate(180deg) brightness(0.85) contrast(0.95); }

/* ==========================================================================
   THEME OPTIONS · set on <html>, each one is a single attribute:
     data-theme="light | dark"        color mode (see dark.css)
     data-layout="full | boxed"       page width
     data-header="sticky | static"    header behavior
     data-radius="sharp | default | round"   corner size
   The primary and accent colors are the --green-* and --brass-* scales.
   ========================================================================== */

/* Boxed layout: the page sits in a centered column */
html[data-layout="boxed"] { background: var(--color-bg-surface); }
html[data-layout="boxed"] body { position: relative; max-width: 1360px; margin-inline: auto; background: var(--color-bg-page); box-shadow: 0 0 0 1px var(--color-border-subtle), 0 0 64px rgba(0, 0, 0, 0.12); }
html[data-layout="boxed"] .site-header.is-transparent[data-sticky] { left: 50%; right: auto; width: min(100%, 1360px); transform: translateX(-50%); }

/* Header: sticky by default. "static" scrolls away with the page */
html[data-header="static"] .site-header[data-sticky] { position: relative; }
html[data-header="static"] .site-header[data-sticky].is-scrolled { box-shadow: none; backdrop-filter: none; background: var(--color-bg-page); }
html[data-header="static"] .site-header.is-transparent[data-sticky] { position: absolute; }
html[data-header="static"] .site-header.is-transparent[data-sticky].is-scrolled { background: transparent; }

/* Corner size */
html[data-radius="sharp"] { --radius-sm: 0; --radius-md: 0; --radius-lg: 0; --radius-xl: 0; --bs-border-radius: 0; --bs-border-radius-sm: 0; --bs-border-radius-lg: 0; --bs-border-radius-xl: 0; --bs-border-radius-xxl: 0; --bs-border-radius-pill: 0; }
/* Sharp means square everywhere: pills, circles, photos, badges and slider handles too */
html[data-radius="sharp"] *,
html[data-radius="sharp"] *::before,
html[data-radius="sharp"] *::after { border-radius: 0 !important; }
/* Avatars stay round in every corner setting (use .avatar-square for a square one) */
html[data-radius="sharp"] .avatar:not(.avatar-square),
html[data-radius="sharp"] .avatar:not(.avatar-square) > img,
html[data-radius="sharp"] .avatar-status::after,
html[data-radius="sharp"] .hero-chip .icon-badge,
html[data-radius="sharp"] .hero-modern-pill i,
html[data-radius="sharp"] .hero-modern-pill i::after,
html[data-radius="sharp"] .cursor-dot,
html[data-radius="sharp"] .cursor-ring { border-radius: 50% !important; }
html[data-radius="sharp"] input::-webkit-slider-thumb { border-radius: 0 !important; }
html[data-radius="sharp"] input::-moz-range-thumb { border-radius: 0 !important; }
html[data-radius="round"] { --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px; }
/* Round corners: buttons, badges and the header menu links become full pills */
html[data-radius="round"] .btn { --bs-btn-border-radius: 999px; border-radius: 999px; }
html[data-radius="round"] :is(.site-menu > li > a, .site-menu > li > .dropdown-toggle) { border-radius: 999px; }
/* Round corners: single-line fields, selects, pagination, pill tabs and progress bars become pills.
   Text areas keep a soft rounded rectangle (a pill would cut into the text). */
html[data-radius="round"] :is(.form-control:not(textarea), .form-select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], input[type="time"], .input-group-text, .page-link, .nav-pills .nav-link, .progress, .progress-bar, .newsletter-form .input-group) { border-radius: 999px; }
/* Round corners: square icon tiles become circles */
html[data-radius="round"] :is(.feature-icon, .report-row-icon, .newsletter-icon, .empty-state-icon, .mega-tab-icon, .mega-link-icon, .spec-icon, .modal-icon, .vtabs-icon, .tour-list .icon-badge) { border-radius: 50%; }
/* Round corners: every search input becomes a full pill */
html[data-radius="round"] :is(input[type="search"], .search-bar, .search-bar input, .mega-search input, .search-card .form-control, .search-card .form-select) { border-radius: 999px; }
html[data-radius="round"] :is(.badge, .tag, .compare-tag, .hero-slide-tag, .sw-hero-tag, .mega-promo-badge, .sp-step-tag, .property-card-badges > *) { border-radius: 999px; }

/* ==========================================================================
   CUSTOMIZER · preview drawer (assets/js/customizer.js builds it).
   For demos only. Remove the script tag to remove it from a real site.
   ========================================================================== */
.cz-toggle { position: fixed; z-index: 1040; top: 50%; right: 0; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--color-border-default); border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--color-bg-primary); color: var(--white); box-shadow: var(--shadow-md); cursor: pointer; transform: translateY(-50%); transition: background-color var(--transition-fast); }
.cz-toggle:hover { background: var(--color-bg-primary-hover); }
.cz-toggle:focus-visible { outline: 3px solid var(--color-border-focus); outline-offset: 2px; }
.cz-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: cz-spin 8s linear infinite; }
@keyframes cz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cz-toggle svg { animation: none; } }
html[dir="rtl"] .cz-toggle { right: auto; left: 0; border-right: 1px solid var(--color-border-default); border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.cz-drawer { --bs-offcanvas-width: 340px; z-index: 1050; background: var(--color-bg-card); color: var(--color-text-primary); }
.cz-drawer .offcanvas-header { border-bottom: 1px solid var(--color-border-subtle); }
.cz-drawer .offcanvas-title { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-text-brand); }
.cz-note { margin: 0 0 var(--spacing-lg); padding: var(--spacing-sm) var(--spacing-md); border-radius: var(--radius-md); background: var(--color-bg-accent-subtle); font-size: 0.8125rem; color: var(--color-text-secondary); }
.cz-group { margin: 0 0 var(--spacing-lg); padding: 0; border: 0; }
.cz-label { display: block; margin: 0 0 var(--spacing-xs); padding: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); }
.cz-options { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.cz-option { position: relative; }
.cz-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cz-option span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 4px; border: 1px solid var(--color-border-default); border-radius: var(--radius-md); background: var(--color-bg-card); font-size: 0.8125rem; font-weight: 600; text-align: center; color: var(--color-text-primary); transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.cz-option span svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cz-option input:hover + span { background: var(--color-bg-surface); }
.cz-option input:checked + span { border-color: var(--color-border-brand); background: var(--color-bg-surface); color: var(--color-text-brand); box-shadow: inset 0 0 0 1px var(--color-border-brand); }
.cz-option input:focus-visible + span { outline: 3px solid var(--color-border-focus); outline-offset: 2px; }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-swatch { position: relative; width: 36px; height: 36px; }
.cz-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cz-swatch span { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid var(--color-bg-card); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px var(--color-border-strong); color: var(--white); transition: transform var(--transition-fast); }
.cz-swatch span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cz-swatch input:hover + span { transform: scale(1.08); }
.cz-swatch input:checked + span { box-shadow: 0 0 0 2px var(--color-border-brand); }
.cz-swatch input:checked + span svg { opacity: 1; }
.cz-swatch input:focus-visible + span { outline: 3px solid var(--color-border-focus); outline-offset: 3px; }
.cz-swatch--custom span { background: conic-gradient(#e0533d, #e0a526, #4fa66f, #3e8ec4, #8a5bc4, #e0533d); }
.cz-swatch--custom input { padding: 0; border: 0; }
.cz-footer { padding: var(--spacing-md) var(--spacing-lg); border-top: 1px solid var(--color-border-subtle); }
@media print { .cz-toggle, .cz-drawer { display: none !important; } }

/* ==========================================================================
   HERO SECTIONS
   .hero (image background)  .hero--split  .hero--center  .hero--photo (a photograph behind the text)
   Parts: .hero-bg  .hero-content  .hero-title  .hero-lead  .hero-actions
          .hero-stats  .hero-search (overlaps the next section)  .hero-visual
   Put a transparent header on top: <header class="site-header is-transparent">
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--green-900); color: var(--white); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg picture { display: block; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--green-overlay-rgb), 0.82) 0%, rgba(var(--green-overlay-rgb), 0.45) 60%, rgba(var(--green-overlay-rgb), 0.15) 100%); }
.hero-content { padding-block: 168px 120px; max-width: 680px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--spacing-lg); padding: 6px 14px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--white); }
.hero-eyebrow .icon { width: 16px; height: 16px; vertical-align: 0; color: var(--brass-500); }
.hero-title { margin: 0 0 var(--spacing-lg); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--white); }
.hero-title em { font-style: normal; color: var(--brass-500); }
.hero-lead { margin: 0 0 var(--spacing-xl); max-width: 52ch; font-size: 1.125rem; color: rgba(247, 246, 240, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--spacing-md) var(--spacing-2xl); margin: var(--spacing-2xl) 0 0; padding: 0; list-style: none; }
.hero-stats strong { display: block; font-family: var(--font-heading); font-size: 2rem; line-height: 1.1; color: var(--white); }
.hero-stats span { font-size: 0.875rem; color: rgba(247, 246, 240, 0.78); }
/* The search card overlaps the bottom edge of the hero */
.hero-search { position: relative; z-index: 2; margin-top: -56px; color: var(--color-text-primary); }
.hero--tall .hero-content { padding-block: 200px 160px; }
@media (max-width: 767.98px) { .hero-content { padding-block: 128px 88px; } .hero--tall .hero-content { padding-block: 140px 112px; } .hero::before { background: rgba(var(--green-overlay-rgb), 0.62); } }

/* Centered */
.hero--center { text-align: center; }
.hero--center .hero-content { margin-inline: auto; max-width: 820px; }
.hero--center .hero-lead { margin-inline: auto; }
.hero--center .hero-actions, .hero--center .hero-stats { justify-content: center; }
.hero--center::before { background: rgba(var(--green-overlay-rgb), 0.6); }
.hero--center .search-bar { max-width: 640px; margin: 0 auto; }

/* Split: light background, text and a framed picture */
.hero--split { background: var(--color-bg-page); color: var(--color-text-primary); }
.hero--split::before { display: none; }
.hero--split .hero-title { color: var(--color-text-brand); }
.hero--split .hero-title em { color: var(--color-text-accent); }
.hero--split .hero-lead { color: var(--color-text-secondary); }
.hero--split .hero-stats strong { color: var(--color-text-brand); }
.hero--split .hero-stats span { color: var(--color-text-secondary); }
.hero--split .hero-eyebrow { background: var(--color-bg-surface); color: var(--color-text-brand); }
.hero--split .hero-eyebrow .icon { color: var(--color-text-accent); }
.hero--split .hero-grid { display: grid; align-items: center; gap: var(--spacing-3xl); grid-template-columns: 1.05fr 1fr; padding-block: 160px 96px; }
.hero--split .hero-content { padding: 0; max-width: none; }
.hero-visual { position: relative; }
.hero-visual > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl) var(--radius-xl) 160px var(--radius-xl); }
.hero-float { position: absolute; display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg); border-radius: var(--radius-lg); background: var(--color-bg-card); box-shadow: var(--shadow-lg); color: var(--color-text-primary); }
.hero-float strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-text-brand); }
.hero-float span { font-size: 0.8125rem; color: var(--color-text-secondary); }
.hero-float.is-top { top: 8%; left: -32px; }
.hero-float.is-bottom { bottom: 10%; right: -24px; }
@media (max-width: 991.98px) { .hero--split .hero-grid { grid-template-columns: 1fr; padding-block: 128px 64px; gap: var(--spacing-2xl); } .hero-float.is-top { left: 8px; } .hero-float.is-bottom { right: 8px; } .hero-visual > img { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); } }

/* Photo hero: a photograph behind the text. A little more overlay than the illustrated hero,
   so small text stays readable on the bright parts of the picture.
   Keep this at the end of the file: it must come after the base .hero::before rules above. */
.hero--photo::before { background: linear-gradient(90deg, rgba(var(--green-overlay-rgb), 0.84) 0%, rgba(var(--green-overlay-rgb), 0.52) 60%, rgba(var(--green-overlay-rgb), 0.2) 100%); }
@media (max-width: 767.98px) { .hero--photo::before { background: rgba(var(--green-overlay-rgb), 0.7); } }
/* Right-to-left pages: the text is on the right, so the dark side of the overlay is on the right too. */
@media (min-width: 768px) { [dir="rtl"] .hero--photo::before { background: linear-gradient(270deg, rgba(var(--green-overlay-rgb), 0.84) 0%, rgba(var(--green-overlay-rgb), 0.52) 60%, rgba(var(--green-overlay-rgb), 0.2) 100%); } }

/* ==========================================================================
   SECTION BLOCKS: categories, scroll row, location grid, feature items,
   about split, stats, testimonials, blog cards, CTA banner, newsletter
   ========================================================================== */

/* ---- Property categories ----------------------------------------------------- */
.category-grid { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.category-card { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-xs); padding: var(--spacing-xl) var(--spacing-md); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); text-align: center; text-decoration: none; color: var(--color-text-primary); transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.category-card:hover { border-color: var(--color-border-brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--spacing-sm); border-radius: 50%; background: var(--color-bg-surface); color: var(--color-text-brand); transition: background-color var(--transition-fast), color var(--transition-fast); }
.category-icon .icon { width: 30px; height: 30px; vertical-align: 0; }
.category-card:hover .category-icon { background: var(--color-bg-primary); color: var(--color-text-inverse); }
.category-name { font-size: 1.0625rem; font-weight: 700; }
.category-count { font-size: 0.875rem; color: var(--color-text-secondary); }
/* Horizontal variant */
.category-grid--row .category-card { flex-direction: row; text-align: left; gap: var(--spacing-md); padding: var(--spacing-md); }
.category-grid--row .category-icon { width: 52px; height: 52px; margin: 0; flex: none; }
.category-grid--row { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---- Horizontal scroll row (carousel without JavaScript) ------------------------ */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 82%); gap: var(--spacing-lg); padding-bottom: var(--spacing-md); overflow-x: auto; scroll-snap-type: x mandatory; }
.scroll-row > * { scroll-snap-align: start; }

/* ---- Popular locations bento grid ------------------------------------------------- */
.location-grid { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
.location-grid .location-card { height: 100%; }
.location-grid .location-card img { height: 100%; aspect-ratio: auto; }
.location-grid .is-span-2 { grid-column: span 2; }
.location-grid .is-tall { grid-row: span 2; }
@media (max-width: 991.98px) { .location-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 575.98px) { .location-grid { grid-template-columns: 1fr; } .location-grid .is-span-2 { grid-column: auto; } .location-grid .is-tall { grid-row: auto; } }

/* ---- Feature items and cards (why choose us) ------------------------------------------ */
.feature-list { display: grid; gap: var(--spacing-xl); margin: 0; padding: 0; list-style: none; }
.feature-item { display: flex; gap: var(--spacing-lg); }
.feature-icon { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-bg-surface); color: var(--color-text-brand); }
.feature-icon .icon { width: 26px; height: 26px; vertical-align: 0; }
.feature-title { margin: 0 0 4px; font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; }
.feature-text { margin: 0; color: var(--color-text-secondary); }
.feature-card { height: 100%; padding: var(--spacing-xl); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); transition: box-shadow var(--transition-fast), border-color var(--transition-fast); }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-default); }
.feature-card .feature-icon { margin-bottom: var(--spacing-lg); width: 56px; height: 56px; }
.section-brand .feature-icon { background: rgba(255, 255, 255, 0.12); color: var(--brass-500); }
.section-brand .feature-text { color: rgba(247, 246, 240, 0.78); }
.section-brand .feature-title { color: var(--white); }

/* ---- About split: picture with a floating badge ------------------------------------------- */
.about-media { position: relative; }
.about-media > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.about-badge { position: absolute; right: -16px; bottom: 32px; padding: var(--spacing-lg); border-radius: var(--radius-lg); background: var(--color-bg-accent); color: var(--color-text-on-accent); box-shadow: var(--shadow-lg); text-align: center; }
.about-badge strong { display: block; font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; }
.about-badge span { font-size: 0.875rem; font-weight: 600; }
@media (max-width: 575.98px) { .about-badge { right: 8px; } }

/* ---- Stats ------------------------------------------------------------------------------------- */
.stats { display: grid; gap: var(--spacing-xl); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
.stat-value { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; color: var(--color-text-brand); }
.stat-label { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--color-text-secondary); }
.section-brand .stat-value { color: var(--brass-500); }
.section-brand .stat-label { color: rgba(247, 246, 240, 0.78); }

/* ---- Agent tile (showcase) ---------------------------------------------------------------- */
.agent-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-surface); color: var(--white); text-decoration: none; isolation: isolate; }
.agent-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 500ms ease; }
.agent-tile:hover img { transform: scale(1.05); }
.agent-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(var(--green-overlay-rgb), 0.85), transparent 55%); }
.agent-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--spacing-lg); }
.agent-tile-name { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--white); }
.agent-tile-role { display: block; font-size: 0.875rem; color: rgba(255, 255, 255, 0.82); }
.agent-tile:focus-visible { outline: 3px solid var(--color-border-focus); outline-offset: 3px; }

/* ---- Testimonials ---------------------------------------------------------------------------- */
.testimonial-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: var(--spacing-xl); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.testimonial-quote-icon { width: 36px; height: 36px; margin-bottom: var(--spacing-md); vertical-align: 0; color: var(--brass-500); }
.testimonial-text { flex: 1; margin: var(--spacing-md) 0 var(--spacing-lg); font-size: 1.0625rem; line-height: 1.65; color: var(--color-text-primary); }
.testimonial-author { display: flex; align-items: center; gap: var(--spacing-md); margin: 0; padding-top: var(--spacing-lg); border-top: 1px solid var(--color-border-subtle); }
.testimonial-author strong { display: block; font-size: 0.9375rem; color: var(--color-text-brand); }
.testimonial-author span { font-size: 0.8125rem; color: var(--color-text-secondary); }
/* Large single quote, for carousels */
.testimonial-feature { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-feature .testimonial-quote-icon { width: 48px; height: 48px; }
.testimonial-feature .testimonial-text { font-family: var(--font-heading); font-size: clamp(1.375rem, 3vw, 2rem); line-height: 1.4; color: var(--color-text-brand); }
.testimonial-feature .testimonial-author { justify-content: center; border: 0; padding-top: 0; text-align: left; }
.testimonial-carousel .carousel-indicators { position: static; margin: var(--spacing-xl) 0 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; margin: 0 5px; border: 0; border-radius: 50%; background-color: var(--color-border-strong); opacity: 1; }
.testimonial-carousel .carousel-indicators .active { background-color: var(--color-bg-primary); width: 28px; border-radius: 5px; }
.section-brand .testimonial-feature .testimonial-text, .section-brand .testimonial-author strong { color: var(--white); }
.section-brand .testimonial-author span { color: rgba(247, 246, 240, 0.75); }

/* ---- Blog cards ---------------------------------------------------------------------------------- */
.blog-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); transition: box-shadow var(--transition-fast); }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card-media { position: relative; overflow: hidden; background: var(--color-bg-subtle); }
.blog-card-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 400ms ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-media .badge { position: absolute; top: var(--spacing-sm); left: var(--spacing-sm); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--spacing-lg); }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs) var(--spacing-md); margin: 0 0 var(--spacing-sm); padding: 0; list-style: none; font-size: 0.8125rem; color: var(--color-text-secondary); }
.blog-meta li { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta .icon { width: 14px; height: 14px; vertical-align: 0; }
.blog-card-title { margin: 0 0 var(--spacing-sm); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.blog-card-title a { color: var(--color-text-brand); text-decoration: none; }
.blog-card:hover .blog-card-title a { color: var(--color-text-link); }
.blog-card-excerpt { margin: 0 0 var(--spacing-md); font-size: 0.9375rem; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--color-text-link); text-decoration: none; }
.blog-card-more .icon { width: 16px; height: 16px; vertical-align: 0; transition: transform var(--transition-fast); }
.blog-card:hover .blog-card-more .icon { transform: translateX(4px); }
/* Featured: image and text side by side */
.blog-card--featured { flex-direction: row; }
.blog-card--featured .blog-card-media { flex: 0 0 52%; }
.blog-card--featured .blog-card-media img { height: 100%; aspect-ratio: auto; min-height: 300px; }
.blog-card--featured .blog-card-body { justify-content: center; padding: var(--spacing-2xl); }
.blog-card--featured .blog-card-title { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 767.98px) { .blog-card--featured { flex-direction: column; } .blog-card--featured .blog-card-media img { aspect-ratio: 3 / 2; height: auto; min-height: 0; } .blog-card--featured .blog-card-body { padding: var(--spacing-lg); } }
/* Row: small thumbnail, for sidebars */
.blog-card--row { flex-direction: row; align-items: center; height: auto; gap: var(--spacing-md); padding: var(--spacing-sm); }
.blog-card--row .blog-card-media { flex: none; width: 96px; border-radius: var(--radius-md); }
.blog-card--row .blog-card-media img { aspect-ratio: 1; }
.blog-card--row .blog-card-body { padding: 0; }
.blog-card--row .blog-card-title { margin: 0; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; }

/* ---- CTA banner ----------------------------------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; isolation: isolate; padding: var(--spacing-3xl) var(--spacing-2xl); border-radius: var(--radius-xl); background: var(--color-bg-primary); color: var(--color-text-inverse); }
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta-banner::before { width: 360px; height: 360px; right: -80px; top: -140px; background: rgba(255, 255, 255, 0.06); }
.cta-banner::after { width: 220px; height: 220px; right: 120px; bottom: -120px; background: rgba(var(--brass-500-rgb), 0.25); }
.cta-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-xl); }
.cta-banner-text { max-width: 600px; }
.cta-banner h2 { margin: 0 0 var(--spacing-sm); color: var(--white); }
.cta-banner p { margin: 0; font-size: 1.0625rem; color: rgba(247, 246, 240, 0.82); }
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.cta-banner--accent { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.cta-banner--accent h2 { color: var(--color-text-on-accent); }
.cta-banner--accent p { color: rgba(37, 43, 40, 0.8); }
.cta-banner--accent::before { background: rgba(255, 255, 255, 0.18); }
.cta-banner--accent::after { background: rgba(var(--green-900-rgb), 0.15); }
.cta-banner--center { text-align: center; }
.cta-banner--center .cta-banner-inner { flex-direction: column; }
.cta-banner--center .cta-banner-text { margin-inline: auto; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); padding: var(--spacing-lg) var(--spacing-xl); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); background: var(--color-bg-surface); }
.cta-strip p { margin: 0; font-weight: 600; color: var(--color-text-brand); }
@media (max-width: 575.98px) { .cta-banner { padding: var(--spacing-2xl) var(--spacing-lg); } .cta-banner-actions .btn { flex: 1 1 100%; } }

/* ---- Newsletter -------------------------------------------------------------------------------------- */
.newsletter { display: grid; gap: var(--spacing-xl); align-items: center; grid-template-columns: 1fr 1fr; padding: var(--spacing-2xl); border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.newsletter-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--spacing-md); border-radius: 50%; background: var(--color-bg-primary); color: var(--color-text-inverse); }
.newsletter-icon .icon { width: 26px; height: 26px; vertical-align: 0; }
.newsletter h2 { margin: 0 0 var(--spacing-xs); font-size: 1.75rem; }
.newsletter p { margin: 0; color: var(--color-text-secondary); }
.newsletter-form .input-group { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.newsletter-note { display: block; margin-top: var(--spacing-sm); font-size: 0.8125rem; color: var(--color-text-secondary); }
.newsletter-note a { color: inherit; text-decoration: underline; }
.newsletter--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.newsletter--center .newsletter-form { width: 100%; max-width: 480px; }
.newsletter--dark { background: var(--color-bg-primary); }
.newsletter--dark h2 { color: var(--white); }
.newsletter--dark p, .newsletter--dark .newsletter-note { color: rgba(247, 246, 240, 0.78); }
.newsletter--dark .newsletter-icon { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
@media (max-width: 767.98px) { .newsletter { grid-template-columns: 1fr; padding: var(--spacing-xl) var(--spacing-lg); } }

/* Newsletter + footer subscribe: slightly smaller input and button text */
.newsletter-form .form-control, .newsletter-form .btn,
.footer-newsletter .form-control, .footer-newsletter .btn { font-size: 0.875rem; }

/* Icon tiles on a surface-colored section: white tile with a brass accent so they stand out */
.section-surface .feature-icon { background: var(--color-bg-card); color: var(--color-text-brand); border: 1px solid var(--color-border-default); box-shadow: var(--shadow-sm); width: 56px; height: 56px; border-radius: var(--radius-lg); }
.section-surface .feature-icon .icon { width: 26px; height: 26px; }
.section-surface .feature-item:hover .feature-icon { background: var(--color-bg-primary); color: var(--white); border-color: var(--color-bg-primary); }
.section-surface .feature-icon { transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }

/* Popular locations on tablet: no tall tiles, pack the grid without holes */
@media (min-width: 576px) and (max-width: 991.98px) { .location-grid { grid-auto-flow: dense; } .location-grid .is-tall { grid-row: auto; } }

/* Photo version: add cta-banner--photo and an <img class="cta-banner-bg"> as the first child. */
.cta-banner--photo { background: var(--green-950); }
.cta-banner-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.cta-banner--photo::before { inset: 0; width: auto; height: auto; border-radius: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 42, 35, 0.88) 0%, rgba(15, 42, 35, 0.62) 60%, rgba(15, 42, 35, 0.35) 100%); }
.cta-banner--photo::after { display: none; }
[dir="rtl"] .cta-banner--photo::before { left: 0; right: 0; background: linear-gradient(270deg, rgba(15, 42, 35, 0.88) 0%, rgba(15, 42, 35, 0.62) 60%, rgba(15, 42, 35, 0.35) 100%); }
.cta-banner-bg[data-parallax] { top: -70%; bottom: auto; height: 240%; }

/* ==========================================================================
   GLOBAL COMPONENTS: accordion, alert, toast, empty state, back to top,
   table, stepper. Used across many pages.
   ========================================================================== */

/* ---- Accordion (FAQ): separate cards ----------------------------------------- */
:root { --accordion-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
body .accordion {
  --bs-accordion-bg: var(--color-bg-card);
  --bs-accordion-color: var(--color-text-primary);
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: var(--radius-lg);
  --bs-accordion-inner-border-radius: var(--radius-lg);
  --bs-accordion-btn-padding-x: var(--spacing-lg);
  --bs-accordion-btn-padding-y: var(--spacing-lg);
  --bs-accordion-body-padding-x: var(--spacing-lg);
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-btn-color: var(--color-text-brand);
  --bs-accordion-active-color: var(--color-text-brand);
  --bs-accordion-active-bg: var(--color-bg-card);
  --bs-accordion-btn-icon: var(--accordion-chevron);
  --bs-accordion-btn-active-icon: var(--accordion-chevron);
  --bs-accordion-btn-focus-box-shadow: var(--focus-ring);
  display: grid; gap: var(--spacing-sm);
}
body .accordion-item { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg) !important; overflow: hidden; background: var(--color-bg-card); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
body .accordion-item:has(.show) { border-color: var(--color-border-default); box-shadow: var(--shadow-sm); }
body .accordion-button { font-size: 1.0625rem; font-weight: 700; box-shadow: none; }
body .accordion-button:not(.collapsed) { box-shadow: none; }
body .accordion-body { padding-bottom: var(--spacing-lg); color: var(--color-text-secondary); }
body .accordion-body > :last-child { margin-bottom: 0; }

/* ---- Alert ------------------------------------------------------------------------- */
body .alert { --bs-alert-padding-x: var(--spacing-lg); --bs-alert-padding-y: var(--spacing-md); --bs-alert-border-radius: var(--radius-md); display: flex; align-items: flex-start; gap: var(--spacing-md); border-width: 1px; font-size: 0.9375rem; }
body .alert .icon { flex: none; margin-top: 2px; vertical-align: 0; }
body .alert-heading { margin: 0 0 2px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: inherit; }
body .alert-success { --bs-alert-color: var(--green-800, #1F5242); --bs-alert-bg: var(--color-bg-success-subtle); --bs-alert-border-color: var(--green-300); }
body .alert-danger { --bs-alert-color: var(--red-600); --bs-alert-bg: var(--color-bg-danger-subtle); --bs-alert-border-color: var(--red-100); }
body .alert-info { --bs-alert-color: var(--blue-600); --bs-alert-bg: var(--color-bg-info-subtle); --bs-alert-border-color: var(--blue-100); }
body .alert-warning { --bs-alert-color: var(--brass-700); --bs-alert-bg: var(--color-bg-accent-subtle); --bs-alert-border-color: var(--brass-300); }
body .alert .btn-close { margin-left: auto; padding: 4px; }

/* ---- Toast -------------------------------------------------------------------------- */
body .toast { --bs-toast-bg: var(--color-bg-card); --bs-toast-border-width: 0; --bs-toast-border-radius: var(--radius-md); --bs-toast-box-shadow: var(--shadow-lg); --bs-toast-padding-x: var(--spacing-md); --bs-toast-padding-y: var(--spacing-md); --bs-toast-max-width: 380px; border-left: 4px solid var(--color-bg-primary); }
body .toast.toast-success { border-left-color: var(--green-500); }
body .toast.toast-danger { border-left-color: var(--red-600); }
body .toast.toast-warning { border-left-color: var(--brass-500); }
.toast-body-row { display: flex; align-items: flex-start; gap: var(--spacing-sm); }
.toast-body-row .icon { flex: none; margin-top: 2px; vertical-align: 0; color: var(--color-text-brand); }
.toast-danger .toast-body-row .icon { color: var(--red-600); }
.toast-title { display: block; font-weight: 700; }
.toast-text { display: block; font-size: 0.875rem; color: var(--color-text-secondary); }
.toast-container { z-index: 1090; }

/* ---- Empty state ---------------------------------------------------------------------- */
.empty-state { display: flex; flex-direction: column; align-items: center; max-width: 440px; margin-inline: auto; padding: var(--spacing-3xl) var(--spacing-lg); text-align: center; }
.empty-state-icon { display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: var(--spacing-lg); border-radius: 50%; background: var(--color-bg-surface); color: var(--color-text-brand); }
.empty-state-icon .icon { width: 40px; height: 40px; vertical-align: 0; }
.empty-state h2, .empty-state h3 { margin: 0 0 var(--spacing-xs); font-size: 1.5rem; }
.empty-state p { margin: 0 0 var(--spacing-lg); color: var(--color-text-secondary); }
.empty-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-sm); }

/* ---- Back to top ------------------------------------------------------------------------ */
.back-to-top { box-shadow: 0 0 0 3px var(--color-bg-page), var(--shadow-md); position: fixed; right: 24px; bottom: 24px; z-index: 1020; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
/* Progress variant: a ring around the button fills as the visitor scrolls (components/back-to-top.html).
   site.js sets --progress (0 to 100); the circle uses pathLength="100", so the number is the percentage. */
.back-to-top-ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; }
.back-to-top-ring circle { fill: none; stroke-width: 3; }
.back-to-top-track { stroke: var(--color-border-default); }
.back-to-top-fill { stroke: var(--brass-500, #C0903F); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0)); }

/* ---- Table -------------------------------------------------------------------------------- */
body .table { --bs-table-bg: transparent; --bs-table-color: var(--color-text-primary); --bs-table-border-color: var(--color-border-subtle); --bs-table-hover-bg: var(--color-bg-surface); --bs-table-hover-color: var(--color-text-primary); --bs-table-striped-bg: var(--color-bg-page); margin-bottom: 0; font-size: 0.9375rem; vertical-align: middle; }
body .table > :not(caption) > * > * { padding: 14px var(--spacing-md); }
body .table thead th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); background: var(--color-bg-subtle); border-bottom: 1px solid var(--color-border-default); white-space: nowrap; }
.table-card { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); overflow: hidden; }
.table-media { display: flex; align-items: center; gap: var(--spacing-md); min-width: 220px; }
.table-media img { width: 72px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.table-media strong { display: block; color: var(--color-text-brand); }
.table-media span { font-size: 0.8125rem; color: var(--color-text-secondary); }

/* ---- Stepper ------------------------------------------------------------------------------- */
.stepper { display: flex; gap: var(--spacing-sm); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; gap: var(--spacing-xs); counter-increment: step; font-size: 0.875rem; font-weight: 600; color: var(--color-text-secondary); }
.stepper li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--color-border-default); border-radius: 50%; background: var(--color-bg-card); font-size: 0.9375rem; position: relative; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 17px; left: 44px; right: -8px; height: 2px; background: var(--color-border-default); }
.stepper li:last-child::after { display: none; }
.stepper li.is-done::before { content: ""; border-color: var(--color-bg-primary); background: var(--color-bg-primary) var(--check-white) center / 16px no-repeat; }
.stepper li.is-done::after { background: var(--color-bg-primary); }
.stepper li.is-active { color: var(--color-text-brand); }
.stepper li.is-active::before { border-color: var(--color-bg-primary); background: var(--color-bg-primary); color: var(--color-text-inverse); box-shadow: var(--focus-ring); }
@media (max-width: 575.98px) { .stepper li span { display: none; } .stepper li.is-active span { display: block; position: absolute; top: 44px; left: 0; white-space: nowrap; } .stepper { margin-bottom: var(--spacing-xl); } }
.table-card .table-responsive { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   PAGE LAYOUTS: listing, property details, auth, profile, article, pricing,
   contact, compare. Only page-level layout lives here; the parts are the
   components above.
   ========================================================================== */
.skip-link, .visually-hidden-focusable:focus { z-index: 2000; }
body .visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; padding: 10px 16px; border-radius: var(--radius-md); background: var(--color-bg-primary); color: var(--color-text-inverse); }
main { min-height: 40vh; }

/* ---- Listing ------------------------------------------------------------------------ */
.listing-layout { display: grid; gap: var(--spacing-xl); grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.listing-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 112px); border-radius: var(--radius-lg); }
@media (max-width: 991.98px) { .listing-layout { grid-template-columns: minmax(0, 1fr); } .listing-sidebar { position: static; max-height: none; } }
body .offcanvas-lg .filters-panel { border: 0; }
@media (max-width: 991.98px) { body .offcanvas-lg .filters-panel { border-radius: 0; min-height: 100%; } body .offcanvas-lg .offcanvas-body { padding: 0; } }
[data-view="grid"] .results-list, [data-view="list"] .results-grid { display: none; }
.results-list { display: grid; gap: var(--spacing-lg); }
.map-box { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-surface); }
.map-box img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.map-box .btn { position: absolute; left: 50%; bottom: var(--spacing-lg); transform: translateX(-50%); box-shadow: var(--shadow-md); }
.map-box.is-tall img { min-height: 420px; }
.map-box-frame { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-box.is-tall .map-box-frame { min-height: 420px; }
.map-box-frame ~ .btn { top: var(--spacing-md); bottom: auto; left: auto; inset-inline-end: 56px; transform: none; }

/* ---- Property details ------------------------------------------------------------------- */
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--spacing-lg); margin-bottom: var(--spacing-xl); }
.detail-title { margin: var(--spacing-sm) 0 var(--spacing-xs); font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.detail-address { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--color-text-secondary); }
.detail-address .icon { color: var(--color-text-accent); vertical-align: 0; }
.detail-price { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.1; color: var(--color-text-brand); text-align: right; }
.detail-price small { display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); }
.detail-actions { display: flex; gap: var(--spacing-xs); margin-top: var(--spacing-sm); justify-content: flex-end; }
@media (max-width: 767.98px) { .detail-price, .detail-actions { text-align: left; justify-content: flex-start; } }
.detail-layout { display: grid; gap: var(--spacing-2xl); grid-template-columns: minmax(0, 1fr) 380px; align-items: start; margin-top: var(--spacing-2xl); }
.detail-aside { position: sticky; top: 96px; display: grid; gap: var(--spacing-lg); }
@media (max-width: 1199.98px) { .detail-layout { grid-template-columns: 1fr; } .detail-aside { position: static; } }
.detail-section { padding-block: var(--spacing-xl); border-bottom: 1px solid var(--color-border-subtle); }
.detail-section:first-child { padding-top: 0; }
.detail-section:last-child { border-bottom: 0; }
.detail-section > h2 { margin-bottom: var(--spacing-lg); font-size: 1.5rem; }
.detail-section p { color: var(--color-text-secondary); max-width: 70ch; }

/* ---- Auth (login, register) ----------------------------------------------------------------- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-media { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: var(--spacing-2xl); overflow: hidden; isolation: isolate; background: var(--green-900); color: var(--white); }
.auth-media > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(var(--green-overlay-rgb), 0.9), rgba(var(--green-overlay-rgb), 0.35)); }
.auth-media .site-logo { color: var(--white); }
.auth-media .site-logo-mark { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.auth-media blockquote { margin: 0; max-width: 28ch; font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.3; }
.auth-media figcaption { margin-top: var(--spacing-md); font-size: 0.9375rem; color: rgba(247, 246, 240, 0.8); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--spacing-2xl) var(--spacing-lg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { margin: 0 0 var(--spacing-xs); font-size: 2rem; }
.auth-card > p { margin: 0 0 var(--spacing-xl); color: var(--color-text-secondary); }
.auth-form { display: grid; gap: var(--spacing-md); }
.auth-foot { margin-top: var(--spacing-lg); text-align: center; font-size: 0.9375rem; color: var(--color-text-secondary); }
.auth-top { width: 100%; max-width: 420px; margin-bottom: var(--spacing-xl); }
.password-field { position: relative; }
.password-field .form-control { padding-right: 52px; }
.password-field button { position: absolute; top: 4px; right: 4px; }
@media (max-width: 991.98px) { .auth-layout { grid-template-columns: 1fr; } .auth-media { display: none; } }
[data-view-toggle] .btn[aria-pressed="true"] { background: var(--color-bg-primary); border-color: var(--color-bg-primary); color: var(--color-text-inverse); }
.detail-section .floor-plan-image { max-width: 640px; }

/* ---- Info cards (contact, about) ---------------------------------------------------------- */
.info-card { display: flex; gap: var(--spacing-md); height: 100%; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.info-card h3 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }
.info-card p, .info-card a { margin: 0; font-size: 0.9375rem; color: var(--color-text-secondary); text-decoration: none; }
.info-card a:hover { color: var(--color-text-brand); text-decoration: underline; }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: var(--spacing-md); padding: 10px 0; border-bottom: 1px solid var(--color-border-subtle); font-size: 0.9375rem; }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 600; }
.form-card { padding: var(--spacing-xl); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.toolbar .input-icon { flex: 1 1 240px; }
.toolbar .form-select { flex: 0 1 200px; width: auto; }
.auth-card > p.auth-foot { margin: var(--spacing-lg) 0 0; }

/* ---- Dashboard (profile, add property, wishlist) -------------------------------------------------- */
.dash-layout { display: grid; gap: var(--spacing-xl); grid-template-columns: 270px minmax(0, 1fr); align-items: start; }
.dash-nav { position: sticky; top: 96px; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.dash-user { display: flex; align-items: center; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); padding-bottom: var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); }
.dash-user strong { display: block; color: var(--color-text-brand); }
.dash-user span { font-size: 0.8125rem; color: var(--color-text-secondary); }
.dash-menu { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dash-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9375rem; color: var(--color-text-secondary); text-decoration: none; }
.dash-menu a:hover { background: var(--color-bg-surface); color: var(--color-text-brand); }
.dash-menu a[aria-current="page"] { background: var(--color-bg-surface); color: var(--color-text-brand); }
.dash-menu .icon { width: 20px; height: 20px; vertical-align: 0; }
.dash-menu .badge { margin-left: auto; }
@media (max-width: 991.98px) { .dash-layout { grid-template-columns: minmax(0, 1fr); } .dash-nav { position: static; } .dash-menu { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; } .dash-user { display: none; } }
.dash-section { margin-bottom: var(--spacing-2xl); scroll-margin-top: 96px; }
.dash-section > h2 { margin-bottom: var(--spacing-md); font-size: 1.5rem; }
.stat-card { display: flex; align-items: center; gap: var(--spacing-md); height: 100%; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.1; color: var(--color-text-brand); }
.stat-card span.stat-card-label { font-size: 0.875rem; color: var(--color-text-secondary); }

/* Multi-step form */
.step-panel[hidden] { display: none; }
.step-actions { display: flex; justify-content: space-between; gap: var(--spacing-md); margin-top: var(--spacing-xl); padding-top: var(--spacing-lg); border-top: 1px solid var(--color-border-subtle); }
.step-actions .btn { min-width: 150px; justify-content: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-xs); padding: var(--spacing-2xl) var(--spacing-lg); border: 2px dashed var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-bg-page); text-align: center; color: var(--color-text-secondary); transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--color-border-brand); background: var(--color-bg-surface); }
.dropzone .icon { width: 36px; height: 36px; color: var(--color-text-brand); vertical-align: 0; }
.dropzone strong { color: var(--color-text-brand); }
.dropzone input[type="file"] { max-width: 280px; margin-top: var(--spacing-sm); }
.review-list { margin: 0; display: grid; }
.review-list > div { display: flex; justify-content: space-between; gap: var(--spacing-md); padding: 12px 0; border-bottom: 1px solid var(--color-border-subtle); }
.review-list dt { color: var(--color-text-secondary); font-weight: 500; }
.review-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---- Compare ----------------------------------------------------------------------------------------- */
.compare-wrap { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); overflow-x: auto; position: relative; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 16px var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); vertical-align: middle; font-size: 0.9375rem; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table th[scope="row"] { width: 180px; position: sticky; left: 0; z-index: 1; background: var(--color-bg-subtle); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); text-align: left; }
.compare-table td { min-width: 220px; }
.compare-card img { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: var(--spacing-sm); border-radius: var(--radius-md); object-fit: cover; }
.compare-card strong { display: block; color: var(--color-text-brand); }
.compare-card span { font-size: 0.8125rem; color: var(--color-text-secondary); }
.compare-yes { color: var(--color-text-success); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.compare-no { color: var(--color-text-disabled); }
.compare-best { font-weight: 700; color: var(--color-text-brand); }
.compare-best::after { content: "Best"; margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--color-bg-surface); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-page {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: min(720px, calc(100vh - 76px)); max-width: 640px; margin-inline: auto; padding: var(--spacing-4xl) var(--spacing-lg); text-align: center;
}
.error-code { position: relative; isolation: isolate; margin: 0 0 var(--spacing-sm); font-family: var(--font-heading); font-size: clamp(6rem, 22vw, 11rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--color-text-brand); }
.error-code::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 1.75em; aspect-ratio: 1; transform: translate(-50%, -52%); border-radius: 50%; background: var(--color-bg-surface); }
.error-code::after { content: ""; display: block; width: 72px; height: 4px; margin: var(--spacing-md) auto 0; border-radius: 2px; background: var(--color-bg-accent); }
.error-page h1 { margin: var(--spacing-lg) 0 var(--spacing-sm); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.error-page > p:not(.error-code) { margin: 0 0 var(--spacing-xl); max-width: 46ch; font-size: 1.0625rem; color: var(--color-text-secondary); }

/* ==========================================================================
   BLOG LIST + SIDEBAR WIDGETS
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--spacing-2xl); align-items: start; }
.blog-layout > aside { position: sticky; top: 96px; display: grid; gap: var(--spacing-lg); }
@media (max-width: 991.98px) { .blog-layout { grid-template-columns: 1fr; } .blog-layout > aside { position: static; } }
.widget { padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.widget-title { position: relative; margin: 0 0 var(--spacing-md); padding-bottom: var(--spacing-sm); font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--color-text-brand); }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--color-bg-accent); }
.widget-list { margin: 0; padding: 0; list-style: none; }
.widget-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); padding: 10px 0; border-bottom: 1px solid var(--color-border-subtle); font-size: 0.9375rem; }
.widget-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-list a { color: var(--color-text-primary); text-decoration: none; font-weight: 500; }
.widget-list a:hover { color: var(--color-text-link); }
.widget-list span { min-width: 28px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--color-bg-surface); font-size: 0.75rem; font-weight: 700; text-align: center; color: var(--color-text-brand); }
.widget .blog-card--row { border: 0; padding: 0; background: none; }
.widget .blog-card--row:hover { box-shadow: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--spacing-md); border: 1px solid var(--color-border-default); border-radius: var(--radius-full); background: var(--color-bg-card); font-size: 0.8125rem; font-weight: 600; color: var(--color-text-secondary); text-decoration: none; transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast); }
.tag:hover { border-color: var(--color-border-brand); background: var(--color-bg-surface); color: var(--color-text-brand); }

/* ==========================================================================
   ARTICLE (blog details)
   ========================================================================== */
.article-head { max-width: 820px; margin: 0 auto var(--spacing-xl); text-align: center; }
.article-head h1 { margin: var(--spacing-md) 0; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; }
.article-head .blog-meta { justify-content: center; margin: 0; font-size: 0.875rem; }
.article-head .avatar { vertical-align: middle; margin-right: 6px; }
.article-cover { margin: 0 auto var(--spacing-2xl); overflow: hidden; border-radius: var(--radius-xl); background: var(--color-bg-subtle); }
.article-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article, .article-foot, .author-box { max-width: 720px; margin-inline: auto; }
.article > p, .article li { font-size: 1.0625rem; line-height: 1.85; color: var(--color-text-primary); }
.article .lead { font-size: 1.3125rem; line-height: 1.6; color: var(--color-text-secondary); }
.article > h2 { margin: var(--spacing-2xl) 0 var(--spacing-sm); font-size: 1.75rem; }
.article > h3 { margin: var(--spacing-xl) 0 var(--spacing-xs); font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; }
.article blockquote { margin: var(--spacing-xl) 0; padding: var(--spacing-md) var(--spacing-xl); border-left: 4px solid var(--color-bg-accent); background: var(--color-bg-accent-subtle); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-heading); font-size: 1.375rem; line-height: 1.45; color: var(--color-text-brand); }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: var(--spacing-lg); }
.article li { margin-bottom: 6px; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-md); margin-top: var(--spacing-xl); padding-block: var(--spacing-lg); border-block: 1px solid var(--color-border-default); }
.author-box { display: flex; align-items: center; gap: var(--spacing-lg); margin-top: var(--spacing-xl); padding: var(--spacing-lg); border-radius: var(--radius-lg); background: var(--color-bg-surface); }
.author-box .avatar { flex: none; width: 88px; height: 88px; }
.author-box h3 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1.25rem; }
.author-box p { margin: 0; color: var(--color-text-secondary); }
@media (max-width: 575.98px) { .author-box { flex-direction: column; text-align: center; } }
.comment { display: flex; gap: var(--spacing-md); padding: var(--spacing-lg) 0; border-bottom: 1px solid var(--color-border-subtle); }
.comment .avatar { flex: none; }
.comment strong { color: var(--color-text-brand); }
.comment time { margin-left: var(--spacing-sm); font-size: 0.8125rem; color: var(--color-text-secondary); }
.comment p { margin: 4px 0 0; font-size: 1rem; line-height: 1.65; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.billing-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--spacing-md); margin-bottom: var(--spacing-2xl); }
.pricing-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: var(--spacing-xl); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card > .badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); }
.pricing-card.is-popular { border: 2px solid var(--color-border-brand); background: var(--color-bg-card); box-shadow: var(--shadow-lg); }
@media (min-width: 992px) { .pricing-card.is-popular { transform: translateY(-12px); } }
.pricing-name { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1.5rem; }
.pricing-desc { margin: 0 0 var(--spacing-lg); color: var(--color-text-secondary); }
.pricing-price { margin-bottom: var(--spacing-lg); padding-bottom: var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); font-family: var(--font-heading); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--color-text-brand); }
.pricing-price small { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; color: var(--color-text-secondary); }
.pricing-features { flex: 1; display: grid; gap: 12px; margin: 0 0 var(--spacing-xl); padding: 0; list-style: none; align-content: start; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.pricing-features .icon { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--color-bg-surface); color: var(--color-text-success); stroke-width: 3; vertical-align: 0; }
.pricing-features .is-off { color: var(--color-text-disabled); }
.pricing-features .is-off .icon { background: var(--color-bg-subtle); color: var(--color-text-disabled); }
.pricing-card .btn { width: 100%; }

/* ==========================================================================
   LEGAL PAGES (privacy, terms)
   ========================================================================== */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--spacing-2xl); align-items: start; }
.legal-layout .toc { position: sticky; top: 96px; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 0.9375rem; color: var(--color-text-secondary); text-decoration: none; }
.toc a::before { content: counter(toc) "."; flex: none; min-width: 1.2em; font-weight: 700; color: var(--color-text-accent); }
.toc a:hover { background: var(--color-bg-surface); color: var(--color-text-brand); }
.legal { padding: var(--spacing-xl); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.legal section { scroll-margin-top: 96px; padding-block: var(--spacing-lg); border-bottom: 1px solid var(--color-border-subtle); }
.legal section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal h2 { margin: 0 0 var(--spacing-sm); font-size: 1.375rem; }
.legal p, .legal li { line-height: 1.8; }
.legal p:last-child { margin-bottom: 0; }
@media (max-width: 991.98px) { .legal-layout { grid-template-columns: 1fr; } .legal-layout .toc { position: static; } .legal { padding: var(--spacing-lg); } }
/* Listing sidebar: only the filter groups scroll, the head and the button stay put */
@media (min-width: 992px) {
  .listing-sidebar { overflow: visible; }
  .listing-sidebar .filters-panel { display: flex; flex-direction: column; max-height: calc(100vh - 112px); overflow: hidden; }
  .listing-sidebar .filters-panel-head, .listing-sidebar .filters-panel-foot { flex: none; }
  .listing-sidebar .filters-panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}

/* ==========================================================================
   LOCATION CARD · image tile for cities and neighbourhoods.
   Default 4:5. Modifiers: .is-wide (2:1)  .is-square  .location-card--row
   ========================================================================== */
.location-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--green-900); color: var(--white); text-decoration: none; isolation: isolate; }
.location-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 500ms ease; }
.location-card.is-wide img { aspect-ratio: 2 / 1; }
.location-card.is-square img { aspect-ratio: 1 / 1; }
.location-card:hover img { transform: scale(1.06); }
.location-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(var(--green-overlay-rgb), 0.82) 0%, rgba(var(--green-overlay-rgb), 0.15) 55%, transparent 100%); }
.location-card:focus-visible { outline: 3px solid var(--color-border-focus); outline-offset: 3px; }
.location-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--spacing-sm); padding: var(--spacing-lg); }
.location-card-name { margin: 0; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; line-height: 1.2; color: var(--white); }
.location-card-count { display: block; margin-top: 2px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.82); }
.location-card-arrow { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.location-card-arrow .icon { width: 18px; height: 18px; vertical-align: 0; }
.location-card:hover .location-card-arrow { background: var(--color-bg-accent); color: var(--color-text-on-accent); transform: rotate(-12deg); }
.location-card .badge { position: absolute; top: var(--spacing-md); left: var(--spacing-md); z-index: 2; }

/* Row: small thumbnail with text, for lists and footers */
.location-card--row { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-sm); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); color: var(--color-text-primary); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.location-card--row::after { display: none; }
.location-card--row:hover { border-color: var(--color-border-brand); box-shadow: var(--shadow-md); }
.location-card--row img { width: 72px; height: 72px; aspect-ratio: auto; border-radius: var(--radius-md); flex: none; }
.location-card--row:hover img { transform: none; }
.location-card--row .location-card-name { font-size: 1.0625rem; color: var(--color-text-brand); }
.location-card--row .location-card-count { color: var(--color-text-secondary); }
.location-card--row .location-card-arrow { margin-left: auto; background: var(--color-bg-surface); color: var(--color-text-brand); }

/* ==========================================================================
   Animations
   Elements are hidden only while JavaScript is running (html.js) and
   animations are not switched off (html.anim-off). If JS or GSAP fails,
   all content stays visible. GSAP sets opacity and transform only.
   ========================================================================== */
.js:not(.anim-off) [data-animate]:not([data-animate-stagger]):not([data-animate="zoom-settle"]),
.js:not(.anim-off) [data-animate-stagger] > * { opacity: 0; }

/* Progress bars grow from 0 and numbers count up from 0 */
.js:not(.anim-off) [data-progress]:not(.is-done) { transform: scaleX(0); }
.js:not(.anim-off) [data-count] { opacity: 0; }

/* Pause CSS transitions while GSAP animates the element */
.is-animating { transition: none !important; }

/* Parallax elements move with the scroll: tell the browser */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-parallax] { will-change: auto; }
}

/* ==========================================================================
   PARALLAX · moving image: data-parallax (see animations.js)
              fixed background: .bg-fixed (pure CSS, the photo stays still while the page scrolls over it)
   ========================================================================== */
.parallax-box { position: relative; overflow: hidden; }
.parallax-box > img[data-parallax] { position: absolute; inset-inline: 0; top: -45%; width: 100%; height: 190%; object-fit: cover; }

/* Fixed background band. Set the photo with style="background-image: url(...)" on the same element */
.bg-fixed {
  position: relative; isolation: isolate; display: grid; place-items: center; min-height: 380px; padding: var(--spacing-3xl, 64px) var(--spacing-lg);
  background-color: var(--color-bg-primary); background-size: cover; background-position: center; background-attachment: fixed; color: var(--sand-50); text-align: center;
}
.bg-fixed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 40, 33, 0.55), rgba(15, 40, 33, 0.78)); }
.bg-fixed-inner { max-width: 640px; }
.bg-fixed h2, .bg-fixed h3 { color: inherit; }
.bg-fixed p { color: rgba(247, 246, 240, 0.86); }
/* Photo only: a clear strip of picture between two sections */
.bg-fixed--clear { min-height: 320px; padding: 0; }
.bg-fixed--clear::before { display: none; }
.bg-fixed--tall { min-height: 520px; }
/* Phones and reduced motion: iOS and many phones ignore "fixed", so use a normal background there */
@media (hover: none), (max-width: 991.98px) { .bg-fixed { background-attachment: scroll; } }
@media (prefers-reduced-motion: reduce) { .bg-fixed { background-attachment: scroll; } }

/* ==========================================================================
   PROPERTY MAP
   <div class="map-view" data-property-map="#props-json" data-map-key="API_KEY">
   Parts (built by map-view.js): .map-view-canvas  .map-view-layer
          .map-pin  .map-cluster  .map-popup  .map-controls  .map-notice
   States: .is-active (pin)  .is-fullscreen (map)  .is-demo (no API key)
   ========================================================================== */
.map-view {
  position: relative; overflow: hidden; height: 560px; isolation: isolate;
  border-radius: var(--radius-lg); background: var(--color-bg-surface);
}
.map-view--full { height: calc(100vh - 80px); min-height: 480px; border-radius: 0; }
.map-view.is-fullscreen { position: fixed; inset: 0; z-index: 1080; height: auto; border-radius: 0; }
.map-view-canvas { position: absolute; inset: 0; z-index: 0; background: var(--color-bg-surface) center / cover no-repeat; }
.map-view.is-demo .map-view-canvas { background-image: url("../img/hero/map-demo.webp"); }
.map-view-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Price pin */
.map-pin {
  position: absolute; z-index: 1; transform: translate(-50%, calc(-100% - 8px)); pointer-events: auto;
  padding: 6px 12px; border: 2px solid var(--white); border-radius: var(--radius-full);
  background: var(--color-bg-primary); color: var(--color-text-inverse);
  font: 700 0.8125rem/1 var(--font-body); white-space: nowrap; box-shadow: var(--shadow-md); cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.map-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
  background: inherit; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); border-radius: 0 0 3px 0;
}
.map-pin:hover { background: var(--green-700); }
.map-pin.is-rent { background: var(--brass-500); color: var(--color-text-on-accent); }
.map-pin.is-rent:hover { background: var(--brass-400); }
.map-pin.is-active { z-index: 3; background: var(--charcoal-900, #252B28); color: var(--white); box-shadow: var(--shadow-lg); }
.map-pin:focus-visible, .map-cluster:focus-visible, .map-ctrl:focus-visible, .map-popup-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Location-icon pin: <div class="map-view" data-map-marker="icon"> */
.map-pin--icon {
  --pin: var(--color-bg-primary);
  width: 40px; height: 52px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--white);
  transform: translate(-50%, -100%); transform-origin: 50% 100%;
  transition: scale var(--transition-fast);
}
.map-pin--icon::after { display: none; }
.map-pin--icon:hover { background: none; scale: 1.1; --pin: var(--green-700); }
.map-pin--icon.is-rent { background: none; color: var(--color-text-on-accent); --pin: var(--brass-500); }
.map-pin--icon.is-rent:hover { background: none; --pin: var(--brass-400); }
.map-pin--icon.is-active { background: none; box-shadow: none; scale: 1.18; --pin: var(--charcoal-900); color: var(--white); }
.map-pin-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--pin); stroke: var(--white); stroke-width: 3; paint-order: stroke; filter: drop-shadow(0 4px 6px rgba(var(--green-900-rgb), 0.28)); }
.map-pin--icon .icon { position: absolute; left: 50%; top: 11px; width: 18px; height: 18px; margin-left: -9px; vertical-align: 0; }

/* Cluster */
.map-cluster {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; transform: translate(-50%, -50%);
  pointer-events: auto; border: 3px solid var(--white); border-radius: 50%;
  background: var(--color-bg-primary); color: var(--color-text-inverse); font: 700 0.9375rem/1 var(--font-body);
  box-shadow: 0 0 0 8px rgba(var(--green-900-rgb), 0.18), var(--shadow-md); cursor: pointer;
}
.map-cluster:hover { background: var(--green-700); }

/* Animations: pins drop from above, the card pops in. Switch off with data-map-animate="false". */
.map-pin.is-hold, .map-cluster.is-hold { visibility: hidden; }
@keyframes map-drop {
  0%   { translate: 0 -90px; opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  45%  { translate: 0 0; opacity: 1; animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  66%  { translate: 0 -16px; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  82%  { translate: 0 0; animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  91%  { translate: 0 -5px; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  100% { translate: 0 0; opacity: 1; }
}
.map-pin.is-drop, .map-cluster.is-drop { animation: map-drop 800ms both; }
@keyframes map-pop {
  from { opacity: 0; scale: 0.8; translate: 0 14px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}
.map-popup.is-animated.is-open { transform-origin: 50% 100%; animation: map-pop 280ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
.map-popup.is-animated.is-open.is-below { transform-origin: 50% 0; animation-name: map-pop-below; }
@keyframes map-pop-below {
  from { opacity: 0; scale: 0.8; translate: 0 -14px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}

/* Popup card */
.map-popup {
  position: absolute; z-index: 4; display: none; width: 320px; transform: translate(-50%, calc(-100% - 52px));
  background: var(--color-bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: visible; pointer-events: auto;
}
.map-popup.is-open { display: flex; }
.map-popup::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -7px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: var(--color-bg-card); border-radius: 0 0 3px 0;
}
/* Card opens below the pin when there is no room above */
.map-popup.is-below { transform: translate(-50%, 16px); }
.map-popup.is-below::after { bottom: auto; top: -7px; border-radius: 3px 0 0 0; }
.map-popup-media { position: relative; flex: 0 0 112px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; }
.map-popup-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-popup-media .badge { position: absolute; top: 8px; left: 8px; }
.map-popup-body { flex: 1; min-width: 0; padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-md); }
.map-popup-price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: var(--color-text-brand); }
.map-popup-title { margin: 2px 0; font: 700 0.9375rem/1.35 var(--font-body); }
.map-popup-title a { color: var(--color-text-primary); text-decoration: none; }
.map-popup-title a:hover { color: var(--color-text-link); text-decoration: underline; }
.map-popup-address { display: flex; align-items: flex-start; gap: 4px; margin: 0 0 var(--spacing-sm); font-size: 0.8125rem; color: var(--color-text-secondary); }
.map-popup-address .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; vertical-align: 0; color: var(--color-text-accent); }
.map-popup-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-primary); }
.map-popup-meta li { display: inline-flex; align-items: center; gap: 4px; }
.map-popup-meta .icon { width: 15px; height: 15px; vertical-align: 0; color: var(--color-text-brand); }
.map-popup-close {
  position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: var(--color-bg-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-md); cursor: pointer;
}
.map-popup-close .icon { width: 14px; height: 14px; vertical-align: 0; }
.map-popup-close:hover { background: var(--green-700); }

/* Controls */
.map-controls { position: absolute; z-index: 5; top: var(--spacing-md); right: var(--spacing-md); display: grid; gap: 8px; }
.map-zoom { display: grid; border-radius: var(--radius-md); background: var(--color-bg-card); box-shadow: var(--shadow-md); overflow: hidden; }
.map-zoom .map-ctrl + .map-ctrl { border-top: 1px solid var(--color-border-subtle); }
.map-ctrl {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0;
  background: var(--color-bg-card); color: var(--color-text-brand); cursor: pointer; transition: background-color var(--transition-fast);
}
.map-ctrl:hover { background: var(--color-bg-surface); }
.map-ctrl .icon { width: 20px; height: 20px; vertical-align: 0; }
.map-ctrl--solo { border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.map-view.is-demo .map-zoom { display: none; }

/* Notice (shown when no API key is set) */
.map-notice {
  position: absolute; z-index: 5; left: var(--spacing-md); bottom: var(--spacing-md); max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: var(--radius-full); background: var(--color-bg-card); box-shadow: var(--shadow-md);
  font-size: 0.8125rem; color: var(--color-text-secondary);
}
.map-notice strong { color: var(--color-text-brand); }

/* Phones: popup becomes a card at the bottom */
@media (max-width: 575.98px) {
  .map-view { height: 480px; }
  .map-popup, .map-popup.is-below { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; transform: none; }
  .map-popup::after { display: none; }
  .map-popup-close { top: 8px; right: 8px; background: var(--color-bg-card); color: var(--color-text-brand); }
  .map-notice { bottom: auto; top: var(--spacing-md); right: 64px; border-radius: var(--radius-md); }
}
@media (max-width: 575.98px) {
  @keyframes map-pop-sheet { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
  .map-popup.is-animated.is-open, .map-popup.is-animated.is-open.is-below { animation: map-pop-sheet 260ms ease-out both; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin, .map-ctrl { transition: none; }
  .map-pin.is-drop, .map-cluster.is-drop, .map-popup.is-animated.is-open { animation: none; }
  .map-pin.is-hold, .map-cluster.is-hold { visibility: visible; }
}

/* ==========================================================================
   SPLIT VIEW (list + map)
   <main class="split" data-split="list">
     <section class="split-list scroll-fancy"> toolbar, heading, cards </section>
     <section class="split-map"><div class="map-view map-view--split" data-property-map="..."></div></section>
     <div class="split-switch"> buttons [data-split-show="list|map"] </div>
   </main>
   On screens 992px and wider the list and the map each take half of the screen
   below the header. The list scrolls by itself; the map stays full height.
   On phones one pane shows at a time. data-split on <main> holds "list" or "map".
   ========================================================================== */
.split { --split-top: 77px; }
.split-toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg); background: var(--color-bg-page); border-bottom: 1px solid var(--color-border-subtle);
}
.split-toolbar .input-icon { flex: 1 1 140px; min-width: 0; }
.split-toolbar .form-select { padding-inline-end: 2rem; }
.split-toolbar .form-select { width: auto; }
.split-body { padding: var(--spacing-lg); }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--spacing-sm) var(--spacing-md); margin-bottom: var(--spacing-lg); }
.split-head h1 { margin: 0; font-size: 1.5rem; }
.split-head p { margin: 2px 0 0; font-size: 0.9375rem; color: var(--color-text-secondary); }
.split-map .map-view--split { height: 100%; min-height: 0; border-radius: 0; }
.map-pin.is-hover { z-index: 3; background: var(--charcoal-900, #252B28); color: var(--white); box-shadow: var(--shadow-lg); }
.map-pin--icon.is-hover { background: none; box-shadow: none; scale: 1.18; --pin: var(--charcoal-900, #252B28); }
.split-switch {
  position: fixed; z-index: 1040; left: 50%; bottom: var(--spacing-lg); transform: translateX(-50%); display: flex; padding: 4px;
  border-radius: var(--radius-full); background: var(--color-bg-primary); box-shadow: var(--shadow-lg);
}
.split-switch button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--color-text-inverse); font: 600 0.875rem/1 var(--font-body); cursor: pointer;
}
.split-switch button[aria-pressed="true"] { background: var(--color-bg-card); color: var(--color-text-brand); }
.split-switch .icon { width: 16px; height: 16px; vertical-align: 0; }

@media (min-width: 992px) {
  .split-toolbar { flex-wrap: nowrap; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: calc(100vh - var(--split-top)); overflow: hidden; }
  .split-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .split-map { min-height: 0; }
  .split-switch { display: none; }
}
@media (max-width: 991.98px) {
  .split[data-split="map"] .split-list { display: none; }
  .split[data-split="list"] .split-map { display: none; }
  .split-map .map-view--split { height: calc(100svh - var(--split-top)); }
  .split-toolbar { position: static; padding-inline: var(--spacing-md); }
  .split-body { padding: var(--spacing-md); }
  .split-list { padding-bottom: 80px; }
}

/* ==========================================================================
   CUSTOM CURSOR (desktop with a mouse only)
   Made by assets/js/effects.js. No markup is needed.
   Parts: .cursor-ring  .cursor-dot  .cursor (holds .cursor-label)
   Over a link the ring hides in the dot; over a label only the label shows.
   States on <html>: .has-cursor (on)  .cursor-link  .cursor-label-on  .cursor-down  .cursor-hidden
   Turn off: <html data-cursor="off"> (the customizer has a switch for it).
   Only transform and opacity are animated.
   ========================================================================== */
.cursor, .cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none; opacity: 0;
  transition: opacity var(--transition-fast);
}
.cursor { width: 0; height: 0; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--white); mix-blend-mode: difference; transition: scale 220ms cubic-bezier(0.2, 0.8, 0.3, 1), opacity var(--transition-fast); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--white); border-radius: 50%;
  mix-blend-mode: difference; transition: scale 220ms cubic-bezier(0.2, 0.8, 0.3, 1), background-color 220ms ease, opacity var(--transition-fast);
}
.cursor-label {
  position: absolute; left: -38px; top: -38px; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--color-bg-primary); color: var(--color-text-inverse); font: 600 0.8125rem/1 var(--font-body);
  box-shadow: var(--shadow-md); transform: scale(0); opacity: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 160ms ease;
}
html.has-cursor .cursor.is-ready, html.has-cursor .cursor-dot.is-ready, html.has-cursor .cursor-ring.is-ready { opacity: 1; }
html.cursor-hidden .cursor, html.cursor-hidden .cursor-dot, html.cursor-hidden .cursor-ring { opacity: 0 !important; }
html.cursor-down .cursor-ring { scale: 0.8; }
/* Over a link the big ring shrinks into the dot and hides, then grows back when the pointer leaves */
html.has-cursor.cursor-link .cursor-ring.is-ready { scale: 0.2; opacity: 0; }
/* Over a label element only the round label shows: no ring and no dot */
html.has-cursor.cursor-label-on .cursor-ring.is-ready, html.has-cursor.cursor-label-on .cursor-dot.is-ready { opacity: 0; }
html.cursor-label-on .cursor-label { transform: scale(1); opacity: 1; }

/* Hide the system pointer, but keep it over text fields and where the page asks for it */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor summary,
html.has-cursor [role="button"], html.has-cursor .btn, html.has-cursor select, html.has-cursor .map-view { cursor: none; }
html.has-cursor input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), html.has-cursor textarea { cursor: text; }
html.has-cursor [data-cursor="native"], html.has-cursor [data-cursor="native"] * { cursor: auto; }
html.cursor-native .cursor, html.cursor-native .cursor-dot, html.cursor-native .cursor-ring { opacity: 0 !important; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor, .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   3D TILT (desktop with a mouse only)
   <div data-tilt="8" data-tilt-glare> <img data-tilt-depth="30"> </div>
   Made by assets/js/effects.js. Only transform and opacity are animated.
   Parts: .tilt (added by script)  .is-tilting (while the pointer is over)  .tilt-glare (light layer)
   ========================================================================== */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt:not(.is-tilting) { transition: transform 600ms cubic-bezier(0.2, 0.8, 0.3, 1), translate 600ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.tilt.is-tilting { transition: transform 120ms linear, translate 200ms ease; translate: 0 -4px; }
html .tilt.tilt { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.tilt [data-tilt-depth] { transition: transform 400ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.tilt.is-tilting [data-tilt-depth] { transform: translateZ(var(--tilt-z, 0px)); }
.tilt-glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 55%);
  transition: opacity 300ms ease;
}
.tilt.is-tilting .tilt-glare { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .tilt { transform: none; }
  .tilt-glare { display: none; }
}

/* ==========================================================================
   ADAPTIVE BACKGROUND
   <section data-adaptive="warm | surface | brand | dark | #hex">
   Made by assets/js/effects.js. As a section crosses the middle of the screen the
   page background fades to its color. The section itself is see-through.
   "brand" and "dark" also use the dark tokens inside the section (see dark.css),
   so text, cards and forms stay readable.
   ========================================================================== */
html.has-adaptive body { background-color: var(--adaptive-bg, var(--color-bg-page)); transition: background-color 700ms ease; }
html.has-adaptive [data-adaptive] { background: transparent; }
html.has-adaptive [data-adaptive="brand"], html.has-adaptive [data-adaptive="dark"] {
  color: var(--color-text-primary);
  --bs-heading-color: var(--color-text-brand); --bs-body-color: var(--color-text-primary); --bs-body-bg: transparent;
  --bs-secondary-color: var(--color-text-secondary); --bs-emphasis-color: var(--color-text-primary);
  --bs-border-color: var(--color-border-default); --bs-border-color-translucent: var(--color-border-subtle);
  --bs-tertiary-bg: var(--color-bg-subtle); --bs-secondary-bg: var(--color-bg-surface);
  --bs-link-color: var(--color-text-link); --bs-link-hover-color: var(--green-200);
}
html.has-adaptive [data-adaptive="brand"] .section-heading p, html.has-adaptive [data-adaptive="dark"] .section-heading p { color: var(--color-text-secondary); }
@media (prefers-reduced-motion: reduce) { html.has-adaptive body { transition: none; } }

/* Component page preview blocks */
.adaptive-demo { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.adaptive-demo-end { height: 1px; }

/* ==========================================================================
   SWIPER THEME · makes Swiper (swiperjs.com, MIT) match this template
   Load Swiper's own CSS first, then this theme. Sliders are started by
   assets/js/swiper-init.js from a data-swiper="preset" attribute.
   Parts: .sw-nav (round arrow buttons)  .sw-dots (pill bullets)
          .sw-bar (scrollbar)  .sw-carousel  .sw-coverflow
   All colors come from the theme tokens, so dark mode and the customizer work.
   ========================================================================== */
.swiper, [data-swiper-scope] {
  --swiper-theme-color: var(--color-bg-primary);
  --swiper-pagination-color: var(--brass-500);
  --swiper-pagination-bullet-inactive-color: var(--color-text-primary);
  --swiper-pagination-bullet-inactive-opacity: 0.25;
  --swiper-pagination-bullet-size: 8px;
  --swiper-pagination-bullet-horizontal-gap: 4px;
  --swiper-scrollbar-bg-color: var(--color-bg-surface);
  --swiper-scrollbar-drag-bg-color: var(--color-bg-primary);
  --swiper-scrollbar-size: 4px;
  --swiper-scrollbar-sides-offset: 0%;
}

/* If Swiper cannot load, slides sit in a row you can scroll sideways */
.swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; gap: var(--spacing-md); scroll-snap-type: x mandatory; }
.swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 min(86%, 360px); scroll-snap-align: start; height: auto; }

/* Round arrow buttons: <button class="sw-nav sw-prev"> and <button class="sw-nav sw-next"> */
.sw-nav {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--color-border-default);
  border-radius: 50%; background: var(--color-bg-card); color: var(--color-text-brand); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}
.sw-nav:hover { background: var(--color-bg-primary); border-color: var(--color-bg-primary); color: var(--color-text-inverse); }
.sw-nav:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sw-nav .icon { width: 20px; height: 20px; vertical-align: 0; }
.sw-nav.swiper-button-disabled { opacity: 0.35; pointer-events: none; }
.sw-nav.swiper-button-lock { display: none; }
[dir="rtl"] .sw-nav .icon { scale: -1 1; }
.sw-nav--light { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); color: var(--white); backdrop-filter: blur(6px); box-shadow: none; }
.sw-nav--light:hover { background: var(--brass-500); border-color: var(--brass-500); color: var(--color-text-on-accent); }
.sw-nav-group { display: inline-flex; gap: var(--spacing-sm); }

/* Pill bullets: <div class="sw-dots"></div> */
.sw-dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--spacing-xl); }
.sw-dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; border-radius: var(--radius-full); transition: width 300ms ease, background-color 300ms ease, opacity 300ms ease; }
.sw-dots .swiper-pagination-bullet-active { width: 28px; }
.sw-dots.swiper-pagination, .sw-dots.sw-dots { position: static; width: auto; left: auto; bottom: auto; }
.sw-quotes-dots { --swiper-pagination-bullet-inactive-color: var(--white); --swiper-pagination-bullet-inactive-opacity: 0.35; }

/* Scrollbar under a carousel */
.sw-bar.swiper-scrollbar { position: static; margin-top: var(--spacing-xl); width: auto; }

/* Section header with arrows on the right */
.sw-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--spacing-md); margin-bottom: var(--spacing-xl); }
.sw-head .section-heading { margin: 0; }

/* Property carousel: cards keep equal height */
.sw-carousel .swiper-slide { height: auto; }
.sw-carousel .swiper-slide > .property-card { height: 100%; }
.sw-carousel { padding: 4px 4px var(--spacing-md); margin: -4px -4px 0; }

/* Coverflow: centered cards, side cards fade back */
.sw-coverflow { padding-block: var(--spacing-lg) var(--spacing-xl); }
.sw-coverflow .swiper-slide { width: min(360px, 78vw); height: auto; transition: opacity 400ms ease, filter 400ms ease; }
.sw-coverflow .swiper-slide:not(.swiper-slide-active) { opacity: 0.55; filter: saturate(0.8); }
.sw-coverflow .swiper-slide > .property-card { height: 100%; box-shadow: var(--shadow-lg); }
.sw-coverflow .swiper-slide:not(.swiper-slide-active) a, .sw-coverflow .swiper-slide:not(.swiper-slide-active) button { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .sw-dots .swiper-pagination-bullet { transition: none; }
}

/* Review cards slider: <div class="swiper sw-cards" data-swiper="cards"> .swiper-slide > .testimonial-card </div> + <div class="sw-dots swiper-pagination"> */
.sw-cards { overflow: hidden; padding: 4px 2px 8px; }
.sw-cards .swiper-slide { height: auto; }
.sw-cards ~ .sw-dots { margin-top: var(--spacing-md); }
.sw-cards:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.sw-cards:not(.swiper-initialized) .swiper-slide { flex: 0 0 85%; scroll-snap-align: start; }

/* ==========================================================================
   SWIPER HERO · full-screen property slider with thumbnails and progress
   <section class="sw-hero">
     <div class="swiper sw-hero-main" data-swiper="hero" data-swiper-thumbs="#heroThumbs"> slides </div>
     <div class="sw-hero-panel"> counter, arrows, thumbnails, progress </div>
   </section>
   Slide: .sw-hero-slide > img.sw-hero-img[data-swiper-parallax] + .container > .sw-hero-body
   The caption plays in when a slide becomes active. Only transform and opacity move.
   ========================================================================== */
.sw-hero { position: relative; isolation: isolate; background: var(--green-950); color: var(--white); }
.sw-hero-main { height: clamp(620px, 100vh, 860px); }
.sw-hero-slide { position: relative; display: flex; align-items: center; height: 100%; padding-block: 120px 160px; overflow: hidden; }
.sw-hero-img { position: absolute; top: 0; bottom: 0; inset-inline-start: -8%; z-index: -2; width: 116%; height: 100%; object-fit: cover; }
.sw-hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 26, 21, 0.92) 0%, rgba(8, 26, 21, 0.7) 38%, rgba(8, 26, 21, 0.1) 75%), linear-gradient(0deg, rgba(8, 26, 21, 0.7) 0%, transparent 38%);
}
[dir="rtl"] .sw-hero-slide::before { background: linear-gradient(270deg, rgba(8, 26, 21, 0.92) 0%, rgba(8, 26, 21, 0.7) 38%, rgba(8, 26, 21, 0.1) 75%), linear-gradient(0deg, rgba(8, 26, 21, 0.7) 0%, transparent 38%); }
.sw-hero-body { max-width: 600px; }
.sw-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--spacing-lg); }
.sw-hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); font-size: 0.8125rem; font-weight: 600; }
.sw-hero-tag--sale { background: var(--brass-500); border-color: var(--brass-500); color: var(--color-text-on-accent); }
.sw-hero-title { margin: 0 0 var(--spacing-md); font-size: clamp(2.25rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.sw-hero-title em { font-style: normal; color: var(--brass-500); }
.sw-hero-address { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--spacing-lg); color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; }
.sw-hero-address .icon { width: 18px; height: 18px; vertical-align: 0; color: var(--brass-500); }
.sw-hero-info { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md) var(--spacing-xl); margin: 0 0 var(--spacing-xl); padding: 0; list-style: none; }
.sw-hero-price { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; color: var(--brass-500); line-height: 1; }
.sw-hero-price small { font-family: var(--font-body); font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }
.sw-hero-spec { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sw-hero-spec .icon { width: 20px; height: 20px; vertical-align: 0; color: var(--brass-500); }
.sw-hero-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }

/* Caption plays in on the active slide */
.sw-hero-slide .sw-hero-body > * { opacity: 0; transform: translateY(28px); }
/* Wait for the loading screen to leave, so the first slide plays on page load too */
html.is-loading .swiper-slide-active .sw-hero-body > * { animation: none; }
.swiper-slide-active .sw-hero-body > * { animation: sw-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.swiper-slide-active .sw-hero-body > :nth-child(2) { animation-delay: 90ms; }
.swiper-slide-active .sw-hero-body > :nth-child(3) { animation-delay: 180ms; }
.swiper-slide-active .sw-hero-body > :nth-child(4) { animation-delay: 270ms; }
.swiper-slide-active .sw-hero-body > :nth-child(5) { animation-delay: 360ms; }
@keyframes sw-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* If Swiper does not start, show the first caption anyway */
.sw-hero-main:not(.swiper-initialized) .swiper-slide:first-child .sw-hero-body > * { opacity: 1; transform: none; }
.sw-hero-main:not(.swiper-initialized) .swiper-wrapper { overflow: hidden; }
.sw-hero-main:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }

/* Bottom panel */
.sw-hero-panel { position: absolute; inset: auto 0 0 0; z-index: 5; padding-block: var(--spacing-xl); pointer-events: none; }
.sw-hero-panel > .container { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--spacing-xl); }
.sw-hero-controls { display: flex; align-items: center; gap: var(--spacing-lg); pointer-events: auto; }
.sw-hero-count { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1; min-width: 96px; }
.sw-hero-count small { font-family: var(--font-body); font-size: 0.9375rem; color: rgba(255, 255, 255, 0.6); }
.sw-hero-thumbs { width: min(560px, 46vw); margin: 0 0 0 auto; padding-top: 8px; pointer-events: auto; }
[dir="rtl"] .sw-hero-thumbs { margin: 0 auto 0 0; }
.sw-hero-thumb { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-md); background: rgba(8, 26, 21, 0.55); backdrop-filter: blur(8px); cursor: pointer; opacity: 0.7; transition: opacity 300ms ease, border-color 300ms ease, transform 300ms ease; }
.sw-hero-thumb img { flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; }
.sw-hero-thumb > div { min-width: 0; }
.sw-hero-thumb strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 0.8125rem; line-height: 1.25; }
.sw-hero-thumb span { font-size: 0.75rem; color: var(--brass-500); font-weight: 600; }
.swiper-slide-thumb-active .sw-hero-thumb { opacity: 1; border-color: var(--brass-400); transform: translateY(-4px); }
.sw-hero-progress { position: absolute; inset: auto 0 0 0; z-index: 6; height: 3px; background: rgba(255, 255, 255, 0.18); }
.sw-hero-progress span { display: block; height: 100%; background: var(--brass-400); transform-origin: left center; transform: scaleX(0); }
[dir="rtl"] .sw-hero-progress span { transform-origin: right center; }

@media (max-width: 991.98px) {
  .sw-hero-thumbs { display: none; }
  .sw-hero-slide { padding-block: 110px 150px; }
  .sw-hero-panel > .container { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
  .sw-hero-slide::before, [dir="rtl"] .sw-hero-slide::before { background: linear-gradient(0deg, rgba(8, 26, 21, 0.94) 0%, rgba(8, 26, 21, 0.82) 60%, rgba(8, 26, 21, 0.6) 100%); }
}
@media (max-width: 575.98px) {
  .sw-hero-main { height: auto; min-height: 640px; }
  .sw-hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .swiper-slide-active .sw-hero-body > * { animation: none; opacity: 1; transform: none; }
}
html.anim-off .swiper-slide-active .sw-hero-body > * { animation: none; opacity: 1; transform: none; }

/* ==========================================================================
   SWIPER STACK · cards effect: a pile of property cards you can swipe away
   <div class="swiper sw-stack" data-swiper="stack"> slides </div>
   ========================================================================== */
.sw-stack { width: min(360px, 78vw); margin-inline: auto; overflow: visible; padding-bottom: var(--spacing-md); }
.sw-stack .swiper-slide { height: auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-bg-card); }
.sw-stack-card { display: flex; flex-direction: column; height: 100%; }
.sw-stack-card img { display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.sw-stack-card-body { padding: var(--spacing-lg); }
.sw-stack-card-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-text-brand); }
.sw-stack-card-title { margin: 2px 0 0; font: 700 1rem/1.3 var(--font-body); color: var(--color-text-primary); }
.sw-stack-card-place { margin: 4px 0 0; font-size: 0.875rem; color: var(--color-text-secondary); }

/* Deal section: text on one side, stack on the other */
.sw-deal-section { overflow-x: clip; }
.sw-deal > * { min-width: 0; }
.sw-deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--spacing-3xl); align-items: center; }
.sw-deal-list { display: grid; gap: var(--spacing-md); margin: var(--spacing-lg) 0 var(--spacing-xl); padding: 0; list-style: none; }
.sw-deal-list li { display: flex; gap: var(--spacing-md); align-items: flex-start; }
.sw-deal-list .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; vertical-align: 0; color: var(--brass-500); }
@media (max-width: 991.98px) { .sw-deal { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-2xl); } }

/* ==========================================================================
   SWIPER QUOTES · testimonials with the creative effect
   <div class="swiper sw-quotes" data-swiper="quotes"> .swiper-slide > figure.sw-quote </div>
   ========================================================================== */
.sw-quotes { max-width: 860px; margin-inline: auto; overflow: hidden; }
.sw-quote { margin: 0; padding: var(--spacing-xl) var(--spacing-md); text-align: center; }
.sw-quote .icon { width: 44px; height: 44px; color: var(--brass-500); vertical-align: 0; }
.sw-quote blockquote { margin: var(--spacing-lg) 0; font-family: var(--font-heading); font-size: clamp(1.375rem, 2.6vw, 2rem); line-height: 1.35; color: var(--white); }
.sw-quote figcaption { display: inline-flex; align-items: center; gap: var(--spacing-md); text-align: start; }
.sw-quote figcaption strong { display: block; color: var(--white); }
.sw-quote figcaption span { font-size: 0.875rem; color: rgba(247, 246, 240, 0.75); }
.sw-quotes .swiper-pagination-bullet { --swiper-pagination-bullet-inactive-color: var(--white); }

/* ==========================================================================
   MAP HERO (home page variation)
   <section class="map-hero">
     <div class="map-view map-view--hero" data-property-map="..."></div>
     <div class="map-hero-overlay"><div class="container"><div class="map-hero-panel">...</div></div></div>
   </section>
   The panel floats over the map on wide screens and sits above it on phones.
   Use data-map-offset-left on the map so pins stay clear of the panel.
   ========================================================================== */
.map-hero { position: relative; }
.map-view--hero { height: clamp(580px, 82vh, 760px); border-radius: 0; }
.map-hero-overlay { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; pointer-events: none; }
.map-hero-overlay > .container { display: flex; }
.map-hero-panel {
  width: 100%; max-width: 420px; padding: var(--spacing-xl); pointer-events: auto;
  background: var(--color-bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.map-hero-panel .hero-eyebrow { margin-bottom: var(--spacing-md); background: var(--color-bg-surface); color: var(--color-text-brand); }
.map-hero-panel .hero-eyebrow .icon { color: var(--brass-500); }
.map-hero-title { margin: 0 0 var(--spacing-sm); font-size: clamp(1.875rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text-brand); }
.map-hero-title em { font-style: normal; color: var(--brass-500); }
.map-hero-lead { margin: 0 0 var(--spacing-lg); color: var(--color-text-secondary); }
.map-hero-form { display: grid; gap: var(--spacing-md); }
.map-hero-form .segmented { width: 100%; }
.map-hero-form .segmented-item { flex: 1; text-align: center; }
.map-hero-form label:not(.segmented-item) { display: block; margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-secondary); }
.map-hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.map-hero-stats { display: flex; gap: var(--spacing-xl); margin: var(--spacing-lg) 0 0; padding: var(--spacing-lg) 0 0; list-style: none; border-top: 1px solid var(--color-border-subtle); }
.map-hero-stats strong { display: block; font-family: var(--font-heading); font-size: 1.375rem; line-height: 1.1; color: var(--color-text-brand); }
.map-hero-stats span { font-size: 0.8125rem; color: var(--color-text-secondary); }

@media (max-width: 991.98px) {
  .map-hero { display: flex; flex-direction: column; }
  .map-hero-overlay { position: static; order: -1; padding-block: var(--spacing-xl) var(--spacing-lg); background: var(--color-bg-page); pointer-events: auto; }
  .map-hero-panel { max-width: none; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .map-view--hero { height: 440px; }
}
.map-view--hero .map-notice { left: auto; right: var(--spacing-md); }
@media (max-width: 991.98px) { .map-view--hero .map-notice { left: var(--spacing-md); right: 64px; top: auto; bottom: var(--spacing-md); } }

/* ==========================================================================
   VARIATION: search bar along the bottom of the map
   <section class="map-hero map-hero--bar"> ... <div class="map-hero-bar"><div class="container">
     <form class="search-card search-card--inline">...</form></div></div> </section>
   The bar floats above the bottom edge (it never covers the Google logo).
   Use data-map-offset-left and data-map-offset-bottom on the map to keep pins clear.
   ========================================================================== */
.map-hero--bar .map-hero-overlay { align-items: flex-start; }
.map-hero-panel--intro { max-width: 440px; margin-top: var(--spacing-2xl); }
.map-hero-panel--intro .map-hero-lead { margin-bottom: var(--spacing-md); }
.map-hero-bar { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 7; pointer-events: none; }
.map-hero-bar .search-card { pointer-events: auto; }
.map-hero--bar .map-view--hero .map-notice { top: var(--spacing-md); bottom: auto; right: 64px; left: auto; }
@media (max-width: 991.98px) {
  .map-hero-bar { position: static; order: 1; padding-block: var(--spacing-lg); background: var(--color-bg-page); pointer-events: auto; }
  .map-hero-bar .search-card { box-shadow: var(--shadow-md); }
  .map-hero-panel--intro { margin-top: 0; }
  .map-hero--bar .map-view--hero .map-notice { top: auto; bottom: var(--spacing-md); right: 64px; left: var(--spacing-md); }
}

/* ==========================================================================
   PROGRESS BARS
   Single:  <div class="progress-track" role="progressbar" ...><i class="progress-fill" data-progress style="--w: 72%"></i></div>
   List:    <ul class="progress-list"><li class="progress-row"> label + track + value </li></ul>
   Fill width comes from --w. Add data-progress to animate the fill from 0 (animations.js).
   Add data-count="72" to a number to count up from 0 (see the Animations page).
   Modifiers: .is-brass (fill color)  .progress-track--lg (thicker)
   ========================================================================== */
.progress-track { height: 12px; border-radius: var(--radius-full); background: var(--color-bg-surface); overflow: hidden; }
.progress-track--lg { height: 16px; }
.progress-fill {
  display: block; width: var(--w, 50%); height: 100%; border-radius: inherit; transform-origin: left center;
  background: linear-gradient(90deg, var(--green-700), var(--color-bg-primary));
}
.progress-fill.is-brass { background: linear-gradient(90deg, var(--brass-400), var(--brass-500)); }

.progress-head { display: flex; justify-content: space-between; gap: var(--spacing-md); margin-bottom: 6px; font-size: 0.9375rem; }
.progress-head strong { font-weight: 700; }
.progress-head span { font-weight: 700; color: var(--color-text-brand); }

.progress-list { display: grid; gap: var(--spacing-lg); margin: 0; padding: var(--spacing-xl); list-style: none; background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.progress-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: var(--spacing-md); }
.progress-label { font-weight: 700; }
.progress-value { min-width: 120px; text-align: right; font-size: 0.9375rem; }
.progress-value b { font-family: var(--font-heading); font-size: 1.0625rem; color: var(--color-text-brand); }
.progress-value em { margin-left: 6px; font-style: normal; font-size: 0.8125rem; font-weight: 700; color: var(--green-700); }
@media (max-width: 575.98px) {
  .progress-list { padding: var(--spacing-lg); }
  .progress-row { grid-template-columns: 1fr auto; }
  .progress-row .progress-track { grid-column: 1 / -1; order: 3; }
  .progress-value { min-width: 0; }
}

/* ==========================================================================
   MAP HOME sections (index-map.html)
   .hood-strip  .map-steps  .map-art  .open-date   .agent-row
   ========================================================================== */

/* Neighbourhood chips */
.hood-strip { display: flex; align-items: center; gap: var(--spacing-lg); }
.hood-strip-label { flex: none; font-weight: 700; color: var(--color-text-brand); }
.hood-strip .scroll-row { flex: 1; grid-auto-columns: max-content; gap: var(--spacing-sm); padding-bottom: 6px; min-width: 0; }
.hood-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--color-border-default); border-radius: var(--radius-full);
  background: var(--color-bg-card); color: var(--color-text-primary); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.hood-chip small { font-weight: 500; color: var(--color-text-secondary); }
.hood-chip:hover { border-color: var(--color-bg-primary); background: var(--color-bg-primary); color: var(--white); }
.hood-chip:hover small { color: rgba(255, 255, 255, 0.8); }
/* Swipe version: <div class="swiper" data-swiper="chips"> with each .hood-chip as a .swiper-slide */
.hood-strip .swiper { flex: 1; min-width: 0; margin: 0; padding-block: 2px 6px; }
.hood-strip .swiper-wrapper { box-sizing: border-box; }
.hood-strip .swiper .hood-chip.swiper-slide { display: inline-flex; width: auto; height: auto; flex: 0 0 auto; }
.hood-strip .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 auto; }
.hood-strip .swiper-wrapper { cursor: grab; }
@media (max-width: 767.98px) { .hood-strip .swiper { width: 100%; } }
@media (max-width: 767.98px) { .hood-strip { flex-direction: column; align-items: flex-start; gap: var(--spacing-sm); } .hood-strip .scroll-row { width: 100%; } }

/* Row arrows */
.row-nav { display: flex; gap: var(--spacing-sm); }

/* Steps with a connecting line */
.map-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.map-steps li { position: relative; display: flex; gap: var(--spacing-lg); padding-bottom: var(--spacing-xl); counter-increment: step; }
.map-steps li:last-child { padding-bottom: 0; }
.map-steps li::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-bg-primary); color: var(--white); font: 600 1.125rem/1 var(--font-heading); position: relative; z-index: 1;
}
.map-steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--color-border-default); }
.map-steps li:last-child::after { display: none; }
.map-steps h3 { margin: 4px 0 4px; font: 700 1.125rem/1.3 var(--font-body); }
.map-steps p { margin: 0; color: var(--color-text-secondary); }

/* Decorative map picture */
.map-art { position: relative; min-height: 420px; border-radius: var(--radius-xl); overflow: hidden; background: var(--color-bg-surface) url("../img/hero/map-demo.webp") center / cover no-repeat; box-shadow: var(--shadow-lg); }
.map-art-pin {
  position: absolute; padding: 6px 12px; border: 2px solid var(--white); border-radius: var(--radius-full); background: var(--color-bg-primary); color: var(--white);
  font: 700 0.8125rem/1 var(--font-body); box-shadow: var(--shadow-md); transform: translate(-50%, -50%);
}
.map-art-pin.is-rent { background: var(--color-bg-accent); color: var(--color-text-on-accent); }
.map-art-cluster { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--white); border-radius: 50%; background: var(--color-bg-primary); color: var(--white); font-weight: 700; box-shadow: 0 0 0 8px rgba(var(--green-900-rgb), 0.18); transform: translate(-50%, -50%); }
.map-art-card {
  position: absolute; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 12px; width: min(300px, calc(100% - 32px)); padding: 10px 14px 10px 10px;
  transform: translateX(-50%); border-radius: var(--radius-lg); background: var(--color-bg-card); box-shadow: var(--shadow-lg);
}
.map-art-card img { width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; }
.map-art-card strong { display: block; font-family: var(--font-heading); color: var(--color-text-brand); }
.map-art-card span { font-size: 0.8125rem; color: var(--color-text-secondary); }

/* Open house date tag on a list card */
.open-date {
  position: absolute; right: var(--spacing-sm); bottom: var(--spacing-sm); z-index: 2; display: grid; place-items: center; min-width: 56px; padding: 6px 10px;
  border-radius: var(--radius-md); background: var(--color-bg-card); box-shadow: var(--shadow-md); text-align: center; line-height: 1.1;
}
.open-date strong { font: 600 1.375rem/1 var(--font-heading); color: var(--color-text-brand); }
.open-date span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-500); }

/* Open house countdown: a bar on the photo that counts down to the viewing.
   <div class="open-countdown" data-countdown="2026-12-05T11:00:00+05:00"> with [data-cd="d|h|m|s"] numbers */
.open-countdown {
  position: absolute; inset-inline: var(--spacing-sm); bottom: var(--spacing-sm); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md);
  padding: 10px var(--spacing-md); border-radius: var(--radius-lg); background: rgba(var(--green-900-rgb), 0.88); color: var(--sand-50); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.open-countdown-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-500); line-height: 1.25; }
.open-countdown-cells { display: flex; align-items: center; gap: 4px; }
.open-countdown-cells > div { display: grid; place-items: center; min-width: 44px; line-height: 1; text-align: center; }
.open-countdown-cells > div + div { position: relative; }
.open-countdown-cells > div + div::before { content: ":"; position: absolute; inset-inline-start: -5px; top: 2px; font: 600 1.25rem/1 var(--font-heading); opacity: 0.45; }
.open-countdown-cells strong { font: 600 1.5rem/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.open-countdown-cells span { margin-top: 4px; font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.open-countdown-live { display: none; align-items: center; gap: 8px; font-weight: 700; }
.open-countdown-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(91, 209, 139, 0.6); animation: open-live-pulse 1.6s ease-out infinite; }
.open-countdown.is-live .open-countdown-label, .open-countdown.is-live .open-countdown-cells, .open-countdown.is-over .open-countdown-cells { display: none; }
.open-countdown.is-live .open-countdown-live, .open-countdown.is-over .open-countdown-live { display: inline-flex; }
.open-countdown.is-over .open-countdown-live::before { animation: none; background: var(--charcoal-300); }
@keyframes open-live-pulse { 70% { box-shadow: 0 0 0 9px rgba(91, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 209, 139, 0); } }
@media (prefers-reduced-motion: reduce) { .open-countdown-live::before { animation: none; } }
@media (max-width: 420px) { .open-countdown { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* Agent rows */
.agent-row { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); transition: box-shadow var(--transition-fast), border-color var(--transition-fast); }
.agent-row:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-default); }
.agent-row-body { flex: 1; min-width: 0; }
.agent-row-name { margin: 0; font: 700 1rem/1.3 var(--font-body); }
.agent-row-name a { color: var(--color-text-primary); text-decoration: none; }
.agent-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 2px; font-size: 0.8125rem; color: var(--color-text-secondary); }
.agent-row-meta .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--color-text-accent); }
.agent-row-rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--color-text-primary); }
.agent-row-rate .icon { color: var(--brass-500); fill: var(--brass-500); }

/* ==========================================================================
   COMPARE SLIDER · drag to reveal "before" over "after".
   Markup: .compare-slider[data-compare] > img.compare-after + img.compare-before
   + .compare-tag x2 + .compare-handle + input.compare-range (keyboard + touch).
   Set the start position with data-compare-start="50". Ratio with --compare-ratio.
   ========================================================================== */
.compare-slider { --pos: 50%; --compare-ratio: 4 / 3; position: relative; overflow: hidden; aspect-ratio: var(--compare-ratio); border-radius: var(--radius-xl); background: var(--color-bg-surface); box-shadow: var(--shadow-lg); direction: ltr; user-select: none; -webkit-user-select: none; isolation: isolate; }
.compare-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgb(0 0 0 / 12%), 0 0 16px rgb(0 0 0 / 25%); pointer-events: none; z-index: 2; }
.compare-knob { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--color-bg-primary); color: var(--white); border: 3px solid var(--white); box-shadow: var(--shadow-md); transition: transform .2s ease; }
.compare-knob .icon { width: 1.25em; height: 1.25em; stroke-width: 2.6; }
.compare-knob .icon + .icon { margin-left: -2px; }
.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100vh; }
.compare-range::-moz-range-thumb { width: 2px; height: 100vh; border: 0; }
.compare-slider.is-dragging .compare-knob, .compare-slider:hover .compare-knob { transform: scale(1.08); }
.compare-slider:has(.compare-range:focus-visible) { outline: 3px solid var(--color-bg-accent); outline-offset: 3px; }
.compare-slider:has(.compare-range:focus-visible) .compare-knob { background: var(--color-bg-accent); color: var(--charcoal-900); }
.compare-tag { position: absolute; top: var(--spacing-md); z-index: 2; padding: 0.3rem 0.8rem; border-radius: var(--radius-full); background: rgb(10 24 20 / 92%); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; box-shadow: 0 2px 8px rgb(0 0 0 / 25%); text-transform: uppercase; pointer-events: none; backdrop-filter: blur(4px); }
.compare-tag-before { left: var(--spacing-md); }
.compare-tag-after { right: var(--spacing-md); background: var(--brass-500); color: var(--charcoal-900); }
.compare-slider.is-wide { --compare-ratio: 21 / 9; }
.compare-slider.is-square { --compare-ratio: 1 / 1; }
.compare-slider.is-flat { box-shadow: none; }
@media (max-width: 767.98px) { .compare-slider.is-wide { --compare-ratio: 4 / 3; } .compare-knob { width: 42px; height: 42px; margin: -21px 0 0 -21px; } }
@media (prefers-reduced-motion: reduce) { .compare-knob { transition: none; } }

/* Card version: slider on top, caption below */
.cmp-card { overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); box-shadow: var(--shadow-sm); height: 100%; }
.cmp-card .compare-slider { border-radius: 0; box-shadow: none; }
.cmp-card-body { padding: var(--spacing-lg); }
.cmp-card-body h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.cmp-card-body p { margin-bottom: var(--spacing-md); color: var(--color-text-primary); opacity: .82; font-size: .95rem; }
.cmp-card-figures { display: flex; gap: var(--spacing-lg); margin: 0; padding-top: var(--spacing-md); border-top: 1px solid var(--color-border-subtle); }
.cmp-card-figures div { flex: 1; }
.cmp-card-figures dt { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-primary); opacity: .75; }
.cmp-card-figures dd { margin: 0; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-text-brand); }
.cmp-card-figures .is-gain dd { color: var(--color-text-success); }

/* ==========================================================================
   COMPARE TABLE · "us vs the typical alternative". Wrap in .compare-table-wrap
   Highlight column: th.is-us / td.is-us. Use icons check-circle / minus.
   ========================================================================== */
.compare-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--color-border-subtle); vertical-align: middle; }
.compare-table thead th { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--color-text-primary); background: var(--color-bg-surface); }
.compare-table tbody th { text-align: start; font-weight: 500; color: var(--color-text-primary); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table .is-us { background: color-mix(in srgb, var(--color-bg-primary) 7%, transparent); }
.compare-table thead .is-us { background: var(--color-bg-primary); color: var(--white); }
.compare-table td small { display: block; margin-top: .2rem; color: var(--color-text-primary); opacity: .78; font-size: .85rem; }
.cmp-yes, .cmp-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.cmp-yes { background: var(--color-bg-primary); color: var(--white); }
.cmp-no { background: var(--color-bg-surface-pressed); color: var(--charcoal-700); }
.cmp-yes .icon, .cmp-no .icon { width: 1em; height: 1em; }

/* ==========================================================================
   COMPARISON HOME · page-specific layout (index-compare.html)
   ========================================================================== */
.cmp-hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0; background: var(--color-bg-surface); overflow: hidden; }
.cmp-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cmp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.08; margin-bottom: var(--spacing-md); }
.cmp-hero h1 em { font-style: italic; color: var(--color-text-brand); }
.cmp-hero-lead { max-width: 34rem; font-size: 1.125rem; color: var(--color-text-primary); opacity: .85; margin-bottom: var(--spacing-lg); }
.cmp-hero-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin-bottom: var(--spacing-xl); }
.cmp-hero-stats { display: flex; flex-wrap: wrap; gap: var(--spacing-xl); margin: 0; padding: 0; list-style: none; }
.cmp-hero-stats strong { display: block; font-family: var(--font-heading); font-size: 1.9rem; line-height: 1.1; color: var(--color-text-brand); }
.cmp-hero-stats span { font-size: .9rem; font-weight: 500; color: var(--color-text-primary); opacity: .8; }
.cmp-hero-visual { position: relative; }
.cmp-hero-visual .compare-slider { --compare-ratio: 5 / 4; }
.cmp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cmp-split.is-reverse > :first-child { order: 2; }
.cmp-points { display: grid; gap: var(--spacing-md); margin: var(--spacing-lg) 0 0; padding: 0; list-style: none; }
.cmp-points li { display: flex; gap: var(--spacing-md); align-items: flex-start; }
.cmp-points .cmp-point-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--color-bg-primary); color: var(--white); }
.cmp-points h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.cmp-points p { margin: 0; font-size: .95rem; color: var(--color-text-primary); opacity: .8; }
.cmp-uplift { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-md); margin-top: var(--spacing-lg); }
.cmp-uplift div { padding: var(--spacing-md); border-radius: var(--radius-lg); background: var(--color-bg-card); border: 1px solid var(--color-border-subtle); text-align: center; }
.cmp-uplift strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-text-brand); line-height: 1.1; }
.cmp-uplift span { font-size: .85rem; font-weight: 500; color: var(--color-text-primary); opacity: .8; }
.cmp-wide { position: relative; }
.cmp-wide-caption { position: absolute; left: var(--spacing-lg); bottom: var(--spacing-lg); z-index: 2; max-width: 26rem; padding: var(--spacing-md) var(--spacing-lg); border-radius: var(--radius-lg); background: rgb(15 30 26 / 78%); color: var(--white); backdrop-filter: blur(6px); pointer-events: none; }
.cmp-wide-caption h3 { margin: 0 0 .2rem; font-size: 1.1rem; color: var(--white); }
.cmp-wide-caption p { margin: 0; font-size: .9rem; opacity: .85; }
@media (max-width: 991.98px) {
  .cmp-hero-grid, .cmp-split { grid-template-columns: minmax(0, 1fr); }
  .cmp-split.is-reverse > :first-child { order: 0; }
  .cmp-wide-caption { position: static; max-width: none; margin-top: var(--spacing-md); background: var(--color-bg-surface); color: var(--color-text-primary); backdrop-filter: none; }
  .cmp-wide-caption h3 { color: var(--color-text-primary); }
}
@media (max-width: 575.98px) { .cmp-uplift { grid-template-columns: minmax(0, 1fr); } .cmp-hero-stats { gap: var(--spacing-lg); } }
.cmp-lead { color: var(--color-text-primary); opacity: .85; font-size: 1.05rem; }

/* ==========================================================================
   FULL-SCREEN COMPARE HERO · the slider IS the hero (index-compare-hero.html).
   .cmp-fs > .compare-slider.is-full + .cmp-fs-shade + .cmp-fs-content
   Put the transparent header on the page: <header class="site-header is-transparent">
   ========================================================================== */
.cmp-fs { position: relative; height: min(100svh, 900px); min-height: 560px; background: var(--green-950); }
.cmp-fs .compare-slider { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.cmp-fs .compare-tag { top: calc(var(--header-h, 80px) + var(--spacing-md)); }
.cmp-fs .compare-knob { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cmp-fs-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgb(10 24 20 / 55%) 0%, rgb(10 24 20 / 0%) 28%, rgb(10 24 20 / 0%) 45%, rgb(10 24 20 / 82%) 100%); }
.cmp-fs-content { position: absolute; inset: auto 0 0 0; z-index: 4; padding-bottom: calc(clamp(2rem, 6vh, 4rem) + 64px); color: var(--white); pointer-events: none; }
.cmp-fs-content .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--spacing-lg); }
.cmp-fs-content h1 { max-width: 14ch; margin: 0 0 var(--spacing-sm); font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.05; color: var(--white); text-shadow: 0 2px 24px rgb(0 0 0 / 35%); }
.cmp-fs-content h1 em { font-style: italic; color: var(--brass-500); }
.cmp-fs-content p { max-width: 32rem; margin: 0; font-size: 1.1rem; color: rgb(255 255 255 / 88%); }
.cmp-fs-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); pointer-events: auto; }
.cmp-fs-actions a { pointer-events: auto; }
@media (max-width: 767.98px) { .cmp-fs { height: 100svh; min-height: 600px; } .cmp-fs .compare-knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; } .cmp-fs-actions .btn { flex: 1 1 auto; } }

/* Project tabs with a slider in each pane */
.cmp-tabs { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin: 0 0 var(--spacing-lg); padding: 0; list-style: none; }
.cmp-tabs .nav-link { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border: 1px solid var(--color-border-default); border-radius: var(--radius-full); background: var(--color-bg-card); color: var(--color-text-primary); font-weight: 500; }
.cmp-tabs .nav-link.active { background: var(--color-bg-primary); border-color: var(--color-bg-primary); color: var(--white); }
.cmp-tab-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cmp-tab-grid h3 { font-size: 1.6rem; }
.cmp-tab-grid dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); margin: var(--spacing-lg) 0 0; }
.cmp-tab-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-primary); opacity: .75; font-weight: 600; }
.cmp-tab-grid dd { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-text-brand); }
@media (max-width: 991.98px) { .cmp-tab-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pair of tall sliders */
.cmp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-lg); }
.cmp-duo figure { margin: 0; }
.cmp-duo figcaption { padding-top: var(--spacing-sm); font-size: .9rem; color: var(--color-text-primary); opacity: .85; }
.cmp-duo figcaption strong { display: block; color: var(--color-text-primary); font-size: 1rem; }
.cmp-duo .compare-slider { --compare-ratio: 4 / 5; }
@media (max-width: 575.98px) { .cmp-duo { grid-template-columns: minmax(0, 1fr); } .cmp-duo .compare-slider { --compare-ratio: 4 / 3; } }

/* Numbered steps */
.cmp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-lg); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.cmp-steps li { position: relative; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); counter-increment: step; }
.cmp-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--spacing-sm); font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: var(--brass-500); }
.cmp-steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.cmp-steps p { margin: 0; font-size: .95rem; color: var(--color-text-primary); opacity: .82; }
@media (max-width: 991.98px) { .cmp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cmp-steps { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   APP SHOWCASE · browser, tablet and phone frames with floating feature chips
   <div class="device-stage" data-device-stage>
     <span class="device-chip device-chip--tl"><svg class="icon">..</svg>Light and dark mode</span>
     <figure class="device-browser"><div class="device-bar"><i></i><i></i><i></i><span class="device-url">immersivesoul.com/homelia</span></div><img src="" alt=""></figure>
     <figure class="device-tablet"><img src="" alt=""></figure>
     <figure class="device-phone"><img src="" alt=""></figure>
   </div>
   Pointer motion (parallax) is made by assets/js/effects.js. It only runs on desktop with a mouse
   and stops when the visitor prefers reduced motion. Without the script the layout is simply still.
   Parts: .device-backdrop (dark section background)  .photo-stage  .photo-main  .photo-side  .photo-small
          .photo-chip (+ --tl --mr --tr)
   The .device-* frames (browser, tablet, phone) are used by the showcase hero page.
   ========================================================================== */

/* Dark section background for the demo and for your own hero. Optional. */
.device-backdrop { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 40px) clamp(56px, 8vw, 96px); border-radius: var(--radius-xl); color: var(--white); background:
  radial-gradient(60% 55% at 50% -5%, color-mix(in srgb, var(--green-500) 50%, transparent), transparent 72%),
  radial-gradient(38% 38% at 92% 38%, color-mix(in srgb, var(--brass-500) 20%, transparent), transparent 70%),
  linear-gradient(180deg, var(--green-950), var(--green-900)); }

/* The stage holds the devices. --px and --py (from -1 to 1) are set by effects.js. */
.device-stage { position: relative; isolation: isolate; width: min(100%, 1120px); margin-inline: auto; --px: 0; --py: 0; }
.device-stage::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--brass-500) 38%, transparent), transparent 70%); filter: blur(50px); opacity: 0.7; pointer-events: none; }

/* Frames */
.device-browser, .device-tablet, .device-phone { position: relative; margin: 0; background: var(--green-950); border: 1px solid rgb(255 255 255 / 0.16); }
.device-browser img, .device-tablet img, .device-phone img { display: block; width: 100%; height: auto; }
.device-browser { overflow: hidden; border-radius: 16px; box-shadow: 0 50px 100px -24px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(0 0 0 / 0.3); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--charcoal-900); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.2); }
.device-bar i:nth-child(1) { background: #ec6a5e; }
.device-bar i:nth-child(2) { background: #f4bf4f; }
.device-bar i:nth-child(3) { background: #61c554; }
.device-url { flex: 1; max-width: 340px; margin-inline: auto; padding: 4px 12px; border-radius: var(--radius-full); background: rgb(255 255 255 / 0.07); font-size: 0.6875rem; text-align: center; color: rgb(255 255 255 / 0.55); }
.device-tablet { padding: 7px; border-radius: 22px; box-shadow: 0 30px 70px -18px rgb(0 0 0 / 0.7); }
.device-phone { padding: 5px; border-radius: 22px; box-shadow: 0 30px 70px -18px rgb(0 0 0 / 0.7); }
.device-tablet img { border-radius: 16px; }
.device-phone img { border-radius: 17px; }

/* Inside a stage: the browser is centered, the tablet and phone overlap its corners */
.device-stage > .device-browser { width: 84%; margin-inline: auto; transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0); transition: transform 0.25s ease-out; }
.device-stage > .device-tablet { position: absolute; left: 0; bottom: -7%; width: 24%; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -8px), 0); transition: transform 0.25s ease-out; }
.device-stage > .device-phone { position: absolute; right: 1%; bottom: -10%; width: 14.5%; transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0); transition: transform 0.25s ease-out; }
@media (max-width: 767.98px) {
  .device-stage > .device-browser { width: 100%; }
  .device-stage > .device-tablet { display: none; }
  .device-stage > .device-phone { right: -2%; bottom: -12%; width: 24%; }
}

/* Photo stage: one large image that blends into the section, with two room photos overlapping its corners (no device frames) */
.photo-stage { position: relative; isolation: isolate; width: min(100%, 1120px); margin-inline: auto; --px: 0; --py: 0; }
.photo-main, .photo-side, .photo-small { position: relative; margin: 0; }
.photo-main img, .photo-side img, .photo-small img { display: block; width: 100%; height: auto; }
/* The large image has no frame. Its edges fade into the section background. */
.photo-main img { -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); mask-composite: intersect; }
.photo-side, .photo-small { overflow: hidden; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 14px; }
.photo-stage > .photo-main { width: 100%; transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0); transition: transform 0.25s ease-out; }
.photo-stage > .photo-side { position: absolute; left: 0; bottom: -4%; width: 31%; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -8px), 0); transition: transform 0.25s ease-out; }
.photo-stage > .photo-small { position: absolute; right: 0; bottom: 6%; width: 24%; transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0); transition: transform 0.25s ease-out; }
@media (max-width: 767.98px) {
  .photo-stage > .photo-side { display: none; }
  .photo-stage > .photo-small { right: 0; bottom: 0; width: 38%; }
}
.photo-stage > .photo-chip { position: absolute; z-index: 3; animation: device-float 6s ease-in-out infinite; }
@media (max-width: 991.98px) { .photo-stage > .photo-chip { display: none; } }

/* Floating chips: small glass labels that drift up and down. Hidden below 992px. */
.device-chip, .photo-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid rgb(255 255 255 / 0.18); border-radius: var(--radius-full); background: rgb(14 38 32 / 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.8125rem; font-weight: 600; color: var(--white); box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.5); }
.device-chip .icon, .photo-chip .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--brass-500); color: var(--green-950); }
.device-stage > .device-chip { position: absolute; z-index: 3; animation: device-float 6s ease-in-out infinite; }
.device-chip--tl, .photo-chip--tl { top: 12%; left: -1%; }
.device-chip--mr, .photo-chip--mr { top: 40%; right: -2%; animation-delay: -2s; }
.device-chip--tr, .photo-chip--tr { top: -4%; right: 18%; animation-delay: -4s; }
@keyframes device-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 991.98px) { .device-stage > .device-chip { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .device-stage > .device-chip, .photo-stage > .photo-chip { animation: none; }
  .device-stage > .device-browser, .device-stage > .device-tablet, .device-stage > .device-phone, .photo-stage > .photo-main, .photo-stage > .photo-side, .photo-stage > .photo-small { transform: none; transition: none; }
}

/* ==========================================================================
   SPOTLIGHT HOME HERO (index-spotlight.html)
   A Swiper slider where every slide is a featured home: text on one side, a large image with two
   room photos and three feature chips on the other (see components/app-showcase.html).
   When a slide becomes active (.swiper-slide-active) its parts play a short entrance:
   the chips drop in, the first room photo slides in from the side, the second rises from below,
   and the large image fades in. Animations are off when the visitor prefers reduced motion.
   ========================================================================== */
.spot-hero.device-backdrop { border-radius: 0; padding: clamp(112px, 13vw, 148px) 0 var(--spacing-xl); }
.spot-slide { padding-bottom: var(--spacing-3xl); }
.spot-title { margin: var(--spacing-xs) 0 var(--spacing-md); font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; color: var(--white); }
.spot-title em { font-style: normal; color: var(--brass-500); }
.spot-lead { max-width: 30rem; margin-bottom: var(--spacing-lg); font-size: 1.0625rem; color: rgb(255 255 255 / 0.74); }
.spot-copy ul { color: var(--white); }
.spot-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); margin-top: calc(var(--spacing-3xl) * -0.5); position: relative; z-index: 4; }
.spot-controls .sw-dots { margin-top: 0; }
.sw-dots--light .swiper-pagination-bullet { background: rgb(255 255 255 / 0.4); opacity: 1; }
.sw-dots--light .swiper-pagination-bullet-active { background: var(--brass-500); }
@media (max-width: 991.98px) { .spot-stage { margin-top: var(--spacing-lg); } .spot-slide { padding-bottom: var(--spacing-xl); } .spot-controls { margin-top: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .swiper-slide-active .spot-main { animation: spot-fade 1.5s ease-out both; }
  .swiper-slide-active .spot-side { animation: spot-from-left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
  .swiper-slide-active .spot-small { animation: spot-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both; }
  .swiper-slide-active .spot-stage > .photo-chip { animation: spot-drop 0.95s cubic-bezier(0.34, 1.3, 0.5, 1) both, device-float 6s ease-in-out infinite; }
  .swiper-slide-active .spot-stage > .photo-chip--tr { animation-delay: 0.5s, 1.5s; }
  .swiper-slide-active .spot-stage > .photo-chip--tl { animation-delay: 0.8s, 1.8s; }
  .swiper-slide-active .spot-stage > .photo-chip--mr { animation-delay: 1.1s, 2.1s; }
  /* Left text: each line rises in, on page load and on every slide change */
  .swiper-slide-active .spot-copy > * { animation: spot-copy-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .swiper-slide-active .spot-copy > :nth-child(2) { animation-delay: 0.1s; }
  .swiper-slide-active .spot-copy > :nth-child(3) { animation-delay: 0.2s; }
  .swiper-slide-active .spot-copy > :nth-child(4) { animation-delay: 0.3s; }
  .swiper-slide-active .spot-copy > :nth-child(5) { animation-delay: 0.4s; }
  /* Hold everything until the loading screen has left, so the first slide plays on load too */
  html.is-loading .swiper-slide-active :is(.spot-copy > *, .spot-main, .spot-side, .spot-small, .spot-stage > .photo-chip) { animation: none; }
}
@keyframes spot-copy-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes spot-fade { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes spot-from-left { from { opacity: 0; translate: -80px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes spot-rise { from { opacity: 0; translate: 0 80px; scale: 0.86; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes spot-drop { 0% { opacity: 0; transform: translateY(-90px) scale(0.9); } 55% { opacity: 1; transform: translateY(10px) scale(1.02); } 78% { transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
.spot-copy .eyebrow { color: var(--brass-500); }

/* The top chip sits inside the photo so the slide edge never clips it */
.spot-stage .photo-chip--tr { top: 4%; }

/* ==========================================================================
   SPOTLIGHT SECTIONS · the sections under the Spotlight home hero (index-spotlight.html)
   .sp-statement  headline with photo pills inline + a number row
   .sp-lifestyle  expanding photo panels (hover / focus / tap to open)
   .sp-journey    sticky heading + numbered steps on a line
   .sp-pulse      neighbourhood cards with price sparkline
   .sp-alert      "sentence" form on a brand panel
   ========================================================================== */

/* ---- statement ---- */
.sp-statement { text-align: center; }
.sp-statement-text { max-width: 1040px; margin: 0 auto; font-family: var(--font-heading); font-weight: 500; line-height: 1.3; font-size: clamp(1.75rem, 4.2vw, 3.25rem); color: var(--color-text-primary); letter-spacing: -0.01em; }
.sp-statement-text em { color: var(--color-text-brand); font-style: italic; }
.sp-pill { display: inline-block; width: 2.6em; height: 1.05em; margin: 0 0.12em; border-radius: var(--radius-full); background: var(--color-bg-surface) center / cover no-repeat; vertical-align: -0.12em; box-shadow: inset 0 0 0 1px rgba(var(--green-900-rgb), .12); }
.sp-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-lg); max-width: 960px; margin: var(--spacing-2xl, 56px) auto 0; padding-top: var(--spacing-xl); border-top: 1px solid var(--color-border-subtle); }
.sp-numbers strong { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; color: var(--color-text-brand); unicode-bidi: isolate; }
.sp-numbers > div > span { font-size: 0.875rem; color: var(--color-text-secondary); }
@media (max-width: 767.98px) { .sp-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- lifestyle panels ---- */
.sp-panels { display: flex; width: 100%; gap: 12px; height: clamp(420px, 52vw, 560px); }
.sp-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius-xl); background: var(--green-800, #173F35) center / cover no-repeat; color: var(--white); text-decoration: none; display: flex; align-items: flex-end; transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1); isolation: isolate; }
.sp-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--green-overlay-rgb), 0) 35%, rgba(var(--green-overlay-rgb), .86) 100%); }
.sp-panel:hover, .sp-panel:focus-visible, .sp-panel.is-open { flex-grow: 3.2; color: var(--white); }
.sp-panel-body { padding: var(--spacing-lg); width: 100%; min-width: 260px; }
.sp-panel-num { position: absolute; inset-block-start: var(--spacing-md); inset-inline-start: var(--spacing-lg); font-size: .8125rem; letter-spacing: .12em; color: var(--brass-500); }
.sp-panel h3 { margin: 0 0 4px; color: var(--white); font-size: 1.25rem; white-space: nowrap; }
.sp-panel p { margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s, opacity .2s; }
/* The text waits until the panel has finished opening (.6s), then fades in slowly */
.sp-panel:hover p, .sp-panel:focus-visible p, .sp-panel.is-open p { max-height: 120px; opacity: 1; transition: max-height .5s .5s, opacity .8s .65s; }
.sp-panel-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--brass-500); }
@media (max-width: 767.98px) {
  .sp-panels { flex-direction: column; height: auto; }
  .sp-panel { flex: none; min-height: 150px; transition: min-height .5s; }
  .sp-panel:hover, .sp-panel:focus-visible, .sp-panel.is-open { min-height: 250px; }
  .sp-panel-body { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .sp-panel, .sp-panel p { transition: none; } }

/* ---- journey ---- */
.sp-journey { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spacing-3xl, 72px); align-items: start; }
.sp-journey-intro { position: sticky; top: 120px; }
.sp-journey-intro p { color: var(--color-text-secondary); max-width: 420px; }
.sp-steps { list-style: none; margin: 0; padding: 0; counter-reset: sp; position: relative; }
.sp-steps::before { content: ""; position: absolute; inset-block: 28px; inset-inline-start: 27px; width: 2px; background: repeating-linear-gradient(180deg, var(--color-border-default, #cfd8d2) 0 6px, transparent 6px 12px); }
.sp-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--spacing-lg); padding-bottom: var(--spacing-xl); }
.sp-step:last-child { padding-bottom: 0; }
.sp-step-dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-primary); color: var(--white); font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; box-shadow: 0 0 0 6px var(--color-bg-page, #F7F6F0); }
.sp-step:nth-child(even) .sp-step-dot { background: var(--brass-500, #C0903F); }
.sp-step-card { padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card, #fff); }
.sp-step-card h3 { margin: 0 0 6px; font-size: 1.1875rem; }
.sp-step-card p { margin: 0; color: var(--color-text-secondary); font-size: .9375rem; }
.sp-step-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--color-text-brand); }
@media (max-width: 991.98px) { .sp-journey { grid-template-columns: 1fr; gap: var(--spacing-xl); } .sp-journey-intro { position: static; } }

/* ---- neighbourhood pulse ---- */
.sp-pulse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); }
.sp-pulse-card { display: block; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card, #fff); color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.sp-pulse-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brass-400); color: inherit; }
.sp-pulse-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sp-pulse-top h3 { margin: 0; font-size: 1.1875rem; }
.sp-pulse-top small { color: var(--color-text-secondary); }
.sp-delta { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); font-size: .8125rem; font-weight: 700; background: rgba(46, 107, 87, .12); color: var(--green-600, #2E6B57); white-space: nowrap; unicode-bidi: isolate; }
.sp-delta.is-down { background: rgba(176, 58, 46, .1); color: var(--color-text-danger); }
.sp-spark { display: block; width: 100%; height: 72px; margin: var(--spacing-md) 0; overflow: visible; }
.sp-spark path { fill: none; stroke: var(--color-bg-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sp-spark .sp-area { fill: url(#sp-grad); stroke: none; }
.sp-spark.is-down path:not(.sp-area) { stroke: var(--color-text-danger); }
.sp-spark circle { fill: var(--brass-500, #C0903F); stroke: var(--white); stroke-width: 2; }
.sp-pulse-foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; padding-top: var(--spacing-md); border-top: 1px solid var(--color-border-subtle); }
.sp-pulse-foot b { display: block; font-size: 1rem; unicode-bidi: isolate; }
.sp-pulse-foot span { font-size: .75rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 991.98px) { .sp-pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sp-pulse-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .sp-spark path:not(.sp-area) { stroke-dasharray: 400; animation: sp-draw 1.8s .3s ease both; } }
@keyframes sp-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }

/* ---- agencies ---- */
.sp-agency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-md); }
.sp-agency { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card, #fff); color: inherit; text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.sp-agency:hover { border-color: var(--brass-400); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.sp-agency-logo { flex: none; width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--color-bg-surface); display: grid; place-items: center; overflow: hidden; }
.sp-agency-logo img { width: 70%; height: 70%; object-fit: contain; }
.sp-agency-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-agency-main strong { font-size: 1rem; line-height: 1.3; }
.sp-agency small { color: var(--color-text-secondary); font-size: .8125rem; display: inline-flex; align-items: center; gap: 4px; }
.sp-agency .icon { width: 14px; height: 14px; }
.sp-agency-meta { display: none; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.sp-agency-rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.sp-agency-rate .icon { color: var(--brass-500); fill: currentColor; }
.sp-agency-go { flex: none; color: var(--color-text-brand); transition: transform .25s; }
.sp-agency:hover .sp-agency-go { transform: translateX(4px); }
@media (min-width: 1200px) { .sp-agency-meta { display: flex; } .sp-agency-grid { gap: var(--spacing-lg); } }
@media (max-width: 1199.98px) { .sp-agency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .sp-agency-grid { grid-template-columns: 1fr; } }

/* ---- clients ---- */
.sp-clients { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--spacing-3xl, 64px); align-items: start; }
.sp-score-num { display: flex; align-items: center; gap: var(--spacing-md); margin: var(--spacing-lg) 0; }
.sp-score-num > strong { font-family: var(--font-heading); font-size: 4.5rem; line-height: 1; color: var(--color-text-brand); }
.sp-score-num > span { display: flex; flex-direction: column; gap: 4px; }
.sp-score-num small { color: var(--color-text-secondary); }
.sp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 360px; }
.sp-bars li { display: grid; grid-template-columns: 14px 1fr 38px; align-items: center; gap: 10px; font-size: .8125rem; color: var(--color-text-secondary); }
.sp-bars em { font-style: normal; text-align: end; unicode-bidi: isolate; }
.sp-bar { height: 8px; border-radius: 99px; background: rgba(var(--green-900-rgb), .1); overflow: hidden; }
.sp-bar b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brass-400), var(--brass-500)); }
.sp-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-lg); }
.sp-review { margin: 0; padding: var(--spacing-lg); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card, #fff); display: flex; flex-direction: column; gap: var(--spacing-md); }
.sp-review:first-child { grid-column: 1 / -1; background: var(--color-bg-primary); color: var(--white); border-color: transparent; }
.sp-review:first-child blockquote { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.4; }
.sp-review:first-child small { color: rgba(255, 255, 255, .7); }
.sp-review blockquote { margin: 0; flex: 1; }
.sp-review figcaption { display: flex; align-items: center; gap: 12px; }
.sp-review figcaption span:last-child { display: flex; flex-direction: column; }
.sp-review small { color: var(--color-text-secondary); }
.sp-trust { list-style: none; margin: var(--spacing-xl) 0 0; padding: var(--spacing-lg) 0 0; border-top: 1px solid var(--color-border-subtle); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--spacing-md); }
.sp-trust li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; }
.sp-trust .icon { width: 22px; height: 22px; color: var(--brass-500); }
@media (max-width: 991.98px) { .sp-clients { grid-template-columns: 1fr; gap: var(--spacing-xl); } }
@media (max-width: 575.98px) { .sp-reviews { grid-template-columns: 1fr; } .sp-trust { justify-content: flex-start; } }

/* ---- alert ---- */
.sp-alert { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--spacing-2xl, 48px); align-items: center; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px); background: var(--color-bg-primary); color: var(--white); }
.sp-alert::before { content: ""; position: absolute; inset-block-start: -140px; inset-inline-start: -100px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 178, 94, .28), transparent); pointer-events: none; }
.sp-alert > * { position: relative; }
.sp-alert .eyebrow { color: var(--brass-500); }
.sp-alert h2 { color: var(--white); font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.sp-alert-copy p { color: rgba(255, 255, 255, .8); max-width: 480px; }
.sp-alert-points { list-style: none; margin: var(--spacing-lg) 0 0; padding: 0; display: grid; gap: 10px; }
.sp-alert-points li { display: flex; align-items: center; gap: 10px; }
.sp-alert-points .icon { color: var(--brass-500); }
.sp-alert-form { display: grid; gap: var(--spacing-md); padding: var(--spacing-lg); border-radius: var(--radius-xl); background: var(--color-bg-card, #fff); color: var(--color-text-primary); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
@media (max-width: 991.98px) { .sp-alert { grid-template-columns: 1fr; } }
.sp-seg { display: flex; width: 100%; }
.sp-seg .segmented-item { flex: 1 1 0; text-align: center; justify-content: center; }
.sp-agency-meta small { white-space: nowrap; }
@media (max-width: 575.98px) { .sp-alert { padding: 24px 16px; } .sp-alert-form { padding: 16px; } }

/* ==========================================================================
   AGENCY HERO · cover image, logo, name and actions on the agency profile page
   .agency-hero > .agency-hero-cover + .agency-hero-body (.agency-hero-logo, -text, -actions)
   ========================================================================== */
.agency-hero { overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); box-shadow: var(--shadow-sm); }
.agency-hero-cover { height: clamp(140px, 22vw, 240px); background: var(--color-bg-surface); }
.agency-hero-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.agency-hero-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--spacing-lg); padding: 0 var(--spacing-xl) var(--spacing-xl); }
.agency-hero-logo { flex: none; display: grid; place-items: center; width: 112px; height: 112px; margin-top: -56px; border: 4px solid var(--color-bg-card); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-md); overflow: hidden; }
.agency-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.agency-hero-text { flex: 1 1 260px; min-width: 0; padding-top: var(--spacing-md); }
.agency-hero-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
@media (max-width: 575.98px) { .agency-hero-body { padding-inline: var(--spacing-lg); } .agency-hero-actions { width: 100%; } .agency-hero-actions .btn { flex: 1 1 auto; } }

/* Slim breadcrumb-only banner for profile pages */
.page-banner.page-banner--compact { padding-block: var(--spacing-lg); }
.page-banner.page-banner--compact .breadcrumb { margin: 0; }
.contact-list li { display: flex; align-items: center; gap: var(--spacing-sm); }
.contact-list .icon { flex: none; color: var(--color-text-brand); }

/* ==========================================================================
   MEGA MENU · wide panel under the header. Open with a normal Bootstrap dropdown.
   Markup: li.dropdown.has-mega > button[data-bs-toggle=dropdown] + .dropdown-menu.mega[data-mega]
   Inside: .mega-rail (search + .mega-tab buttons), .mega-body (.mega-panel > .mega-grid), .mega-promo
   ========================================================================== */
.site-menu > li.has-mega { position: static; }
body .dropdown-menu.mega { --mega-h: min(560px, calc(100vh - 120px)); left: 0; right: 0; width: min(1320px, calc(100vw - 48px)); margin: 0 auto; padding: 0; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); background: var(--color-bg-card); box-shadow: 0 30px 80px -20px rgb(15 40 32 / 38%), 0 4px 16px rgb(15 40 32 / 8%); overflow: hidden; }
body .dropdown-menu.mega.show { animation: mega-in .22s ease-out both; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body .dropdown-menu.mega.show { animation: none; } }
.mega-inner { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; height: var(--mega-h); }

/* Rail */
.mega-rail { display: flex; flex-direction: column; gap: var(--spacing-sm); padding: var(--spacing-md); background: var(--color-bg-surface); border-inline-end: 1px solid var(--color-border-subtle); overflow-y: auto; }
.mega-search { position: relative; }
.mega-search .icon { position: absolute; top: 50%; inset-inline-start: 12px; width: 16px; height: 16px; margin-top: -8px; color: var(--color-text-secondary); pointer-events: none; }
.mega-search input { width: 100%; height: 42px; padding-inline: 38px 12px; border: 1px solid var(--color-border-default); border-radius: var(--radius-md); background: var(--color-bg-card); font-size: .9rem; }
.mega-tabs { display: grid; gap: 2px; }
.mega-tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-text-primary); text-align: start; transition: background-color .15s ease, transform .15s ease; }
.mega-tab:hover { background: rgb(255 255 255 / 70%); }
.mega-tab-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--color-bg-card); color: var(--color-text-brand); box-shadow: inset 0 0 0 1px var(--color-border-subtle); transition: background-color .15s ease, color .15s ease; }
.mega-tab-icon .icon { width: 18px; height: 18px; }
.mega-tab-text { flex: 1; min-width: 0; line-height: 1.25; }
.mega-tab-text strong { display: block; font-size: .92rem; font-weight: 600; }
.mega-tab-text small { font-size: .78rem; color: var(--color-text-secondary); }
.mega-tab > .icon { width: 14px; height: 14px; color: var(--color-text-secondary); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.mega-tab.is-active { background: var(--color-bg-card); box-shadow: var(--shadow-sm); }
.mega-tab.is-active .mega-tab-icon { background: var(--color-bg-primary); color: var(--white); box-shadow: none; }
.mega-tab.is-active > .icon { opacity: 1; transform: none; }
.mega.is-searching .mega-tab.is-active { background: transparent; box-shadow: none; }
.mega.is-searching .mega-tab.is-active .mega-tab-icon { background: var(--color-bg-card); color: var(--color-text-brand); box-shadow: inset 0 0 0 1px var(--color-border-subtle); }

/* Panels */
.mega-body { padding: var(--spacing-lg) var(--spacing-xl); overflow-y: auto; }
.mega-panel { display: none; }
.mega-panel.is-active, .mega.is-searching .mega-panel:not(.is-empty) { display: block; animation: mega-panel .25s ease-out both; }
@keyframes mega-panel { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mega-panel.is-active, .mega.is-searching .mega-panel:not(.is-empty) { animation: none; } }
.mega.is-searching .mega-panel:not(.is-empty) ~ .mega-panel:not(.is-empty) { margin-top: var(--spacing-lg); }
.mega-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--spacing-md); margin-bottom: var(--spacing-md); padding-bottom: var(--spacing-sm); border-bottom: 1px solid var(--color-border-subtle); }
.mega-panel-head .mega-title { margin: 0; font-family: var(--font-heading); font-weight: 600; color: var(--color-text-primary); line-height: 1.2; font-size: 1.25rem; }
.mega-panel-head p { margin: 0; flex: 1; font-size: .875rem; color: var(--color-text-secondary); }
.mega-all { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--color-text-brand); white-space: nowrap; }
.mega-all .icon { width: 14px; height: 14px; transition: transform .15s ease; }
.mega-all:hover .icon { transform: translateX(3px); }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; margin: 0; padding: 0; list-style: none; }
.mega-link { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: var(--radius-md); color: var(--color-text-primary); text-decoration: none; transition: background-color .15s ease; }
.mega-link:hover, .mega-link:focus-visible { background: var(--color-bg-surface); color: var(--color-text-primary); }
.mega-link-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-top: 1px; border-radius: 9px; background: color-mix(in srgb, var(--color-bg-primary) 9%, transparent); color: var(--color-text-brand); transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.mega-link-icon .icon { width: 17px; height: 17px; }
.mega-link:hover .mega-link-icon, .mega-link:focus-visible .mega-link-icon { background: var(--color-bg-primary); color: var(--white); transform: translateY(-1px); }
.mega-link-text { min-width: 0; line-height: 1.3; }
.mega-link-text strong { display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.mega-link-text small { display: block; margin-top: 1px; font-size: .78rem; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-new { padding: 1px 6px; border-radius: 999px; background: var(--brass-500); color: var(--charcoal-900); font-size: .625rem; font-style: normal; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.mega-empty { margin: var(--spacing-xl) 0; text-align: center; color: var(--color-text-secondary); }

/* Promo card */
.mega-promo { position: relative; display: flex; flex-direction: column; gap: var(--spacing-md); margin: var(--spacing-md); padding: var(--spacing-lg); border-radius: var(--radius-lg); background: radial-gradient(60% 40% at 100% 100%, rgb(224 178 94 / 28%) 0%, transparent 70%), radial-gradient(120% 80% at 100% 0%, var(--green-700) 0%, transparent 60%), linear-gradient(160deg, #173F35, #0F2A24); color: var(--white); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 30%) transparent; }
.mega-promo-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 12%); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mega-promo-badge .icon { width: 14px; height: 14px; color: var(--brass-500); }
.mega-promo .mega-title { margin: 0; font-family: var(--font-heading); font-weight: 600; color: var(--white); font-size: 1.35rem; line-height: 1.2; }
.mega-promo p { margin: 0; font-size: .875rem; color: rgb(255 255 255 / 78%); }
.mega-promo ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mega-promo li a { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); color: var(--white); font-size: .875rem; font-weight: 500; text-decoration: none; }
.mega-promo li a .icon { width: 14px; height: 14px; opacity: .6; transition: transform .15s ease, opacity .15s ease; }
.mega-promo li a:hover .icon { opacity: 1; transform: translateX(3px); }
.mega-promo .btn { position: relative; z-index: 1; flex: none; margin-top: auto; }
.mega-promo > * { flex: none; }
.mega-promo-stats { display: flex; gap: var(--spacing-lg); }
.mega-promo-stats strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; color: var(--brass-500); }
.mega-promo-stats span { font-size: .72rem; color: rgb(255 255 255 / 70%); }

/* Narrower desktops: drop the promo, then reduce columns */
@media (max-width: 1199.98px) { .mega-inner { grid-template-columns: 230px minmax(0, 1fr); } .mega-promo { display: none; } .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobile: list inside the offcanvas */
.mobile-mega-link small { display: block; color: var(--color-text-secondary); font-size: .8rem; }

/* Short screens: keep the documentation card complete without scrolling */
@media (max-height: 720px) { .mega-promo p, .mega-promo-stats { display: none; } .mega-promo { gap: 10px; } .mega-promo .mega-title { font-size: 1.2rem; } .mega-promo li a { padding: 5px 0; } }

/* ---- Pages variant: link columns + featured homes (.mega--pages) ------------------------ */
.mega--pages .mega-inner { grid-template-columns: minmax(0, 1fr) 390px; height: auto; }
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); padding: var(--spacing-xl); }
.mega-col-title { margin: 0 0 var(--spacing-sm); padding-bottom: var(--spacing-sm); border-bottom: 1px solid var(--color-border-subtle); font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-secondary); }
.mega-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mega-feature { display: flex; flex-direction: column; gap: var(--spacing-md); padding: var(--spacing-lg); background: var(--color-bg-surface); border-inline-start: 1px solid var(--color-border-subtle); }
.mega-feature-head { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); }
.mega-feature .mega-promo-badge { background: var(--color-bg-card); color: var(--color-text-primary); box-shadow: inset 0 0 0 1px var(--color-border-subtle); }
.mega-props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-md); }
.mega-prop { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); color: var(--color-text-primary); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.mega-prop:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--color-text-primary); }
.mega-prop-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-surface); }
.mega-prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mega-prop:hover .mega-prop-media img { transform: scale(1.05); }
.mega-prop-media .badge { position: absolute; top: 8px; left: 8px; }
.mega-prop-body { display: grid; gap: 2px; padding: 10px 12px 12px; line-height: 1.3; }
.mega-prop-body strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-text-brand); }
.mega-prop-body strong small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--color-text-secondary); }
.mega-prop-title { font-size: .85rem; font-weight: 600; }
.mega-prop-addr, .mega-prop-spec { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--color-text-secondary); }
.mega-prop-addr .icon { width: 12px; height: 12px; flex: none; color: var(--color-text-accent); }
.mega-agent { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-bg-card); color: var(--color-text-primary); text-decoration: none; transition: box-shadow .2s ease; }
.mega-agent:hover { box-shadow: var(--shadow-sm); color: var(--color-text-primary); }
.mega-agent > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.mega-agent strong { display: block; font-size: .9rem; }
.mega-agent small { font-size: .78rem; color: var(--color-text-secondary); }
.mega-agent > .icon { width: 16px; height: 16px; color: var(--color-text-brand); }
@media (max-width: 1199.98px) { .mega--pages .mega-inner { grid-template-columns: minmax(0, 1fr); } .mega-feature { display: none; } }

/* Properties mega (2 link columns + featured homes) and wide Pages mega (4 link columns) */
.mega-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega--wide .mega-inner { grid-template-columns: minmax(0, 1fr); }
.mega-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-md); }
@media (max-width: 1399.98px) { .mega-cols--4 { gap: var(--spacing-sm); padding-inline: var(--spacing-lg); } .mega-cols--4 .mega-link-text small { display: none; } }
.mega--props .mega-inner { grid-template-columns: minmax(0, 1fr) 510px; }
.mega--props .mega-feature { padding: var(--spacing-xl); gap: var(--spacing-lg); }
@media (max-width: 1199.98px) { .mega--props .mega-inner { grid-template-columns: minmax(0, 1fr); } }
.mega-agents { display: grid; gap: 8px; padding-block-start: var(--spacing-sm); }

/* Components mega: no promo card, the grid takes the full width next to the rail */
.mega:not(.mega--pages) .mega-inner { grid-template-columns: 295px minmax(0, 1fr); }
