/* =====================================================================
   BOATILY / VILLA REALTY DESIGN SYSTEM
   Extracted verbatim from design/design-system.html.

   DO NOT HAND-EDIT -- re-run: npm run design:extract
   ===================================================================== */


/* ============================================================
   1. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   Copy this entire :root block into your global stylesheet.
   Reference these variables everywhere — never hardcode colors.
============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-ocean-deep:    #0A2540;  /* Primary brand — nav, headers, primary text */
  --color-ocean-mid:     #0E4D7B;  /* Secondary — gradients, hover states */
  --color-ocean-light:   #1A6FA8;  /* Tertiary — links, active states */

  /* --- Teal Accent (Boatily signature color) --- */
  --color-teal-600:      #0096B7;  /* Pressed/dark teal */
  --color-teal-500:      #00B4D8;  /* PRIMARY ACCENT — CTAs, highlights, active */
  --color-teal-400:      #48CAE4;  /* Hover states, secondary accents */
  --color-teal-200:      #ADE8F4;  /* Light backgrounds, tags */
  --color-teal-100:      #CAF0F8;  /* Very light backgrounds */
  --color-teal-50:       #E8F8FC;  /* Subtle tint backgrounds */

  /* --- Warm Neutrals --- */
  --color-sand:          #F5F0E8;  /* Warm page background alternative */
  --color-sand-dark:     #E8E0D0;  /* Warm borders */

  /* --- Semantic Colors --- */
  --color-success:       #2ECC71;  /* Active listings, success states */
  --color-success-bg:    #E8F5E9;
  --color-success-text:  #1B5E20;
  --color-warning:       #F4A261;  /* Gold — premium features, Boatily exclusive badge */
  --color-warning-bg:    #FFF3E0;
  --color-warning-text:  #E65100;
  --color-danger:        #E63946;  /* Alerts, urgent actions, notifications */
  --color-danger-bg:     #FFEBEE;
  --color-danger-text:   #C62828;
  --color-pending:       #F59E0B;  /* Pending status */
  --color-pending-bg:    #FFF8E1;
  --color-pending-text:  #F57F17;

  /* --- Neutral Gray Scale --- */
  --color-white:         #FFFFFF;
  --color-gray-50:       #F8FAFC;  /* Page background */
  --color-gray-100:      #EEF2F7;  /* Card backgrounds, zebra rows */
  --color-gray-200:      #D1DCE8;  /* Borders, dividers */
  --color-gray-300:      #A8BFCF;  /* Placeholder text borders */
  --color-gray-400:      #7A9BB5;  /* Muted/placeholder text */
  /* RESTORED TO THE MANUS VALUES. The extraction darkened these three and
     collapsed gray-900 into ocean-deep, which made body text higher-contrast
     and navy-leaning than the prototype it was extracted from -- the kind of
     drift where everyone agrees "the palette matches" and the build still
     feels unlike the mockup. Chris compared them side by side and ruled for
     Manus's lighter set. gray-900 is distinct from ocean-deep again. */
  --color-gray-500:      #6B8CAE;  /* Secondary text */
  --color-gray-700:      #3D5A73;  /* Strong secondary text */
  --color-gray-900:      #1A2E3D;  /* Primary text -- NOT the same as ocean-deep */

  /* --- Text Colors (semantic aliases) --- */
  --text-primary:        var(--color-ocean-deep);
  --text-secondary:      var(--color-gray-500);
  --text-muted:          var(--color-gray-400);
  --text-inverse:        var(--color-white);
  --text-link:           var(--color-teal-500);

  /* --- Background Colors --- */
  --bg-page:             var(--color-gray-50);
  --bg-card:             var(--color-white);
  --bg-subtle:           var(--color-gray-100);
  --bg-nav:              var(--color-ocean-deep);
  --bg-map:              #D4EEF7;  /* Map tile background tint */
  --bg-water:            #6EC9E8;  /* Canal/water color on map */

  /* --- Border --- */
  --border-default:      var(--color-gray-200);
  --border-focus:        var(--color-teal-500);
  --border-strong:       var(--color-gray-300);

  /* --- Typography --- */
  --font-family:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:        11px;
  --font-size-sm:        13px;
  --font-size-base:      15px;
  --font-size-md:        17px;
  --font-size-lg:        20px;
  --font-size-xl:        24px;
  --font-size-2xl:       30px;
  --font-size-3xl:       38px;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold:600;
  --font-weight-bold:    700;
  --font-weight-extrabold:800;
  --font-weight-black:   900;
  --line-height-tight:   1.2;
  --line-height-base:    1.5;
  --line-height-relaxed: 1.7;
  --letter-spacing-tight:-0.5px;
  --letter-spacing-normal:0;
  --letter-spacing-wide: 0.5px;
  --letter-spacing-wider:1px;

  /* --- Border Radius --- */
  --radius-xs:           4px;
  --radius-sm:           8px;
  --radius-md:           12px;
  --radius-lg:           16px;
  --radius-xl:           20px;
  --radius-2xl:          28px;
  --radius-full:         9999px;

  /* --- Spacing Scale (4px base) --- */
  --space-1:             4px;
  --space-2:             8px;
  --space-3:             12px;
  --space-4:             16px;
  --space-5:             20px;
  --space-6:             24px;
  --space-8:             32px;
  --space-10:            40px;
  --space-12:            48px;
  --space-16:            64px;

  /* --- Shadows (Elevation System) --- */
  --shadow-xs:           0 1px 2px rgba(10,37,64,.06);
  --shadow-sm:           0 1px 4px rgba(10,37,64,.08), 0 1px 2px rgba(10,37,64,.04);
  --shadow-md:           0 4px 12px rgba(10,37,64,.10), 0 2px 4px rgba(10,37,64,.06);
  --shadow-lg:           0 8px 24px rgba(10,37,64,.14), 0 4px 8px rgba(10,37,64,.08);
  --shadow-xl:           0 16px 40px rgba(10,37,64,.18), 0 8px 16px rgba(10,37,64,.10);
  --shadow-teal:         0 4px 14px rgba(0,180,216,.35);  /* Teal button glow */
  --shadow-coral:        0 4px 14px rgba(230,57,70,.30);  /* Danger button glow */

  /* --- Transitions --- */
  --transition-fast:     0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:     0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Z-Index Scale --- */
  --z-base:              1;
  --z-dropdown:          100;
  --z-sticky:            200;
  --z-overlay:           300;
  --z-modal:             400;
  --z-toast:             500;
}

