/* ============================================================
   URBAN — Design System
   Real estate landing page foundation
   Built on Bootstrap 5 color tokens
   Aesthetic: Contemporary Civic × Blueprint Precision
   Mood: Clean, confident, metropolitan — light with blue spine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Barlow:ital,wght@0,200;0,300;0,400;0,500;0,600;1,200;1,300&display=swap');

/* ============================================================
   BOOTSTRAP COLOR FOUNDATION
   All raw Bootstrap 5 tokens preserved exactly as provided
   ============================================================ */

:root {

  /* --- Bootstrap Raw Tokens (preserved exactly) --- */
  --bs-black:                 #000;
  --bs-white:                 #fff;
  --bs-gray:                  #6c757d;
  --bs-gray-dark:             #343a40;
  --bs-gray-100:              #f8f9fa;
  --bs-gray-200:              #e9ecef;
  --bs-gray-300:              #dee2e6;
  --bs-gray-400:              #ced4da;
  --bs-gray-500:              #adb5bd;
  --bs-gray-600:              #6c757d;
  --bs-gray-700:              #495057;
  --bs-gray-800:              #343a40;
  --bs-gray-900:              #212529;
  --bs-primary:               #0d6efd;
  --bs-secondary:             #6c757d;
  --bs-success:               #198754;
  --bs-info:                  #0dcaf0;
  --bs-warning:               #ffc107;
  --bs-danger:                #dc3545;
  --bs-light:                 #f8f9fa;
  --bs-dark:                  #212529;
  --bs-primary-rgb:           13, 110, 253;
  --bs-secondary-rgb:         108, 117, 125;
  --bs-success-rgb:           25, 135, 84;
  --bs-info-rgb:              13, 202, 240;
  --bs-warning-rgb:           255, 193, 7;
  --bs-danger-rgb:            220, 53, 69;
  --bs-light-rgb:             248, 249, 250;
  --bs-dark-rgb:              33, 37, 41;
  --bs-primary-text-emphasis: #052c65;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis:    #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis:  #58151c;
  --bs-light-text-emphasis:   #495057;
  --bs-dark-text-emphasis:    #495057;
  --bs-primary-bg-subtle:     #cfe2ff;
  --bs-secondary-bg-subtle:   #e2e3e5;
  --bs-success-bg-subtle:     #d1e7dd;

  /* Extended subtle backgrounds (completing the set) */
  --bs-info-bg-subtle:        #cff4fc;
  --bs-warning-bg-subtle:     #fff3cd;
  --bs-danger-bg-subtle:      #f8d7da;
  --bs-light-bg-subtle:       #fcfcfd;
  --bs-dark-bg-subtle:        #ced4da;

  /* ============================================================
     SEMANTIC DESIGN TOKENS
     Mapped from Bootstrap tokens into purposeful roles
     ============================================================ */

  /* Page & Surface */
  --color-bg-page:        var(--bs-gray-100);    /* #f8f9fa — clean off-white  */
  --color-bg-card:        var(--bs-white);
  --color-bg-elevated:    var(--bs-white);
  --color-bg-subtle:      var(--bs-gray-200);    /* #e9ecef — divider sections */
  --color-bg-dark:        var(--bs-gray-900);    /* #212529 — footer, hero     */
  --color-bg-mid:         var(--bs-gray-800);    /* #343a40 — dark cards       */

  /* Text */
  --color-text-primary:   var(--bs-gray-900);    /* #212529                    */
  --color-text-secondary: var(--bs-gray-600);    /* #6c757d                    */
  --color-text-muted:     var(--bs-gray-500);    /* #adb5bd                    */
  --color-text-inverse:   var(--bs-gray-100);    /* on dark backgrounds        */
  --color-text-accent:    var(--bs-primary);     /* #0d6efd — blue             */
  --color-text-link:      var(--bs-primary);

  /* Accent / Brand — Primary Blue is the spine color */
  --color-accent:         var(--bs-primary);               /* #0d6efd              */
  --color-accent-dark:    var(--bs-primary-text-emphasis);  /* #052c65              */
  --color-accent-subtle:  var(--bs-primary-bg-subtle);     /* #cfe2ff              */
  --color-accent-rgb:     var(--bs-primary-rgb);

  /* Secondary accent — Info teal for highlights */
  --color-info:           var(--bs-info);
  --color-info-subtle:    var(--bs-info-bg-subtle);

  /* Status */
  --color-success:        var(--bs-success);
  --color-success-text:   var(--bs-success-text-emphasis);
  --color-success-subtle: var(--bs-success-bg-subtle);
  --color-warning:        var(--bs-warning);
  --color-warning-text:   var(--bs-warning-text-emphasis);
  --color-warning-subtle: var(--bs-warning-bg-subtle);
  --color-danger:         var(--bs-danger);
  --color-danger-text:    var(--bs-danger-text-emphasis);
  --color-danger-subtle:  var(--bs-danger-bg-subtle);

  /* Borders */
  --color-border:         var(--bs-gray-300);    /* #dee2e6                    */
  --color-border-strong:  var(--bs-gray-400);    /* #ced4da                    */
  --color-border-accent:  rgba(var(--bs-primary-rgb), 0.40);

  /* ============================================================
     TYPOGRAPHY
     Display: Libre Baskerville — authoritative, civic serif.
               Evokes architectural planning documents and
               city newspapers. Structured, trustworthy.
     Body:    Barlow — compressed, technical, metropolitan.
               Think airport signage meets design system.
               Ultra-light weight reads as modern restraint.
     ============================================================ */

  --font-display:   'Libre Baskerville', Georgia, serif;
  --font-body:      'Barlow', 'Franklin Gothic Medium', sans-serif;
  --font-mono:      'Courier New', Courier, monospace;

  /* Scale — Minor Third (1.2) — tight, professional */
  --text-2xs:  0.64rem;    /*  ~10px */
  --text-xs:   0.75rem;    /*   12px */
  --text-sm:   0.875rem;   /*   14px */
  --text-base: 1rem;       /*   16px */
  --text-md:   1.2rem;     /*  ~19px */
  --text-lg:   1.44rem;    /*  ~23px */
  --text-xl:   1.728rem;   /*  ~28px */
  --text-2xl:  2.074rem;   /*  ~33px */
  --text-3xl:  2.488rem;   /*  ~40px */
  --text-4xl:  2.986rem;   /*  ~48px */
  --text-5xl:  3.583rem;   /*  ~57px */
  --text-6xl:  4.3rem;     /*  ~69px */
  --text-7xl:  5.16rem;    /*  ~83px */

  /* Weights */
  --weight-thin:     200;
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Leading */
  --leading-none:    1;
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --leading-loose:   1.85;

  /* Tracking */
  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.10em;
  --tracking-widest:  0.18em;

  /* ============================================================
     SPACING — 4px base
     ============================================================ */

  --space-0:    0px;
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-7:    28px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-14:   56px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-28:   112px;
  --space-32:   128px;
  --space-40:   160px;
  --space-48:   192px;
  --space-56:   224px;
  --space-64:   256px;

  --section-y:      var(--space-24);
  --section-y-lg:   var(--space-40);

  /* ============================================================
     LAYOUT
     ============================================================ */

  --container-max:    1296px;
  --container-narrow: 720px;
  --container-wide:   1520px;
  --container-px:     var(--space-4);
  --container-px-md:  var(--space-8);
  --container-px-lg:  var(--space-16);

  --grid-cols:   12;
  --grid-gap:    var(--space-6);
  --grid-gap-lg: var(--space-8);

  /* ============================================================
     BORDERS & RADIUS
     Slightly more rounded than v3, less than v2.
     Civic precision with a human edge.
     ============================================================ */

  --radius-none:   0px;
  --radius-xs:     3px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-2xl:    32px;
  --radius-pill:   9999px;

  --border-width:    1px;
  --border-width-md: 2px;

  /* ============================================================
     SHADOWS — Crisp, neutral — no color bias
     ============================================================ */

  --shadow-xs:   0 1px 2px rgba(33, 37, 41, 0.06);
  --shadow-sm:   0 1px 6px rgba(33, 37, 41, 0.08),
                 0 1px 2px rgba(33, 37, 41, 0.04);
  --shadow-md:   0 4px 16px rgba(33, 37, 41, 0.10),
                 0 1px 4px  rgba(33, 37, 41, 0.06);
  --shadow-lg:   0 8px 32px rgba(33, 37, 41, 0.12),
                 0 2px 8px  rgba(33, 37, 41, 0.06);
  --shadow-xl:   0 16px 56px rgba(33, 37, 41, 0.14),
                 0 4px 16px rgba(33, 37, 41, 0.08);
  --shadow-2xl:  0 32px 80px rgba(33, 37, 41, 0.18);

  /* Blue accent shadow — for interactive elements */
  --shadow-accent:    0 4px 16px rgba(var(--bs-primary-rgb), 0.24);
  --shadow-accent-lg: 0 8px 32px rgba(var(--bs-primary-rgb), 0.32);

  /* Focus ring */
  --focus-ring:  0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);

  /* ============================================================
     TRANSITIONS
     ============================================================ */

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.37, 0, 0.63, 1);

  --duration-fast:   140ms;
  --duration-base:   240ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;
  --duration-scene:  900ms;

  --transition-base:      all var(--duration-base) var(--ease-out);
  --transition-color:     color var(--duration-fast) var(--ease-out),
                          background-color var(--duration-fast) var(--ease-out),
                          border-color var(--duration-fast) var(--ease-out);
  --transition-shadow:    box-shadow var(--duration-base) var(--ease-out);
  --transition-transform: transform var(--duration-base) var(--ease-out);

  /* ============================================================
     Z-INDEX SCALE
     ============================================================ */

  --z-below:    -1;
  --z-base:      0;
  --z-above:     1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
  --z-tooltip:   600;

  /* ============================================================
     COMPONENT TOKENS — Nav
     ============================================================ */

  --nav-height:    68px;
  --nav-height-sm: 56px;
  --nav-bg:        rgba(248, 249, 250, 0.94);
  --nav-bg-dark:   rgba(33, 37, 41, 0.97);
  --nav-blur:      blur(12px);
  --nav-border:    var(--color-border);

  /* ============================================================
     COMPONENT TOKENS — Hero
     ============================================================ */

  --hero-min-height:  90vh;
  --hero-overlay:     linear-gradient(
                        to bottom,
                        rgba(33, 37, 41, 0.45) 0%,
                        rgba(33, 37, 41, 0.15) 40%,
                        rgba(33, 37, 41, 0.65) 100%
                      );

  /* ============================================================
     COMPONENT TOKENS — Cards
     ============================================================ */

  --card-bg:            var(--color-bg-card);
  --card-border:        var(--color-border);
  --card-border-hover:  var(--color-border-accent);
  --card-radius:        var(--radius-md);
  --card-padding:       var(--space-6);
  --card-padding-lg:    var(--space-8);
  --card-shadow:        var(--shadow-sm);
  --card-shadow-hover:  var(--shadow-lg);

  /* ============================================================
     COMPONENT TOKENS — Buttons
     ============================================================ */

  --btn-height-sm:   36px;
  --btn-height-md:   48px;
  --btn-height-lg:   56px;
  --btn-px-sm:       var(--space-4);
  --btn-px-md:       var(--space-8);
  --btn-px-lg:       var(--space-10);
  --btn-radius:      var(--radius-sm);
  --btn-font:        var(--font-body);
  --btn-font-size:   var(--text-sm);
  --btn-font-weight: var(--weight-semibold);
  --btn-tracking:    var(--tracking-wider);

  /* ============================================================
     COMPONENT TOKENS — Forms
     ============================================================ */

  --input-height:        48px;
  --input-height-sm:     40px;
  --input-radius:        var(--radius-sm);
  --input-px:            var(--space-4);
  --input-border:        var(--color-border-strong);
  --input-border-focus:  var(--bs-primary);
  --input-bg:            var(--bs-white);
  --input-shadow-focus:  var(--focus-ring);
  --input-font-size:     var(--text-base);

  /* ============================================================
     MEDIA BREAKPOINTS
     sm: 640px / md: 768px / lg: 1024px / xl: 1280px
     ============================================================ */
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Blueprint grid: very faint dot grid on page background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-below);
  opacity: 0.018;
  background-image: radial-gradient(circle, var(--bs-gray-700) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-color);
}

