/* =====================================================================
   MIFROSE PROPERTY — Public UI layer  (mf-ui.css)
   ---------------------------------------------------------------------
   Loaded AFTER mifrose.css. mifrose.css is kept for the pages that still
   rely on its classes (about, contact, agents, agent profile). This file
   holds the design system used by base.html, the homepage, the listings
   page, the property card and the property detail page.

   Contents
     01  Tokens
     02  Base & typography
     03  Buttons
     04  Form controls
     05  Navigation (desktop + mobile drawer)
     06  Section scaffold
     07  Property card (.pcard) + rails/grids
     08  Homepage (hero, search, tiles, trust, CTA)
     09  Listings page (toolbar, filters, chips, pagination, states)
     10  Property detail page
     11  Footer
     12  Toasts, reveal, utilities
   ===================================================================== */


/* ---------------------------------------------------------------------
   01  TOKENS
   Brand colours come from the logo: deep teal, mint, terracotta.
   --forest and --terracotta are re-declared slightly darker than in
   mifrose.css so text/buttons using them pass WCAG AA (4.5:1) on white.
   --------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-950: #04261F;
  --brand-900: #06392F;
  --brand-800: #085041;          /* primary action colour (= --teal-deep) */
  --brand-700: #0B6450;
  --brand-600: #13805F;          /* accessible brand green for text/icons */
  --brand-100: #E3F4EE;
  --brand-50:  #F1FAF6;
  --mint:      #5DCAA5;
  --accent:    #C24E26;          /* terracotta, AA-safe with white text */
  --accent-600:#A94220;
  --accent-50: #FCEFE9;
  --gold:      #B7791F;
  --gold-50:   #FDF6E7;

  /* Legacy aliases (used across older templates) */
  --forest:     var(--brand-600);
  --teal-deep:  var(--brand-800);
  --terracotta: var(--accent);

  /* Neutrals */
  --ink:       #14201C;          /* headings */
  --text:      #2B3431;          /* body */
  --muted:     #5D6763;          /* secondary text, 5.9:1 on white */
  --line:      #E3E1DA;          /* borders */
  --line-2:    #D3D1C7;
  --surface:   #FFFFFF;
  --canvas:    #F7F5F0;          /* page background (ivory) */
  --canvas-2:  #EFECE4;
  --charcoal:  var(--ink);
  --slate:     var(--muted);
  --stone:     var(--line-2);
  --ivory:     var(--canvas);
  --white:     #FFFFFF;
  --danger:    #B42318;
  --whatsapp:  #128C4A;          /* darker than brand WhatsApp green for AA */

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: .75rem;   /* 12 */
  --fs-sm: .8125rem; /* 13 */
  --fs-md: .875rem;  /* 14 */
  --fs-base: 1rem;   /* 16 */
  --fs-lg: 1.125rem; /* 18 */
  --fs-xl: 1.375rem; /* 22 */
  --fs-2xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --fs-3xl: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);

  /* Space (4px scale) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* Shape & depth */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
  --shadow-xs: 0 1px 2px rgba(16, 36, 30, .06);
  --shadow-sm: 0 2px 8px rgba(16, 36, 30, .06), 0 1px 2px rgba(16, 36, 30, .04);
  --shadow-md: 0 10px 28px rgba(16, 36, 30, .10), 0 2px 6px rgba(16, 36, 30, .05);
  --shadow-lg: 0 24px 56px rgba(16, 36, 30, .16), 0 4px 12px rgba(16, 36, 30, .06);
  --ring: 0 0 0 3px rgba(19, 128, 95, .22);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s;
  --t: .25s;

  /* Layout */
  --nav-h: 68px;
  --container: 1240px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }


/* ---------------------------------------------------------------------
   02  BASE & TYPOGRAPHY
   --------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
}
a { color: var(--brand-600); }
a:hover { color: var(--brand-800); }
img, video { max-width: 100%; }

:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

.container-narrow {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mf-skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--brand-800); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t-fast);
}
.mf-skip:focus { top: 12px; color: #fff; }

.mf-num { font-variant-numeric: tabular-nums; }

/* Plus Jakarta Sans ships a narrow word space (~0.18em); open it up a touch
   wherever the display face is used for UI text so labels never look glued. */
h1, h2, h3, h4, h5, h6,
.mf-btn, .mf-nav-link, .mf-nav-signin, .mf-drawer-link, .mf-drawer summary,
.pbadge, .pcard-price, .pcard-title, .pcard-cta, .pcard-neg,
.mf-section-link, .mf-eyebrow, .mf-tab, .mf-seg label, .mf-chips label,
.mf-filter-title, .mf-count, .mf-chip, .mf-clear-all, .mf-type strong, .mf-loc strong,
.mf-search-q, .mf-hero-eyebrow, .mf-pager, .pd-intents button, .mf-toast-title,
.pd-agent-name, .pd-agent-profile, .mf-avatar, .mf-drawer-account strong,
.mf-footer h2, .mf-step h3, .ref-modal-title { word-spacing: .08em; }


/* ---------------------------------------------------------------------
   03  BUTTONS
   --------------------------------------------------------------------- */