/* ============================================================
   BASE RESET & BODY
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-family); cursor: pointer; }
input, textarea, select { font-family: var(--font-family); }

/* ============================================================
   2. TYPOGRAPHY SCALE
============================================================ */
.text-xs    { font-size: var(--font-size-xs); }
.text-sm    { font-size: var(--font-size-sm); }
.text-base  { font-size: var(--font-size-base); }
.text-md    { font-size: var(--font-size-md); }
.text-lg    { font-size: var(--font-size-lg); }
.text-xl    { font-size: var(--font-size-xl); }
.text-2xl   { font-size: var(--font-size-2xl); }
.text-3xl   { font-size: var(--font-size-3xl); }

.font-regular   { font-weight: var(--font-weight-regular); }
.font-medium    { font-weight: var(--font-weight-medium); }
.font-semibold  { font-weight: var(--font-weight-semibold); }
.font-bold      { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }
.font-black     { font-weight: var(--font-weight-black); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-inverse   { color: var(--text-inverse); }
.text-teal      { color: var(--color-teal-500); }
.text-success   { color: var(--color-success); }
.text-danger    { color: var(--color-danger); }
.text-warning   { color: var(--color-warning); }

.label-caps {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--text-muted);
}

/* Headings */
h1, .h1 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-black); letter-spacing: var(--letter-spacing-tight); line-height: var(--line-height-tight); }
h2, .h2 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-extrabold); letter-spacing: var(--letter-spacing-tight); line-height: var(--line-height-tight); }
h3, .h3 { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); }
h4, .h4 { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); }
h5, .h5 { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); }
h6, .h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

