/* ═══════════════════════════════════════════════════════════════════════
   SURERENT DESIGN SYSTEM · Phase 2 — premium.css
   ─────────────────────────────────────────────────────────────────────
   Surface layer applied ON TOP of style.css on every surface:
     · Web shell   (base.html)             → after style.css/rolemodal.css
     · App shell   (app_base.html)         → after inline shell styles
     · Dashboards  (user / agent / admin)  → loaded as last generic sheet

   Design language — "Warm Lagos paper + gold seal":
     · Furniture (surfaces, borders, shadows, mutes) warms from cool slate
       to cream paper #F7F4EE.
     · "Verified" shifts from generic emerald to the brand's gold seal.
     · Prices/display use Cormorant Garamond; UI uses Outfit.
     · All shadows are ink-tinted (#0d1f35), never pure black.
     · One focus ring, one motion language, one radius scale — everywhere.

   No external requests. Typefaces are vendored. Motion honours
   prefers-reduced-motion at the end of this file.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────
   1 · DESIGN TOKENS (canonical, single source of truth)
   ───────────────────────────────────────────────────────────────────── */
:root {
  /* Phase 2.0: canonical values live in css/tokens.css (loaded FIRST in
     every shell). Values below alias --sr-* with literal fallbacks, so this
     sheet still renders standalone. See tokens.css header for the mapping
     of historic divergences (ink-2/ink-3 order, paper vs #fff, text inks). */
  /* Brand ink — unchanged, canonicalized */
  --color-ink:        var(--sr-primary, #0d1f35);
  --color-ink-2:      var(--sr-ink-steel, #1a3550);
  --color-ink-3:      var(--sr-ink-deep, #081526);

  /* Gold */
  --color-gold:       var(--sr-gold, #c9a84c);   /* brand gold — fills, display, on-ink text */
  --color-gold-bright:var(--sr-gold-bright, #e8cf83);   /* gold lifted for dark surfaces */
  --color-gold-d:     var(--sr-gold-dark, #8a651a);   /* AA-safe gold for text on light surfaces */
  --color-gold-soft:  var(--sr-gold-soft, #f6edd6);   /* gold linens / washes */

  /* Surfaces — warm paper, not cold slate */
  --color-paper:      var(--sr-paper, #f7f4ee);
  --color-paper-2:    var(--sr-paper-2, #efebe1);
  --color-surface:    var(--sr-surface, #ffffff);

  /* Ink & text */
  --color-text:       var(--sr-ink-text, #16212e);
  --color-muted:      var(--sr-muted, #56657a);   /* AA-safe on surface & paper */
  --color-faint:      var(--sr-faint, #64748b);
  --color-on-ink:     var(--sr-on-ink, #f4f7fa);

  /* Function */
  --color-success:    var(--sr-success, #15805d);
  --color-success-d:  var(--sr-success-dark, #0f5e43);
  --color-success-soft:var(--sr-success-soft, #e7f4ee);
  --color-warning:    var(--sr-warning, #b45309);
  --color-warning-soft:var(--sr-warning-soft, #fdf3e4);
  --color-danger:     var(--sr-danger, #b9382e);
  --color-danger-soft:var(--sr-danger-soft, #fbecea);

  /* Lines */
  --color-border:         var(--sr-border, #e4dfd4);
  --color-border-strong:  var(--sr-border-strong, #d6cfbf);

  /* Legacy remaps — every existing var() consumer warms in one move.
     Equal names, same specificity, this file loads after style.css. */
  --bg-light:        #f7f4ee;
  --bg-lighter:      #efebe1;
  --border-color:    #e4dfd4;
  --text-mid:        #475569;
  --text-light:      #64748b;
  --shadow-sm: var(--sr-shadow-sm, 0 1px 2px rgba(13,31,53,.06), 0 2px 8px rgba(13,31,53,.04));
  --shadow-md: var(--sr-shadow-md, 0 2px 4px rgba(13,31,53,.05), 0 8px 24px rgba(13,31,53,.07));
  --shadow-lg: var(--sr-shadow-lg, 0 4px 8px -2px rgba(13,31,53,.08), 0 24px 48px -12px rgba(13,31,53,.18));
  --shadow-xl: var(--sr-shadow-xl, 0 8px 16px -4px rgba(13,31,53,.10), 0 32px 64px -16px rgba(13,31,53,.22));

  /* Layered ink shadows (new names) */
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-md);
  --shadow-3: var(--shadow-lg);
  --shadow-4: var(--shadow-xl);
  --shadow-gold: 0 10px 30px -8px rgba(201,168,76,.45);
  --shadow-wa:   0 8px 18px -6px rgba(37,211,102,.55);

  /* Spacing scale — 4pt */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  /* Radius scale */
  --radius-xs: 6px;  --radius-sm: 10px; --radius-md: 14px;
  --radius-lg: 20px; --radius-xl: 28px; --radius-2xl: 36px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out:   cubic-bezier(.22,1,.36,1);
  --ease-inout: cubic-bezier(.65,.05,0,1);
  --dur-fast:   .18s;
  --dur:        .3s;
  --dur-slow:   .55s;

  /* Focus — the gold seal, applied to every surface */
  --color-focus: var(--sr-focus, #8a651a);

  /* Fluid type scale */
  --text-xs:   .78rem;
  --text-sm:   .9rem;
  --text-md:   1rem;
  --text-lg:   clamp(1.05rem, .98rem + .4vw, 1.2rem);
  --text-xl:   clamp(1.25rem, 1.1rem + .8vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl:  clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl:  clamp(2.5rem, 1.7rem + 4.2vw, 4.5rem);

  /* Legacy sr-* tokens — consumed by property details & app markup */
  --sr-navy:  var(--color-ink);
  --sr-navy-m: var(--color-ink-2);
  --sr-gold:  var(--color-gold);
  --sr-gold-d: var(--color-gold-d);
  --sr-gold-l: var(--color-gold-soft);
  --sr-green:   #15805d;
  --sr-green-d: #0f5e43;
  --sr-green-l: #e7f4ee;
  --sr-text:    #1a1a2e;
  --sr-mid:     #4a5568;
  --sr-light:   #64748b;
  --sr-border:  #e4dfd4;
  --sr-bg:      #f7f4ee;
  --sr-white:   #ffffff;
  --sr-gradient-gold:  linear-gradient(135deg, #c9a84c 0%, #9a7a30 100%);
  --sr-gradient-navy:  linear-gradient(135deg, #0d1f35 0%, #1a3550 100%);
  --sr-shadow-sm: 0 1px 2px rgba(13,31,53,.06), 0 2px 8px rgba(13,31,53,.04);
  --sr-shadow-md: 0 2px 4px rgba(13,31,53,.05), 0 8px 24px rgba(13,31,53,.07);
  --sr-shadow-lg: 0 4px 8px -2px rgba(13,31,53,.08), 0 24px 48px -12px rgba(13,31,53,.18);
  --sr-radius: 12px;
  --sr-radius-lg: 16px;
  --sr-radius-xl: 24px;
}

/* ─────────────────────────────────────────────────────────────────────
   2 · GLOBAL BASE — one paper, one ink, one focus ring
   ───────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* html + body beats any later `body {}` in shells — the paper is universal */
html body {
  background-color: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(201, 168, 76, .28);
  color: var(--color-ink);
}

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

/* Slim brand-tinted scrollbars (Chromium + Firefox) */
* { scrollbar-width: thin; scrollbar-color: rgba(13,31,53,.28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(13,31,53,.24);
  border-radius: 999px;
  border: 2px solid var(--color-paper);
}
::-webkit-scrollbar-track { background: transparent; }

/* ─────────────────────────────────────────────────────────────────────
   3 · HEADER — clear glass that seals to ink on scroll
   ───────────────────────────────────────────────────────────────────── */
.sr-header-main { padding: 18px 0; }

/* Non-home pages: the header rests on warm paper until scroll */
body:not(.sr-home-page) .sr-header-main:not(.scrolled) {
  background: rgba(247, 244, 238, .86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(13, 31, 53, .06);
}

/* Scrolled: deep ink glass, hairline gold seam at the bottom */
.sr-header-main.scrolled {
  background: rgba(8, 21, 38, .88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(201, 168, 76, .18), 0 18px 40px -20px rgba(8, 21, 38, .55);
  padding: 10px 0;
}

/* Active / hover nav gets the gold seal underline */
.sr-header-main .nav-link { position: relative; }

.sr-header-main .nav-link::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 2px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.sr-header-main .nav-link:hover::after,
.sr-header-main .nav-link.active::after { transform: scaleX(1); }

.sr-logo {
  letter-spacing: .01em;
}

/* ─────────────────────────────────────────────────────────────────────
   4 · BUTTONS — pill, lifted, gold where it means action
   ───────────────────────────────────────────────────────────────────── */
.sr-btn-primary {
  background: linear-gradient(135deg, #c9a84c 0%, #b08f37 100%);
  color: var(--color-ink-3) !important;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              filter var(--dur) var(--ease-out);
}

.sr-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 40px -8px rgba(201, 168, 76, .55),
              inset 0 1px 0 rgba(255, 255, 255, .35);
}

.sr-btn-ghost {
  border: 1.5px solid rgba(13, 31, 53, .35);
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.sr-btn-ghost:hover {
  background: var(--color-ink);
  color: #fff !important;
  border-color: var(--color-ink);
}

/* Orphan utility resurrected — was only defined in an unloaded stylesheet */
.sr-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-ink);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 14px;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.sr-btn-outline:hover {
  background: var(--color-ink);
  color: #fff;
  transform: translateY(-2px);
}

.sr-btn-wa {
  background: #25d366;   /* WhatsApp identity — intentionally preserved */
  color: #04100a;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-wa);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.sr-btn-wa:hover { background: #1db853; transform: translateY(-2px); }

/* ─────────────────────────────────────────────────────────────────────
   5 · FOOTER — deep ink, gold hairline crown, readable by default
   ───────────────────────────────────────────────────────────────────── */
.sr-footer {
  background: linear-gradient(180deg, var(--color-ink-3) 0%, #060f1c 100%);
  padding: 96px 0 40px;
  border-top: 1px solid rgba(201, 168, 76, .16);
  position: relative;
}

.footer-heading {
  color: var(--color-gold-bright);
  letter-spacing: .12em;
  font-size: 12.5px;
}

.footer-links a {
  color: rgba(255, 255, 255, .74);   /* raised from .70 — keeps AA headroom */
}

.footer-links a:hover { color: var(--color-gold-bright); }

/* Phase 2.1: JS-action footer item (Install App) — button reset to look
   exactly like its sibling footer links, keyboard-focusable by default. */
.footer-links button.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, .74);
}
.footer-links button.footer-link-btn:hover { color: var(--color-gold-bright); }
.footer-links button.footer-link-btn:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 2px;
}

.social-btn {
  border-radius: var(--radius-md);
  border-color: rgba(255, 255, 255, .16);
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.footer-bottom {
  opacity: 1;                          /* removes legacy 0.5 dimming */
  color: rgba(255, 255, 255, .72);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .72);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-bottom a:hover { color: var(--color-gold-bright); }

/* ─────────────────────────────────────────────────────────────────────
   6 · UNIFIED PROPERTY CARD — one system for web, app & home
       Markup lives in includes/card_properties.html. Class names are
       frozen (offline-cache JS reads them) — chrome comes from here.
   ───────────────────────────────────────────────────────────────────── */
.sr-prop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.sr-prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
  border-color: rgba(201, 168, 76, .5);
}

.sr-prop-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.sr-prop-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.sr-prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .65s var(--ease-out);
}

.sr-prop-card:hover .sr-prop-img img { transform: scale(1.065); }

.sr-prop-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 21, 38, .42) 0%, transparent 42%);
  pointer-events: none;
}

.sr-prop-img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: 54px;
}

.sr-prop-body {
  padding: 20px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sr-prop-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: .01em;
}

.sr-prop-price small {
  font-size: .92rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-gold-d);
}

.sr-prop-title {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(13, 31, 53, .95);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sr-prop-location {
  margin: 0 0 12px;
  font-size: .92rem;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  font-size: .86rem;
  color: var(--color-muted);
}

.sr-prop-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(247, 244, 238, .9);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.sr-prop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  background: rgba(247, 244, 238, .65);
}

.sr-agent-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: .92rem;
  font-weight: 700;
  color: rgba(13, 31, 53, .9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-wa-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #04100a;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: var(--shadow-wa);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.sr-wa-quick:hover { background: #1db853; transform: translateY(-1px); }

/* Card badges — the gold seal */
.sr-badge-verified,
.sr-badge-type {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.sr-badge-verified {
  left: 12px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #c9a84c, #b08f37);
  color: var(--color-ink-3);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 4px 14px -4px rgba(201, 168, 76, .65);
}

.sr-badge-type {
  right: 12px;
  background: rgba(255, 255, 255, .88);
  color: var(--color-ink);
  border: 1px solid rgba(255, 255, 255, .34);
}

/* ─────────────────────────────────────────────────────────────────────
   7 · PROPERTY DETAIL PAGE
   ───────────────────────────────────────────────────────────────────── */
.sr-breadcrumb-nav a { font-weight: 500; }
.sr-breadcrumb-nav span {
  color: var(--color-gold-d);
  font-weight: 600;
}

.sr-property-gallery-main {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-4);
  border: 1px solid var(--color-border);
}

.sr-badge-verified-hero {
  background: linear-gradient(135deg, #c9a84c, #b08f37);
  color: var(--color-ink-3);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 6px 18px -6px rgba(201, 168, 76, .7);
}

.sr-badge-type-hero {
  background: rgba(8, 21, 38, .88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.sr-action-btn {
  border-radius: 50%;
  color: var(--color-ink-2);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.sr-action-btn:hover { transform: scale(1.08); color: var(--color-gold-d); }

.sr-thumbnail {
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  opacity: .75;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.sr-thumbnail.active {
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px -4px rgba(201, 168, 76, .55);
}

.sr-property-price-hero {
  color: var(--color-ink);          /* price = ink, suffix = gold */
  letter-spacing: .01em;
}

.sr-property-price-hero small,
.sr-contact-card-price small {
  font-weight: 600;
  color: var(--color-gold-d);
}

.sr-property-title-hero { letter-spacing: -.01em; }

.sr-specs-bar-premium {
  background: rgba(247, 244, 238, .8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.sr-spec-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.sr-spec-icon {
  background: var(--sr-gradient-gold);
  box-shadow: 0 6px 14px -6px rgba(201, 168, 76, .6);
}

.sr-section-title-premium {
  position: relative;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.sr-section-title-premium::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 52px; height: 2px;
  background: var(--color-gold);
}

.sr-feature-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.sr-feature-item:hover {
  border-color: rgba(201, 168, 76, .5);
  box-shadow: var(--shadow-1);
}

.sr-feature-item i { color: var(--color-gold-d); }

.sr-contact-card-premium {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-4);
}

.sr-contact-card-price { color: var(--color-ink); }

.sr-agent-card {
  background: rgba(247, 244, 238, .8);
  border-radius: var(--radius-lg);
}

.sr-agent-badge { background: var(--color-gold-soft); color: var(--color-gold-d); }

.sr-agent-avatar-hero { box-shadow: var(--shadow-2); }

.sr-contact-btn { border-radius: var(--radius-md); }

.sr-contact-btn-call {
  background: var(--sr-gradient-navy);
  box-shadow: 0 8px 24px -8px rgba(13, 31, 53, .5);
}
.sr-contact-btn-call:hover { background: var(--color-ink-2); }

.sr-contact-btn-whatsapp {
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, .65);
}

.sr-safety-card-premium {
  background: linear-gradient(135deg, rgba(201, 168, 76, .08) 0%, rgba(201, 168, 76, .02) 100%);
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: var(--radius-lg);
}

.sr-safety-card-premium strong { color: var(--color-gold-d); }

.sr-share-btn {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.sr-share-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-d);
  transform: translateY(-2px);
}

.sr-similar-section { background: var(--color-paper); }

/* Similar-properties cards (class-based rewrite of inline styles) */
.sr-similar-card {
  display: block;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.sr-similar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: rgba(201, 168, 76, .5);
}

.sr-similar-img {
  height: 180px;
  overflow: hidden;
  background: var(--color-paper-2);
}

.sr-similar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.sr-similar-card:hover .sr-similar-img img { transform: scale(1.06); }

.sr-similar-body { padding: 16px; }

.sr-similar-title-sm {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-similar-loc {
  font-size: 13px;
  color: var(--color-faint);
  margin-bottom: 10px;
}

.sr-similar-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.sr-similar-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
}

.sr-similar-price small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-gold-d);
  font-weight: 600;
}

/* Map placeholder */
.sr-map-placeholder {
  background: rgba(247, 244, 238, .8);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.sr-map-placeholder i { font-size: 48px; color: var(--color-faint); margin-bottom: 16px; display: block; }
.sr-map-placeholder strong { color: var(--color-ink); }

/* Reviews & Media Gallery — rendered once, after similar properties */
.sr-reviews-section,
.sr-media-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-reviews-section { margin-top: 56px; margin-bottom: 16px; }
.sr-media-section  { margin-top: 40px; margin-bottom: 64px; }

.sr-section-head-gold {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.sr-section-head-gold i { color: var(--color-gold); }

.sr-review-list { display: grid; gap: 10px; }

.sr-review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.sr-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.sr-review-author { font-weight: 700; font-size: 13px; color: var(--color-ink); }

.sr-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold-d);
  background: var(--color-gold-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.sr-review-text { font-size: 13px; color: var(--color-muted); }
.sr-review-date { font-size: 11px; color: var(--color-faint); margin-top: 6px; }

.sr-review-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  box-shadow: var(--shadow-1);
}

.sr-review-score-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.sr-review-score-row label { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.sr-review-score-row select {
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--color-ink);
  background: var(--color-paper);
}

.sr-review-textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
  resize: vertical;
}

.sr-review-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .18);
}

.sr-review-submit {
  margin-top: 8px;
  background: var(--sr-gradient-navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.sr-review-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }

.sr-review-signin { font-size: 13px; }
.sr-review-signin a {
  color: var(--color-gold-d);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.sr-media-grid img,
.sr-media-grid video {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.sr-media-grid img {
  height: 180px;
  object-fit: cover;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.sr-media-grid img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(201, 168, 76, .45);
}

.sr-media-grid video { background: #000; }

.sr-media-empty {
  grid-column: 1 / -1;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
}

/* ── Phase 2.2: property detail upgrades ──────────────────────────── */
/* Gallery frame: overlay badges/actions, responsive hero image. */
.sr-property-gallery-main { position: relative; overflow: hidden; }
.sr-property-gallery-main > img {
  display: block;
  width: 100%;
  height: auto;
}
.sr-property-badges-hero {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.sr-property-actions-hero {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* Thumbnail strip: horizontal scroll-snap rail (was unstyled/stacked). */
.sr-property-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.sr-property-thumbnails .sr-thumbnail {
  flex: 0 0 auto;
  width: 132px;
  height: 76px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}
.sr-property-thumbnails .sr-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Breadcrumb list reset (template now uses semantic ol/li). */
ol.sr-breadcrumb-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Thumbnail strip buttons (keyboard-focusable) + video treatment. */
button.sr-thumbnail {
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
button.sr-thumbnail:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  opacity: 1;
}
button.sr-thumbnail:hover { opacity: 1; }
.sr-thumbnail-video { position: relative; }
.sr-thumbnail-video .sr-thumbnail-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.sr-thumbnail-novideo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--color-ink-2);
  color: var(--color-gold);
  font-size: 26px;
  border-radius: inherit;
}
.sr-thumbnail-video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(8, 21, 38, .85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sr-thumbnail-video-badge::after { content: 'TOUR'; letter-spacing: .06em; }

/* In-viewer video fills the same frame as the hero image. */
.sr-gallery-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: inherit;
}

/* Sticky price/contact panel on desktop (mobile: static, already set). */
@media (min-width: 992px) {
  .sr-contact-card-premium {
    position: sticky;
    top: 100px;
  }
}

/* Amenity/policy helpers. */
.sr-muted-note { color: var(--color-muted); font-size: 13px; }
.sr-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 18px 0 10px;
}
.sr-policy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-policy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--color-gold-soft);
  color: var(--color-gold-d);
  border: 1px solid rgba(201, 168, 76, .35);
  font-size: 12.5px;
  font-weight: 700;
}
.sr-policy-rows { margin: 0; display: grid; gap: 0; }
.sr-policy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--color-border);
}
.sr-policy-row:last-child { border-bottom: none; }
.sr-policy-row dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-muted);
}
.sr-policy-row dt i { color: var(--color-gold-d); }
.sr-policy-row dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
  text-align: right;
}

/* Review summary: score + per-star bars. */
.sr-review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.sr-review-score { text-align: center; min-width: 110px; }
.sr-review-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-ink);
}
.sr-review-score .sr-stars { justify-content: center; color: var(--color-gold); margin: 6px 0 2px; }
.sr-review-score small { color: var(--color-muted); font-size: 12px; }
.sr-stars-sm { font-size: 12px; color: var(--color-gold); }
.sr-review-bars { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.sr-review-bar-row {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-muted);
}
.sr-review-bar-star { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.sr-review-bar-star i { color: var(--color-gold); font-size: 11px; }
.sr-review-bar {
  display: block;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  overflow: hidden;
}
.sr-review-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  border-radius: inherit;
}
.sr-review-bar-count { text-align: right; font-variant-numeric: tabular-nums; }

/* Location map + directions. */
.sr-location-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-ink);
}
.sr-location-line i { color: var(--color-gold-d); }
.sr-leaflet-map {
  height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-paper-2);
  z-index: 0;
}
.sr-map-actions { margin-top: 12px; }
.sr-map-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-ink-2);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.sr-map-directions:hover { color: var(--color-gold-bright); }
@media (max-width: 767px) {
  .sr-leaflet-map { height: 240px; }
}

/* ─────────────────────────────────────────────────────────────────────
   8 · ORPHAN UTILITIES (were only in unloaded stylesheets)
   ───────────────────────────────────────────────────────────────────── */
.text-accent { color: var(--color-gold); }
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.line-height-1 { line-height: 1; }

/* Bootstrap .bg-dark (#212529 neutral) → brand ink, scoped to home shell */
body .sr-home-shell .bg-dark { background-color: var(--color-ink) !important; }

/* ─────────────────────────────────────────────────────────────────────
   9 · APP SHELL (native-feel surfaces for the /app/ experience)
   ───────────────────────────────────────────────────────────────────── */
body.app-shell {
  background: var(--color-paper);
  padding-bottom: 82px;
  -webkit-tap-highlight-color: transparent;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(180deg, #0d1f35 0%, #0a1830 100%);
  color: #fff;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 -1px 0 rgba(201, 168, 76, .22), 0 10px 30px -14px rgba(8, 21, 38, .6);
}

.app-topbar a { color: #fff; text-decoration: none; }

.app-topbar .bi-bell {
  font-size: 20px;
  opacity: .92;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.app-topbar .bi-bell:hover { opacity: 1; }

.app-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px -16px rgba(13, 31, 53, .18);
}

.app-bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 4px;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out);
}

.app-bottom-nav a i {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.app-bottom-nav a.active { color: var(--color-ink); }
.app-bottom-nav a.active i { color: var(--color-gold-d); transform: translateY(-2px) scale(1.1); }

/* Phase 2.7: unread badge (app topbar bell) + shared snackbar + dark mode. */
.app-nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c9a84c;
  color: #0d1f35;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #0d1f35;
}

#sr-snackbar {
  position: fixed;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0d1f35;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10002;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: min(92vw, 480px);
  text-align: center;
}
#sr-snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body:not(.app-shell) #sr-snackbar { bottom: 20px; }

/* Pull-to-refresh indicator (app listings). */
#sr-ptr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  overflow: hidden;
  color: #c9a84c;
  font-size: 13px;
  font-weight: 700;
  transition: height .2s ease;
}
#sr-ptr i { animation: srspin .8s linear infinite; }

/* Dark mode: token remap for the app shell only (web unaffected —
   only app_base.html ever sets data-theme="dark"). */
html[data-theme="dark"] {
  --sr-paper: #0b1526;
  --sr-paper-2: #111f36;
  --sr-surface: #14263f;
  --sr-ink-text: #e8edf4;
  --sr-text: #e8edf4;
  --sr-muted: #9fb0c7;
  --sr-faint: #8ba0b8;
  --sr-border: #24384f;
  --sr-border-strong: #31465e;
  --sr-gold-soft: #3a2f14;
  --sr-success-soft: #0f2e23;
  --sr-warning-soft: #33230e;
  --sr-danger-soft: #3a1712;
}
html[data-theme="dark"] body.app-shell { background: #0b1526; color: #e8edf4; }
html[data-theme="dark"] .app-bottom-nav {
  background: rgba(11, 21, 38, .94);
  border-top-color: #24384f;
}
html[data-theme="dark"] .app-bottom-nav a { color: #9fb0c7; }
html[data-theme="dark"] .app-bottom-nav a.active { color: #fff; }

.app-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
}

/* App loading chrome */
#app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 31, 53, .94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(6px);
}
#app-loader.show { display: flex; }

.sr-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(255, 255, 255, .18);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: srspin .6s linear infinite;
}
@keyframes srspin { to { transform: rotate(360deg); } }

.sr-loader-text { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px; }

/* Top progress — gold shiver instead of flat navy-gold stop */
#sr-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-bright) 55%, var(--color-gold) 100%);
  box-shadow: 0 0 12px rgba(201, 168, 76, .7);
  z-index: 10000;
  transition: width .3s ease;
  width: 0;
}
#sr-progress.active { width: 70%; transition: width 4s ease; }
#sr-progress.done { width: 100%; transition: width .15s ease; }

/* Web shell (base.html) — same gold bar, class-named; driven by the inline
   script inside includes/top_progress.html */
.top-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  transition: opacity .5s ease;
}
.top-progress__inner {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-bright) 55%, var(--color-gold) 100%);
  box-shadow: 0 0 12px rgba(201, 168, 76, .7);
  transition: width .35s ease;
}
.top-progress__inner.active { width: 70%; transition: width 3s ease; }
.top-progress__inner.done { width: 100%; transition: width .15s ease; }
.top-progress.is-leaving { opacity: 0; }

/* ─────────────────────────────────────────────────────────────────────
   10 · MISC OVERLAYS — cookie, back-to-top, live banners
   ───────────────────────────────────────────────────────────────────── */
.cookie-consent-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-4);
}

.cookie-btn-accept {
  background: var(--color-gold);
  color: var(--color-ink-3);
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 10px 24px;
}

.cookie-btn-accept:hover {
  background: var(--color-gold-d);
  color: #fff;
  transform: translateY(-2px);
}

.sr-back-to-top {
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}

/* ── Phase 1.6: per-section skeleton shimmer (includes/skeleton.html) ──
   Lightweight placeholder shown during filter transitions instead of the old
   full-page dark loader overlay (loader.html stays app-shell-only). */
.sr-skeleton-wrap[hidden] { display: none; }
.sr-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.sr-skeleton-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sr-skeleton-body { padding: 14px; display: grid; gap: 10px; }
.sr-skeleton-row {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 12px; margin-bottom: 12px;
}
.sr-skeleton-lines { flex: 1; display: grid; gap: 8px; }
.sr-skeleton-block { display: grid; gap: 10px; padding: 8px 0; }
.sr-skeleton {
  position: relative; overflow: hidden;
  background: #ece7db; border-radius: 8px; min-height: 14px;
}
.sr-skeleton::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: sr-skeleton-shimmer 1.6s infinite;
}
.sr-skeleton-media { min-height: 180px; border-radius: 0; }
.sr-skeleton-thumb { width: 72px; height: 72px; border-radius: 12px; flex: none; }
.sr-skeleton-line { height: 12px; }
@keyframes sr-skeleton-shimmer {
  0% { left: -100%; } 60% { left: 120%; } 100% { left: 120%; }
}
@media (max-width: 991px) {
  .sr-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .sr-skeleton-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────
   11 · RESPONSIVE & MOTION
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sr-property-gallery-main { height: 400px; }
  .sr-property-title-hero { font-size: var(--text-2xl); }
  .sr-property-price-hero { font-size: 2rem; }
}

@media (max-width: 767px) {
  .sr-property-gallery-main { height: 300px; }
  .sr-specs-bar-premium { flex-direction: column; }
  .sr-spec-item { width: 100%; }
  .sr-contact-card-premium { position: static; }
}

/* One motion language, silenced on request */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ─── Phase 3: hero flush + dashboard premium surface ─────────────────────────
   White-band root cause (a UTF-8 BOM inside includes/top_progress.html
   rendering as the first body character and pushing every in-flow block
   down 25.6px) is FIXED at the source in the templates. What follows is the
   cascade-insurance layer: home.css — which loads AFTER this sheet via the
   extra_css block — wins every equal-specificity battle, so these hero
   rules carry body-class specificity and always win.                        */
body.sr-home-page .sr-home-hero {
  /* Reserve only what the slim fixed progress bar + transparent floating
     header need; content then breathes below the header instead of being
     squeezed under it (was 140px fixed, immediately under the 160px bar). */
  padding: clamp(10rem, 19vh, 14rem) 0 5.5rem;
  min-height: min(92vh, 980px);
}

@media (max-width: 991px) {
  body.sr-home-page .sr-home-hero { padding: 7.5rem 0 3.75rem; min-height: auto; }
}

@media (max-width: 767px) {
  body.sr-home-page .sr-home-hero { padding: 6.5rem 0 2.75rem; }
}

@media (max-width: 575px) {
  body.sr-home-page .sr-home-hero { padding: 5.25rem 0 1.75rem; }
  .sr-home-metrics { gap: 16px; margin-top: 26px; padding-top: 20px; }
  .sr-home-metric strong { font-size: clamp(1.3rem, 6vw, 1.55rem); }
  .sr-home-metric span { font-size: 11px; letter-spacing: .08em; }
  .sr-home-cta-row { gap: 10px; margin-top: 24px; }
  .sr-home-cta-primary, .sr-home-cta-ghost { width: 100%; padding: 13px 22px; font-size: 14px; }
  .sr-home-badges { gap: 8px; margin-top: 20px; }
  .sr-home-badge { padding: 6px 12px; font-size: 11.5px; }
}

/* Hero jewellery — the gold seal, traded like a heirloom not a highlight */
body.sr-home-page .sr-home-eyebrow {
  border-color: rgba(201, 168, 76, .5);
  background: linear-gradient(90deg, rgba(201, 168, 76, .22), rgba(201, 168, 76, .08) 55%, rgba(201, 168, 76, .22));
  box-shadow: 0 0 26px -8px rgba(201, 168, 76, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.sr-home-page .sr-home-metric-divider {
  background: linear-gradient(180deg, rgba(201, 168, 76, .6) 0%, rgba(201, 168, 76, .12) 100%);
}

body.sr-home-page .sr-home-metric strong {
  color: var(--color-gold-bright);
}

@supports (-webkit-background-clip: text) {
  body.sr-home-page .sr-home-metric strong {
    background: linear-gradient(115deg, #f6e7b2 0%, #c9a84c 55%, #f4d678 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

body.sr-home-page .sr-home-metric span {
  letter-spacing: .12em;
}

body.sr-home-page .sr-home-search-card {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(201, 168, 76, .28);
  box-shadow: inset 0 1px 0 #fff,
              0 8px 16px -10px rgba(13, 31, 53, .18),
              0 40px 80px -24px rgba(13, 31, 53, .38);
}

body.sr-home-page .sr-home-search-card::before {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 3px;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--color-gold) 40%, var(--color-gold-bright) 60%, transparent);
}

body.sr-home-page .sr-home-search-button {
  background: linear-gradient(120deg, var(--color-ink) 0%, var(--color-ink-2) 62%, #2c4a6b 100%);
  border: 1px solid rgba(201, 168, 76, .4);
  box-shadow: 0 14px 28px -10px rgba(13, 31, 53, .5);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

body.sr-home-page .sr-home-search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(13, 31, 53, .6), 0 0 0 4px rgba(201, 168, 76, .16);
}

/* Hero CTA row + trust seals (markup added in general/home.html) */
.sr-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.sr-home-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  color: var(--color-ink-3);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
  text-decoration: none;
  box-shadow: 0 18px 36px -14px rgba(201, 168, 76, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.sr-home-cta-primary:hover {
  transform: translateY(-2px);
  color: var(--color-ink-3);
  box-shadow: 0 24px 44px -14px rgba(201, 168, 76, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.sr-home-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}

.sr-home-cta-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
  background: rgba(201, 168, 76, .12);
}

.sr-home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.sr-home-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(8, 21, 38, .4);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sr-home-badge i { color: var(--color-gold); font-size: 13px; }

@media (max-width: 991px) {
  .sr-home-cta-row, .sr-home-badges { justify-content: center; }
  .sr-home-cta-primary, .sr-home-cta-ghost { padding: 14px 26px; font-size: 14px; }
}

/* ─── 12 · DASHBOARD PREMIUM SURFACE ──────────────────────────────────────
   Target: every role dashboard through its OWN existing class namespaces.
     · agent  → a-*  (shell, agent.css)   + d-*  (content, dashboard.css)
     · admin  → adm-*                     (admin_headerfooter.html)
     · user   → ud-*                      (user_headerfooter.html)
   All rules are body-scoped: if a page-level sheet loads AFTER this file
   (dashboard.css via extra_style, inline <style> on user pages), we still
   win. The old Phase 2.1 attempt targeted .sr-dash-* ghosts that exist in
   no template — this section speaks the real vocabulary.                   */

/* 12a · Shell headers & avatars — gold hairline under every role bar */
.a-header, .adm-header, .ud-header { position: relative; }

.a-header::after, .adm-header::after, .ud-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 18%, var(--color-gold-bright) 50%, var(--color-gold) 82%, transparent);
  opacity: .55;
}

body .a-agent-avatar, body .adm-avatar, body .ud-avatar {
  box-shadow: 0 0 0 2px var(--color-gold), 0 6px 16px -6px rgba(13, 31, 53, .4);
}

/* 12b · Sidebar navigation — one gold-language across the three roles */
body .a-sidebar-section-label,
body .a-nav-label,
body .adm-sidebar-section-label,
body .ud-sidebar-section-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--color-gold-d);
  font-weight: 700;
}

body .a-nav-link, body .adm-nav-link, body .ud-nav-link { position: relative; }

body .a-nav-link.active,
body .adm-nav-link.active,
body .ud-nav-link.active {
  box-shadow: inset 3px 0 0 var(--color-gold),
              inset 0 0 22px -14px rgba(201, 168, 76, .6);
}

body .a-nav-link.active i,
body .adm-nav-link.active i,
body .ud-nav-link.active i { color: var(--color-gold-bright); }

body .a-nav-badge, body .adm-nav-badge, body .ud-nav-badge {
  border-radius: var(--radius-pill);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
}

/* 12c · Welcome banners — ink base + a gold bloom off the top-right corner */
body .d-welcome-banner, body .ud-welcome-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}

body .d-welcome-banner::after, body .ud-welcome-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(44rem 22rem at 92% -12%, rgba(201, 168, 76, .3) 0%, transparent 62%);
}

body .d-welcome-banner > *, body .ud-welcome-banner > * { position: relative; z-index: 1; }

/* 12d · Stat / metric cards — the premium diamond (all three roles) */
body .d-stat-card,
body .adm-stat-card,
body .adm-metric-card,
body .ud-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

body .d-stat-card::before,
body .adm-stat-card::before,
body .adm-metric-card::before,
body .ud-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-bright) 60%, transparent);
  opacity: .5;
  transition: opacity var(--dur) var(--ease-out);
}