a:hover { color: var(--color-accent-dark); }

ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* Focus visible — accessibility */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

/* Display — Libre Baskerville: authoritative, civic */
.display-2xl {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}
.display-sm {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}

/* Headings — Barlow */
.heading-xl  { font-family: var(--font-body); font-size: var(--text-2xl);  font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
.heading-lg  { font-family: var(--font-body); font-size: var(--text-xl);   font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
.heading-md  { font-family: var(--font-body); font-size: var(--text-lg);   font-weight: var(--weight-medium); line-height: var(--leading-normal); }
.heading-sm  { font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--weight-semibold); }

/* Eyebrow / Overline */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bs-primary);
}

.eyebrow--success { color: var(--bs-success); }
.eyebrow--dark    { color: var(--bs-gray-600); }

/* Body text — Barlow light */
.body-lg   { font-size: var(--text-md);   line-height: var(--leading-relaxed); font-weight: var(--weight-light); }
.body-base { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.body-sm   { font-size: var(--text-sm);   line-height: var(--leading-normal); }
.body-xs   { font-size: var(--text-xs);   line-height: var(--leading-normal); }

/* Serif italic accent */
.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-regular);
}

/* Price / number display — Barlow condensed feel */
.price-display {
  font-family: var(--font-body);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-snug);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section     { padding-top: var(--section-y);    padding-bottom: var(--section-y); }