/* ============================================================
   3. LAYOUT UTILITIES
============================================================ */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1        { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.wrap   { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border-default); margin: var(--space-3) 0; }

/* ============================================================
   4. BUTTONS
   Usage: <button class="btn btn-primary">Label</button>
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family);
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition-base);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--color-teal-500); outline-offset: 2px; }

/* Primary — Teal */
.btn-primary {
  background: var(--color-teal-500);
  color: var(--color-white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--color-teal-400); }
.btn-primary:active { background: var(--color-teal-600); }

/* Secondary — Navy */
.btn-secondary {
  background: var(--color-ocean-deep);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--color-ocean-mid); }

/* Danger — Coral (primary CTA on consumer screens) */
.btn-danger {
  background: var(--color-danger);
  color: var(--color-white);
  box-shadow: var(--shadow-coral);
}
.btn-danger:hover { filter: brightness(1.08); }

/* Gold — Boatily exclusive / premium actions */
.btn-gold {
  background: var(--color-warning);
  color: var(--color-ocean-deep);
  font-weight: var(--font-weight-extrabold);
}
.btn-gold:hover { filter: brightness(1.06); }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-default);
}
.btn-outline:hover { border-color: var(--color-teal-500); color: var(--color-teal-500); }

/* Ghost (on dark backgrounds) */
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Sizes */
.btn-xl  { padding: 15px 28px; font-size: var(--font-size-base); border-radius: var(--radius-lg); }
.btn-lg  { padding: 13px 24px; font-size: var(--font-size-base); }
.btn-sm  { padding: 7px 14px; font-size: var(--font-size-xs); border-radius: var(--radius-sm); }
.btn-xs  { padding: 5px 10px; font-size: 10px; border-radius: var(--radius-xs); }
.btn-pill { border-radius: var(--radius-full); }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-full); }

/* ============================================================
   5. FORM INPUTS
============================================================ */
.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  color: var(--text-primary);
  transition: var(--transition-base);
  line-height: 1.4;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}
.input:disabled { opacity: 0.5; cursor: not-allowed; }
.input-lg { padding: 13px 16px; font-size: var(--font-size-base); }
.input-sm { padding: 7px 10px; font-size: var(--font-size-xs); }

/* Input with icon */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .input { padding-left: 40px; }
.input-group .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

/* Phone input (OTP) */
.otp-inputs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}
.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-primary);
  transition: var(--transition-base);
}
.otp-digit:focus {
  outline: none;
  border-color: var(--color-teal-500);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}
.otp-digit.filled { border-color: var(--color-teal-500); background: var(--color-teal-50); }

/* Textarea */
.textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  color: var(--text-primary);
  resize: vertical;
  min-height: 80px;
  transition: var(--transition-base);
}
.textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}

/* Form label */
.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-2);
}

/* Form group */
.form-group { margin-bottom: var(--space-4); }

/* Toggle switch */
.toggle {
  width: 40px;
  height: 22px;
  background: var(--color-teal-500);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-base);
  border: none;
}
.toggle::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}
.toggle[aria-checked="false"],
.toggle.off {
  background: var(--color-gray-200);
}
.toggle[aria-checked="false"]::after,
.toggle.off::after {
  right: auto;
  left: 3px;
}

/* Slider */
.slider-track {
  height: 6px;
  background: var(--color-gray-200);
  border-radius: 3px;
  position: relative;
  margin: var(--space-4) 0 var(--space-2);
}
.slider-fill {
  position: absolute;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-teal-500), var(--color-ocean-mid));
  border-radius: 3px;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--color-white);
  border: 3px solid var(--color-teal-500);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: grab;
  transition: var(--transition-fast);
}
.slider-thumb:active { cursor: grabbing; transform: translateY(-50%) scale(1.1); }
.slider-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  color: var(--text-primary);
  text-align: center;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================================
   6. CHIPS (Filter Selectors)
   Usage: <button class="chip">Label</button>
          <button class="chip chip-on">Selected</button>
