/* ══════════════════════════════════════════════════════════════
   TEAYS VALLEY PM  ·  Design Tokens & Component Library
   tv-tokens.css  ·  v3.0  ·  2026
   
   Keep this file in the same directory as:
     style-guide.html  ·  ui-guide.html  ·  topo.svg
══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:           #002a53;
  --primary-hover:     #003a72;
  --primary-container: #1c406d;
  --primary-light:     #3a6494;
  --red:               #D44A38;
  --red-dark:          #B33428;
  --red-hover:         #BE3E2E;
  --red-container:     #fbecea;
  --red-border:        rgba(212,74,56,0.18);

  /* Surfaces */
  --surface:       #fcf9f8;
  --surface-low:   #f6f3f2;
  --surface-card:  #ffffff;
  --on-surface:    #1b1c1c;
  --on-variant:    #44474e;
  --muted:         #6b7280;
  --muted-light:   #9ca3af;

  /* Semantic */
  --success:     #1a6b3a;  --success-bg: #e8f5ee;
  --warning:     #8a5c00;  --warning-bg: #fef5dc;
  --info:        #1a4f7a;  --info-bg:    #e8f3fb;
  --danger:      #b32020;  --danger-bg:  #fdeaea;

  /* Typefaces */
  --font-sans:  'Barlow', 'Helvetica Neue', sans-serif;
  --font-serif: 'Source Serif 4', 'Georgia', serif;
  --font-mono:  'Courier New', monospace;

  /* Radius — minimal */
  --r-xs:   2px;
  --r-sm:   3px;
  --r-md:   4px;
  --r-lg:   6px;
  --r-xl:   8px;
  --r-2xl: 12px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(27,28,28,0.05);
  --shadow-sm: 0 2px 8px rgba(27,28,28,0.07);
  --shadow-md: 0 6px 24px rgba(27,28,28,0.09);
  --shadow-lg: 0 14px 44px rgba(27,28,28,0.12);
  --shadow-xl: 0 24px 64px rgba(27,28,28,0.15);

  /* Motion */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-std:   300ms;
  --dur-slow:  450ms;

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 24px;  --sp-6: 32px;
  --sp-7: 40px;  --sp-8: 56px;  --sp-9: 80px;
  --sp-10:112px; --sp-11:160px;

  /* Z-index */
  --z-base: 0; --z-up: 10; --z-nav: 100; --z-modal: 200;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ─────────────────────────────────────────────
   TOPOGRAPHY TEXTURE MIXINS (classes)