.section--lg { padding-top: var(--section-y-lg); padding-bottom: var(--section-y-lg); }
.section--alt     { background-color: var(--color-bg-subtle); }
.section--primary { background-color: var(--bs-primary); color: var(--bs-white); }
.section--dark    { background-color: var(--color-bg-dark);   color: var(--color-text-inverse); }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
}

.flex             { display: flex; }
.flex-col         { flex-direction: column; }
.items-center     { align-items: center; }
.items-end        { align-items: flex-end; }
.items-start      { align-items: flex-start; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }

/* ============================================================
   COMPONENT — Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: var(--border-width) solid var(--nav-border);
  z-index: var(--z-sticky);
  transition: background var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav--dark {
  background: var(--nav-bg-dark);
  border-color: rgba(255,255,255,0.08);
  color: var(--bs-gray-100);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-snug);
}

/* Blue dot accent on logo */
.nav__logo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bs-primary);
  margin-left: 2px;
  vertical-align: middle;
  margin-bottom: 3px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: var(--transition-color), background var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text-primary);
  background: var(--bs-gray-200);
}

.nav__link--active {
  color: var(--bs-primary);
  background: var(--color-accent-subtle);
}

/* ============================================================
   COMPONENT — Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--bs-gray-900);
}

.hero__media {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

/* Blue accent bar at very bottom of hero */
.hero__accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bs-primary);
}