body .d-stat-card:hover,
body .adm-stat-card:hover,
body .adm-metric-card:hover,
body .ud-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}

body .d-stat-card:hover::before,
body .adm-stat-card:hover::before,
body .adm-metric-card:hover::before,
body .ud-stat-card:hover::before { opacity: 1; }

body .d-stat-icon,
body .adm-stat-icon,
body .adm-metric-icon,
body .ud-stat-icon {
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 20px -12px rgba(13, 31, 53, .55);
}

body .d-stat-value,
body .adm-stat-value,
body .adm-metric-value,
body .ud-stat-value {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 700;
  letter-spacing: -.015em;
}

body .d-stat-label,
body .adm-stat-label,
body .adm-metric-label,
body .ud-stat-label {
  letter-spacing: .06em;
}

/* 12e · Panel cards — paper, hairline border, ink shadow */
body .d-card,
body .adm-card,
body .adm-chart-card,
body .adm-agents-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
}

/* 12f · Tables — micro-caps head, gold-tinted hover, hairline rows */
body .d-property-table thead th,
body .adm-agents-table thead th,
body .adm-table thead th {
  font-family: var(--font-body, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--color-muted);
  font-weight: 700;
}

body .d-property-table td, body .d-property-table th,
body .adm-agents-table td, body .adm-agents-table th,
body .adm-table td, body .adm-table th {
  border-color: var(--color-border);
}