.mf-btn {
  --btn-bg: var(--brand-800);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.mf-btn:hover { color: var(--btn-fg); }
.mf-btn:active { transform: translateY(1px); }
.mf-btn:disabled, .mf-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.mf-btn i { font-size: .95em; }

.mf-btn--primary:hover { --btn-bg: var(--brand-900); }
.mf-btn--accent  { --btn-bg: var(--accent); }
.mf-btn--accent:hover { --btn-bg: var(--accent-600); }
.mf-btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-800); --btn-bd: var(--brand-800); }
.mf-btn--outline:hover { --btn-bg: var(--brand-800); --btn-fg: #fff; }
.mf-btn--ghost   { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.mf-btn--ghost:hover { --btn-bd: var(--brand-600); --btn-fg: var(--brand-800); --btn-bg: var(--brand-50); }
.mf-btn--white   { --btn-bg: #fff; --btn-fg: var(--brand-800); }
.mf-btn--white:hover { --btn-bg: var(--brand-50); --btn-fg: var(--brand-900); }
.mf-btn--glass   { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.mf-btn--glass:hover { --btn-bg: rgba(255,255,255,.2); }
.mf-btn--whatsapp { --btn-bg: var(--whatsapp); }
.mf-btn--whatsapp:hover { --btn-bg: #0E7039; }
.mf-btn--link {
  --btn-bg: transparent; --btn-fg: var(--brand-700);
  min-height: 0; padding: 0; font-size: var(--fs-md);
}
.mf-btn--link:hover { --btn-fg: var(--brand-900); text-decoration: underline; }

.mf-btn--sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-md); border-radius: var(--r-sm); }
.mf-btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.mf-btn--block { width: 100%; }
.mf-btn--icon { width: 44px; min-height: 44px; padding: 0; }

.mf-btn .mf-spin { display: none; }
.mf-btn.is-busy .mf-spin { display: inline-block; }
.mf-btn.is-busy .mf-btn-ico { display: none; }


/* ---------------------------------------------------------------------
   04  FORM CONTROLS
   --------------------------------------------------------------------- */
.mf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mf-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.mf-label-hint { font-weight: 500; color: var(--muted); }

.mf-input,
.mf-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: 500 .9375rem/1.3 var(--font-body);
  color: var(--ink);
  background-color: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.mf-input::placeholder { color: #8A928F; font-weight: 400; }
.mf-input:hover, .mf-select:hover { border-color: #B9B6AB; }
.mf-input:focus, .mf-select:focus {
  outline: none; border-color: var(--brand-600); box-shadow: var(--ring);
}
.mf-select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%235D6763' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  text-overflow: ellipsis;
}
.mf-select:disabled { background-color: var(--canvas); color: var(--muted); cursor: not-allowed; }
/* Chrome 135+: style the open option list natively (progressive enhancement) */
@supports (appearance: base-select) {
  .mf-select, .mf-select::picker(select) { appearance: base-select; }
  .mf-select::picker-icon { display: none; } /* keep our own chevron */
  .mf-select::picker(select) {
    border: 1px solid var(--line); border-radius: var(--r-sm);
    box-shadow: var(--shadow-md); padding: 6px; max-height: 320px;
  }
  .mf-select option { padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
  .mf-select option:hover, .mf-select option:focus-visible { background: var(--brand-50); color: var(--brand-800); }
  .mf-select option:checked { background: var(--brand-100); color: var(--brand-900); font-weight: 600; }
  .mf-select option::checkmark { color: var(--brand-600); }
}

/* Currency input: ₦ prefix */
.mf-money { position: relative; display: block; }
.mf-money > span {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-weight: 600; color: var(--muted); pointer-events: none; font-size: .9375rem;
}
.mf-money > .mf-input { padding-left: 30px; font-variant-numeric: tabular-nums; }
.mf-field.has-error .mf-input { border-color: var(--danger); }
.mf-error { font-size: var(--fs-sm); color: var(--danger); display: none; }
.mf-field.has-error .mf-error { display: block; }

/* Segmented control (radio group) */
.mf-seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--canvas-2); border-radius: var(--r-pill);
  border: 0; margin: 0; min-width: 0; max-width: 100%;
}
.mf-seg legend { float: left; } /* keep legend out of flow when visually hidden */
.mf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mf-seg label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  font: 600 var(--fs-md)/1 var(--font-display); color: var(--muted);
  cursor: pointer; white-space: nowrap; flex: 1 1 auto;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.mf-seg label:hover { color: var(--ink); }
.mf-seg input:checked + label { background: var(--surface); color: var(--brand-800); box-shadow: var(--shadow-sm); }
.mf-seg input:focus-visible + label { outline: 2px solid var(--brand-600); outline-offset: 1px; }
.mf-seg--block { display: flex; width: 100%; }
.mf-seg--block label { flex: 1 1 0; min-width: 0; padding: 0 6px; }

/* Choice chips (radio/checkbox) */
.mf-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.mf-chips input { position: absolute; opacity: 0; pointer-events: none; }
.mf-chips label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  font: 600 var(--fs-md)/1 var(--font-display);
  cursor: pointer; transition: all var(--t-fast);
}
.mf-chips label:hover { border-color: var(--brand-600); color: var(--brand-800); }
.mf-chips input:checked + label { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.mf-chips input:focus-visible + label { box-shadow: var(--ring); }

/* Toggle (checkbox) */
.mf-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; min-height: 44px; }
.mf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mf-toggle-ui {
  position: relative; flex-shrink: 0; width: 44px; height: 26px;
  border-radius: var(--r-pill); background: var(--line-2);
  transition: background-color var(--t-fast);
}
.mf-toggle-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-xs); transition: transform var(--t-fast) var(--ease);
}
.mf-toggle input:checked + .mf-toggle-ui { background: var(--brand-600); }
.mf-toggle input:checked + .mf-toggle-ui::after { transform: translateX(18px); }
.mf-toggle input:focus-visible + .mf-toggle-ui { box-shadow: var(--ring); }

.mf-toggle-text strong { display: block; font-family: var(--font-display); color: var(--ink); }
.mf-toggle-text > span { font-size: var(--fs-sm); color: var(--muted); }
.mf-price-error { margin: 8px 0 0; }
.mf-label-hint { font-size: var(--fs-sm); }

/* Dual-thumb price slider */
.mf-range { position: relative; height: 28px; margin: 6px 4px 2px; }
.mf-range-track, .mf-range-fill {
  position: absolute; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 4px;
}
.mf-range-track { left: 0; right: 0; background: var(--line-2); }
.mf-range-fill { background: var(--brand-600); left: 0; right: 0; }
.mf-range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 28px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.mf-range input[type="range"]::-webkit-slider-runnable-track { background: none; height: 28px; }
.mf-range input[type="range"]::-moz-range-track { background: none; }
.mf-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-700); box-shadow: var(--shadow-sm);
}
.mf-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-700); box-shadow: var(--shadow-sm);
}
.mf-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.mf-range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: var(--ring); }
.mf-range-readout {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: var(--fs-xs); color: var(--muted); font-weight: 500;
}