============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family);
  cursor: pointer;
  border: 1.5px solid var(--border-default);
  background: var(--color-white);
  color: var(--text-secondary);
  transition: var(--transition-base);
  white-space: nowrap;
}
.chip:hover { border-color: var(--color-teal-500); color: var(--text-primary); }
.chip.chip-on, .chip[aria-pressed="true"] {
  background: var(--color-teal-500);
  color: var(--color-white);
  border-color: var(--color-teal-500);
}
.chip.chip-on:hover { background: var(--color-teal-400); }
.chip-sm { padding: 5px 10px; font-size: var(--font-size-xs); }

/* Exposure compass chips */
.chip-compass {
  aspect-ratio: 1;
  min-width: 56px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 18px;
  font-family: var(--font-family);
}
.chip-compass span {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
}
.chip-compass.chip-on {
  border-color: var(--color-warning);
  background: var(--color-warning-bg);
}
.chip-compass.chip-on span { color: var(--color-warning); }

/* ============================================================
   7. TAGS & BADGES
   Usage: <span class="tag tag-active">● Active</span>
============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}
.tag-active  { background: var(--color-success-bg); color: var(--color-success-text); }
.tag-pending { background: var(--color-pending-bg); color: var(--color-pending-text); }
.tag-sold    { background: var(--color-gray-100);   color: var(--color-gray-500); }
.tag-water   { background: var(--color-teal-100);   color: #006064; }
.tag-exposure{ background: var(--color-warning-bg); color: var(--color-warning-text); }
.tag-seawall { background: #E3F2FD; color: #0D47A1; }
.tag-bridge  { background: #F3E5F5; color: #4A148C; }
.tag-land    { background: #F1F8E9; color: #33691E; }
.tag-agent   { background: var(--color-ocean-deep); color: var(--color-white); }

/* Exclusive badge (Boatily-only features) */
.badge-exclusive {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-ocean-mid));
  color: var(--color-white);
}

/* Notification dot */
.badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  background: var(--color-danger);
  color: var(--color-white);
}

/* Verification status badges */
.badge-verified   { background: var(--color-success-bg); color: var(--color-success-text); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 3px 9px; border-radius: var(--radius-full); }
.badge-unverified { background: var(--color-warning-bg); color: var(--color-warning-text); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 3px 9px; border-radius: var(--radius-full); }
.badge-no-account { background: var(--color-gray-100); color: var(--text-muted); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 3px 9px; border-radius: var(--radius-full); }

/* ============================================================
   8. CARDS
============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: var(--space-4) var(--space-5); }
.card-hover {
  transition: var(--transition-base);
  cursor: pointer;
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-200);
  transform: translateY(-1px);
}

/* Property card (bottom sheet / list view) */
.property-card { background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.property-card-photo {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-teal-200), var(--color-ocean-mid));
  position: relative;
  overflow: hidden;
}
.property-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.property-card-body { padding: var(--space-4); }
.property-card-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-1);
}
.property-card-address { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.property-card-city { font-size: var(--font-size-xs); color: var(--text-muted); margin-bottom: var(--space-3); }

/* Boating time hero — the #1 differentiator, always prominent */
.boating-hero {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean-mid));
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.boating-hero-icon { font-size: 20px; }
.boating-hero-time { font-size: var(--font-size-lg); font-weight: var(--font-weight-black); letter-spacing: var(--letter-spacing-tight); }
.boating-hero-label { font-size: var(--font-size-xs); color: rgba(255,255,255,.65); }
.boating-hero-canal { margin-left: auto; text-align: right; }
.boating-hero-canal-label { font-size: 10px; color: rgba(255,255,255,.55); }
.boating-hero-canal-val { font-size: var(--font-size-base); font-weight: var(--font-weight-extrabold); color: var(--color-teal-200); }