body .d-property-table tbody tr:hover,
body .adm-agents-table tbody tr:hover,
body .adm-table tbody tr:hover {
  background-color: rgba(201, 168, 76, .06);
}

body .d-property-table .badge,
body .adm-agents-table .badge,
body .adm-table .badge,
body .adm-verified-badge,
body .adm-badge-staff,
body .adm-status-badge,
body .a-logo-badge,
body .adm-admin-pill,
body .ud-user-badge {
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: .04em;
}

/* 12g · Filters — a paper bar, active filter wears the gold seal */
body .adm-filters-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

body .adm-filter-btn { border-radius: var(--radius-pill); }

body .adm-filter-btn.active {
  background: linear-gradient(120deg, var(--color-gold), var(--color-gold-bright));
  border-color: transparent;
  color: var(--color-ink-3);
  box-shadow: var(--shadow-gold);
}

/* 12h · Empty states — dashed gold ring, warm paper well */
body .adm-empty-agents,
body .d-card .text-center.empty,
body .d-card-body .text-center.py-5 {
  border: 1.5px dashed rgba(201, 168, 76, .45);
  border-radius: var(--radius-lg);
}

/* 12i · Primary actions — lift + ink shadow, never flat */
body .d-btn-primary,
body .ud-btn-primary,
body .adm-btn-primary {
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 24px -12px rgba(13, 31, 53, .5);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

body .d-btn-primary:hover,
body .ud-btn-primary:hover,
body .adm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 12j · Dropdowns, notification & alert panels — glass lift */
body .a-dropdown,
body .adm-dropdown,
body .ud-dropdown,
body .adm-alert-panel,
body .ud-notif-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-3);
}