/* ---------------------------------------------------------------------
   05  NAVIGATION
   --------------------------------------------------------------------- */
.mf-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.mf-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16,36,30,.06); }
.mf-nav-inner { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.mf-brand { display: flex; align-items: center; flex-shrink: 0; }
.mf-brand img { height: 42px; width: auto; display: block; }
@media (max-width: 575.98px) { .mf-brand img { height: 36px; } }

.mf-nav-links { display: none; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.mf-nav-links > li { position: relative; }
.mf-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  font: 600 var(--fs-md)/1 var(--font-display); color: var(--text);
  background: none; border: 0; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mf-nav-link:hover, .mf-nav-link[aria-expanded="true"] { background: var(--canvas); color: var(--brand-800); }
.mf-nav-link.active { color: var(--brand-800); }
.mf-nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px;
  height: 2px; border-radius: 2px; background: var(--brand-600);
}
.mf-nav-link .fa-chevron-down { font-size: .6rem; opacity: .6; transition: transform var(--t-fast); }
.mf-nav-link[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.mf-nav-link.dropdown-toggle::after { display: none; }
.mf-nav-link.dropdown-toggle.active::after { display: block; border: 0; margin: 0; vertical-align: initial; }

.mf-nav .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 240px; margin-top: 10px !important;
  animation: mfDrop .16s var(--ease);
}
.mf-nav .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: var(--fs-md); color: var(--text); white-space: normal;
}
.mf-nav .dropdown-item i { width: 18px; text-align: center; color: var(--brand-600); }
.mf-nav .dropdown-item:hover, .mf-nav .dropdown-item:focus { background: var(--brand-50); color: var(--brand-800); }
.mf-nav .dropdown-item.is-all { font-weight: 700; color: var(--brand-800); }
.mf-nav .dropdown-divider { margin: 6px 4px; border-color: var(--line); }
@keyframes mfDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.mf-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.mf-nav-signin {
  font: 600 var(--fs-md)/1 var(--font-display); color: var(--ink);
  padding: 0 10px; height: 40px; display: none; align-items: center;
}
.mf-nav-signin:hover { color: var(--brand-800); }
.mf-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-800); color: #fff;
  font: 700 .75rem/1 var(--font-display); letter-spacing: .02em;
}
.mf-account {
  display: none; align-items: center; gap: 6px; padding: 3px 10px 3px 3px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff;
  color: var(--muted);
}
.mf-account:hover { border-color: var(--brand-600); color: var(--brand-800); }
.mf-account .fa-chevron-down { font-size: .6rem; }
.mf-nav-post { display: none; }
.mf-burger {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.mf-burger:hover { border-color: var(--brand-600); color: var(--brand-800); }

@media (min-width: 576px) { .mf-nav-post { display: inline-flex; } }
@media (min-width: 1200px) {
  .mf-nav-links { display: flex; }
  .mf-burger { display: none; }
  .mf-nav-signin, .mf-account { display: inline-flex; }
}

/* Mobile drawer (Bootstrap offcanvas) */
.mf-drawer.offcanvas { width: min(360px, 88vw); border-left: 0; }
.mf-drawer .offcanvas-header { justify-content: space-between; height: var(--nav-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); }
.mf-drawer .offcanvas-body { padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 4px; }
.mf-drawer-close {
  width: 44px; height: 44px; border-radius: var(--r-sm); border: 0;
  background: var(--canvas); color: var(--ink); font-size: 1.1rem;
}
.mf-drawer-close:hover { background: var(--canvas-2); }
.mf-drawer-link, .mf-drawer summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 12px; border-radius: var(--r-sm);
  font: 600 1rem/1.2 var(--font-display); color: var(--ink);
  cursor: pointer; list-style: none;
}
.mf-drawer summary::-webkit-details-marker { display: none; }
.mf-drawer-link:hover, .mf-drawer summary:hover, .mf-drawer-link.active { background: var(--brand-50); color: var(--brand-800); }
.mf-drawer summary i { font-size: .75rem; color: var(--muted); transition: transform var(--t-fast); }
.mf-drawer details[open] > summary { color: var(--brand-800); }
.mf-drawer details[open] > summary i { transform: rotate(180deg); }
.mf-drawer-sub { padding: 2px 0 8px 12px; display: flex; flex-direction: column; }
.mf-drawer-sub a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-left: 2px solid var(--line); color: var(--text); font-size: .9375rem;
}
.mf-drawer-sub a:hover { color: var(--brand-800); border-left-color: var(--brand-600); }
.mf-drawer-sub a.is-all { font-weight: 700; color: var(--brand-800); }
.mf-drawer-account {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px;
  background: var(--canvas); border-radius: var(--r-md);
}
.mf-drawer-account strong { display: block; font-family: var(--font-display); color: var(--ink); }
.mf-drawer-account span { font-size: var(--fs-sm); color: var(--muted); }
.mf-drawer-foot { margin-top: auto; padding: 16px 4px 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.mf-drawer-foot form { margin: 0; }
.mf-drawer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf-drawer-signout { min-height: 44px; }


/* ---------------------------------------------------------------------
   06  SECTION SCAFFOLD
   --------------------------------------------------------------------- */
.mf-section { padding-block: 56px; }
.mf-section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.mf-section--tight { padding-block: 40px; }
.mf-section.mf-section--flush-top { padding-top: 0; }
.mf-crumbs--flush { margin: 0; }
@media (min-width: 992px) { .mf-section { padding-block: 80px; } .mf-section--tight { padding-block: 56px; } }

.mf-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.mf-eyebrow {
  display: inline-block; margin-bottom: 8px;
  font: 700 var(--fs-xs)/1 var(--font-display);
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600);
}
.mf-section-title { font-size: var(--fs-2xl); font-weight: 800; margin: 0; }
.mf-section-sub { margin: 8px 0 0; color: var(--muted); max-width: 560px; font-size: .9375rem; }
.mf-section-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 700 var(--fs-md)/1 var(--font-display); color: var(--brand-800);
}
.mf-section-link i { transition: transform var(--t-fast); font-size: .8em; }
.mf-section-link:hover i { transform: translateX(3px); }