.hero__content {
  position: relative;
  z-index: var(--z-above);
  padding-bottom: var(--space-24);
  color: var(--bs-white);
}

/* ============================================================
   COMPONENT — Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height-md);
  padding: 0 var(--btn-px-md);
  border-radius: var(--btn-radius);
  font-family: var(--btn-font);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-tracking);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-base);
  border: var(--border-width-md) solid transparent;
  text-decoration: none;
}

.btn--sm { height: var(--btn-height-sm); padding: 0 var(--btn-px-sm); font-size: var(--text-xs); }
.btn--lg { height: var(--btn-height-lg); padding: 0 var(--btn-px-lg); font-size: var(--text-base); }

/* Primary — Bootstrap blue */
.btn--primary {
  background: var(--bs-primary);
  color: var(--bs-white);
  border-color: var(--bs-primary);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-accent-lg);
  transform: translateY(-1px);
  color: var(--bs-white);
}
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* Secondary */
.btn--secondary {
  background: var(--bs-secondary);
  color: var(--bs-white);
  border-color: var(--bs-secondary);
}
.btn--secondary:hover {
  background: var(--bs-gray-dark);
  border-color: var(--bs-gray-dark);
  color: var(--bs-white);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.btn--outline:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
  box-shadow: var(--shadow-accent);
}

/* Outline dark — for use on dark backgrounds */
.btn--outline-light {
  background: transparent;
  color: var(--bs-white);
  border-color: rgba(255,255,255,0.60);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--bs-white);
  color: var(--bs-white);
}

/* Success */
.btn--success {
  background: var(--bs-success);
  color: var(--bs-white);
  border-color: var(--bs-success);
}
.btn--success:hover {
  background: var(--bs-success-text-emphasis);
  border-color: var(--bs-success-text-emphasis);
  color: var(--bs-white);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--color-text-primary);
  background: var(--bs-gray-200);
}

/* Dark */
.btn--dark {
  background: var(--bs-dark);
  color: var(--bs-white);
  border-color: var(--bs-dark);
}
.btn--dark:hover {
  background: var(--bs-black);
  border-color: var(--bs-black);
  color: var(--bs-white);
}