/* Spec grid (beds/baths/sqft/year) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
.spec-item { text-align: center; }
.spec-value { display: block; font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); color: var(--text-primary); }
.spec-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

/* KPI card (agent dashboard) */
.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.kpi-card.kpi-teal::before  { background: var(--color-teal-500); }
.kpi-card.kpi-navy::before  { background: var(--color-ocean-deep); }
.kpi-card.kpi-danger::before{ background: var(--color-danger); }
.kpi-card.kpi-gold::before  { background: var(--color-warning); }
.kpi-label { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: var(--space-2); }
.kpi-value { font-size: 28px; font-weight: var(--font-weight-black); color: var(--text-primary); letter-spacing: var(--letter-spacing-tight); margin-bottom: var(--space-1); }
.kpi-change { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); display: flex; align-items: center; gap: 3px; }
.kpi-change.up   { color: var(--color-success); }
.kpi-change.down { color: var(--color-danger); }
.kpi-progress { height: 4px; background: var(--color-gray-200); border-radius: 2px; margin-top: var(--space-2); overflow: hidden; }
.kpi-progress-fill { height: 100%; border-radius: 2px; background: var(--color-teal-500); }

/* Saved search card */
.saved-search-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ssc-header { padding: var(--space-3) var(--space-4) var(--space-2); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.ssc-name { font-size: var(--font-size-base); font-weight: var(--font-weight-extrabold); color: var(--text-primary); margin-bottom: 2px; }
.ssc-criteria { font-size: var(--font-size-xs); color: var(--text-muted); line-height: 1.5; }
.ssc-stats { display: flex; border-top: 1px solid var(--border-default); }
.ssc-stat { flex: 1; padding: var(--space-2) var(--space-3); text-align: center; border-right: 1px solid var(--border-default); }
.ssc-stat:last-child { border-right: none; }
.ssc-stat-value { display: block; font-size: 18px; font-weight: var(--font-weight-black); color: var(--text-primary); }
.ssc-stat-value.new { color: var(--color-success); }
.ssc-stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.ssc-channels { padding: var(--space-2) var(--space-4) var(--space-3); display: flex; gap: var(--space-2); background: var(--bg-subtle); }
.channel-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-default);
  background: var(--color-white);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.channel-btn.on { border-color: var(--color-teal-500); background: var(--color-teal-50); color: var(--text-primary); }
.channel-btn .ch-icon { font-size: 15px; }

/* Pipeline card (agent kanban) */
.pipeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--transition-base);
}
.pipeline-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--color-teal-200); }
.pc-address { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 2px; }
.pc-buyer { font-size: var(--font-size-xs); color: var(--text-muted); margin-bottom: var(--space-2); }
.pc-price { font-size: var(--font-size-base); font-weight: var(--font-weight-black); color: var(--text-primary); margin-bottom: var(--space-2); }

/* ============================================================
   9. NAVIGATION
============================================================ */

/* Top bar (desktop + mobile) */
.topbar {
  height: 52px;
  background: var(--bg-nav);
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-md);
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  margin-right: var(--space-2);
}
.topbar-logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-ocean-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.topbar-logo-name {
  font-size: 19px;
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  letter-spacing: var(--letter-spacing-tight);
}
.topbar-search {
  flex: 1;
  max-width: 420px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: var(--transition-base);
}
.topbar-search:hover { background: rgba(255,255,255,.16); }
.topbar-search-text { font-size: var(--font-size-sm); color: rgba(255,255,255,.65); flex: 1; }
.topbar-nav { display: flex; gap: 3px; margin-left: auto; }
.topbar-nav-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-nav-btn:hover { color: var(--color-white); background: rgba(255,255,255,.08); }
.topbar-nav-btn.active { background: var(--color-teal-500); color: var(--color-white); }
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-ocean-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* Mobile bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--border-default);
  display: flex;
  padding: var(--space-2) 0;
  padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  box-shadow: 0 -2px 12px rgba(10,37,64,.08);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 3px 0;
  transition: var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}