/* ---------------------------------------------------------------------
   07  PROPERTY CARD
   --------------------------------------------------------------------- */
.pcard {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.pcard-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--canvas-2);
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.pcard-noimg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: #A7ADA9; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--canvas) 0%, var(--canvas-2) 100%);
}
.pcard-noimg span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; }
.pcard-media:has(img)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(4,20,16,.35), transparent);
  pointer-events: none;
}
.pcard-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.pbadge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font: 700 .6875rem/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase;
  background: rgba(255,255,255,.95); color: var(--brand-800);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.pbadge--featured { background: var(--gold-50); color: #7A4E0C; }
.pbadge--featured i { color: var(--gold); font-size: .65rem; }
.pcard-photos {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px;
  border-radius: var(--r-pill); background: rgba(0,0,0,.55); color: #fff;
  font-size: .6875rem; font-weight: 600;
}
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; flex: 1; }
.pcard-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  font: 800 1.1875rem/1.15 var(--font-display); color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.pcard-price small { font: 500 var(--fs-sm)/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.pcard-neg {
  font: 700 .6875rem/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 4px 7px; border-radius: var(--r-pill); align-self: center;
}
.pcard-title {
  margin: 0; font: 700 1rem/1.35 var(--font-display); color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.pcard-link { color: inherit; text-decoration: none; }
.pcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-link:focus-visible { outline: none; }
.pcard:has(.pcard-link:focus-visible) { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.pcard-link:hover { color: inherit; }
.pcard-loc {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: var(--fs-md); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-loc i { color: var(--accent); font-size: .8rem; flex-shrink: 0; }
.pcard-loc span { overflow: hidden; text-overflow: ellipsis; }
.pcard-specs {
  display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none;
  margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line);
  font-size: var(--fs-md); color: var(--text);
}
.pcard-specs li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pcard-specs i { color: var(--muted); font-size: .85rem; }
.pcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 10px;
}
.pcard-type { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-cta {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font: 700 var(--fs-md)/1 var(--font-display); color: var(--brand-800);
}
.pcard-cta i { font-size: .75em; transition: transform var(--t-fast); }

@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6E6DF; }
  .pcard:hover .pcard-media img { transform: scale(1.045); }
  .pcard:hover .pcard-cta i { transform: translateX(3px); }
}
.pcard:active { transform: scale(.995); }

/* List layout (listings page view toggle) */
@media (min-width: 768px) {
  .mf-grid.is-list { grid-template-columns: 1fr !important; }
  .mf-grid.is-list .pcard { flex-direction: row; }
  .mf-grid.is-list .pcard-media { flex: 0 0 min(38%, 320px); aspect-ratio: auto; min-height: 220px; }
  .mf-grid.is-list .pcard-body { padding: 20px 22px; }
  .mf-grid.is-list .pcard-title { min-height: 0; font-size: 1.0625rem; }
}

/* Grids & rails */
.mf-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .mf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .mf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .mf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .mf-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mf-rail-wrap { position: relative; }
.mf-rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(82%, 320px);
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 20px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.mf-rail::-webkit-scrollbar { display: none; }
.mf-rail > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .mf-rail { grid-auto-columns: calc((100% - 32px) / 2.6); gap: 20px; } }
@media (min-width: 992px) { .mf-rail { grid-auto-columns: calc((100% - 40px) / 3); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 1200px) { .mf-rail--4 { grid-auto-columns: calc((100% - 60px) / 4); } }

/* "Rail on mobile, grid on tablet+" */
@media (max-width: 767.98px) {
  .mf-grid.mf-grid--rail-sm {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 320px);
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 4px var(--gutter) 20px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter);
  }
  .mf-grid.mf-grid--rail-sm::-webkit-scrollbar { display: none; }
  .mf-grid.mf-grid--rail-sm > * { scroll-snap-align: start; }
}
.mf-rail-ctrl { display: none; gap: 8px; }
@media (min-width: 992px) { .mf-rail-ctrl { display: inline-flex; } }
.mf-rail-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.mf-rail-btn:hover:not(:disabled) { border-color: var(--brand-800); background: var(--brand-800); color: #fff; }
.mf-rail-btn:disabled { opacity: .35; cursor: default; }

/* Skeleton for loading states */
.mf-skel { background: linear-gradient(90deg, var(--canvas-2) 0%, #F7F6F2 50%, var(--canvas-2) 100%); background-size: 200% 100%; animation: mfShimmer 1.2s linear infinite; border-radius: 6px; }
@keyframes mfShimmer { to { background-position: -200% 0; } }


/* ---------------------------------------------------------------------
   08  HOMEPAGE
   --------------------------------------------------------------------- */
.mf-hero {
  position: relative; isolation: isolate;
  padding: 48px 0 40px;
  color: #fff;
  background: var(--brand-950);
  overflow: hidden;
}
.mf-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
}
.mf-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,32,26,.55) 0%, rgba(4,32,26,.35) 40%, rgba(4,32,26,.85) 100%),
    linear-gradient(90deg, rgba(4,32,26,.75) 0%, rgba(4,32,26,.1) 70%);
}
.mf-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  font: 600 var(--fs-sm)/1 var(--font-display); color: #E6FFF6;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mf-hero-eyebrow i { color: var(--mint); }
.mf-hero h1 {
  color: #fff; font-size: var(--fs-3xl); font-weight: 800; line-height: 1.08;
  letter-spacing: -.025em; margin: 0 0 12px; max-width: 16ch;
}
.mf-hero h1 em { font-style: normal; color: var(--mint); }
.mf-hero-sub { color: rgba(255,255,255,.82); font-size: clamp(.975rem, .9rem + .3vw, 1.125rem); margin: 0 0 28px; max-width: 52ch; }
@media (min-width: 992px) { .mf-hero { padding: 88px 0 72px; } }