/* ============================================================
   COMPONENT — Property Card
   ============================================================ */

.card {
  background: var(--card-bg);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition:
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}

.card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bs-gray-200);
}

.card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-scene) var(--ease-out);
}

.card:hover .card__image { transform: scale(1.04); }

.card__badge-group {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-2);
}

.card__save {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px; height: 34px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray-500);
  border: var(--border-width) solid var(--bs-gray-300);
  transition: var(--transition-base);
}
.card__save:hover {
  color: var(--bs-danger);
  border-color: var(--bs-danger);
  background: var(--bs-white);
}

/* Blue accent top border appears on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bs-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
  z-index: var(--z-above);
}
.card:hover::before { transform: scaleX(1); }

.card__body { padding: var(--card-padding); }

.card__status {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bs-success);
  margin-bottom: var(--space-2);
}

.card__status--pending { color: var(--bs-warning-text-emphasis); }
.card__status--sold    { color: var(--bs-secondary); }

.card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-1);
  letter-spacing: var(--tracking-tight);
}

.card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.card__address {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

.card__stats {
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--color-border);
}

.card__stat { font-size: var(--text-xs); color: var(--color-text-secondary); }
.card__stat strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

/* ============================================================
   COMPONENT — Badges / Tags
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-3);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
}

.badge--primary   { background: var(--bs-primary);          color: var(--bs-white); }
.badge--secondary { background: var(--bs-secondary);        color: var(--bs-white); }
.badge--success   { background: var(--bs-success);          color: var(--bs-white); }
.badge--warning   { background: var(--bs-warning);          color: var(--bs-warning-text-emphasis); }
.badge--danger    { background: var(--bs-danger);           color: var(--bs-white); }
.badge--info      { background: var(--bs-info);             color: var(--bs-info-text-emphasis); }
.badge--dark      { background: var(--bs-dark);             color: var(--bs-white); }
.badge--light     { background: var(--bs-light);            color: var(--bs-dark);  border: 1px solid var(--bs-gray-300); }
.badge--primary-subtle   { background: var(--color-accent-subtle);    color: var(--color-accent-dark); }
.badge--success-subtle   { background: var(--bs-success-bg-subtle);   color: var(--bs-success-text-emphasis); }
.badge--secondary-subtle { background: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); }

/* ============================================================
   COMPONENT — Alert / Info Banner
   ============================================================ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  border-left: 3px solid transparent;
}

.alert--primary   { background: var(--color-accent-subtle);    color: var(--color-accent-dark);        border-color: var(--bs-primary); }
.alert--success   { background: var(--bs-success-bg-subtle);   color: var(--bs-success-text-emphasis); border-color: var(--bs-success); }
.alert--warning   { background: var(--bs-warning-bg-subtle);   color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning); }
.alert--danger    { background: var(--bs-danger-bg-subtle);    color: var(--bs-danger-text-emphasis);  border-color: var(--bs-danger); }
.alert--info      { background: var(--bs-info-bg-subtle);      color: var(--bs-info-text-emphasis);    border-color: var(--bs-info); }

/* ============================================================
   COMPONENT — Stat Block
   ============================================================ */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

.stat__value--primary { color: var(--bs-primary); }
.stat__value--success { color: var(--bs-success); }

.stat__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.stat__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   COMPONENT — Testimonial
   ============================================================ */

.testimonial {
  padding: var(--space-8) var(--card-padding-lg);
  background: var(--color-bg-card);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}

.testimonial__stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  color: var(--bs-warning);
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bs-gray-200);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-accent-subtle);
}

.testimonial__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   COMPONENT — Section Header
   ============================================================ */

.section-header {
  margin-bottom: var(--space-14);
}

.section-header--centered {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-14);
}