.bn-icon { font-size: 22px; line-height: 1; position: relative; }
.bn-label { font-size: 9px; font-weight: var(--font-weight-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.bn-item.active .bn-label { color: var(--color-teal-500); }
.bn-item .bn-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 8px;
  font-weight: var(--font-weight-extrabold);
  min-width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Agent sidebar */
.agent-sidebar {
  width: 210px;
  background: var(--color-ocean-deep);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-logo {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sidebar-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.sidebar-logo-name { font-size: 15px; font-weight: var(--font-weight-black); color: var(--color-white); }
.sidebar-logo-sub { font-size: 9px; color: rgba(255,255,255,.4); font-weight: var(--font-weight-medium); }
.sidebar-section { padding: var(--space-4) var(--space-3) var(--space-2); }
.sidebar-section-label {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 var(--space-2);
  margin-bottom: var(--space-2);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  margin-bottom: 1px;
  text-decoration: none;
}
.sidebar-item:hover { background: rgba(255,255,255,.07); }
.sidebar-item.active {
  background: rgba(0,180,216,.18);
  border-left: 3px solid var(--color-teal-500);
  padding-left: calc(var(--space-3) - 3px);
}
.sidebar-item-icon { font-size: 15px; width: 18px; text-align: center; }
.sidebar-item-text { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: rgba(255,255,255,.7); }
.sidebar-item.active .sidebar-item-text { color: var(--color-white); font-weight: var(--font-weight-bold); }
.sidebar-item-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 9px;
  font-weight: var(--font-weight-extrabold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}
.sidebar-item-badge.teal { background: var(--color-teal-500); }
.sidebar-footer {
  margin-top: auto;
  padding: var(--space-4);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-ocean-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  flex-shrink: 0;
}
.sidebar-user-name { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--color-white); }
.sidebar-user-role { font-size: 10px; color: rgba(255,255,255,.45); }

/* ============================================================
   10. MAP UI COMPONENTS
============================================================ */

/* Price pin on map */
.price-pin {
  position: absolute;
  background: var(--color-ocean-deep);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  padding: 4px 9px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-base);
  transform: translateX(-50%);
  z-index: var(--z-base);
}
.price-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-ocean-deep);
  border-bottom: none;
}
.price-pin:hover, .price-pin.active {
  background: var(--color-teal-500);
  transform: translateX(-50%) scale(1.05);
  z-index: 2;
}
.price-pin.active::after { border-top-color: var(--color-teal-500); }
.price-pin.selected {
  background: var(--color-warning);
  color: var(--color-ocean-deep);
}
.price-pin.selected::after { border-top-color: var(--color-warning); }

/* Map search bar (floating above map) */
.map-search-bar {
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-dropdown);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.map-search-pill {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-base);
}
.map-search-pill:hover { box-shadow: var(--shadow-lg); }
.map-search-pill-text { font-size: var(--font-size-sm); color: var(--text-muted); flex: 1; }
.map-search-pill-badge {
  background: var(--color-teal-500);
  color: var(--color-white);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-icon-btn {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 17px;
  cursor: pointer;
  border: none;
  color: var(--text-primary);
  transition: var(--transition-base);
  flex-shrink: 0;
}
.map-icon-btn:hover { background: var(--color-teal-100); }
.map-icon-btn.active { background: var(--color-teal-500); color: var(--color-white); }

/* Floating filter chips (desktop map) */
.map-filter-bar {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-2);
  z-index: var(--z-dropdown);
  flex-wrap: wrap;
  max-width: 600px;
}
.map-filter-chip {
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  cursor: pointer;
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-family: var(--font-family);
  transition: var(--transition-base);
}
.map-filter-chip:hover { border-color: var(--color-teal-500); color: var(--text-primary); }
.map-filter-chip.active { background: var(--color-ocean-deep); color: var(--color-white); border-color: var(--color-ocean-deep); }
.map-filter-chip-count { background: var(--color-teal-500); color: var(--color-white); font-size: 9px; font-weight: var(--font-weight-extrabold); padding: 1px 5px; border-radius: 8px; }

/* Map controls (zoom, compass, layers) */
.map-controls {
  position: absolute;
  right: var(--space-3);
  top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: var(--z-dropdown);
}
.map-ctrl-btn {
  width: 32px;
  height: 32px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
  color: var(--text-primary);
  transition: var(--transition-base);
}
.map-ctrl-btn:hover { background: var(--color-teal-100); }