/* Search panel */
.mf-search {
  background: var(--surface); color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-width: 1080px;
}
.mf-search-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mf-search-q { font: 700 var(--fs-base)/1.2 var(--font-display); color: var(--ink); margin: 0; }
.mf-search-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mf-search-grid .mf-field--wide { grid-column: 1 / -1; }
.mf-search-grid .mf-search-submit { grid-column: 1 / -1; }
.mf-search .mf-seg { width: 100%; }
@media (min-width: 576px) { .mf-search .mf-seg { width: auto; } }
@media (min-width: 768px) {
  .mf-search { padding: 20px; }
  .mf-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mf-search-grid .mf-field--wide { grid-column: auto; }
  .mf-search-grid .mf-search-submit { grid-column: auto; }
}
@media (min-width: 1200px) {
  .mf-search { padding: 22px 24px 24px; }
  .mf-search-grid { grid-template-columns: 1.25fr 1.1fr .8fr 1fr 1fr auto; align-items: end; }
}
.mf-search-submit .mf-btn { width: 100%; min-height: 46px; }
@media (min-width: 1200px) { .mf-search-submit .mf-btn { padding: 0 26px; } }

.mf-hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 28px 0 0; padding: 0; list-style: none;
}
.mf-hero-stats li { display: flex; flex-direction: column; }
.mf-hero-stats strong { font: 800 1.375rem/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.mf-hero-stats span { font-size: var(--fs-sm); color: rgba(255,255,255,.72); }

/* Quick links under the search */
.mf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.mf-quick > span { font-size: var(--fs-sm); color: rgba(255,255,255,.75); margin-right: 4px; }
.mf-quick a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
.mf-quick a:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Tabs used to filter "Latest" */
.mf-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; padding-bottom: 2px; }
.mf-tabs::-webkit-scrollbar { display: none; }
.mf-tab {
  flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--text);
  font: 600 var(--fs-md)/1 var(--font-display); cursor: pointer; transition: all var(--t-fast);
}
.mf-tab:hover { border-color: var(--brand-600); color: var(--brand-800); }
.mf-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mf-tab-empty { display: none; padding: 32px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.mf-tab-empty.is-visible { display: block; }

/* Type tiles */
.mf-types { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .mf-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .mf-types { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.mf-type {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); transition: all var(--t-fast);
}
.mf-type-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700); font-size: 1.1rem;
  transition: all var(--t-fast);
}
.mf-type strong { display: block; font: 700 .9375rem/1.25 var(--font-display); }
.mf-type span { font-size: var(--fs-sm); color: var(--muted); }
.mf-type > span:last-child { min-width: 0; }
.mf-type strong { overflow-wrap: anywhere; }
.mf-type:hover { border-color: var(--brand-600); box-shadow: var(--shadow-sm); color: var(--ink); }
@media (max-width: 419.98px) {
  .mf-type { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .mf-type-ico { width: 40px; height: 40px; }
}
.mf-type:hover .mf-type-ico { background: var(--brand-800); color: #fff; }

/* Location tiles */
.mf-locs { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .mf-locs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1200px) { .mf-locs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mf-loc {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 60px; padding: 12px 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: all var(--t-fast);
}
.mf-loc strong { display: block; font: 700 .9375rem/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-loc span { font-size: var(--fs-sm); color: var(--muted); }
.mf-loc > div { min-width: 0; }
.mf-loc i { color: var(--muted); font-size: .8rem; transition: transform var(--t-fast), color var(--t-fast); }
.mf-loc:hover { border-color: var(--brand-600); color: var(--ink); box-shadow: var(--shadow-sm); }
.mf-loc:hover i { color: var(--brand-700); transform: translateX(3px); }
.mf-loc--all { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.mf-loc--all span, .mf-loc--all i { color: rgba(255,255,255,.8); }
.mf-loc--all:hover { background: var(--brand-900); color: #fff; }
.mf-loc--all:hover i { color: #fff; }

/* Steps */
.mf-steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .mf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.mf-step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.mf-step-ico {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-800); color: #fff; font-size: 1.1rem;
}
.mf-step h3 { font-size: 1.0625rem; margin: 0 0 6px; }
.mf-step p { margin: 0; color: var(--muted); font-size: .9375rem; }
.mf-step-n { position: absolute; top: 20px; right: 22px; font: 800 2rem/1 var(--font-display); color: var(--canvas-2); }

/* Trust */
.mf-trust { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 768px) { .mf-trust { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.mf-trust > div { background: #fff; padding: 22px 20px; }
.mf-trust strong { display: block; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mf-trust span { display: block; margin-top: 6px; font-size: var(--fs-md); color: var(--muted); }

/* Agent CTA band */
.mf-cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); padding: 32px 24px; color: #fff;
  background: var(--brand-800);
}
.mf-cta::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(93,202,165,.35), transparent 65%);
}
.mf-cta h2 { color: #fff; font-size: var(--fs-2xl); font-weight: 800; margin: 0 0 8px; }
.mf-cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 520px; }
.mf-cta .mf-eyebrow { color: var(--mint); }
.mf-cta-inner { display: flex; flex-direction: column; gap: 24px; }
.mf-cta-acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 992px) {
  .mf-cta { padding: 48px 56px; }
  .mf-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 575.98px) { .mf-cta-acts .mf-btn { flex: 1 1 100%; } }

/* Empty placeholder for homepage sections */
.mf-empty-inline {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted);
}
.mf-empty-inline i { font-size: 1.5rem; color: var(--brand-600); }
.mf-empty-inline p { margin: 0; }

/* Referral modal (kept from previous build, restyled) */
.ref-modal-overlay {
  position: fixed; inset: 0; z-index: 2000; padding: 16px;
  background: rgba(4,26,21,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
}
.ref-modal-overlay.open { display: flex; animation: mfFade .2s var(--ease); }
.ref-modal {
  background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 620px;
  max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: mfRise .25s var(--ease);
}
.ref-modal-head { background: var(--brand-800); padding: 24px; border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; color: #fff; }
.ref-modal-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 1rem;
}
.ref-modal-close:hover { background: rgba(255,255,255,.28); }
.ref-modal-eyebrow { font: 700 var(--fs-xs)/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.ref-modal-title { font: 800 1.375rem/1.2 var(--font-display); margin: 0 0 6px; padding-right: 48px; color: #fff; }
.ref-modal-sub { font-size: var(--fs-md); color: rgba(255,255,255,.82); margin: 0; }
.ref-modal-body { padding: 22px 24px 24px; }
.ref-modal-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; list-style: none; padding: 0; }
@media (max-width: 575.98px) { .ref-modal-steps { grid-template-columns: 1fr; } }
.ref-modal-step { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.ref-modal-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-800); color: #fff; font: 700 .75rem/26px var(--font-display); text-align: center; margin-bottom: 8px; }
.ref-modal-step h3 { font-size: .9375rem; margin: 0 0 4px; }
.ref-modal-step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.ref-modal-highlight { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 18px; font-size: var(--fs-md); }
.ref-modal-highlight i { color: var(--brand-600); margin-top: 3px; }
.ref-modal-acts { display: flex; gap: 10px; flex-wrap: wrap; }


/* ---------------------------------------------------------------------
   09  LISTINGS PAGE
   --------------------------------------------------------------------- */
.mf-page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 22px; }
.mf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.mf-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.mf-crumbs a { color: var(--muted); }
.mf-crumbs a:hover { color: var(--brand-800); }
.mf-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.mf-page-title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; margin: 0; }
.mf-page-sub { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }

.mf-listings { padding-block: 20px 64px; }
@media (min-width: 992px) { .mf-listings { padding-block: 28px 80px; } }

/* Toolbar: keyword + filters button + sort */
.mf-toolbar {
  display: grid; gap: 10px; align-items: center;
  grid-template-columns: 1fr auto;
  grid-template-areas: "q q" "filters sort";
  margin-bottom: 18px;
}
.mf-toolbar-q { grid-area: q; position: relative; }
.mf-toolbar-q .mf-input { padding-left: 42px; padding-right: 96px; }
.mf-toolbar-q > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mf-toolbar-q .mf-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; min-height: 0; height: auto; }
.mf-toolbar-filters { grid-area: filters; justify-self: start; }
.mf-toolbar-sort { grid-area: sort; display: flex; align-items: center; gap: 8px; }
.mf-toolbar-sort label { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.mf-toolbar-sort .mf-select { min-height: 44px; width: auto; max-width: 200px; font-size: var(--fs-md); }
.mf-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--brand-800); color: #fff; font-size: .75rem; font-weight: 700;
}
.mf-filter-count:empty, .mf-filter-count[data-n="0"] { display: none; }
.mf-view-toggle { display: none; }
@media (min-width: 992px) {
  .mf-toolbar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "q sort view"; }
  .mf-toolbar-filters { display: none; }
  .mf-view-toggle { grid-area: view; display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
  .mf-view-toggle button { width: 44px; height: 41px; border: 0; background: none; color: var(--muted); }
  .mf-view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
}
@media (max-width: 380px) {
  .mf-toolbar-sort label { display: none; }
  .mf-toolbar-sort .mf-select { max-width: 160px; }
}

.mf-listings-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .mf-listings-layout { grid-template-columns: 300px minmax(0, 1fr); } }

/* Filters: sidebar ≥992px, bottom sheet below (Bootstrap .offcanvas-lg) */
.mf-filters .mf-filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mf-filters .mf-filter-group:first-child { padding-top: 0; }
.mf-filters .mf-filter-group:last-of-type { border-bottom: 0; }
.mf-filter-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; font: 700 .9375rem/1.2 var(--font-display); color: var(--ink); }
.mf-filter-stack { display: grid; gap: 12px; }
.mf-price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.mf-price-row .mf-dash { padding-bottom: 14px; color: var(--muted); }
.mf-filters-head-desk { display: none; }