.section-header__eyebrow { margin-bottom: var(--space-3); }

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.section-header__body {
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   COMPONENT — Form Inputs
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--bs-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--input-px);
  background: var(--input-bg);
  border: var(--border-width) solid var(--input-border);
  border-radius: var(--input-radius);
  font-size: var(--input-font-size);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-textarea {
  height: auto;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

.form-input::placeholder { color: var(--bs-gray-400); }

.form-input--error  { border-color: var(--bs-danger); }
.form-input--success { border-color: var(--bs-success); }

/* ============================================================
   COMPONENT — Search Bar
   ============================================================ */

.search-bar {
  display: flex;
  align-items: stretch;
  background: var(--bs-white);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.search-bar:focus-within {
  border-color: var(--bs-primary);
  box-shadow: var(--shadow-accent-lg);
}

.search-bar__input {
  flex: 1;
  height: var(--btn-height-lg);
  padding: 0 var(--space-6);
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

.search-bar__input::placeholder { color: var(--bs-gray-400); }

.search-bar__select {
  height: var(--btn-height-lg);
  padding: 0 var(--space-5);
  border: none;
  border-left: var(--border-width) solid var(--color-border);
  background: var(--bs-gray-100);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  outline: none;
  cursor: pointer;
}

.search-bar__btn {
  height: var(--btn-height-lg);
  padding: 0 var(--space-8);
  background: var(--bs-primary);
  color: var(--bs-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out);
}

.search-bar__btn:hover { background: var(--color-accent-dark); }

/* ============================================================
   COMPONENT — Filter Chips
   ============================================================ */

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bs-white);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-chip:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  background: var(--color-accent-subtle);
}

.filter-chip--active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-white);
  box-shadow: var(--shadow-accent);
}

/* ============================================================
   COMPONENT — Agent Card
   ============================================================ */

.agent-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-card);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-shadow), var(--transition-transform);
}

.agent-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.agent-card__avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: var(--bs-gray-200);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--bs-primary);
}

.agent-card__name  { font-weight: var(--weight-semibold); font-size: var(--text-base); color: var(--color-text-primary); }
.agent-card__title { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-top: 2px; }
.agent-card__phone { font-size: var(--text-sm); color: var(--bs-primary); font-weight: var(--weight-medium); margin-top: var(--space-1); }

/* ============================================================
   COMPONENT — Feature Block
   ============================================================ */

.feature {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.feature--vertical {
  flex-direction: column;
  gap: var(--space-4);
}

.feature__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  flex-shrink: 0;
}

.feature__icon--success { background: var(--bs-success-bg-subtle); color: var(--bs-success); }
.feature__icon--warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.feature__icon--info    { background: var(--bs-info-bg-subtle);    color: var(--bs-info-text-emphasis); }

.feature__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.feature__body {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   COMPONENT — Progress / Score indicator
   ============================================================ */

.progress-bar-wrap {
  height: 6px;
  background: var(--bs-gray-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--bs-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-slower) var(--ease-out);
}

.progress-bar--success { background: var(--bs-success); }
.progress-bar--warning { background: var(--bs-warning); }
.progress-bar--danger  { background: var(--bs-danger); }
.progress-bar--info    { background: var(--bs-info); }

/* ============================================================
   COMPONENT — Dividers
   ============================================================ */

.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
}

.divider--strong { background: var(--color-border-strong); }
.divider--accent { background: var(--bs-primary); height: 2px; }

.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   UTILITY — Color overrides
   ============================================================ */

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--bs-primary); }
.text-success   { color: var(--bs-success); }
.text-warning   { color: var(--bs-warning-text-emphasis); }
.text-danger    { color: var(--bs-danger); }
.text-info      { color: var(--bs-info-text-emphasis); }
.text-white     { color: var(--bs-white); }
.text-inverse   { color: var(--color-text-inverse); }

.bg-page        { background-color: var(--color-bg-page); }
.bg-card        { background-color: var(--color-bg-card); }
.bg-subtle      { background-color: var(--color-bg-subtle); }
.bg-dark        { background-color: var(--color-bg-dark); color: var(--color-text-inverse); }
.bg-primary     { background-color: var(--bs-primary); color: var(--bs-white); }
.bg-primary-subtle { background-color: var(--color-accent-subtle); }
.bg-success-subtle { background-color: var(--bs-success-bg-subtle); }
.bg-warning-subtle { background-color: var(--bs-warning-bg-subtle); }

.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ============================================================
   UTILITY — Grain overlay
   ============================================================ */

.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-toast);
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.90' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================================================
   UTILITY — Screen reader only
   ============================================================ */

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

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (min-width: 640px) {
  :root { --container-px: var(--container-px-md); }
}

@media (min-width: 768px) {
  :root {
    --section-y:    var(--space-32);
    --section-y-lg: var(--space-48);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-px: var(--container-px-lg);
    --grid-gap: var(--grid-gap-lg);
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .nav, body::before { display: none; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid var(--bs-gray-300); }
}