/* GPS mode banner */
.gps-banner {
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-dropdown);
  background: var(--color-ocean-deep);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-md);
}
.gps-banner-text { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--color-white); }
.gps-banner-loc { margin-left: auto; font-size: var(--font-size-xs); color: var(--color-teal-light, var(--color-teal-200)); }

/* GPS dot (user location) */
.gps-dot {
  width: 18px;
  height: 18px;
  background: var(--color-teal-500);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 6px rgba(0,180,216,.2), var(--shadow-md);
  position: absolute;
  z-index: 10;
}
.gps-dot.on-water { background: var(--color-danger); }

/* Bottom sheet (mobile property detail) */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 24px rgba(10,37,64,.15);
  z-index: var(--z-overlay);
}
.bottom-sheet-handle {
  width: 34px;
  height: 4px;
  background: var(--color-gray-200);
  border-radius: 2px;
  margin: 9px auto 0;
}
.bottom-sheet-body { padding: var(--space-3) var(--space-4) var(--space-5); }

/* ============================================================
   11. PARCEL DETAIL PANEL (Desktop right panel)
============================================================ */
.detail-panel {
  width: 360px;
  background: var(--color-white);
  border-left: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-panel-header {
  padding: var(--space-4) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
}
.detail-panel-address { font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); color: var(--text-primary); margin-bottom: 1px; }
.detail-panel-city { font-size: var(--font-size-xs); color: var(--text-muted); margin-bottom: var(--space-2); }
.detail-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  background: var(--color-white);
  overflow-x: auto;
}
.detail-tab {
  padding: 10px 14px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: var(--transition-base);
  font-family: var(--font-family);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.detail-tab:hover { color: var(--text-primary); }
.detail-tab.active { color: var(--color-teal-500); border-bottom-color: var(--color-teal-500); }
.detail-panel-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); }
.detail-panel-actions {
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Photo strip */
.photo-strip { display: flex; gap: var(--space-1); margin-bottom: var(--space-3); overflow-x: auto; }
.photo-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-gray-200);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   12. AGENT CRM COMPONENTS
============================================================ */

/* Outreach queue item */
.outreach-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-gray-100);
  cursor: pointer;
  transition: var(--transition-base);
}
.outreach-item:last-child { border-bottom: none; }
.outreach-item:hover { background: var(--bg-subtle); margin: 0 calc(-1 * var(--space-5)); padding: var(--space-2) var(--space-5); border-radius: var(--radius-sm); }
.outreach-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-teal-500);
  color: var(--color-white);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.outreach-rank.hot { background: var(--color-danger); }
.outreach-address { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outreach-reason { font-size: var(--font-size-xs); color: var(--text-muted); }
.outreach-demand { font-size: var(--font-size-sm); font-weight: var(--font-weight-extrabold); color: var(--color-teal-500); white-space: nowrap; }
.outreach-demand.hot { color: var(--color-danger); }

/* Demand intelligence card */
.demand-intel {
  background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean-mid));
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.demand-intel-label { font-size: 10px; font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.7px; color: rgba(255,255,255,.55); margin-bottom: var(--space-2); }
.demand-intel-value { font-size: 28px; font-weight: var(--font-weight-black); color: var(--color-teal-200); letter-spacing: var(--letter-spacing-tight); margin-bottom: 2px; }
.demand-intel-text { font-size: var(--font-size-xs); color: rgba(255,255,255,.7); margin-bottom: var(--space-2); line-height: 1.5; }
.demand-intel-chips { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.demand-chip { background: rgba(255,255,255,.13); color: rgba(255,255,255,.85); font-size: 10px; font-weight: var(--font-weight-semibold); padding: 3px 9px; border-radius: var(--radius-full); }

/* Communication timeline */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border-default); }
.timeline-item { position: relative; margin-bottom: var(--space-4); }
.timeline-dot {
  position: absolute;
  left: -15px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
}
.timeline-dot.teal  { background: var(--color-teal-500); box-shadow: 0 0 0 2px var(--color-teal-100); }
.timeline-dot.gold  { background: var(--color-warning); box-shadow: 0 0 0 2px var(--color-warning-bg); }
.timeline-dot.coral { background: var(--color-danger); box-shadow: 0 0 0 2px var(--color-danger-bg); }
.timeline-dot.green { background: var(--color-success); box-shadow: 0 0 0 2px var(--color-success-bg); }
.timeline-date { font-size: 9px; font-weight: var(--font-weight-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.timeline-event { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 2px; }
.timeline-detail { font-size: var(--font-size-xs); color: var(--text-secondary); line-height: 1.5; }

/* Owner card */
.owner-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-4);
}
.owner-name { font-size: var(--font-size-base); font-weight: var(--font-weight-extrabold); color: var(--text-primary); }
.owner-since { font-size: var(--font-size-xs); color: var(--text-muted); }
.owner-detail { font-size: var(--font-size-sm); color: var(--text-secondary); margin-bottom: 3px; }