───────────────────────────────────────────── */
.topo-dark {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('topo.svg');
  background-size: 520px 520px;
  background-repeat: repeat;
  opacity: 0.055;
  filter: invert(1);
}
.topo-light {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('topo.svg');
  background-size: 480px 480px;
  background-repeat: repeat;
  opacity: 0.032;
}
.topo-red {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('topo.svg');
  background-size: 440px 440px;
  background-repeat: repeat;
  opacity: 0.06;
  filter: invert(1);
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px 120px; }
.two-col    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.four-col   { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.col-60-40  { display: grid; grid-template-columns: 60fr 40fr; gap: 40px; align-items: center; }
.col-40-60  { display: grid; grid-template-columns: 40fr 60fr; gap: 40px; align-items: center; }
.divider    { height: 1px; background: rgba(0,42,83,0.07); margin: 24px 0; }
.divider-sm { height: 1px; background: rgba(0,42,83,0.07); margin: 12px 0; }
@media (max-width: 900px) {
  .wrap { padding: 0 24px 80px; }
  .two-col, .three-col, .four-col,
  .col-60-40, .col-40-60 { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   GUIDE NAV
───────────────────────────────────────────── */
.g-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(252,249,248,0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,42,83,0.08);
  padding: 0 48px;
}
.g-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.g-nav-brand {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); white-space: nowrap;
}
.g-nav-links { display: flex; list-style: none; }
.g-nav-links a {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 0 10px; height: 52px;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.g-nav-links a:hover { color: var(--primary); }
.g-nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────── */
.sec { margin-bottom: 88px; }
.sec-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.sec-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted-light); flex-shrink: 0; margin-top: 6px; }
.sec-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.sec-title { font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.sec-desc { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: var(--on-variant); margin-top: 6px; max-width: 540px; line-height: 1.75; }
.label-sm { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.surface-band { background: var(--surface-low); border-radius: var(--r-xl); padding: 28px; position: relative; overflow: hidden; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────── */
.t-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.t-label   { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-surface); }
.t-mono    { font-family: var(--font-mono); font-size: 13px; color: var(--on-variant); }
.rule-desc { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: var(--on-variant); line-height: 1.75; }
.stripe    { border-left: 4px solid var(--red); padding-left: 14px; }
code       { font-family: var(--font-mono); font-size: 11px; background: var(--surface-low); color: var(--red); padding: 2px 6px; border-radius: var(--r-xs); }
.anno      { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--r-md); border: none;
  cursor: pointer; transition: all var(--dur-std) var(--ease); white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-red       { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-outline   { background: transparent; border: 1.5px solid rgba(0,42,83,0.28); color: var(--primary); }
.btn-outline:hover { background: rgba(0,42,83,0.05); border-color: var(--primary); }
.btn-outline-red { background: transparent; border: 1.5px solid rgba(212,74,56,0.35); color: var(--red); }
.btn-outline-red:hover { background: var(--red-container); }
.btn-ghost     { background: rgba(0,42,83,0.07); color: var(--primary); }
.btn-ghost:hover { background: rgba(0,42,83,0.12); }
.btn-white     { background: #fff; color: var(--primary); }
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-white-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-white-outline:hover { background: rgba(255,255,255,0.08); }
.btn-link      { background: none; border: none; color: var(--primary); font-family: var(--font-serif); font-size: 14px; font-style: italic; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; letter-spacing: 0; text-transform: none; font-weight: 400; }
.btn-sm        { padding: 8px 16px; font-size: 11px; }
.btn-lg        { padding: 16px 36px; font-size: 13px; }
.btn-xl        { padding: 18px 44px; font-size: 14px; }
.btn-icon      { padding: 10px; width: 40px; height: 40px; }
.btn[disabled], .btn-disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

/* Search (icon tile) */
.btn-search { background: var(--red); color: #fff; padding: 5px; border: none; cursor: pointer; border-radius: var(--r-md); display: inline-flex; align-items: center; transition: background var(--dur-std); }
.btn-search:hover { background: var(--red-hover); }
.btn-search-tile { width: 38px; height: 38px; background: var(--red-dark); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-search-label { flex: 1; text-align: center; font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; padding: 0 14px; }

/* Secondary (icon + divider + label) */
.btn-secondary { background: #f5f4f3; border: 1.5px solid #dddbd8; color: #2c3040; border-radius: var(--r-md); padding: 0; display: inline-flex; align-items: stretch; overflow: hidden; cursor: pointer; transition: all var(--dur-std) var(--ease); height: 48px; }
.btn-secondary:hover { background: #ededeb; border-color: #c8c6c2; }
.btn-secondary-icon { padding: 0 14px; display: flex; align-items: center; }
.btn-secondary-div  { width: 1px; background: #dddbd8; flex-shrink: 0; }
.btn-secondary-label { flex: 1; padding: 0 18px; display: flex; align-items: center; font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* Button group */
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; border-right-width: 0; }
.btn-group .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.btn-group .btn:last-child  { border-radius: 0 var(--r-md) var(--r-md) 0; border-right-width: 1.5px; }

/* ─────────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-variant); }
.field input, .field select, .field textarea {
  font-family: var(--font-serif); font-size: 14px; color: var(--on-surface);
  background: var(--surface-low); border: none;
  border-bottom: 1.5px solid rgba(195,198,208,0.6);
  padding: 10px 2px; border-radius: 0; outline: none;
  transition: border-color var(--dur-std); -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--primary); }
.field-error input, .field input.err { border-bottom-color: var(--danger); }
.field textarea { resize: vertical; min-height: 84px; }
.field-hint { font-family: var(--font-serif); font-size: 11px; color: var(--muted); font-style: italic; }
.field-err-msg { font-size: 11px; color: var(--danger); font-weight: 600; }
.check-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--on-surface); }
.check-box { width: 18px; height: 18px; border: 1.5px solid rgba(0,42,83,0.3); border-radius: var(--r-xs); background: var(--surface-card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--dur-fast); }
.check-box.checked { background: var(--primary); border-color: var(--primary); }
.radio-box { width: 18px; height: 18px; border: 1.5px solid rgba(0,42,83,0.3); border-radius: 50%; background: var(--surface-card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio-box.on { border-color: var(--red); }
.radio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.toggle { width: 44px; height: 24px; background: rgba(0,42,83,0.15); border-radius: var(--r-pill); position: relative; cursor: pointer; transition: background var(--dur-std); flex-shrink: 0; }
.toggle.on { background: var(--primary); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform var(--dur-std) var(--ease); box-shadow: var(--shadow-xs); }
.toggle.on .toggle-knob { transform: translateX(20px); }
input[type=range] { -webkit-appearance: none; flex: 1; height: 4px; background: rgba(0,42,83,0.12); border-radius: 2px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; }
.search-input-wrap { position: relative; }
.search-input { background: var(--surface-card); border: 1.5px solid rgba(0,42,83,0.14); border-radius: var(--r-md); padding: 11px 40px 11px 14px; font-family: var(--font-serif); font-size: 14px; color: var(--on-surface); width: 100%; outline: none; transition: border-color var(--dur-std); }
.search-input:focus { border-color: var(--primary); }
.search-input-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ─────────────────────────────────────────────
   BADGES & CHIPS
───────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-sm); }
.badge-primary { background: rgba(0,42,83,0.1);  color: var(--primary); }
.badge-red     { background: var(--red-container); color: var(--red); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-neutral { background: var(--surface-low); color: var(--on-variant); }
.badge-solid-red { background: var(--red); color: #fff; }
.badge-solid-primary { background: var(--primary); color: #fff; }
.badge-pill    { border-radius: var(--r-pill); }
.badge-dot::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer; border: none; transition: all var(--dur-std) var(--ease); }
.chip-default { background: rgba(0,42,83,0.07); color: var(--primary); }
.chip-active  { background: var(--red); color: #fff; }
.chip-outline { background: transparent; border: 1.5px solid rgba(0,42,83,0.18); color: var(--primary); }

/* ─────────────────────────────────────────────
   TABS
───────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid rgba(0,42,83,0.08); }
.tab { padding: 10px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--dur-fast); }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab.active-red { color: var(--red); border-bottom-color: var(--red); }
.tabs-pill { display: flex; gap: 4px; background: var(--surface-low); padding: 4px; border-radius: var(--r-lg); }
.tab-pill { padding: 7px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: var(--r-md); transition: all var(--dur-std) var(--ease); }
.tab-pill.active { background: var(--surface-card); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ─────────────────────────────────────────────
   DROPDOWN
───────────────────────────────────────────── */
.dropdown-trigger { background: var(--surface-card); border: 1.5px solid rgba(0,42,83,0.14); border-radius: var(--r-md); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 13px; color: var(--on-surface); transition: border-color var(--dur-fast); }
.dropdown-trigger:hover { border-color: var(--primary); }
.dropdown-open { border-color: var(--primary); border-bottom-color: transparent; border-radius: var(--r-md) var(--r-md) 0 0; }
.dropdown-chevron { font-size: 10px; color: var(--muted); transition: transform var(--dur-std) var(--ease); }
.dropdown-chevron.open { transform: rotate(180deg); }
.dropdown-menu { background: var(--surface-card); border: 1.5px solid var(--primary); border-top: none; border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; }
.dropdown-item { padding: 10px 14px; font-size: 13px; color: var(--on-surface); cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background var(--dur-fast); border-bottom: 1px solid rgba(0,42,83,0.05); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--surface-low); }
.dropdown-item.active { color: var(--red); font-weight: 600; }

/* ─────────────────────────────────────────────
   ACCORDION
───────────────────────────────────────────── */
.accordion { border: 1.5px solid rgba(0,42,83,0.1); border-radius: var(--r-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid rgba(0,42,83,0.07); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; background: var(--surface-card); transition: background var(--dur-fast); }
.accordion-trigger:hover, .accordion-trigger.open { background: var(--surface-low); }
.accordion-trigger.open.stripe { border-left: 3px solid var(--red); padding-left: 17px; }
.accordion-q { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--on-surface); }
.accordion-icon { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(0,42,83,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; color: var(--primary); transition: all var(--dur-std) var(--ease); }
.accordion-icon.open { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }
.accordion-body { padding: 0 20px 18px; background: var(--surface-low); }
.accordion-a { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: var(--on-variant); line-height: 1.8; padding-top: 6px; }
/* Minimal variant */
.accordion-minimal .accordion { border: none; border-radius: 0; }
.accordion-minimal .accordion-item { border-bottom: 1px solid rgba(0,42,83,0.08); }
.accordion-minimal .accordion-trigger { padding: 16px 0; background: transparent !important; }
.accordion-minimal .accordion-body { padding: 0 0 14px; background: transparent; }

/* ─────────────────────────────────────────────
   CARDS — BASE
───────────────────────────────────────────── */
.card-base { background: var(--surface-card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow var(--dur-std) var(--ease), transform var(--dur-std) var(--ease); }
.card-base:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Listing card */
.listing-card { background: var(--surface-card); border: 1.5px solid var(--red-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-std) var(--ease), transform var(--dur-std) var(--ease); }
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lc-img { height: 190px; background: linear-gradient(160deg,#b8cdd8,#8aaabb); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lc-badge { position: absolute; bottom: 10px; left: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-sm); }
.lc-body { padding: 16px; }
.lc-price { font-size: 20px; font-weight: 700; color: var(--red); letter-spacing: -0.01em; }
.lc-price-unit { font-size: 12px; font-weight: 400; color: var(--muted); }
.lc-name { font-size: 17px; font-weight: 700; color: var(--on-surface); line-height: 1.25; margin: 4px 0 3px; letter-spacing: -0.01em; }
.lc-addr { font-family: var(--font-serif); font-size: 12px; color: var(--muted); font-style: italic; }
.lc-divider { border: none; border-top: 1px solid rgba(0,42,83,0.07); margin: 12px 0; }
.lc-stats { display: flex; gap: 18px; }
.lc-stat-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--primary); display: block; }
.lc-stat-key { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Horizontal listing */
.listing-card-h { background: var(--surface-card); border: 1.5px solid var(--red-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; transition: box-shadow var(--dur-std), transform var(--dur-std); }
.listing-card-h:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.lch-img { width: 180px; flex-shrink: 0; background: linear-gradient(160deg,#cdd8b8,#aabb8a); position: relative; }

/* Compact listing */
.listing-card-compact { background: var(--surface-card); border: 1px solid rgba(0,42,83,0.09); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-xs); display: flex; align-items: center; gap: 14px; transition: box-shadow var(--dur-fast); }
.listing-card-compact:hover { box-shadow: var(--shadow-sm); }
.lc-compact-thumb { width: 56px; height: 56px; border-radius: var(--r-sm); background: linear-gradient(135deg,#c8d8e8,#8aaabb); flex-shrink: 0; }

/* Feature card */
.feature-card { background: var(--surface-card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,42,83,0.07); transition: box-shadow var(--dur-std), transform var(--dur-std); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.feature-card-icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 18px; flex-shrink: 0; }
.feature-card-title { font-size: 14px; font-weight: 700; color: var(--primary); border-left: 3px solid var(--red); padding-left: 10px; margin-bottom: 8px; line-height: 1.4; }
.feature-card-body { font-family: var(--font-serif); font-size: 13px; color: var(--on-variant); line-height: 1.75; }

/* Testimonial card */
.testi-card { background: var(--primary); border-radius: var(--r-lg); padding: 28px 32px; position: relative; overflow: hidden; }
.testi-mark { font-family: var(--font-serif); font-size: 64px; line-height: 0.75; color: var(--red); opacity: 0.65; margin-bottom: 14px; font-style: italic; position: relative; z-index: 1; }
.testi-quote { font-family: var(--font-serif); font-size: 16px; font-style: italic; color: rgba(255,255,255,0.88); line-height: 1.65; position: relative; z-index: 1; margin-bottom: 20px; }
.testi-author { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); position: relative; z-index: 1; }
.testi-role { font-family: var(--font-serif); font-size: 11px; font-style: italic; color: rgba(255,255,255,0.3); margin-top: 2px; position: relative; z-index: 1; }

/* Stat card */
.stat-card { background: var(--surface-card); border-radius: var(--r-md); padding: 18px 20px; border: 1px solid rgba(0,42,83,0.08); }
.stat-val { font-size: 2rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.stat-delta { font-size: 11px; font-weight: 700; color: var(--success); margin-top: 4px; }
.stat-delta.neg { color: var(--danger); }

/* Owner card */
.owner-card { background: var(--primary); border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; }
.owner-card-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 8px; position: relative; z-index: 1; }
.owner-card-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.015em; line-height: 1.3; position: relative; z-index: 1; }
.owner-card-body { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: rgba(255,255,255,0.55); margin-top: 8px; line-height: 1.7; position: relative; z-index: 1; }
.owner-card-cta { margin-top: 20px; position: relative; z-index: 1; }

/* Promo banner */
.promo-banner { background: var(--red); border-radius: var(--r-md); padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
.promo-banner-text { font-size: 13px; color: #fff; font-weight: 500; flex: 1; }
.promo-banner-text strong { font-weight: 700; }
.promo-banner-cta { background: rgba(255,255,255,0.2); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-sm); flex-shrink: 0; cursor: pointer; }

/* ─────────────────────────────────────────────
   ALERTS & TOASTS
───────────────────────────────────────────── */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 13px; border-left: 3px solid; }
.alert-title { font-weight: 700; margin-bottom: 2px; font-size: 13px; }
.alert-body { font-family: var(--font-serif); font-size: 13px; line-height: 1.6; }
.alert-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: var(--info); }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger);  color: var(--danger); }
.toast { background: var(--on-surface); color: #fff; border-radius: var(--r-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; box-shadow: var(--shadow-lg); }
.toast-icon { font-size: 14px; flex-shrink: 0; }
.toast-text { flex: 1; }
.toast-close { font-size: 14px; color: rgba(255,255,255,0.4); cursor: pointer; }
.toast-success { background: var(--success); }
.toast-red { background: var(--red); }
.toast-info { background: var(--primary); }

/* ─────────────────────────────────────────────
   NAVIGATION SPECIMENS
───────────────────────────────────────────── */
.nav-spec { background: rgba(252,249,248,0.88); backdrop-filter: blur(28px); border: 1px solid rgba(0,42,83,0.09); border-radius: var(--r-md); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; box-shadow: var(--shadow-sm); }
.nav-brand { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: var(--primary); }
.nav-links { display: flex; list-style: none; }
.nav-links a { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-variant); padding: 0 14px; height: 56px; display: flex; align-items: center; border-bottom: 2px solid transparent; transition: all var(--dur-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { border-bottom-color: var(--primary); }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.breadcrumbs a { color: var(--primary); font-weight: 500; }
.breadcrumbs-sep { color: rgba(0,42,83,0.25); }

/* Search bar */
.search-bar { background: var(--surface-card); border-radius: var(--r-md); padding: 7px; display: flex; align-items: center; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,42,83,0.07); gap: 0; }
.search-seg { flex: 1; padding: 8px 16px; border-right: 1px solid rgba(0,42,83,0.08); }
.search-seg:last-of-type { border-right: none; }
.search-seg-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.search-seg-val { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: var(--on-variant); }

/* ─────────────────────────────────────────────
   CTA PATTERNS
───────────────────────────────────────────── */
.cta-full { background: var(--primary); border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 10px; position: relative; z-index: 1; }
.cta-heading { font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.2; position: relative; z-index: 1; }
.cta-sub { font-family: var(--font-serif); font-size: 14px; font-style: italic; color: rgba(255,255,255,0.55); margin-top: 8px; position: relative; z-index: 1; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-direction: column; align-items: flex-end; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; background: rgba(0,42,83,0.05); border-radius: var(--r-md); border-left: 4px solid var(--primary); }

/* ─────────────────────────────────────────────
   TABLE, PAGINATION, PROGRESS
───────────────────────────────────────────── */
.table-wrap { background: var(--surface-card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,42,83,0.07); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid rgba(0,42,83,0.08); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid rgba(0,42,83,0.06); color: var(--on-variant); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-low); }
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all var(--dur-fast); color: var(--on-variant); background: transparent; }
.page-btn:hover { border-color: rgba(0,42,83,0.2); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.arrow { border-color: rgba(0,42,83,0.14); }
.progress-track { height: 6px; background: rgba(0,42,83,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--primary); }
.progress-fill-red { background: var(--red); }
.progress-fill-success { background: var(--success); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer-spec { background: var(--primary); border-radius: var(--r-xl); padding: 52px 48px 28px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; position: relative; z-index: 1; }
.footer-brand { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer-tagline { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: rgba(255,255,255,0.38); line-height: 1.7; }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-family: var(--font-serif); font-size: 13px; color: rgba(255,255,255,0.52); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 18px; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.footer-copy { font-size: 10px; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; }
.footer-mono { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.18); }

/* ─────────────────────────────────────────────
   MODAL
───────────────────────────────────────────── */
.modal-overlay { background: rgba(27,28,28,0.52); border-radius: var(--r-lg); padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.modal { background: var(--surface-card); border-radius: var(--r-lg); padding: 32px; max-width: 440px; width: 100%; box-shadow: var(--shadow-xl); position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-low); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.modal-title { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; margin-bottom: 6px; }
.modal-sub { font-family: var(--font-serif); font-size: 13px; font-style: italic; color: var(--on-variant); margin-bottom: 22px; line-height: 1.65; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(0,42,83,0.07); }