@media (max-width: 991.98px) {
  .mf-filters.offcanvas-lg.offcanvas-bottom {
    height: min(88dvh, 760px);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-top: 0;
    box-shadow: var(--shadow-lg);
  }
  .mf-filters .offcanvas-header {
    position: relative; padding: 22px 20px 14px; border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }
  .mf-filters-apply { display: none; }
  .mf-filters .offcanvas-header::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 4px; background: var(--line-2);
  }
  .mf-filters .offcanvas-title { font: 800 1.125rem/1 var(--font-display); }
  .mf-filters .offcanvas-body { padding: 18px 20px 12px; overscroll-behavior: contain; }
  .mf-filters-foot {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: #fff;
  }
}
@media (min-width: 992px) {
  .mf-filters {
    align-self: start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 20px; scrollbar-width: thin;
  }
  .mf-filters .offcanvas-body { display: block !important; }
  .mf-filters-foot { display: none; }
  .mf-filters-head-desk { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .mf-filters-head-desk h2 { font-size: 1.0625rem; margin: 0; }
  .mf-filters-apply { margin-top: 8px; }
}
/* With JS active on desktop, filters apply instantly, so hide the Apply button */
@media (min-width: 992px) { .mf-js .mf-filters-apply { display: none; } }

/* Results header + chips */
.mf-results { position: relative; min-width: 0; }
.mf-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.mf-count { margin: 0; font: 700 1.0625rem/1.3 var(--font-display); color: var(--ink); }
.mf-count strong { color: var(--brand-800); font-variant-numeric: tabular-nums; }
.mf-count-range { font: 500 var(--fs-sm)/1 var(--font-body); color: var(--muted); }
.mf-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; list-style: none; padding: 0; }
.mf-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  padding: 0 8px 0 14px; border-radius: var(--r-pill);
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-900);
  font-size: var(--fs-md); font-weight: 600; text-decoration: none; max-width: 100%;
}
.mf-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-chip i {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(8,80,65,.1); font-size: .7rem; transition: background var(--t-fast);
}
.mf-chip:hover { color: var(--brand-900); border-color: var(--brand-600); }
.mf-chip:hover i { background: var(--brand-800); color: #fff; }
.mf-clear-all { font: 700 var(--fs-md)/1 var(--font-display); color: var(--accent); padding: 8px 6px; min-height: 36px; display: inline-flex; align-items: center; }
.mf-clear-all:hover { color: var(--accent-600); text-decoration: underline; }

/* Loading overlay on results */
.mf-results.is-loading .mf-results-body { opacity: .45; pointer-events: none; transition: opacity var(--t-fast); }
.mf-loading-bar {
  position: absolute; left: 0; right: 0; top: -10px; height: 3px; border-radius: 3px;
  overflow: hidden; opacity: 0; transition: opacity var(--t-fast);
}
.mf-loading-bar::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--brand-600); border-radius: 3px;
  animation: mfLoad 1s var(--ease) infinite;
}
.mf-results.is-loading .mf-loading-bar { opacity: 1; }
@keyframes mfLoad { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Empty & error states */
.mf-empty {
  text-align: center; padding: 48px 20px; background: #fff;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
}
.mf-empty-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700); font-size: 1.5rem;
}
.mf-empty h2, .mf-empty h3 { font-size: 1.1875rem; margin: 0 0 8px; }
.mf-empty p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.mf-empty-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Pagination */
.mf-pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }
.mf-pager ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mf-pager a, .mf-pager span.mf-pg {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--line-2); color: var(--ink);
  font: 600 var(--fs-md)/1 var(--font-display); font-variant-numeric: tabular-nums;
  transition: all var(--t-fast);
}
.mf-pager a:hover { border-color: var(--brand-700); color: var(--brand-800); }
.mf-pager [aria-current="page"] { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.mf-pager .is-disabled { opacity: .4; }
.mf-pager .mf-gap { border: 0; background: none; min-width: 24px; color: var(--muted); }
.mf-pager-meta { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 575.98px) { .mf-pager .mf-pg-num:not([aria-current]) { display: none; } .mf-pager .mf-gap { display: none; } }


/* ---------------------------------------------------------------------
   10  PROPERTY DETAIL PAGE
   (extends the .pd-* rules in mifrose.css)
   --------------------------------------------------------------------- */
.pd-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.pd-gallery-section { background: transparent; padding: 16px 0 0; }
.pd-gallery { border-radius: var(--r-lg); gap: 6px; background: transparent; grid-template-rows: 220px 220px; }
.pd-gallery-thumbs { gap: 6px; background: transparent; grid-template-rows: 220px 220px; }
.pd-gallery-main { border-radius: var(--r-lg) 0 0 var(--r-lg); background: var(--canvas-2); }
.pd-thumb { background: var(--canvas-2); padding: 0; border: 0; display: block; width: 100%; height: 100%; }
.pd-gallery--single { grid-template-columns: 1fr; grid-template-rows: clamp(260px, 42vw, 480px); }
.pd-gallery--single .pd-gallery-main { grid-row: 1; border-radius: var(--r-lg); }
.pd-thumb:nth-child(2) { border-top-right-radius: var(--r-lg); }
.pd-thumb:nth-child(4) { border-bottom-right-radius: var(--r-lg); }
.pd-thumb.is-extra { display: none; }
.pd-thumb.active { box-shadow: none; outline: 3px solid var(--brand-600); outline-offset: -3px; }
.pd-thumb-more-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(4,26,21,.55); color: #fff; font: 700 1.125rem/1 var(--font-display); pointer-events: none; }
.pd-gallery-main .pd-gallery-expand, .pd-gallery-count { z-index: 4; }
.pd-gallery-expand { width: 44px; height: 44px; }
.pd-gallery-count { font-family: var(--font-body); font-weight: 600; }
.pd-gallery-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.pd-thumb-video-preview { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; pointer-events: none; }
#pd-video-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.32); cursor: pointer; z-index: 3; border: 0; width: 100%; }
#pd-video-play-overlay i { font-size: 4rem; color: #fff; filter: drop-shadow(0 4px 16px rgba(0,0,0,.5)); }
@media (max-width: 991.98px) {
  .pd-gallery, .pd-gallery-thumbs { grid-template-rows: 170px 170px; }
}
@media (max-width: 767.98px) {
  .pd-gallery-section { padding: 0; }
  .pd-gallery-section > .container-narrow { padding-inline: 0; }
  .pd-gallery, .pd-gallery--single { display: block; border-radius: 0; }
  .pd-gallery-main, .pd-gallery--single .pd-gallery-main { aspect-ratio: 4 / 3; border-radius: 0; }
  .pd-gallery-thumbs {
    display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter);
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .pd-gallery-thumbs::-webkit-scrollbar { display: none; }
  .pd-thumb, .pd-thumb.is-extra { display: block; flex: 0 0 76px; height: 58px; border-radius: 8px !important; scroll-snap-align: start; }
  .pd-thumb-more-label { display: none; }
}

.pd-layout { padding-block: 20px 48px; }
@media (min-width: 992px) { .pd-layout { padding-block: 28px 72px; } }
.pd-head, .pd-section, .pd-agent-card, .pd-enquiry-card { border-color: var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.pd-head { padding: 22px; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-badges .pbadge { box-shadow: none; border: 1px solid var(--brand-100); background: var(--brand-50); }
.pd-badges .pbadge--featured { border-color: #F2DFB8; background: var(--gold-50); }
.pd-title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.pd-location { font-size: .9375rem; }
.pd-location i { color: var(--accent); }
.pd-price-row { gap: 10px; margin-bottom: 4px; }
.pd-price { font: 800 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem)/1.1 var(--font-display) !important; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.pd-price-period { font-size: var(--fs-base); color: var(--muted); font-weight: 500; }
.hpc-neg { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.pd-specs-row {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin: 18px 0; padding: 0; border: 0;
}
.pd-spec {
  display: flex !important; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--canvas); border: 1px solid var(--line);
}
.pd-spec i { width: 20px; text-align: center; color: var(--brand-700); font-size: 1.05rem; flex-shrink: 0; }
.pd-spec > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pd-spec > div span { font: 700 .9375rem/1.25 var(--font-display) !important; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-spec > div small { font-size: var(--fs-xs); color: var(--muted); text-transform: none; letter-spacing: 0; }
@media (max-width: 400px) { .pd-specs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pd-meta-row i { color: var(--muted); }
.pd-section { padding: 22px; }
.pd-section-title { font-size: 1.125rem; font-weight: 800; border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
.pd-description { white-space: pre-line; color: var(--text); line-height: 1.7; }
.pd-read-more { min-height: 44px; }
.pd-amenity { background: var(--canvas); border-color: var(--line); }
.pd-amenity i { color: var(--brand-600); }
.hpc-save { width: 44px; height: 44px; color: var(--ink); }
.hpc-save:hover { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }

.pd-sticky { top: calc(var(--nav-h) + 16px); }
.pd-contact-price { display: none; }
@media (min-width: 992px) {
  .pd-contact-price { display: block; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .pd-contact-price small { display: block; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 2px; }
  .pd-contact-price strong { font: 800 1.5rem/1.15 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
}
.pd-agent-card .mf-btn + .mf-btn { margin-top: 8px; }
.pd-agent-photo { border-color: var(--brand-100); }
.pd-agent-initial { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-800); color: #fff; font: 700 1.1rem/1 var(--font-display); flex-shrink: 0; }
.pd-agent-profile { display: block; text-align: center; margin-top: 12px; font: 600 var(--fs-md)/1 var(--font-display); padding: 10px; }
.pd-enquiry-card .mf-field { margin-bottom: 12px; }
.pd-enquiry-card .field-label { display: none; }
.pd-intents { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pd-intents button {
  min-height: 36px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--text);
  font: 600 var(--fs-sm)/1 var(--font-display); cursor: pointer; transition: all var(--t-fast);
}
.pd-intents button:hover { border-color: var(--brand-600); color: var(--brand-800); }
.pd-intents button[aria-pressed="true"] { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.pd-enquiry-card textarea.mf-input { min-height: 104px; resize: vertical; }

/* Mobile contact bar */
.pd-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16,36,30,.08);
  transform: translateY(0); transition: transform var(--t) var(--ease);
}
.pd-mbar .mf-btn { min-height: 48px; padding: 0 10px; font-size: var(--fs-md); }
.pd-mbar.is-hidden { transform: translateY(110%); }
@media (min-width: 992px) { .pd-mbar { display: none; } }
@media (max-width: 991.98px) { .has-mbar .mf-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

.pd-map { height: 320px; }
.pd-map-pin { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.pd-map-pin-pulse { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(19,128,95,.28); animation: pdPulse 2.2s ease-out infinite; }
.pd-map-pin-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-700); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
@keyframes pdPulse { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.pd-map .leaflet-top, .pd-map .leaflet-bottom { z-index: 900 !important; }


/* ---------------------------------------------------------------------
   11  FOOTER
   --------------------------------------------------------------------- */
.mf-footer { background: var(--brand-950); color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: .9375rem; }
.mf-footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-footer-brand { grid-column: 1 / -1; }
@media (min-width: 992px) {
  .mf-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .mf-footer-brand { grid-column: auto; }
}
.mf-footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.mf-footer-brand p { max-width: 340px; margin: 0 0 18px; }
.mf-footer h2 { color: #fff; font: 700 var(--fs-sm)/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.mf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mf-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: rgba(255,255,255,.72); }
.mf-footer a:hover { color: #fff; }
.mf-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-sm); color: rgba(255,255,255,.55);
}
.mf-footer-bottom a { color: rgba(255,255,255,.72); }


/* ---------------------------------------------------------------------
   12  TOASTS, REVEAL, UTILITIES
   --------------------------------------------------------------------- */
.mf-toasts {
  position: fixed; z-index: 2100; right: 16px; top: calc(var(--nav-h) + 12px);
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  width: min(360px, calc(100vw - 32px));
}
@media (max-width: 575.98px) { .mf-toasts { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; left: 16px; width: auto; } .has-mbar .mf-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.mf-toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px 14px 16px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--brand-600); border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px); transition: opacity var(--t), transform var(--t) var(--ease);
}
.mf-toast.is-in { opacity: 1; transform: none; }
.mf-toast.is-error { border-left-color: var(--danger); }
.mf-toast > i { margin-top: 2px; color: var(--brand-600); }
.mf-toast.is-error > i { color: var(--danger); }
.mf-toast-body { flex: 1; min-width: 0; }
.mf-toast-title { font: 700 .9375rem/1.3 var(--font-display); color: var(--ink); }
.mf-toast-text { font-size: var(--fs-md); color: var(--muted); margin-top: 2px; }
.mf-toast-x { border: 0; background: none; color: var(--muted); width: 32px; height: 32px; margin: -6px -6px 0 0; border-radius: 6px; }
.mf-toast-x:hover { background: var(--canvas); color: var(--ink); }

@keyframes mfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mfRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Scroll reveal: only animates when JS has added .mf-js (so content is
   never hidden if scripts fail) and the user hasn't asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .mf-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .mf-js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.mf-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