/* Campaign status banner */
.campaign-banner {
  background: var(--color-warning-bg);
  border: 1px solid #FFE0A3;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.campaign-banner-icon { font-size: 18px; flex-shrink: 0; }
.campaign-banner-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 2px; }
.campaign-banner-detail { font-size: var(--font-size-xs); color: var(--text-secondary); }

/* ============================================================
   13. NOTIFICATIONS & TOASTS
============================================================ */
.toast {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-ocean-deep);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: var(--z-toast);
  box-shadow: var(--shadow-xl);
  max-width: 360px;
  animation: toastIn var(--transition-slow) ease;
}
.toast.mobile {
  top: auto;
  bottom: 80px;
  left: var(--space-4);
  right: var(--space-4);
  max-width: none;
}
@keyframes toastIn {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); margin-bottom: 1px; }
.toast-sub { font-size: var(--font-size-xs); color: rgba(255,255,255,.65); }
.toast-close { font-size: 14px; cursor: pointer; opacity: 0.5; flex-shrink: 0; background: none; border: none; color: inherit; }
.toast-close:hover { opacity: 1; }

/* Alert banner (inline, not fixed) */
.alert-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.alert-banner.info    { background: var(--color-teal-50); border: 1px solid var(--color-teal-200); color: var(--color-ocean-mid); }
.alert-banner.success { background: var(--color-success-bg); border: 1px solid #A5D6A7; color: var(--color-success-text); }
.alert-banner.warning { background: var(--color-warning-bg); border: 1px solid #FFE0A3; color: var(--color-warning-text); }
.alert-banner.danger  { background: var(--color-danger-bg); border: 1px solid #FFCDD2; color: var(--color-danger-text); }
.alert-banner-icon { font-size: 18px; flex-shrink: 0; }
.alert-banner-text { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); flex: 1; }

/* New match banner (consumer alerts screen) */
.match-banner {
  background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean-mid));
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.match-banner-icon { font-size: 26px; flex-shrink: 0; }
.match-banner-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); margin-bottom: 1px; }
.match-banner-sub { font-size: var(--font-size-xs); color: rgba(255,255,255,.65); }
.match-banner-count {
  background: var(--color-danger);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-black);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   14. MODALS & OVERLAYS
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}
.modal-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); color: var(--text-primary); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-subtle); color: var(--text-muted); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--color-gray-200); color: var(--text-primary); }
.modal-body { padding: var(--space-5); }
.modal-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-default); display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ============================================================
   15. LOADING STATES
============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text  { height: 14px; margin-bottom: var(--space-2); }
.skeleton-title { height: 22px; margin-bottom: var(--space-3); }
.skeleton-price { height: 36px; width: 60%; margin-bottom: var(--space-3); }
.skeleton-thumb { height: 54px; width: 72px; border-radius: var(--radius-sm); }

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-teal-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SCROLLBAR STYLING
============================================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-gray-200); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-300); }

