/*
 * Newy Vibes - Property Intelligence
 * Editorial/Coastal Australian Aesthetic
 * Bold, sophisticated, memorable
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Primary - Deep coastal navy with teal undertones */
  --color-primary: #0d3b4c;
  --color-primary-light: #1a5f6f;
  --color-primary-pale: #e8f4f6;

  /* Accent - Refined rust (sophisticated, Newcastle industrial heritage) */
  --color-accent: #b5654a;
  --color-accent-hover: #9d5840;
  --color-accent-pale: #faf5f2;

  /* Neutral palette - warm undertones */
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border: #e8e4df;
  --color-border-strong: #d4cfc8;

  /* Text hierarchy */
  --color-text: #1a1a1a;
  --color-text-secondary: #52524e;
  --color-text-muted: #8a8a85;
  --color-text-inverted: #ffffff;

  /* Status/Score colors - sophisticated versions */
  --color-success: #2d8a6e;
  --color-warning: #c68b2c;
  --color-danger: #c9524a;
  --color-info: #4a7c9b;

  /* Score spectrum */
  --color-score-excellent: #2d8a6e;
  --color-score-good: #5a9a7a;
  --color-score-moderate: #c68b2c;
  --color-score-concerning: #d97b3d;
  --color-score-poor: #c9524a;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Type scale - larger, more dramatic */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border radius - softer, more organic */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows - subtle, warm */
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 26, 26, 0.08);
  --shadow-xl: 0 24px 48px rgba(26, 26, 26, 0.12);
  --shadow-glow: 0 0 40px rgba(224, 123, 84, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  padding-top: 56px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Safe area for notched phones */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Utility classes */
.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;
}

.hidden {
  display: none !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   NAVIGATION - Refined, editorial
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  width: 100%;
  padding: 0 var(--space-lg);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Hamburger menu button — hidden on desktop */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
  }

  .nav-links .nav-link:active {
    background: var(--color-primary-pale);
  }

  /* Sister brand: styled as a distinct row in mobile menu */
  .nav-links .nav-link.nav-sister {
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--color-border);
    margin-left: 0;
    margin-top: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    color: #1a4f6e;
    background: rgba(26, 79, 110, 0.04);
    width: 100%;
  }

  .nav-links .nav-link.nav-sister:active {
    background: rgba(26, 79, 110, 0.1);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.8;
  color: var(--color-text);
}

.logo-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.logo-brand {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   HERO SECTION - Editorial, dramatic
   ============================================ */
.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(224, 123, 84, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(13, 59, 76, 0.04) 0%, transparent 50%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative element */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 123, 84, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  max-width: 720px;
  text-align: center;
}

.hero-header {
  margin-bottom: var(--space-3xl);
}

.hero-subtitle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--color-accent);
  font-style: italic;
}

.hero-description {
  margin-top: var(--space-lg);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ADDRESS FORM - Clean, confident
   ============================================ */
.address-form {
  max-width: 560px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(13, 59, 76, 0.08);
}

.address-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
}

.address-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.check-btn {
  padding: var(--space-lg) var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-inverted);
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  min-height: 48px;
}

.check-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.check-btn:active {
  transform: translateY(0);
}

.address-hint {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.address-hint::before {
  content: '→ ';
  color: var(--color-accent);
}

/* Desktop: horizontal layout */
@media (min-width: 640px) {
  .input-wrapper {
    flex-direction: row;
    align-items: center;
    padding: var(--space-sm);
  }

  .address-input {
    padding: var(--space-md) var(--space-lg);
  }

  .check-btn {
    padding: var(--space-md) var(--space-xl);
    white-space: nowrap;
  }
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl);
  color: var(--color-text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  padding: var(--space-xl);
  background: var(--color-accent-pale);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-message {
  color: var(--color-danger);
  font-weight: 500;
}

/* ============================================
   REPORT SECTION - Magazine layout
   ============================================ */
.report-section {
  padding: var(--space-3xl) 0 var(--space-4xl);
  background: var(--color-bg);
}

.report-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

/* Suburb Link in Report Header */
.report-suburb-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary-pale);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.report-suburb-link:hover {
  background: var(--color-primary);
  color: var(--color-text-inverted);
}

.suburb-link-name {
  font-weight: 600;
}

.suburb-link-arrow {
  font-size: var(--text-xs);
  opacity: 0.8;
}

.report-address {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.report-generated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   VERDICT SECTION - Compact white card with accent border
   ============================================ */
.verdict-section {
  background: white;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-text-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Verdict states — left border colour only */
.verdict-section.verdict-good { border-left-color: var(--color-success); }
.verdict-section.verdict-caution { border-left-color: var(--color-warning); }
.verdict-section.verdict-concern { border-left-color: var(--color-danger); }

/* Header row: title left, badge right */
.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.verdict-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Small colour dot replacing emoji icon */
.verdict-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-text-secondary);
}

.verdict-good .verdict-dot { background: var(--color-success); }
.verdict-caution .verdict-dot { background: var(--color-warning); }
.verdict-concern .verdict-dot { background: var(--color-danger); }

.verdict-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.verdict-explanation {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.5;
}

.verdict-synthesis {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-md) 0;
}

/* Key highlights — subtle green-tinted box */
.verdict-highlights {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(45, 138, 110, 0.06);
  margin-bottom: var(--space-sm);
}

.highlights-label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-success);
  margin-bottom: var(--space-sm);
}

.highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.highlights-list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
  flex-shrink: 0;
}

/* Key concerns — subtle tinted box */
.verdict-concerns {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(198, 139, 44, 0.06);
}

.verdict-good .verdict-concerns { background: rgba(45, 138, 110, 0.06); }
.verdict-caution .verdict-concerns { background: rgba(198, 139, 44, 0.06); }
.verdict-concern .verdict-concerns { background: rgba(201, 82, 74, 0.06); }

.concerns-label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.concerns-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.concerns-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.concerns-list li::before {
  content: '•';
  font-weight: bold;
  flex-shrink: 0;
  color: var(--color-text-primary);
}

/* Verdict disclaimer — subtle due diligence note */
.verdict-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary, #888);
  margin: var(--space-md) 0 0;
  opacity: 0.7;
  line-height: 1.5;
}

/* Signal badge — outline pill style */
.verdict-signal-badge {
  display: inline-block;
  padding: 2px var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  border: 1.5px solid var(--color-text-secondary);
  color: var(--color-text-secondary);
  background: transparent;
}

.verdict-signal-badge.badge-buy,
.verdict-signal-badge.badge-premium { border-color: var(--color-success); color: var(--color-success); }
.verdict-signal-badge.badge-opportunity { border-color: var(--color-success); color: var(--color-success); }
.verdict-signal-badge.badge-wait,
.verdict-signal-badge.badge-caution { border-color: var(--color-warning); color: var(--color-warning); }
.verdict-signal-badge.badge-stable,
.verdict-signal-badge.badge-mixed { border-color: var(--color-text-secondary); color: var(--color-text-secondary); }

@media (max-width: 480px) {
  .verdict-section {
    padding: var(--space-md) var(--space-lg);
  }

  .verdict-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .verdict-signal-badge {
    align-self: flex-start;
  }
}

/* ============================================
   DEVELOPMENT SECTION - Headline + subsections
   ============================================ */
.dev-headline {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.dev-headline-text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.building-works-subsection {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.subsection-icon {
  font-size: var(--text-lg);
}

.subsection-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(245, 158, 11, 0.06);
  border-radius: var(--radius-sm);
}

/* ============================================
   NOISE SECTION - Score headline
   ============================================ */
.noise-headline {
  margin-bottom: var(--space-lg);
}

/* ============================================
   SECTION RECOMMENDATION - Reusable advice box
   ============================================ */
.section-recommendation {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary-pale);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  border-left: 3px solid var(--color-primary);
  margin-top: var(--space-lg);
}

.section-recommendation strong {
  color: var(--color-primary);
}

/* ============================================
   TRAJECTORY SECTION - Side-by-side metrics
   ============================================ */
.trajectory-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.trajectory-display {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.trajectory-metric,
.gent-score-display {
  flex: 1;
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.gent-signals {
  margin-bottom: var(--space-lg);
}

@media (max-width: 480px) {
  .trajectory-display {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Critical alerts — removed, folded into verdict section */

/* Summary cards — removed, eliminated from report */

/* ============================================
   LEGACY SCORE STYLES (kept for compatibility)
   ============================================ */
.score-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.score-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition-base);
}

.score-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.score-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.score-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.score-card .score-bar {
  background: var(--color-border);
  margin-bottom: var(--space-md);
}

.score-detail {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.score-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
}

.score-status {
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Score color variations */
.dev-fill { background: linear-gradient(90deg, var(--color-warning), var(--color-accent)); }
.noise-fill { background: linear-gradient(90deg, var(--color-info), var(--color-primary-light)); }
.contam-fill { background: linear-gradient(90deg, var(--color-danger), var(--color-warning)); }

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
  margin-bottom: var(--space-3xl);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}

.map-controls {
  display: flex;
  gap: var(--space-sm);
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.toggle-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverted);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.map {
  height: 400px;
  background: var(--color-surface);
}

@media (max-width: 640px) {
  .map {
    height: 300px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .map {
    height: 350px;
  }
}

.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  gap: var(--space-md);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .map-legend {
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
  }

  .legend-item.legend-you {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--space-xs);
    margin-right: 0;
  }
}

/* Legend - redesigned for accessibility */
.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Your location - highlighted in legend */
.legend-item.legend-you {
  background: var(--color-primary);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  order: -1; /* Always first */
  margin-right: var(--space-sm);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Your location dot inside the "You are here" badge */
.legend-item.legend-you .legend-dot.address {
  width: 12px;
  height: 12px;
  background: white;
  border: none;
  box-shadow: none;
}

/* Unified DA legend colors (matches marker system) */
.legend-dot.da-active,
.legend-dot.da-pending,
.legend-dot.pending { background: #f59e0b; }  /* Orange - under assessment */
.legend-dot.da-approved,
.legend-dot.approved { background: #3b82f6; }  /* Blue - approved */
.legend-dot.in-progress { background: #8b5cf6; }  /* Purple - under construction */
.legend-dot.da-completed,
.legend-dot.completed { background: #22c55e; }  /* Green - completed */
.legend-dot.da-refused,
.legend-dot.refused { background: #ef4444; opacity: 0.7; }  /* Red - refused */
.legend-dot.da-unknown,
.legend-dot.unknown { background: #6b7280; }  /* Gray - unknown status */
.legend-dot.venue { background: #a855f7; }
.legend-dot.contam { background: #dc2626; }

/* ============================================
   MAP MARKERS - Visual Hierarchy
   Your location is ALWAYS the most prominent
   ============================================ */

/* YOUR LOCATION - Distinct but not oversized */
.marker-address {
  background: var(--color-primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--color-primary),
    0 0 0 5px rgba(13, 59, 76, 0.25),
    var(--shadow-md);
  animation: pulseMarker 2s ease-in-out infinite;
  z-index: 1000 !important;
}

@keyframes pulseMarker {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--color-primary),
      0 0 0 5px rgba(13, 59, 76, 0.25),
      var(--shadow-md);
  }
  50% {
    box-shadow:
      0 0 0 3px var(--color-primary),
      0 0 0 8px rgba(13, 59, 76, 0.12),
      var(--shadow-md);
  }
}

/* ============================================
   UNIFIED DA MARKER SYSTEM
   Used across all maps: Explore, Check, Suburb

   Status colors (by DA lifecycle):
   - Completed: Green (#22c55e) - built, done
   - In Progress: Purple (#8b5cf6) - under construction
   - Approved: Blue (#3b82f6) - approved, not started
   - Pending/Assessment: Orange (#f59e0b) - waiting for decision
   - Refused: Red (#ef4444) - rejected
   ============================================ */

/* Base DA marker style */
.da-marker {
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.da-marker:hover {
  transform: scale(1.3);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  z-index: 1000 !important;
}

/* Status variants */
.da-marker--completed {
  background: #22c55e;
}

.da-marker--in-progress {
  background: #8b5cf6;
}

.da-marker--approved {
  background: #3b82f6;
}

.da-marker--pending,
.da-marker--under-assessment,
.da-marker--on-exhibition {
  background: #f59e0b;
}

.da-marker--refused,
.da-marker--rejected,
.da-marker--withdrawn {
  background: #ef4444;
  opacity: 0.7;
}

.da-marker--unknown {
  background: #6b7280;
}

/* Legacy class aliases (for backward compatibility) */
.marker-da, .marker-da-active { background: #f59e0b; border: 2px solid white; border-radius: 50%; box-shadow: var(--shadow-sm); }
.marker-da-approved { background: #3b82f6; border: 2px solid white; border-radius: 50%; }
.marker-da-pending { background: #f59e0b; border: 2px solid white; border-radius: 50%; }
.marker-da-completed { background: #22c55e; border: 2px solid white; border-radius: 50%; }
.marker-da-refused { background: #ef4444; border: 2px solid white; border-radius: 50%; opacity: 0.7; }

/* Explore map uses same system */
.explore-marker { width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.3); cursor: pointer; transition: transform 0.15s ease; }
.explore-marker:hover { transform: scale(1.3); z-index: 1000 !important; }
.explore-marker.completed { background: #22c55e; }
.explore-marker.in-progress { background: #8b5cf6; }
.explore-marker.approved { background: #3b82f6; }
.explore-marker.pending { background: #f59e0b; }
.explore-marker.refused { background: #ef4444; opacity: 0.7; }
.explore-marker.unknown { background: #6b7280; }

/* Venue markers - purple, subtle */
.marker-venue {
  background: #a855f7;
  border: 2px solid white;
  border-radius: 50%;
  opacity: 0.85;
}

/* Contamination markers - red, important but not overwhelming */
.marker-contam {
  background: #dc2626;
  border: 2px solid white;
  border-radius: 50%;
  opacity: 0.9;
}

/* Notable venue markers - green dots on address check map */
.marker-notable-venue {
  background: #16a34a;
  border: 2px solid white;
  border-radius: 50%;
  opacity: 0.9;
}

/* Hover scale for venue, contam, and notable markers (matches .da-marker:hover) */
.marker-venue, .marker-contam, .marker-notable-venue {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.marker-venue:hover, .marker-contam:hover, .marker-notable-venue:hover {
  transform: scale(1.3);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  z-index: 1000 !important;
}

/* Check-mode marker tooltips */
.check-marker-tooltip {
  background: white !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
}
.check-marker-tooltip::before {
  border-top-color: white !important;
}
.marker-tooltip {
  padding: 6px 10px;
  max-width: 220px;
  line-height: 1.3;
}
.marker-tooltip strong {
  display: block;
  font-size: 12px;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.marker-tooltip .tt-meta {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 1px;
}
.marker-tooltip .tt-warn {
  color: #dc2626;
  font-weight: 600;
}

/* Hide tooltips on touch devices — tap opens popup instead */
@media (pointer: coarse) {
  .check-marker-tooltip { display: none !important; }
}

/* Address popup - distinct styling */
.address-popup {
  text-align: center;
  padding: var(--space-sm) !important;
}

.address-popup strong {
  color: var(--color-primary);
  font-size: var(--text-base) !important;
}

/* Map popups */
.map-popup {
  font-family: var(--font-body);
  padding: var(--space-sm);
  min-width: 200px;
}

.map-popup strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.popup-status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  margin-bottom: var(--space-xs);
}

.popup-details-btn {
  display: block;
  width: 100%;
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.popup-details-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* ============================================
   REPORT SECTION CARDS
   ============================================ */
.report-section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.section-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-icon {
  font-size: var(--text-2xl);
}

.section-count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* ============================================
   COLLAPSIBLE SECTIONS
   ============================================ */
.collapsible .section-header.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.collapsible .collapsible-trigger:hover {
  opacity: 0.8;
}

.collapsible .collapsible-trigger:focus {
  outline: none;
}

.collapsible .collapsible-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.collapsible .collapsible-trigger .section-title {
  margin: 0;
  flex: 1;
}

.collapse-icon {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text-muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.collapsible .section-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height var(--transition-base), opacity var(--transition-base);
  opacity: 1;
}

.collapsible .section-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.collapsible .collapsible-trigger[aria-expanded="false"] {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.collapsible .collapsible-trigger[aria-expanded="false"] .collapse-icon {
  transform: rotate(0deg);
}

/* ============================================
   VIBE SECTION - Redesigned
   ============================================ */
.vibe-trajectory {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.trajectory-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.trajectory-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.trajectory-value.rising {
  color: #059669;
}

.trajectory-value.stable {
  color: #6366f1;
}

.trajectory-value.declining {
  color: #dc2626;
}

.trajectory-detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.vibe-signals {
  margin-bottom: var(--space-lg);
}

.vibe-signals-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.section-alert {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-accent-pale);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.section-alert strong {
  display: block;
  color: var(--color-accent-hover);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section-alert.warning {
  background: #fef2f2;
  border-color: var(--color-danger);
}

.section-alert.warning strong {
  color: var(--color-danger);
}

/* Items list */
.items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.item-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.item-card:hover {
  background: var(--color-primary-pale);
}

.item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

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

.item-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-secondary);
  margin-left: var(--space-sm);
}

.item-badge.status-approved { background: #dcfce7; color: var(--color-success); }
.item-badge.status-pending { background: #fef3c7; color: var(--color-warning); }
.item-badge.status-refused { background: #fee2e2; color: var(--color-danger); }

/* ============================================
   VIBE CARD - Compact, readable design
   ============================================ */
.vibe-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.vibe-card .section-header {
  border-bottom: none;
  margin-bottom: var(--space-md);
  padding-bottom: 0;
}

.vibe-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.vibe-badge.rising {
  background: #dcfce7;
  color: #166534;
}

.vibe-badge.stable {
  background: #f3f4f6;
  color: #4b5563;
}

.vibe-badge.declining {
  background: #fee2e2;
  color: #991b1b;
}

/* Suburb signal badge (BUY/WAIT/SELL) in vibe section - consistency with explore/suburb pages */
.suburb-signal-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-left: var(--space-sm);
}

.suburb-signal-badge.signal-buy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.suburb-signal-badge.signal-sell {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.suburb-signal-badge.signal-wait {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

/* ============================================
   BUILDING WORKS SECTION (Minor DAs)
   ============================================ */

.minor-work-card {
  border-left: 2px solid #f59e0b;
}

.minor-work-card .item-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.minor-work-card .item-badge.status-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.minor-work-card .item-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.minor-work-card .item-badge.status-other {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

/* Horizontal layout: score on left, details on right */
.vibe-card .vibe-content {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.vibe-score-display {
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: white;
  min-width: 100px;
}

.vibe-score {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1;
  display: block;
}

.vibe-max {
  font-size: var(--text-sm);
  opacity: 0.7;
}

.vibe-details {
  flex: 1;
  min-width: 0;
}

.vibe-list {
  list-style: none;
  margin: 0 0 var(--space-md) 0;
  padding: 0;
}

.vibe-list li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.vibe-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 600;
}

.vibe-pattern {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

/* Stack on mobile */
@media (max-width: 480px) {
  .vibe-card .vibe-content {
    flex-direction: column;
    gap: var(--space-md);
  }

  .vibe-score-display {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
  }
}

/* Insights card container — removed, sub-component styles kept below */

/* Score display - compact and clear */
.insight-score {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.insight-score .score-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
}

.insight-score .score-max {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.insight-score .score-label {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-left: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

/* Score color classes */
.insight-score.score-low .score-value { color: #22c55e; }
.insight-score.score-low .score-label { background: #dcfce7; color: #166534; }

.insight-score.score-moderate .score-value { color: #f59e0b; }
.insight-score.score-moderate .score-label { background: #fef3c7; color: #92400e; }

.insight-score.score-elevated .score-value { color: #f97316; }
.insight-score.score-elevated .score-label { background: #ffedd5; color: #9a3412; }

.insight-score.score-high .score-value { color: #ef4444; }
.insight-score.score-high .score-label { background: #fee2e2; color: #991b1b; }

/* Summary text */
.insight-summary {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Details list */
.insight-details {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.insight-details li {
  position: relative;
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.insight-details li:last-child {
  border-bottom: none;
}

.insight-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Trend indicator */
.insight-trend {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.insight-trend.trend-rising { color: #22c55e; }
.insight-trend.trend-stable { color: #6b7280; }
.insight-trend.trend-declining { color: #f97316; }

/* Signal tags */
.insight-signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.signal-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.signal-tag.positive { background: #dcfce7; color: #166534; }
.signal-tag.warning { background: #fef3c7; color: #92400e; }
.signal-tag.neutral { background: #f3f4f6; color: #4b5563; }

/* Development impact featured styling & verdict banner — removed, integrated into development section */

/* Supply pressure section */
.supply-pressure {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.supply-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.supply-icon { font-size: var(--text-lg); }
.supply-label { font-weight: 600; color: var(--color-text-secondary); }

.supply-badge {
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.supply-badge.badge-green { background: #dcfce7; color: #166534; }
.supply-badge.badge-yellow { background: #fef3c7; color: #92400e; }
.supply-badge.badge-orange { background: #ffedd5; color: #9a3412; }
.supply-badge.badge-red { background: #fee2e2; color: #991b1b; }

.supply-units {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.supply-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.status-chip {
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.status-chip.in-progress { background: #fef3c7; color: #92400e; }
.status-chip.approved { background: #dcfce7; color: #166534; }
.status-chip.proposed { background: #dbeafe; color: #1e40af; }
.status-chip.completed { background: #f3f4f6; color: #6b7280; }

.data-context {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Outlooks grid - side by side on desktop, stacked on mobile */
.outlooks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .outlooks-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.outlook-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
}

.outlook-card.outlook-positive { border-color: #22c55e; background: #f0fdf4; }
.outlook-card.outlook-neutral { border-color: #f59e0b; background: #fffbeb; }
.outlook-card.outlook-caution { border-color: #f97316; background: #fff7ed; }
.outlook-card.outlook-negative { border-color: #ef4444; background: #fef2f2; }

.outlook-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.outlook-header h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  flex: 1;
}

.outlook-icon { font-size: var(--text-lg); }

.outlook-score {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.outlook-positive .outlook-score { color: #16a34a; }
.outlook-neutral .outlook-score { color: #d97706; }
.outlook-caution .outlook-score { color: #ea580c; }
.outlook-negative .outlook-score { color: #dc2626; }

.outlook-summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.outlook-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.outlook-details li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

/* Development advice */
.development-advice {
  background: var(--color-surface);
}

/* Insights grid layout — removed, insights distributed to topic sections */

/* Railway Noise Indicator */
.railway-noise-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius-md);
  margin: var(--space-sm) 0;
  border-left: 3px solid #f59e0b;
}

.railway-noise-indicator .railway-icon {
  font-size: var(--text-lg);
}

.railway-noise-indicator .railway-text {
  flex: 1;
  font-size: var(--text-sm);
  color: #92400e;
  font-weight: 500;
}

.railway-noise-indicator .railway-impact {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.railway-impact.impact-severe {
  background: #dc2626;
  color: white;
}

.railway-impact.impact-high {
  background: #f97316;
  color: white;
}

.railway-impact.impact-moderate {
  background: #f59e0b;
  color: #78350f;
}

.railway-impact.impact-low {
  background: #fcd34d;
  color: #78350f;
}

.railway-impact.impact-minimal {
  background: #d1fae5;
  color: #047857;
}

/* Traffic noise indicator */
.traffic-noise-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-md);
  margin: var(--space-sm) 0;
  border-left: 3px solid #0284c7;
}

.traffic-noise-indicator .traffic-icon {
  font-size: var(--text-lg);
}

.traffic-noise-indicator .traffic-text {
  flex: 1;
  font-size: var(--text-sm);
  color: #0c4a6e;
  font-weight: 500;
}

.traffic-noise-indicator .traffic-impact {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.traffic-impact.impact-high {
  background: #f97316;
  color: white;
}

.traffic-impact.impact-moderate {
  background: #f59e0b;
  color: #78350f;
}

.traffic-impact.impact-low {
  background: #fcd34d;
  color: #78350f;
}

.traffic-roads-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-xs) 0 var(--space-xs) 36px;
}

.traffic-road-tag {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.traffic-road-tag.badge-very-high { background: #fee2e2; color: #991b1b; }
.traffic-road-tag.badge-high { background: #fed7aa; color: #9a3412; }
.traffic-road-tag.badge-moderate { background: #fef3c7; color: #92400e; }
.traffic-road-tag.badge-low { background: #d1fae5; color: #065f46; }

.traffic-aadt-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 2px 0 var(--space-xs) 36px;
  font-style: italic;
}

/* Gentrification specific */
.insight-detail-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* insight-card flex layout — removed, card containers eliminated */

/* Market signal card — removed, badge folded into verdict section */

/* ============================================
   NATURAL HAZARDS SECTION
   Flood, bushfire, coastal erosion, mine subsidence
   ============================================ */
.hazards-clear {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(45, 138, 110, 0.06);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-success);
}

.hazards-clear-icon {
  font-size: var(--text-xl);
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

.hazards-clear strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-success);
  margin-bottom: var(--space-xs);
}

.hazards-clear-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.hazard-card {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-border-strong);
  margin-bottom: var(--space-md);
}

.hazard-card:last-of-type {
  margin-bottom: 0;
}

.hazard-card.hazard-high {
  border-left-color: var(--color-danger);
  background: rgba(201, 82, 74, 0.04);
}

.hazard-card.hazard-medium {
  border-left-color: var(--color-warning);
  background: rgba(198, 139, 44, 0.04);
}

.hazard-card.hazard-low {
  border-left-color: var(--color-info);
}

.hazard-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hazard-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.hazard-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hazard-title strong {
  font-size: var(--text-sm);
}

.hazard-severity {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.hazard-high .hazard-severity {
  background: rgba(201, 82, 74, 0.12);
  color: var(--color-danger);
}

.hazard-medium .hazard-severity {
  background: rgba(198, 139, 44, 0.12);
  color: var(--color-warning);
}

.hazard-low .hazard-severity {
  background: rgba(74, 124, 155, 0.12);
  color: var(--color-info);
}

.hazard-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.hazard-specifics {
  margin-top: var(--space-sm);
}

.hazard-detail-chip {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
}

.hazards-advice {
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.hazards-advice strong {
  color: var(--color-text);
}

.hazards-verify {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-md) 0 0 0;
  font-style: italic;
}

.selective-note {
  font-size: var(--text-xs);
  color: #1e40af;
  margin-top: var(--space-sm);
}

/* Safety */
.safety-trend {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.trend-icon {
  font-size: var(--text-lg);
}

.trend-text {
  font-weight: 600;
  font-size: var(--text-sm);
}

.safety-insight {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.safety-details {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0 0;
}

.safety-details li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

/* Zoning */
.zoning-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.zone-badge {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 4px 10px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
}

.zone-name {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.height-limit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm) 0;
}

.zone-insight {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   NEW SEARCH BUTTON
   ============================================ */
.new-search {
  text-align: center;
  padding-top: var(--space-md);
}

.new-search-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.new-search-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverted);
}

.new-search-btn::before {
  content: '←';
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: 50%;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.modal-body {
  padding: var(--space-2xl);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

.modal-section {
  margin-bottom: var(--space-xl);
}

.modal-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--color-text-inverted);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.modal-link:hover {
  background: var(--color-primary-light);
  color: var(--color-text-inverted);
}

/* Modal header */
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.modal-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Modal tags */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.modal-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-secondary);
}

.modal-tag.warning {
  background: #fef3cd;
  color: #856404;
}

.modal-tag.info {
  background: #d1ecf1;
  color: #0c5460;
}

.modal-tag.success {
  background: #d4edda;
  color: #155724;
}

.modal-tag.highlight {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

/* Modal stats */
.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.modal-stat {
  text-align: center;
}

.modal-stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.modal-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal timeline */
.modal-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.timeline-value {
  font-weight: 500;
  font-size: var(--text-sm);
}

/* Modal list */
.modal-list {
  list-style: none;
  padding: 0;
}

.modal-list li {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.modal-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.modal-list.positive li::before {
  content: '✓';
  color: var(--color-success);
}

/* Modal actions */
.modal-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ============================================
   DATA DISCLAIMER CARD
   ============================================ */
.data-disclaimer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.disclaimer-content {
  padding: var(--space-lg);
}

.data-sources-summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.data-sources-freshness {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.data-sources-freshness .stale {
  color: var(--color-warning);
  font-weight: 600;
}

.disclaimer-warning {
  padding: var(--space-lg);
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #856404;
}

.disclaimer-warning strong {
  color: #664d03;
}

/* Data quality warning banner */
/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-text-inverted);
  padding: var(--space-3xl) 0 var(--space-xl);
  padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-contact {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-top: var(--space-xs);
}

.footer-contact a {
  opacity: 1;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-inverted);
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
  opacity: 0.85;
}

.footer-logo-svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-inverted);
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.footer-tagline {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-top: var(--space-xs);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: background var(--transition-fast);
}

.footer-col a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer-col-title {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  padding: var(--space-sm) var(--space-md) 0;
}

.footer-legal {
  font-size: var(--text-xs);
  opacity: 0.6;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  opacity: 0.5;
  text-align: center;
}

/* Footer links */
.footer a {
  color: var(--color-text-inverted);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

/* Footer data sources (homepage) */
.footer-data-sources {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.footer-sources {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

.footer-sources li {
  opacity: 0.7;
}

.footer-disclaimer {
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.5;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

.footer-copyright {
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.4;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer text (simple footer) */
.footer-text {
  text-align: center;
  font-size: var(--text-sm);
  opacity: 0.7;
  line-height: 1.6;
}

/* ============================================
   LEGAL / PROSE PAGES (Terms, Privacy)
   ============================================ */
.legal-page {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.legal-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-page h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-page ul, .legal-page ol {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-page li {
  margin-bottom: var(--space-xs);
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page .container {
  max-width: 720px;
}

.legal-source-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.legal-source-table th,
.legal-source-table td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.legal-source-table th {
  color: var(--color-text);
  font-weight: 600;
}

/* About page — story styling */
.about-page h1 {
  margin-bottom: var(--space-xl);
}

.about-page h2 {
  margin-top: var(--space-2xl);
  font-style: italic;
}

.about-page p {
  font-size: var(--text-base);
  line-height: 1.8;
}

.about-page em {
  color: var(--color-text);
  font-style: italic;
}

.about-cta {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.about-cta .btn {
  text-decoration: none;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.about-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.about-cta .btn-primary {
  color: var(--color-text-inverted);
}

@media (max-width: 480px) {
  .about-cta {
    flex-direction: column;
  }
  .about-cta .btn {
    text-align: center;
  }
}

/* --- Footer: compact on mobile --- */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-xl) 0 var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  }

  .footer-content {
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .footer-brand-name {
    font-size: var(--text-base);
  }

  .footer-logo-svg {
    width: 20px;
    height: 20px;
  }

  .footer-tagline {
    font-size: var(--text-xs);
  }

  .footer-col a {
    min-height: 36px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }

  .footer-col-title {
    padding: var(--space-xs) var(--space-sm) 0;
  }

  .footer-disclaimer {
    font-size: 0.65rem;
    margin-bottom: var(--space-sm);
  }

  .footer-bottom {
    padding-top: var(--space-md);
    font-size: 0.65rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero-header {
    margin-bottom: var(--space-xl);
  }

  .hero-subtitle {
    margin-bottom: var(--space-sm);
  }

  .hero-description {
    margin-top: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero-header {
    margin-bottom: var(--space-lg);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   EXPLORE PAGE - SUBURB VIBE INDEX
   ============================================ */

/* Navigation Links (desktop only — mobile handled in @media block above) */

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* Sister brand link — visually distinct from main nav */
.nav-link.nav-sister {
  color: #1a4f6e;
  border: 1px solid #1a4f6e;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  margin-left: var(--space-xs);
}

.nav-link.nav-sister:hover {
  background: #1a4f6e;
  color: #fff;
}

/* Explore Hero */
.explore-hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.explore-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.explore-title .highlight {
  color: var(--color-accent);
}

.explore-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
}

/* Signal Explainer */
.signal-explainer {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.signal-explainer-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.signal-explainer-intro {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto var(--space-lg);
}

.signal-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.signal-explainer-card {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: left;
}

.signal-explainer-card .signal-dot {
  flex-shrink: 0;
  margin-top: 3px;
}

.signal-explainer-card strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.signal-explainer-card p {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.signal-explainer-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .signal-explainer {
    padding: var(--space-lg) 0;
  }

  .signal-explainer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .signal-explainer-card {
    padding: var(--space-sm) var(--space-md);
  }
}

/* Smart Search */
.smart-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.smart-search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.smart-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-pale);
}

.smart-search-input::placeholder {
  color: var(--color-text-muted);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.suggestion-item {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.suggestion-active {
  background: var(--color-primary-pale);
}

.suggestion-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-weight: 500;
  color: var(--color-text);
}

.suggestion-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.suggestion-type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.suggestion-type.suburb {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

.suggestion-type.address {
  background: var(--color-accent-pale);
  color: var(--color-accent);
}

/* ============================================
   UNIFIED FILTER BAR
   ============================================ */

.explorer-section {
  padding-top: 0;
}

.filter-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  padding-bottom: var(--space-xs);
}

@media (max-width: 480px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }
}


.filter-row + .filter-row {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

/* Filter Pill */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.filter-pill:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverted);
  box-shadow: 0 2px 6px rgba(13, 59, 76, 0.25);
}

/* Top 10 pill - special styling */
.filter-pill.pill-top10 {
  border-style: dashed;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-pill.pill-top10:hover {
  background: var(--color-accent-pale);
}

.filter-pill.pill-top10.active {
  background: var(--color-accent);
  border-style: solid;
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(181, 101, 74, 0.3);
}

/* Signal-specific active pill colours */
.filter-pill.pill-buy.active {
  background: var(--color-success);
  border-color: var(--color-success);
  box-shadow: 0 2px 6px rgba(45, 138, 110, 0.3);
}

.filter-pill.pill-wait.active {
  background: var(--color-warning);
  border-color: var(--color-warning);
  box-shadow: 0 2px 6px rgba(198, 139, 44, 0.3);
}

.filter-pill.pill-sell.active {
  background: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: 0 2px 6px rgba(201, 82, 74, 0.3);
}

/* Watchlist pill */
.filter-pill.pill-watchlist {
  border-style: dashed;
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.filter-pill.pill-watchlist:hover {
  background: rgba(198, 139, 44, 0.08);
}

.filter-pill.pill-watchlist.active {
  background: var(--color-warning);
  border-style: solid;
  border-color: var(--color-warning);
  color: #fff;
  box-shadow: 0 2px 6px rgba(198, 139, 44, 0.3);
}

/* High conviction pill */
.filter-pill.pill-conviction {
  border-style: solid;
  border-color: var(--color-success);
  color: var(--color-success);
}

.filter-pill.pill-conviction:hover {
  background: rgba(45, 138, 110, 0.08);
}

.filter-pill.pill-conviction.active {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
  box-shadow: 0 2px 6px rgba(45, 138, 110, 0.3);
}

/* Signal dot inside pill */
.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dot-buy { background: var(--color-success); }
.dot-wait { background: var(--color-warning); }
.dot-sell { background: var(--color-danger); }

.filter-pill.active .signal-dot {
  background: rgba(255,255,255,0.7);
}

/* Pill count badge */
.pill-count {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.7;
}

/* Filter pill tooltips */
.filter-pill[data-tooltip] {
  position: relative;
}

.filter-pill[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 100;
  text-align: left;
}

.filter-pill[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .filter-pill[data-tooltip]::after {
    display: none;
  }
}

/* Filter Summary */
.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: 0 var(--space-xs);
}

.filter-summary-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.filter-clear {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}

.filter-clear:hover {
  color: var(--color-accent-hover);
}

/* Map toggle: push to far right of zone row */
.filter-row .map-toggle-btn {
  margin-left: auto;
}

/* Accent text (used in various contexts) */
.accent-text {
  color: var(--color-accent);
}

/* Rank Badge (for Top 10 filter) */
.rank-badge {
  position: absolute;
  top: calc(var(--space-sm) * -1);
  left: calc(var(--space-sm) * -1);
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

/* Card enter animation */
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suburb-card.card-enter {
  animation: cardEnter 0.3s ease both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

/* Suburb Groups */
.suburb-group {
  margin-bottom: var(--space-2xl);
}

.suburb-group.featured {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
}

.group-count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: var(--space-sm);
}

/* Suburb Grid */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
}

/* SEO pre-rendered suburb links — visible until explore.js replaces grid */
.seo-suburb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.seo-suburb-grid[data-region="lakemac"] { display: none; }
.site-lakemac .seo-suburb-grid[data-region="newy"] { display: none; }
.site-lakemac .seo-suburb-grid[data-region="lakemac"] { display: flex; }
.seo-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.seo-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.seo-card-signal {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.seo-card-signal.signal-buy { color: #1a7a3a; background: #e6f4ea; }
.seo-card-signal.signal-wait { color: #9a6700; background: #fff8e1; }
.seo-card-signal.signal-sell { color: #c62828; background: #ffeaea; }
.seo-card-price {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.no-suburbs {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
}

/* Suburb Card */
.suburb-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suburb-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.suburb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.suburb-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

/* Signal Badge */
.signal-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.signal-badge.signal-buy {
  background: rgba(45, 138, 110, 0.15);
  color: var(--color-success);
}

.signal-badge.signal-sell {
  background: rgba(201, 82, 74, 0.15);
  color: var(--color-danger);
}

.signal-badge.signal-wait {
  background: rgba(198, 139, 44, 0.15);
  color: var(--color-warning);
}

.suburb-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.suburb-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.suburb-score {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.score-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
}

.stat-value.positive {
  color: var(--color-success);
}

.stat-value.negative {
  color: var(--color-danger);
}

/* Trend Arrows */
.trend-arrow {
  font-size: var(--text-lg);
  font-weight: 600;
}

.trend-arrow.rising {
  color: var(--color-success);
}

.trend-arrow.stable {
  color: var(--color-warning);
}

.trend-arrow.declining {
  color: var(--color-danger);
}

/* Suburb Trajectory (replaces suburb-score) */
.suburb-trajectory {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
}

.suburb-trajectory .trend-arrow {
  font-size: var(--text-base);
}

.suburb-trajectory .trend-label {
  color: inherit;
}

.suburb-trajectory.rising {
  color: var(--color-success);
}

.suburb-trajectory.stable {
  color: var(--color-text-muted);
}

.suburb-trajectory.declining {
  color: var(--color-danger);
}

/* Enhanced Suburb Card Body */
.suburb-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.suburb-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suburb-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}

.suburb-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.card-stat {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: 2px 8px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.card-stat strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* Signal Intelligence v2 Card Elements */
.card-momentum {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.card-momentum.momentum-up {
  color: var(--color-success);
}

.card-momentum.momentum-down {
  color: var(--color-danger);
}

.card-momentum.momentum-stable {
  color: var(--color-text-muted);
}

.momentum-arrow {
  font-size: var(--text-base);
  line-height: 1;
}

/* Convergence bar */
.card-convergence {
  display: flex;
  gap: 2px;
  align-items: center;
}

.conv-seg {
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-border);
  transition: background 0.2s ease;
}

.conv-seg.conv-filled {
  background: var(--color-primary);
}

/* Color convergence by signal context */
.signal-buy ~ .suburb-card-body .conv-seg.conv-filled,
.suburb-card[data-signal="BUY"] .conv-seg.conv-filled {
  background: var(--color-success);
}

.signal-sell ~ .suburb-card-body .conv-seg.conv-filled,
.suburb-card[data-signal="SELL"] .conv-seg.conv-filled {
  background: var(--color-danger);
}

.card-conv-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: var(--space-xs);
  white-space: nowrap;
}

/* Phase label */
.card-phase {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary-light);
  padding: 2px 8px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

/* Card badges */
.card-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-watchlist {
  background: rgba(198, 139, 44, 0.15);
  color: var(--color-warning);
  border: 1px dashed var(--color-warning);
}

.badge-conviction {
  background: rgba(45, 138, 110, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(45, 138, 110, 0.25);
}

.badge-conviction-sell {
  background: rgba(220, 53, 69, 0.12);
  color: var(--color-sell);
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.badge-signal-changed {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Price row alignment with convergence */
.suburb-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.suburb-price-row .suburb-price {
  flex-shrink: 0;
}

.suburb-price-row .card-convergence {
  margin-left: auto;
}

.card-sparkline {
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.card-sparkline svg {
  display: block;
}

.card-stat.positive {
  color: var(--color-success);
  background: rgba(45, 138, 110, 0.1);
}

.card-stat.negative {
  color: var(--color-danger);
  background: rgba(201, 82, 74, 0.1);
}

/* Impact Level classes (used in suburb cards) */
.stat-value.level-none {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.stat-value.level-low {
  color: #065f46;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

.stat-value.level-moderate {
  color: #92400e;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

.stat-value.level-high {
  color: #9a3412;
  background: #fed7aa;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

/* Trajectory badge for suburb detail page */
.trajectory-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  margin-left: var(--space-sm);
}

.trajectory-badge.trajectory-rising {
  background: rgba(45, 138, 110, 0.15);
  color: var(--color-success);
}

.trajectory-badge.trajectory-stable {
  background: rgba(107, 114, 128, 0.15);
  color: var(--color-text-muted);
}

.trajectory-badge.trajectory-declining {
  background: rgba(201, 82, 74, 0.15);
  color: var(--color-danger);
}

.trajectory-arrow {
  font-weight: 600;
}

/* Suburb Stats */
.suburb-stats {
  display: flex;
  gap: var(--space-lg);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-base);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Suburb Detail Modal */
.suburb-detail-modal {
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .suburb-detail-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .modal-overlay {
    align-items: flex-end;
  }
}

.suburb-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

/* Signal Card in Modal */
.signal-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.signal-card.signal-buy {
  background: linear-gradient(135deg, rgba(45, 138, 110, 0.1) 0%, rgba(45, 138, 110, 0.05) 100%);
  border: 1px solid rgba(45, 138, 110, 0.2);
}

.signal-card.signal-sell {
  background: linear-gradient(135deg, rgba(201, 82, 74, 0.1) 0%, rgba(201, 82, 74, 0.05) 100%);
  border: 1px solid rgba(201, 82, 74, 0.2);
}

.signal-card.signal-wait {
  background: linear-gradient(135deg, rgba(198, 139, 44, 0.1) 0%, rgba(198, 139, 44, 0.05) 100%);
  border: 1px solid rgba(198, 139, 44, 0.2);
}

.signal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.signal-emoji {
  font-size: var(--text-2xl);
}

.signal-recommendation {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}

.signal-card.signal-buy .signal-recommendation {
  color: var(--color-success);
}

.signal-card.signal-sell .signal-recommendation {
  color: var(--color-danger);
}

.signal-card.signal-wait .signal-recommendation {
  color: var(--color-warning);
}

.signal-score {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.signal-text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.signal-confidence {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--text-xs);
}

.confidence-badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confidence-high .confidence-badge {
  background: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.confidence-medium .confidence-badge {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.confidence-low .confidence-badge {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.confidence-text {
  color: var(--color-text-muted);
}

.detail-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

.detail-trajectory {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Legacy: keep for backwards compatibility */
.detail-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.score-big {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

.trend-badge.rising {
  background: rgba(45, 138, 110, 0.1);
  color: var(--color-success);
}

.trend-badge.stable {
  background: rgba(198, 139, 44, 0.1);
  color: var(--color-warning);
}

.trend-badge.declining {
  background: rgba(201, 82, 74, 0.1);
  color: var(--color-danger);
}

/* Detail Sections */
.detail-section {
  margin-bottom: var(--space-xl);
}

.detail-section h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.reason-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reason-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-base);
}

.reason-list li:last-child {
  border-bottom: none;
}

/* Price Section */
.price-section {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.price-item {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* DA List in Detail */
.da-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.da-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.da-item:last-child {
  border-bottom: none;
}

.da-status {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.da-status.status-approved {
  background: rgba(45, 138, 110, 0.1);
  color: var(--color-success);
}

.da-status.status-under-assessment,
.da-status.status-pending {
  background: rgba(198, 139, 44, 0.1);
  color: var(--color-warning);
}

.da-status.status-refused {
  background: rgba(201, 82, 74, 0.1);
  color: var(--color-danger);
}

.da-address {
  flex: 1;
  color: var(--color-text);
}

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

/* Cross-site Comparison */
.cross-site-compare {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.cross-site-compare h4 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.cross-site-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cross-site-link:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.cross-site-icon {
  font-size: var(--text-lg);
}

.cross-site-content {
  flex: 1;
}

.cross-site-suburb {
  font-weight: 600;
  color: var(--color-primary);
  text-transform: capitalize;
}

.cross-site-reason {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.cross-site-arrow {
  color: var(--color-accent);
  font-size: var(--text-lg);
}

/* Cross-site inline link in compare block */
.cross-site-compare-line {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--color-border);
}

.cross-site-link-inline {
  color: var(--color-accent);
}

.cross-site-link-inline:hover {
  text-decoration: underline;
}

.cross-site-trend {
  font-size: var(--text-xs);
  opacity: 0.7;
}

/* Explore modal: multiple cross-site links stacked */
.cross-site-compare .cross-site-link + .cross-site-link {
  margin-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

/* Sister Site Link in Nav */
.sister-site-link {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-md) !important;
  margin-left: var(--space-sm);
}

/* Detail Actions */
.detail-actions {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverted);
  width: 100%;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

/* Responsive */
@media (max-width: 640px) {
  .explore-title {
    font-size: var(--text-2xl);
  }

  .smart-search {
    max-width: 100%;
  }

  .smart-search-input {
    font-size: var(--text-base);
    padding: var(--space-md);
  }

  .filter-bar {
    padding: var(--space-sm) var(--space-md);
  }

  .filter-pill {
    padding: 8px 12px;
    font-size: var(--text-xs);
    min-height: 36px;
  }

  .suburb-grid {
    grid-template-columns: 1fr;
  }

  .suburb-group.featured {
    padding: var(--space-md);
    margin-left: calc(var(--space-md) * -1);
    margin-right: calc(var(--space-md) * -1);
    border-radius: 0;
  }

  .suburb-detail-header {
    flex-direction: column;
    gap: var(--space-md);
  }

  .detail-score {
    align-items: flex-start;
    flex-direction: row;
    gap: var(--space-md);
  }
}

/* ============================================
   SUBURB VIBE PAGE
   das-wenige: Signal + Reason + Data = Done
   ============================================ */

.suburb-hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.back-link {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--color-primary);
}

.suburb-header {
  text-align: center;
}

.suburb-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.suburb-name-large {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

.signal-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  font-weight: 600;
}

.signal-badge-lg.signal-buy {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.signal-badge-lg.signal-sell {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.signal-badge-lg.signal-wait {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  color: #fbbf24;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.signal-reason {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   SUBURB VIBE PROFILE - Rich suburb content
   High signal-to-noise unique content
   ============================================ */

.vibe-profile-section {
  /* padding set in unified section spacing rule below */
}

.vibe-summary-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.vibe-summary-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.vibe-summary-text p {
  margin: 0 0 var(--space-md) 0;
}

.vibe-summary-text p:last-child {
  margin-bottom: 0;
}

.profile-block {
  margin-bottom: var(--space-xl);
}

.profile-block-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
}

/* Best For */
.best-for-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.best-for-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.best-for-type {
  flex-shrink: 0;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
}

.best-for-reason {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
}

/* Watch For */
.watch-for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.watch-for-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
}

.watch-for-list li::before {
  content: "⚡";
  flex-shrink: 0;
}

/* Local's Take */
.locals-take-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
}

.locals-take-quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 var(--space-md) 0;
  position: relative;
  padding-left: var(--space-lg);
}

.locals-take-quote::before {
  content: """;
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.5;
  font-family: Georgia, serif;
}

.locals-take-cite {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

/* Trajectory */
.trajectory-text {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0;
}

/* Compare To */
.compare-block {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.compare-text {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.compare-label {
  color: var(--color-text-muted);
}

.compare-suburb-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.compare-suburb-link:hover {
  text-decoration: underline;
}

.compare-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.compare-note::before {
  content: " — ";
}

@media (max-width: 768px) {
  .vibe-summary-card {
    padding: var(--space-md) var(--space-lg);
  }

  .best-for-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .locals-take-block {
    padding: var(--space-md) var(--space-lg);
  }
}

/* Vibe Grid - Data + Map */
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.vibe-data {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 var(--space-lg) 0;
}

/* Signal Breakdown */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.breakdown-item.good {
  border-left: 3px solid #10b981;
}

.breakdown-item.bad {
  border-left: 3px solid #ef4444;
}

.breakdown-item.neutral {
  border-left: 3px solid var(--color-text-muted);
}

.breakdown-item.missing {
  border-left: 3px solid var(--color-border);
  opacity: 0.6;
}

.breakdown-icon {
  font-size: var(--text-lg);
  width: 24px;
  text-align: center;
}

.breakdown-item.good .breakdown-icon {
  color: #10b981;
}

.breakdown-item.bad .breakdown-icon {
  color: #ef4444;
}

.breakdown-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.breakdown-label {
  font-weight: 500;
  color: var(--color-text);
  font-size: var(--text-sm);
}

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

.breakdown-confidence {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.confidence-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.confidence-reason {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.confidence-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.confidence-value {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.confidence-value.confidence-high {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.confidence-value.confidence-medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.confidence-value.confidence-low {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Price Cards */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  text-align: center;
}

.price-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin: var(--space-xs) 0;
}

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

.growth-card.positive .price-value {
  color: #10b981;
}

.growth-card.negative .price-value {
  color: #ef4444;
}

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

.data-meta a {
  color: var(--color-text-muted);
}

.data-meta p {
  margin: var(--space-xs) 0;
}

/* ============================================
   SUBURB MAP SECTION (Contained Width)
   ============================================ */

.map-section {
  padding: var(--space-lg) 0;
}

.map-container-suburb {
  position: relative;
  width: 100%;
}

.suburb-map {
  height: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* Zoom out button - appears when zoomed in */
.map-zoom-out-btn {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.map-zoom-out-btn:hover {
  background: var(--color-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-zoom-out-btn.hidden {
  display: none;
}

/* Map legend (appears when zoomed in) — check page only */
/* Suburb page: legend overlays the map */
.map-container-suburb .map-legend {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-legend.hidden {
  display: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px 0;
  color: var(--color-text-secondary);
}

.legend-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* Map hint overlay */
.map-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.3s;
}

.map-hint.hidden {
  opacity: 0;
}

.map-mobile-toggle {
  display: none;
  padding: var(--space-md) 0;
  text-align: center;
}

/* CTA Section */
.cta-section {
  /* padding set in unified section spacing rule; background overridden below */
}

.suburb-actions-primary {
  justify-content: center;
}

.suburb-actions-primary .btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

.suburb-actions-secondary {
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Data Section */

.data-section .section-title {
  margin-bottom: var(--space-lg);
}

/* Prices Section — background/border set here, padding in unified rule */

.prices-section .section-title {
  margin-bottom: var(--space-lg);
}

/* ============================================
   VIBE MARKERS SECTION (Commercial Activity)
   ============================================ */

/* ============================================
   SUBURB PAGE: Safety Section
   ============================================ */

.safety-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.safety-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.safety-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.safety-rating .rating-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.rating-badge.rating-very-safe {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.rating-badge.rating-safe {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.rating-badge.rating-average {
  background: #f3f4f6;
  color: #4b5563;
}

.rating-badge.rating-below-average {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.rating-badge.rating-elevated {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.safety-momentum {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
}

.safety-momentum.momentum-good {
  color: #047857;
}

.safety-momentum.momentum-bad {
  color: #dc2626;
}

.safety-momentum.momentum-neutral {
  color: var(--color-text-muted);
}

.safety-momentum .momentum-icon {
  font-size: var(--text-lg);
}

.safety-verdict {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.safety-verdict p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
}

.safety-categories {
  display: grid;
  gap: var(--space-sm);
}

.safety-category {
  display: grid;
  grid-template-columns: 24px 1fr auto auto auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.safety-category .cat-icon {
  font-size: var(--text-base);
}

.safety-category .cat-label {
  font-weight: 500;
  color: var(--color-text);
}

.safety-category .cat-rate {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.safety-category .cat-vs-state {
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.safety-category .cat-vs-state.vs-high {
  background: #fee2e2;
  color: #dc2626;
}

.safety-category .cat-vs-state.vs-low {
  background: #d1fae5;
  color: #047857;
}

.safety-category .cat-vs-state.vs-avg {
  background: #f3f4f6;
  color: #6b7280;
}

.safety-category .cat-momentum {
  font-weight: 600;
  width: 16px;
  text-align: center;
}

.safety-category.cat-declining .cat-momentum {
  color: #047857;
}

.safety-category.cat-rising .cat-momentum {
  color: #dc2626;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .safety-category {
    grid-template-columns: 24px 1fr auto;
    gap: var(--space-xs);
  }

  .safety-category .cat-rate,
  .safety-category .cat-momentum {
    display: none;
  }

  .safety-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   CRIME INTELLIGENCE — insight block
   ============================================ */

.crime-intel {
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.crime-intel-hero {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-danger);
}

.crime-intel-hero.hero-safe {
  border-left-color: var(--color-success);
}

.crime-intel-hero .hero-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  line-height: 1.2;
}

.crime-intel-hero .hero-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

.crime-intel-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.crime-intel-chip {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  text-align: center;
}

.crime-intel-chip .chip-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
}

.crime-intel-chip .chip-number.chip-green { color: var(--color-success); }
.crime-intel-chip .chip-number.chip-red { color: var(--color-danger); }
.crime-intel-chip .chip-number.chip-amber { color: var(--color-warning); }

.crime-intel-chip .chip-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.crime-intel-callout {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-info);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.crime-intel-callout.callout-warn {
  border-left-color: var(--color-warning);
}

.crime-intel-callout.callout-danger {
  border-left-color: var(--color-danger);
}

.crime-intel-tip {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .crime-intel-strip {
    grid-template-columns: 1fr 1fr;
  }

  .crime-intel-hero .hero-number {
    font-size: var(--text-xl);
  }

  .crime-intel-chip .chip-number {
    font-size: var(--text-lg);
  }
}

/* ============================================
   SUBURB PAGE: Practical Considerations
   (Safety + Noise combined for cleaner flow)
   ============================================ */

.practical-section {
  /* padding, border, background overridden in unified section rules below */
}

.practical-block {
  /* padding/margin overridden in unified section rules below */
}

.practical-block:last-child {
  margin-bottom: 0;
}

.practical-block-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
}

.practical-block .data-meta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   SUBURB PAGE: Noise Sources Section (legacy)
   ============================================ */

.noise-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.noise-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.noise-category {
  margin-bottom: var(--space-lg);
}

.noise-category:last-child {
  margin-bottom: 0;
}

.noise-category h4 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.noise-category .noise-icon {
  font-size: var(--text-lg);
}

.noise-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.noise-item {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.noise-item.road-item {
  border-left: 3px solid #0284c7;
}

.noise-item.rail-item {
  border-left: 3px solid #f59e0b;
}

.noise-item.venue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #8b5cf6;
}

.noise-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.noise-item-name {
  font-weight: 500;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.noise-impact {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.noise-impact.impact-severe {
  background: #dc2626;
  color: white;
}

.noise-impact.impact-high {
  background: #f97316;
  color: white;
}

.noise-impact.impact-moderate {
  background: #fcd34d;
  color: #78350f;
}

.noise-impact.impact-low {
  background: #d1fae5;
  color: #047857;
}

.noise-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.noise-item-freq {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0 0;
  font-style: italic;
}

.noise-item-hours {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.noise-more {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin: var(--space-xs) 0 0 0;
}

.noise-recommendation {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius-md);
  border-left: 3px solid #f59e0b;
}

.noise-recommendation p {
  margin: 0;
  font-size: var(--text-sm);
  color: #92400e;
  line-height: 1.5;
}

/* ============================================
   SUBURB PAGE: Contamination Section
   ============================================ */

.contamination-card,
.hazards-card,
.schools-card,
.infrastructure-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.contam-header,
.hazards-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.contam-overall,
.hazards-overall {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.contam-site {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.contam-site:last-child {
  margin-bottom: 0;
}

.contam-site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.contam-site-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.contam-severity-badge {
  display: inline-block;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.contam-severity-high {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.contam-severity-medium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.contam-severity-low {
  background: #f3f4f6;
  color: #4b5563;
}

.contam-site-desc,
.contam-site-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0 0;
  line-height: 1.4;
}

.contam-recommendation {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.contam-recommendation p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contam-recommendation a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   SUBURB PAGE: Natural Hazards Section
   ============================================ */

.hazard-item {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.hazard-item:last-child {
  margin-bottom: 0;
}

.hazard-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
}

.hazard-icon {
  font-size: var(--text-base);
}

.hazard-type {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.hazard-severity {
  display: inline-block;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.hazard-high {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.hazard-medium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.hazard-low {
  background: #f3f4f6;
  color: #4b5563;
}

.hazard-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.hazard-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0 0;
  font-style: italic;
}

/* ============================================
   SUBURB PAGE: Schools Section
   ============================================ */

.school-category {
  margin-bottom: var(--space-md);
}

.school-category:last-child {
  margin-bottom: 0;
}

.school-category h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.school-item {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.school-item:last-child {
  margin-bottom: 0;
}

.school-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.school-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.school-selective {
  display: inline-block;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.school-details {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.school-naplan,
.school-icsea,
.school-enrollment {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.naplan-badge {
  display: inline-block;
  padding: 1px var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.naplan-well-above {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.naplan-above {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.naplan-at {
  background: #f3f4f6;
  color: #4b5563;
}

.naplan-below {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.naplan-well-below {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.school-programs {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0 0;
  font-style: italic;
}

/* ============================================
   SUBURB PAGE: Infrastructure Section
   ============================================ */

.infra-item {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.infra-item:last-child {
  margin-bottom: 0;
}

.infra-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.infra-icon {
  font-size: var(--text-base);
}

.infra-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.infra-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0 0;
  line-height: 1.4;
}

.nbn-badge,
.project-badge {
  display: inline-block;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.nbn-excellent {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.nbn-good {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.nbn-fair {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.project-complete {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.project-active {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.project-planned {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

/* ============================================
   SUBURB PAGE: Daily Livability Section
   ============================================ */

.livability-section {
  /* padding set in unified section spacing rule */
}

.livability-grade-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.livability-grade-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.livability-grade-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.livability-grade-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.livability-grade-detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.livability-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.livability-item {
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.livability-item.liv-score-good {
  border-left: 3px solid #10b981;
}

.livability-item.liv-score-ok {
  border-left: 3px solid #f59e0b;
}

.livability-item.liv-score-poor {
  border-left: 3px solid #ef4444;
}

.livability-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.livability-icon {
  font-size: var(--text-base);
}

.livability-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.livability-score {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
}

.livability-score.liv-score-good {
  background: #d1fae5;
  color: #047857;
}

.livability-score.liv-score-ok {
  background: #fef3c7;
  color: #92400e;
}

.livability-score.liv-score-poor {
  background: #fee2e2;
  color: #991b1b;
}

.livability-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 2px;
}

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

.livability-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================
   NEIGHBOURHOOD PULSE
   ============================================ */

.pulse-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pulse-hot { background: #fef3c7; color: #92400e; }
.pulse-active { background: #dbeafe; color: #1d4ed8; }
.pulse-moderate { background: #f3f4f6; color: #374151; }
.pulse-quiet { background: #f9fafb; color: #6b7280; }

.pulse-headline {
  margin-bottom: 16px;
}

.pulse-stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pulse-stat {
  display: flex;
  flex-direction: column;
  min-width: 70px;
}

.pulse-stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.pulse-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-accel-up { color: #059669; }
.pulse-accel-down { color: #dc2626; }
.pulse-accel-flat { color: #6b7280; }

.pulse-timeline {
  margin: 16px 0;
  padding: 12px;
  background: var(--color-surface-secondary, #f9fafb);
  border-radius: 8px;
}

.pulse-timeline-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.pulse-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pulse-bar-year {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  min-width: 36px;
}

.pulse-bar-track {
  flex: 1;
  height: 16px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.pulse-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.pulse-bar-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  min-width: 60px;
  white-space: nowrap;
}

.pulse-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.pulse-coverage-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 4px 0 8px;
  padding-left: 12px;
}

.pulse-cat-chip {
  display: inline-block;
  padding: 3px 10px;
  background: #f3f4f6;
  border-radius: 12px;
  font-size: var(--text-xs);
  color: #374151;
}

.pulse-cat-chip strong {
  color: var(--color-text-primary);
}

.pulse-interpretation {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--color-surface-secondary, #f9fafb);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

@media (max-width: 480px) {
  .pulse-stat-row {
    gap: 12px;
  }
  .pulse-stat-value {
    font-size: var(--text-lg);
  }
}

/* ============================================
   SUBURB PAGE: Commercial Vibe Section
   ============================================ */

.vibe-markers-section {
  /* padding set in unified section spacing rule */
}

.vibe-markers-section .section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-lg);
}

.vibe-header {
  margin-bottom: var(--space-lg);
}

.vibe-trend-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.vibe-trend-badge.trend-accelerating {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.vibe-trend-badge.trend-emerging {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.vibe-trend-badge.trend-established {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #7c3aed;
}

.vibe-trend-badge.trend-stable {
  background: #f3f4f6;
  color: #4b5563;
}

.vibe-trend-badge.trend-declining {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.vibe-note {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* What Changed Recently — temporal moat signals */
.changes-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.change-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--text-muted, #666);
}
.change-item.change-positive { border-left-color: #4ade80; }
.change-item.change-negative { border-left-color: #f87171; }
.change-item.change-info { border-left-color: #60a5fa; }
.change-item.change-neutral { border-left-color: #a78bfa; }
.change-icon { font-size: 1.1rem; flex-shrink: 0; }
.change-text { flex: 1; font-size: 0.9rem; color: var(--text-primary, #e0e0e0); }
.change-date { font-size: 0.75rem; color: var(--text-muted, #888); white-space: nowrap; }

.vibe-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.vibe-count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.vibe-count-item.vibe-count-empty {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
}

.vibe-count-icon {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.vibe-count-num {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.vibe-count-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-xs);
}

.venue-trajectory {
  margin-top: var(--space-md);
  padding: 0.5rem 0.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.venue-trajectory-label {
  color: var(--color-text-muted);
}

.venue-trajectory-value {
  font-weight: 600;
}

.venue-trajectory-value.trend-up { color: var(--color-success); }
.venue-trajectory-value.trend-down { color: var(--color-sell); }
.venue-trajectory-value.trend-flat { color: var(--color-text-muted); }

.venue-trajectory-range {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.vibe-notable {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.vibe-notable h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.vibe-notable ul {
  list-style: none;
  padding: 0;
}

.vibe-notable li {
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.vibe-notable .venue-note {
  color: var(--color-text-muted);
}

.vibe-notable .venue-map-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.vibe-notable .venue-map-link:hover {
  text-decoration: underline;
}

.vibe-notable .venue-address {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  display: block;
  margin-top: 1px;
}

/* Legacy Map Container (keep for fallback) */
.vibe-map-container {
  position: sticky;
  top: var(--space-lg);
}

.vibe-map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ============================================
   MAP MARKERS (Enhanced)
   ============================================ */

/* Current suburb marker (PROMINENT - focal point of map) */
.suburb-marker-current {
  z-index: 1000 !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

/* Current suburb marker - compact, clickable */
.map-signal-marker-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  width: max-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-signal-marker-current:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.map-signal-marker-current .marker-emoji {
  font-size: 16px;
}

.map-signal-marker-current .marker-label {
  font-size: 14px;
  font-weight: 700;
}

/* ============================================
   DA MARKERS (for suburb.js zoomed view)
   Large markers with emoji + unit count
   Uses .signal-marker.da-marker to not conflict
   with simple dot markers from app.js
   ============================================ */

.da-marker-icon {
  background: transparent !important;
  border: none !important;
}

/* Large DA markers - only when used with .signal-marker parent */
.signal-marker.da-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #6b7280;
  cursor: pointer;
  transition: transform 0.2s;
}

.signal-marker.da-marker:hover {
  transform: scale(1.15);
}

.signal-marker .da-icon,
.signal-marker .marker-icon {
  font-size: 14px;
  line-height: 1;
}

.signal-marker .da-units,
.signal-marker .marker-value {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  line-height: 1;
}

/* Single-dash status classes for suburb.js markers */
.signal-marker.da-marker.da-in-progress {
  border-color: #8b5cf6;
  background: #ede9fe;
}

.signal-marker.da-marker.da-approved {
  border-color: #3b82f6;
  background: #dbeafe;
}

.signal-marker.da-marker.da-pending {
  border-color: #f59e0b;
  background: #fef3c7;
}

.signal-marker.da-marker.da-completed {
  border-color: #22c55e;
  background: #dcfce7;
  opacity: 0.8;
}

.signal-marker.da-marker.da-unknown {
  border-color: #6b7280;
  background: #f3f4f6;
}

/* DA Popup styling */
.da-popup-container .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.da-popup {
  padding: 4px;
}

.da-popup strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 4px;
}

.da-popup-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
  margin-bottom: 6px;
}

.da-popup-details {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.da-popup-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
}

/* Nearby suburb markers (clickable) */
.map-signal-marker-nearby {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-signal-marker-nearby .marker-emoji {
  font-size: 14px;
}

.map-signal-marker-nearby .marker-name {
  max-width: none;
}

.suburb-marker-nearby {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.suburb-marker-nearby.marker-hover .map-signal-marker-nearby,
.map-signal-marker-nearby:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Nearby markers - MUTED by default (focus on current suburb) */
.map-signal-marker-nearby {
  background: rgba(120, 120, 120, 0.6) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.map-signal-marker-nearby .marker-emoji {
  filter: grayscale(100%);
  opacity: 0.7;
}

/* On hover - reveal the actual signal color */
.map-signal-marker-nearby:hover,
.suburb-marker-nearby.marker-hover .map-signal-marker-nearby {
  opacity: 1;
}

.map-signal-marker-nearby:hover .marker-emoji,
.suburb-marker-nearby.marker-hover .map-signal-marker-nearby .marker-emoji {
  filter: grayscale(0%);
  opacity: 1;
}

.map-signal-marker-nearby.signal-buy:hover,
.suburb-marker-nearby.marker-hover .map-signal-marker-nearby.signal-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.map-signal-marker-nearby.signal-sell:hover,
.suburb-marker-nearby.marker-hover .map-signal-marker-nearby.signal-sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}

.map-signal-marker-nearby.signal-wait:hover,
.suburb-marker-nearby.marker-hover .map-signal-marker-nearby.signal-wait {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #1a1a2e !important;
}

/* Marker tooltip */
.suburb-marker-tooltip {
  background: white !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.suburb-marker-tooltip::before {
  border-top-color: white !important;
}

.suburb-tooltip {
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.suburb-tooltip strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 4px;
}

.suburb-tooltip .tooltip-signal {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: 4px;
}

.suburb-tooltip .tooltip-signal.signal-buy {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.suburb-tooltip .tooltip-signal.signal-sell {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.suburb-tooltip .tooltip-signal.signal-wait {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

.suburb-tooltip .tooltip-hint {
  display: block;
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Base Map Markers */
.map-signal-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-signal-marker.signal-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.map-signal-marker.signal-sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.map-signal-marker.signal-wait {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a2e;
}

.map-signal-marker-small {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.map-signal-marker-small:hover {
  transform: scale(1.2);
}

.map-signal-marker-small.signal-buy {
  background: #10b981;
}

.map-signal-marker-small.signal-sell {
  background: #ef4444;
}

.map-signal-marker-small.signal-wait {
  background: #fbbf24;
}

.suburb-marker-icon,
.suburb-marker-small {
  background: transparent !important;
  border: none !important;
}

/* ============================================
   ZOOMED-IN SIGNAL MARKERS (DAs, Venues, Contamination)
   ============================================ */

/* Signal marker icon container - transparent so we can style the inner div */
.signal-marker-icon {
  background: transparent !important;
  border: none !important;
}

/* Base signal marker (zoomed-in view) */
.signal-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid #6b7280;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.signal-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.signal-marker .marker-icon {
  font-size: 16px;
  line-height: 1;
}

.signal-marker .marker-value {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  line-height: 1;
}

/* DA Markers status colors now defined above in "DA MARKERS (for suburb.js zoomed view)" section */

/* Venue Markers */
.signal-marker.venue-marker {
  border-color: #6b7280;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.signal-marker.venue-marker .marker-icon {
  font-size: 18px;
}

/* Late-trading venues - more prominent */
.signal-marker.venue-marker.venue-late {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

/* Notable venue markers — smaller, distinct from DA/liquor markers */
.signal-marker.venue-notable-marker {
  width: 28px;
  height: 28px;
  border: 2px solid #059669;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-marker.venue-notable-marker .marker-icon {
  font-size: 14px;
}

/* Contamination Markers */
.signal-marker.contam-marker {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.signal-marker.contam-marker.contam-high {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.signal-marker.contam-marker.contam-medium {
  border-color: #f97316;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

/* Info Marker (no signals) */
.signal-marker.info-marker {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.signal-marker.info-marker .marker-icon {
  font-size: 20px;
}

/* ============================================
   SIGNAL POPUPS (Zoomed-in marker info)
   ============================================ */

.signal-popup {
  padding: var(--space-xs);
  min-width: 200px;
}

.signal-popup .popup-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
  background: #f3f4f6;
  color: #374151;
}

.signal-popup .popup-type.venue {
  background: #f5f3ff;
  color: #6d28d9;
}

.signal-popup .popup-type.contam {
  background: #fef2f2;
  color: #dc2626;
}

.signal-popup .popup-type.info {
  background: #d1fae5;
  color: #059669;
}

.signal-popup strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.signal-popup .popup-address {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.signal-popup .popup-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: var(--space-xs);
}

.signal-popup .popup-badge.contam-high {
  background: #fee2e2;
  color: #dc2626;
}

.signal-popup .popup-badge.contam-medium {
  background: #fff7ed;
  color: #c2410c;
}

.signal-popup .popup-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.signal-popup .popup-details span {
  white-space: nowrap;
}

.signal-popup .popup-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-height: 48px;
  overflow: hidden;
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
  margin: 12px !important;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Actions */
.suburb-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.no-data {
  color: var(--color-text-muted);
  font-style: italic;
}

.data-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  border-left: 2px solid var(--color-border);
}

/* Mobile */
@media (max-width: 768px) {
  .vibe-grid {
    grid-template-columns: 1fr;
  }

  .vibe-map-container {
    position: relative;
    top: 0;
  }

  .vibe-map {
    height: 300px;
  }

  /* Full-width map on mobile - lazy loaded */
  .map-section-fullwidth .map-fullwidth-container {
    display: none;
  }

  .map-mobile-toggle {
    display: block;
  }

  .map-fullwidth {
    height: 280px;
  }

  .map-hint {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  /* Hide nearby suburb names on mobile - just emoji */
  .map-signal-marker-nearby .marker-name {
    display: none;
  }

  .map-signal-marker-nearby {
    padding: 6px;
    border-radius: 50%;
  }

  .suburb-title-row {
    flex-direction: column;
    gap: var(--space-md);
  }

  .price-cards {
    grid-template-columns: 1fr 1fr;
  }

  .suburb-actions {
    flex-direction: column;
  }

  .suburb-actions .btn {
    width: 100%;
    text-align: center;
  }

  .suburb-actions-primary .btn-large {
    font-size: var(--text-base);
    padding: var(--space-md);
  }

  /* Suburb map mobile adjustments */
  .map-container-suburb {
    margin: 0 calc(-1 * var(--space-lg));
  }

  .suburb-map {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .map-zoom-out-btn {
    top: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }

  /* Signal markers smaller on mobile */
  .signal-marker {
    width: 36px;
    height: 36px;
  }

  .signal-marker .marker-icon {
    font-size: 14px;
  }

  .signal-marker .marker-value {
    font-size: 9px;
  }

  /* Current suburb marker smaller on mobile */
  .map-signal-marker-current {
    padding: 6px 10px;
    font-size: 12px;
  }

  .map-signal-marker-current .marker-emoji {
    font-size: 14px;
  }

  .map-signal-marker-current .marker-label {
    font-size: 12px;
  }
}


/* ============================================
   EXPLORE MAP VIEW
   ============================================ */

.view-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.view-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.view-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.view-icon {
  font-size: 1.1em;
}

/* Map Section */
.map-section {
  padding: var(--space-lg) 0 var(--space-sm);
  margin-bottom: 0;
}

.map-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.map-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.map-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.map-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.legend-dot.completed { background: #22c55e; }
.legend-dot.approved { background: #3b82f6; }
.legend-dot.pending { background: #f59e0b; }
.legend-dot.in-progress { background: #8b5cf6; }
.legend-dot.refused { background: #ef4444; }
.legend-dot.unknown { background: #6b7280; }

.explore-map {
  height: 600px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.map-stat {
  text-align: center;
}

.map-stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.map-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* NOTE: DA markers now use unified .da-marker system defined earlier in this file */

/* Explore map popup */
.explore-popup {
  min-width: 250px;
}

.explore-popup strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.explore-popup .popup-suburb {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.explore-popup .popup-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.explore-popup .popup-status.completed { background: #dcfce7; color: #166534; }
.explore-popup .popup-status.approved { background: #dbeafe; color: #1e40af; }
.explore-popup .popup-status.pending,
.explore-popup .popup-status.under-assessment,
.explore-popup .popup-status.on-exhibition { background: #fef3c7; color: #92400e; }
.explore-popup .popup-status.in-progress { background: #ede9fe; color: #5b21b6; }
.explore-popup .popup-status.refused { background: #fee2e2; color: #991b1b; }
.explore-popup .popup-status.signal-buy { background: #dcfce7; color: #166534; }
.explore-popup .popup-status.signal-wait { background: #fef3c7; color: #92400e; }
.explore-popup .popup-status.signal-sell { background: #fee2e2; color: #991b1b; }

.explore-popup .popup-details {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.explore-popup .popup-btn {
  display: block;
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.explore-popup .popup-btn:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* Suburbs section visibility toggle */
.suburbs-section.hidden {
  display: none;
}

@media (max-width: 768px) {
  .explore-map {
    height: 450px;
    border-radius: 0;
    margin: 0 calc(-1 * var(--space-lg));
  }

  .map-legend {
    gap: var(--space-sm);
    font-size: var(--text-xs);
  }

  .map-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-toggle {
    width: 100%;
  }

  .view-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Map Toggle Button */
.map-toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.map-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.map-toggle-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.map-icon {
  font-size: var(--text-base);
}

/* ============================================
   VISUAL UPGRADE: SUBURB PAGE
   Stunning, trustworthy, signal-first design
   ============================================ */

/* Suburb Hero — dramatic gradient background */
.suburb-hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  position: relative;
}

.suburb-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* Bigger signal badge with subtle glow */
.signal-badge-lg {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14); }
}

.signal-badge-lg.signal-buy {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  color: #059669;
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.signal-badge-lg.signal-sell {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.25) 100%);
  color: #dc2626;
  border: 2px solid rgba(239, 68, 68, 0.4);
}

.signal-badge-lg.signal-wait {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
  color: #d97706;
  border: 2px solid rgba(251, 191, 36, 0.4);
}

/* Signal reason — more prominent */
.signal-reason {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Signal disclaimer — subtle note below signal reason */
.signal-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary, #888);
  margin: var(--space-xs) auto 0;
  max-width: 600px;
  text-align: center;
  opacity: 0.7;
}

/* Data confidence bar — tiny trust indicator below signal */
.data-confidence-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.confidence-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-full);
}

.confidence-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.confidence-chip .chip-dot.chip-warn {
  background: var(--color-warning);
}

.confidence-chip .chip-dot.chip-none {
  background: var(--color-border);
}

/* Active confidence chips — clickable anchor links */
a.confidence-chip-link {
  text-decoration: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

a.confidence-chip-link:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

/* Hero Intelligence — v2 signal chips in suburb hero */
.hero-intelligence {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.hero-intel-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
}

.hero-intel-chip.momentum-up {
  color: var(--color-success);
  border-color: rgba(45, 138, 110, 0.3);
  background: rgba(45, 138, 110, 0.06);
}

.hero-intel-chip.momentum-down {
  color: var(--color-danger);
  border-color: rgba(201, 82, 74, 0.3);
  background: rgba(201, 82, 74, 0.06);
}

.hero-intel-chip.momentum-stable {
  color: var(--color-text-muted);
}

.intel-arrow {
  font-size: var(--text-lg);
  line-height: 1;
}

.intel-conv-count {
  font-weight: 700;
  color: var(--color-primary);
}

.hero-phase-chip {
  color: var(--color-primary-light);
  border-color: rgba(26, 95, 111, 0.3);
  background: var(--color-primary-pale);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Signal Story — narrative format */
.signal-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.story-block {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-border-strong);
}

.story-block.story-why-now {
  border-left-color: var(--color-primary);
}

.story-block.story-what-change {
  border-left-color: var(--color-warning);
}

.story-block.story-pattern {
  border-left-color: var(--color-info);
}

.story-block.story-spillover {
  border-left-color: var(--color-accent);
}

.story-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm) 0;
}

.story-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
}

.story-text:last-child {
  margin-bottom: 0;
}

.story-signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.story-signal {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.story-signal-positive {
  background: rgba(45, 138, 110, 0.1);
  color: var(--color-success);
}

.story-signal-negative {
  background: rgba(201, 82, 74, 0.1);
  color: var(--color-danger);
}

/* ============================================
   SUBURB PAGE: SPACING & POLISH
   Visual rhythm through alternating backgrounds,
   bold section titles, premium vertical spacing
   ============================================ */

/* --- Alternating section backgrounds for visual rhythm --- */
.prices-section,
.livability-section,
.suburb-faq-section {
  background: var(--color-accent-pale);
}

.practical-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-pale) 100%);
}

/* --- Bigger desktop section spacing --- */
.vibe-profile-section,
.data-section,
.development-activity-section,
.prices-section,
.recent-changes-section,
.vibe-markers-section,
.spillover-section,
.livability-section,
.amenities-section,
.practical-section,
.suburb-faq-section {
  padding: var(--space-3xl) 0;
}

/* --- Section titles: short accent bar, not full-width underline --- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
  padding-bottom: var(--space-md);
  border-bottom: none;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* --- Section subtitles: consistent spacing below titles --- */
.section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

/* --- Data attribution: cohesive badge strip --- */
.data-meta {
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: rgba(13, 59, 76, 0.03);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border: none;
  border-top: none;
}

/* --- Hero: more dramatic --- */
.suburb-hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, var(--color-primary-pale) 0%, var(--color-bg) 100%);
}

/* --- Mid-page CTA: visual break with background --- */
.cta-section {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-pale) 50%, var(--color-bg) 100%);
}

/* ============================================
   SUBURB PAGE: VISUAL AUTHORITY & SLEEKNESS
   Consistent separators, tighter rhythm,
   premium typography, section containment
   ============================================ */

/* --- Subtle section dividers: consistent visual rhythm --- */
.data-section,
.development-activity-section,
.prices-section,
.recent-changes-section,
.vibe-markers-section,
.spillover-section,
.livability-section,
.amenities-section,
.practical-section,
.suburb-faq-section,
.cta-section,
.suburb-cta-section {
  border-top: 1px solid var(--color-border);
}

/* Remove divider on sections with tinted backgrounds (the bg shift IS the separator) */
.prices-section,
.livability-section,
.suburb-faq-section,
.cta-section {
  border-top: none;
}

/* --- Section title: bigger, bolder authority --- */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Suburb name: commanding presence --- */
.suburb-name-large {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* --- Signal reason: confident, not wimpy --- */
.signal-reason {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* --- Vibe summary card: the key insight, higher presence --- */
.vibe-summary-card {
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.vibe-summary-text {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --- Tighter hero: no wasted space above the fold --- */
.suburb-hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

/* --- Back link: sleek, not clunky --- */
.back-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--color-primary);
}

/* --- Practical blocks: tighter, more card-like --- */
.practical-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.practical-block-title {
  font-weight: 600;
}

/* --- FAQ section: tighter question spacing --- */
.suburb-faq-section details {
  border-bottom: 1px solid var(--color-border);
}

.suburb-faq-section details:last-child {
  border-bottom: none;
}

/* --- Stat bar: premium card treatment --- */
.stat-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-bar .stat-item {
  border-color: var(--color-border);
}

/* --- Profile blocks (Best for / Watch for): consistent cards --- */
.profile-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

/* --- Suburb page desktop: wider content for authority --- */
@media (min-width: 769px) {
  .suburb-hero .container {
    max-width: 800px;
  }

  .suburb-name-large {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  /* Chapter nav pills: more spacious on desktop */
  .chapter-pill {
    padding: var(--space-sm) var(--space-xl);
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .signal-story {
    grid-template-columns: 1fr;
  }

  .hero-intelligence {
    gap: var(--space-xs);
  }

  .hero-intel-chip {
    font-size: var(--text-xs);
    padding: 2px var(--space-sm);
  }

  /* --- Suburb page: compact mobile vertical rhythm --- */

  /* Kill staggered animations — they make the page feel sluggish */
  .vibe-profile-section,
  .data-section,
  .prices-section,
  .vibe-markers-section,
  .cta-section,
  .practical-section {
    animation: none;
    opacity: 1;
  }

  /* Hero: tighter */
  .suburb-hero {
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
  }

  .suburb-name-large {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .signal-reason {
    font-size: var(--text-base);
  }

  .data-confidence-bar {
    margin-top: var(--space-sm);
    gap: var(--space-sm);
  }

  .map-section {
    padding: var(--space-sm) 0;
  }

  /* Vibe profile: tighter */
  .vibe-profile-section {
    padding-bottom: var(--space-md);
  }

  .vibe-summary-card {
    padding: var(--space-md);
  }

  .vibe-summary-text {
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .profile-block {
    margin-bottom: var(--space-md);
  }

  .profile-block-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
  }

  .locals-take-quote {
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .locals-take-quote::before {
    font-size: 2rem;
  }

  /* All content sections: compact padding on mobile */
  .vibe-profile-section,
  .data-section,
  .development-activity-section,
  .prices-section,
  .recent-changes-section,
  .vibe-markers-section,
  .spillover-section,
  .livability-section,
  .amenities-section,
  .cta-section,
  .practical-section {
    padding: var(--space-lg) 0;
  }

  /* Section titles: compact on mobile */
  .data-section .section-title,
  .prices-section .section-title,
  .vibe-markers-section .section-title,
  .practical-section .section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
  }

  .section-title::after {
    width: 32px;
    height: 2px;
  }

  .section-subtitle {
    font-size: var(--text-base);
    margin-top: 0;
    margin-bottom: var(--space-md);
  }

  /* Story blocks: compact */
  .story-block {
    padding: var(--space-md);
  }

  .signal-story {
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  /* Practical blocks: tighter */
  .practical-block {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
  }

  .practical-block-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
  }

  /* CTA sections: compact */
  .cta-section {
    padding: var(--space-md) 0;
  }

  .suburb-cta-section {
    padding-bottom: var(--space-md);
  }

  .suburb-cta-card {
    padding: var(--space-xl) var(--space-md);
  }

  .suburb-cta-title {
    font-size: 1.2rem;
  }

  /* Price cards: tighter */
  .price-card {
    padding: var(--space-md);
  }

  /* Breakdown items */
  .breakdown-item {
    padding: var(--space-sm) var(--space-md);
  }

  /* Data meta: compact on mobile */
  .data-meta {
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  /* Spillover grid */
  .spillover-card {
    padding: var(--space-sm);
  }
}

/* DA approval velocity stat */
.da-velocity-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.da-velocity-stat strong {
  color: var(--color-text);
}

.velocity-label {
  color: var(--color-text-muted);
}

.velocity-sample {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Suburb DA listing */
.suburb-da-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.suburb-da-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.suburb-da-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.suburb-da-card.da-refused {
  opacity: 0.55;
}

.suburb-da-icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
  line-height: 1;
  margin-top: 2px;
}

.suburb-da-content {
  flex: 1;
  min-width: 0;
}

.suburb-da-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.suburb-da-address {
  font-weight: 600;
  color: var(--color-text);
}

.suburb-da-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.suburb-da-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

.suburb-da-nearby {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px var(--space-xs);
  border-radius: var(--radius-full);
}

.suburb-da-arrow {
  flex-shrink: 0;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.suburb-da-card:hover .suburb-da-arrow {
  opacity: 1;
}

/* Spillover Context Section */
.spillover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.spillover-card {
  display: block;
  text-decoration: none;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.spillover-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.spillover-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.spillover-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}

.spillover-card-body {
  display: flex;
  align-items: center;
}

.spillover-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.spillover-summary {
  grid-column: 1 / -1;
  padding: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xs);
}

.spillover-summary.spillover-candidate {
  color: var(--color-warning);
  background: rgba(198, 139, 44, 0.06);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(198, 139, 44, 0.3);
}

/* Vibe Summary Card — editorial callout */
.vibe-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
}

.vibe-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(13, 59, 76, 0.02) 100%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.vibe-summary-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
}

/* Profile blocks — card-like treatment */
.profile-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.profile-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

/* Best For — polished tags */
.best-for-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.best-for-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.best-for-type {
  flex-shrink: 0;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Local's Take — more editorial */
.locals-take-block {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99, 102, 241, 0.03) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  position: relative;
}

.locals-take-quote {
  font-size: var(--text-xl);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 var(--space-md) 0;
  padding-left: 0;
  position: relative;
}

.locals-take-quote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 0.6;
  margin-bottom: var(--space-xs);
}

/* Section titles — consistent editorial treatment */
.data-section .section-title,
.prices-section .section-title,
.vibe-markers-section .section-title,
.practical-section .section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  display: inline-block;
}

/* Signal Breakdown — clear factor cards */
.breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.breakdown-item:hover {
  box-shadow: var(--shadow-sm);
}

.breakdown-item.good {
  border-left: 4px solid #10b981;
}

.breakdown-item.bad {
  border-left: 4px solid #ef4444;
}

.breakdown-item.neutral {
  border-left: 4px solid var(--color-text-muted);
}

.breakdown-item.missing {
  border-left: 4px solid var(--color-border);
  opacity: 0.6;
}

/* Price Cards — more impact */
.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

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

.price-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin: var(--space-sm) 0;
}

.growth-card.positive .price-value {
  color: #059669;
  font-weight: 700;
}

.growth-card.negative .price-value {
  color: #dc2626;
  font-weight: 700;
}

/* Suburb page sections — consistent desktop spacing (single source of truth) */
.vibe-profile-section,
.data-section,
.development-activity-section,
.prices-section,
.recent-changes-section,
.vibe-markers-section,
.spillover-section,
.livability-section,
.amenities-section,
.cta-section,
.practical-section {
  padding: var(--space-3xl) 0;
}

/* Prices section — warm tinted background */
.prices-section {
  background: var(--color-accent-pale);
}

/* Practical Considerations — subtle gradient */
.practical-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-pale) 100%);
}

.practical-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.practical-block:hover {
  box-shadow: var(--shadow-md);
}

.practical-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 var(--space-lg) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Data source attribution — trust building */
.practical-block .data-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.practical-block .data-meta::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.data-meta a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-primary);
}

.data-meta a:hover {
  border-bottom-style: solid;
}

/* Safety card — compact data grid */
.safety-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

/* CTA Section — more compelling */
.cta-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-pale) 50%, var(--color-bg) 100%);
  text-align: center;
}

.suburb-actions-primary .btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.suburb-actions-primary .btn-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* sectionReveal keyframes — kept for non-suburb pages */
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Suburb sections — instant reveal, no staggered delays (kills "sluggish" feel) */
.vibe-profile-section,
.data-section,
.prices-section,
.vibe-markers-section,
.cta-section,
.practical-section,
.development-activity-section,
.spillover-section,
.livability-section,
.amenities-section,
.recent-changes-section,
.suburb-faq-section {
  animation: none;
  opacity: 1;
}


/* ============================================
   VISUAL UPGRADE: CHECK/ADDRESS PAGE
   Professional report, trustworthy signals
   ============================================ */

/* Report trust line — data provenance */
.report-trust-line {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Framing line — bridges awareness gap for cold searchers */
.report-framing {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-2xl));
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.01em;
}

/* Report header — refined typography */
.report-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.report-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.report-address {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

/* Suburb link pill — more visible */
.report-suburb-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary-pale);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  border: 1px solid rgba(13, 59, 76, 0.1);
}

.report-suburb-link:hover {
  background: var(--color-primary);
  color: var(--color-text-inverted);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Verdict Card — dramatic, confident */
.verdict-card {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-2xl);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.verdict-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.verdict-card.verdict-good {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.verdict-card.verdict-caution {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
}

.verdict-card.verdict-concern {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%);
}

.verdict-icon {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.verdict-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.verdict-explanation {
  font-size: var(--text-lg);
  opacity: 0.92;
  margin: 0;
  line-height: 1.6;
}

/* Critical Alerts — more urgent */
.critical-alerts {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.alerts-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #991b1b;
  margin: 0 0 var(--space-md) 0;
}

.alerts-list li {
  padding: var(--space-sm) 0;
  color: #7f1d1d;
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 500;
}

/* Summary Cards — signal-colored top borders */
.summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  font-family: inherit;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  transition: background var(--transition-base);
}

#dev-summary::before { background: var(--color-info); }
#noise-summary::before { background: var(--color-warning); }
#contam-summary::before { background: var(--color-danger); }
#vibe-summary::before { background: var(--color-success); }

.summary-card:hover,
.summary-card:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  outline: none;
}

.summary-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.summary-level {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

/* Impact level colors — more refined */
.level-none { background: #f0fdf4; color: #166534; }
.level-low { background: #f0fdf4; color: #059669; }
.level-moderate { background: #fefce8; color: #a16207; }
.level-high { background: #fff7ed; color: #c2410c; }
.level-critical { background: #fef2f2; color: #dc2626; }
.level-rising { background: #f0fdf4; color: #059669; }
.level-stable { background: #eef2ff; color: #4338ca; }
.level-declining { background: #fef2f2; color: #dc2626; }

.summary-detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Report Section Cards — refined with subtle accents */
.report-section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.report-section-card:hover {
  box-shadow: var(--shadow-md);
}

/* Section-specific left accents */
#development-section { border-left: 4px solid var(--color-info); }
#building-works-section { border-left: 4px solid #f59e0b; }
#noise-section { border-left: 4px solid #8b5cf6; }
#contamination-section { border-left: 4px solid var(--color-danger); }
#vibe-section { border-left: 4px solid var(--color-success); }
#insights-section { border-left: 4px solid var(--color-primary); }
#hazards-section { border-left: 4px solid #0ea5e9; }

/* Collapsible headers — more polished */
.collapsible .section-header.collapsible-trigger {
  padding-bottom: var(--space-lg);
}

.section-title .section-icon {
  font-size: var(--text-2xl);
}

/* Item cards — cleaner interaction */
.item-card {
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
}

.item-card:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

/* DA Show More — sleek expandable */
.da-show-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, rgba(13, 59, 76, 0.06) 100%);
  border: 1px dashed rgba(13, 59, 76, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.da-show-more:hover {
  background: linear-gradient(135deg, rgba(13, 59, 76, 0.08) 0%, rgba(13, 59, 76, 0.12) 100%);
  border-style: solid;
  box-shadow: var(--shadow-sm);
}

.da-show-more[aria-expanded="true"] {
  border-style: solid;
  background: var(--color-primary-pale);
  border-color: rgba(13, 59, 76, 0.15);
}

.show-more-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.show-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--space-xs);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.show-more-icon {
  font-size: var(--text-base);
  transition: transform var(--transition-base);
}

.da-show-more[aria-expanded="true"] .show-more-icon {
  transform: rotate(180deg);
}

.da-overflow {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
  animation: daOverflowReveal 0.3s ease-out;
}

.da-overflow.hidden {
  display: none;
}

@keyframes daOverflowReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DA Alert — more impactful */
.section-alert {
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--color-accent-pale) 0%, rgba(181, 101, 74, 0.08) 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  font-size: var(--text-base);
}

.section-alert.warning {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: var(--color-danger);
}

/* Data disclaimer — trust design */
.data-disclaimer-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(13, 59, 76, 0.02) 100%);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-sm);
}


.disclaimer-warning {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: #92400e;
  line-height: 1.6;
}

/* New Search Button — more prominent */
.new-search-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.new-search-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Report section entrance animations */
.report-section .container > * {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

.report-section .container > *:nth-child(1) { animation-delay: 0.05s; }
.report-section .container > *:nth-child(2) { animation-delay: 0.1s; }
.report-section .container > *:nth-child(3) { animation-delay: 0.15s; }
.report-section .container > *:nth-child(4) { animation-delay: 0.2s; }
.report-section .container > *:nth-child(5) { animation-delay: 0.25s; }
.report-section .container > *:nth-child(6) { animation-delay: 0.3s; }
.report-section .container > *:nth-child(7) { animation-delay: 0.35s; }
.report-section .container > *:nth-child(8) { animation-delay: 0.4s; }
.report-section .container > *:nth-child(9) { animation-delay: 0.45s; }
.report-section .container > *:nth-child(10) { animation-delay: 0.5s; }
.report-section .container > *:nth-child(11) { animation-delay: 0.55s; }
.report-section .container > *:nth-child(12) { animation-delay: 0.6s; }

/* Mobile adjustments for check/address page */
@media (max-width: 768px) {
  /* Kill staggered report animations — sluggish on mobile */
  .report-section .container > * {
    animation: none;
    opacity: 1;
  }

  /* Report section: tighter overall padding */
  .report-section {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  /* Report header: compact */
  .report-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
  }

  .report-address {
    font-size: clamp(var(--text-xl), 5vw, var(--text-2xl));
    margin-bottom: var(--space-sm);
  }

  /* Verdict card: compact */
  .verdict-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .verdict-icon {
    font-size: 2.5rem;
  }

  .verdict-title {
    font-size: var(--text-xl);
  }

  .verdict-explanation {
    font-size: var(--text-sm);
  }

  /* Critical alerts: tighter */
  .critical-alerts {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .alerts-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
  }

  .alerts-list li {
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
  }

  /* Summary cards */
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .summary-card {
    padding: var(--space-sm) var(--space-sm);
  }

  .summary-icon {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
  }

  .summary-level {
    font-size: var(--text-xs);
    padding: 2px var(--space-sm);
  }

  .summary-detail {
    font-size: var(--text-xs);
  }

  /* Map section: tighter */
  .map-section {
    margin-bottom: var(--space-lg);
  }

  .map-header {
    margin-bottom: var(--space-sm);
  }

  .map-legend {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
  }

  .map-note {
    font-size: var(--text-xs);
    margin-top: var(--space-sm);
  }

  /* Report section cards: compact */
  .report-section-card {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-left-width: 3px;
    border-radius: var(--radius-lg);
  }

  .collapsible .section-header.collapsible-trigger {
    padding-bottom: var(--space-sm);
  }

  .section-title {
    font-size: var(--text-base);
  }

  .section-title .section-icon {
    font-size: var(--text-lg);
  }

  /* Signal bar: compact */
  .suburb-signal-bar {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
  }

  .signal-badge-lg {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
  }

  /* Section alert */
  .section-alert {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  /* Item cards */
  .item-card {
    padding: var(--space-sm) var(--space-md);
  }

  /* Disclaimer */
  .disclaimer-warning {
    padding: var(--space-md);
    margin-top: var(--space-md);
  }

  /* New search button */
  .new-search {
    margin-top: var(--space-lg);
  }

  .new-search-btn {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-base);
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .report-section {
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .report-header {
    margin-bottom: var(--space-lg);
  }

  .verdict-card {
    padding: var(--space-md);
  }

  .verdict-title {
    font-size: var(--text-lg);
  }

  .report-section-card {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
  }

  .practical-block {
    padding: var(--space-md);
  }

  .summary-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   SUBURB SIGNAL BAR — v2 intelligence strip
   ============================================ */
.suburb-signal-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  justify-content: center;
}

.signal-bar-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signal-bar-badge.signal-buy {
  background: rgba(45, 138, 110, 0.15);
  color: var(--color-success);
}

.signal-bar-badge.signal-sell {
  background: rgba(201, 82, 74, 0.15);
  color: var(--color-danger);
}

.signal-bar-badge.signal-wait {
  background: rgba(198, 139, 44, 0.15);
  color: var(--color-warning);
}

.signal-bar-chip {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px var(--space-sm);
  background: var(--color-primary-pale);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.signal-bar-phase {
  background: rgba(74, 124, 155, 0.12);
  color: var(--color-info);
}

.signal-bar-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-left: auto;
  white-space: nowrap;
}

.signal-bar-link:hover {
  color: var(--color-accent);
}

/* Synthesis text — kept for verdict section, container removed */
.synthesis-text {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  display: inline-block;
}

.synthesis-good {
  background: rgba(45, 138, 110, 0.1);
  color: var(--color-success);
}

.synthesis-caution {
  background: rgba(198, 139, 44, 0.1);
  color: var(--color-warning);
}

.synthesis-wait {
  background: rgba(74, 124, 155, 0.1);
  color: var(--color-info);
}

.synthesis-concern {
  background: rgba(201, 82, 74, 0.1);
  color: var(--color-danger);
}

/* Mobile adjustments for signal bar */
@media (max-width: 640px) {
  .suburb-signal-bar {
    justify-content: flex-start;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }

  .signal-bar-link {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding-top: var(--space-xs);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xs);
  }
}


/* ============================================
   PDF DOWNLOAD BUTTONS
   ============================================ */
.report-download-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.download-standard {
  color: #0d9488;
  background: transparent;
  border-color: #0d9488;
}

.download-standard:hover {
  background: #0d9488;
  color: var(--color-text-inverted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.download-professional {
  color: var(--color-text-inverted);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.download-professional:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pro-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.download-standard .pro-label {
  background: rgba(13, 148, 136, 0.1);
}

.download-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.download-btn.loading .dl-btn-text::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: dl-spin 0.8s linear infinite;
  margin-right: var(--space-xs);
  vertical-align: middle;
}

@keyframes dl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .report-download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-btn {
    justify-content: center;
  }
}

/* ============================================
   SIGNAL DOT MARKERS (gated map)
   ============================================ */
.signal-dot {
  border-radius: 50%;
  opacity: 0.7;
  border: 1.5px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.signal-dot--da {
  background: var(--color-primary-light);
}

.signal-dot--venue {
  background: #d97706;
}

.signal-dot--contam {
  background: #dc2626;
}

.map-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  font-style: italic;
}

.map-note-link {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-note-link:hover {
  color: var(--color-accent);
}

/* Subtle report links in gated sections */
.gated-report-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.gated-report-link:hover {
  text-decoration: underline;
}

/* Legend dots for gated map */
.legend-dot.da-signal {
  background: var(--color-primary-light);
}

.legend-dot.venue-signal {
  background: #d97706;
}

.legend-dot.contam-signal {
  background: #dc2626;
}

/* ============================================
   GATED CONTENT SUMMARIES
   ============================================ */
.gated-summary {
  padding: var(--space-sm) 0;
}

.gated-stat-row {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.gated-stat {
  display: flex;
  flex-direction: column;
}

.gated-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1;
}

.gated-stat-value.gated-stat-warn {
  color: #d97706;
}

.gated-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.gated-headline-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary-light);
  margin-bottom: var(--space-sm);
}

.gated-headline-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gated-headline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gated-headline-content strong {
  color: var(--color-text);
  font-size: 0.95rem;
}

.gated-headline-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.gated-more {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: var(--space-xs);
}

.gated-clear {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #047857;
  font-weight: 500;
}

.gated-clear-icon {
  font-size: 1.2rem;
  color: #047857;
}

.gated-type-breakdown {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

/* Gated trajectory */
.gated-trajectory-display {
  margin-bottom: var(--space-sm);
}

.gated-trajectory-signal {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.gated-trajectory-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gated-trajectory-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.gated-trajectory-value.rising { color: #047857; }
.gated-trajectory-value.stable { color: #d97706; }
.gated-trajectory-value.declining { color: #dc2626; }

.gated-trajectory-point {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* ============================================
   OFFER / PURCHASE SECTION
   ============================================ */
.offer-section {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  position: relative;
}

.offer-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Positioning line — core differentiator above offer */
.offer-positioning {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.offer-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.offer-lead {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Tier cards */
.offer-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 640px) {
  .offer-tiers {
    grid-template-columns: 1fr;
  }
}

.offer-tier {
  padding: var(--space-lg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.offer-tier--standard {
  background: var(--color-surface);
}

.offer-tier--professional {
  background: var(--color-primary-pale);
  border-color: var(--color-primary-light);
}

.offer-tier-header {
  margin-bottom: var(--space-sm);
}

.offer-tier-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.offer-price-original {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

.offer-price-current {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.offer-intro-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-pale);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.offer-tier-tagline {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.offer-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  flex-grow: 1;
}

.offer-features li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.offer-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 600;
}

.offer-btn {
  display: block;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.offer-btn--standard {
  background: var(--color-primary);
  color: white;
}

.offer-btn--standard:hover {
  background: var(--color-primary-light);
}

.offer-btn--professional {
  background: var(--color-accent);
  color: white;
}

.offer-btn--professional:hover {
  background: var(--color-accent-hover);
}

/* Anchor and trust lines */
.offer-anchor {
  margin-bottom: var(--space-md);
}

.offer-anchor-text {
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: center;
  line-height: 1.6;
}

.offer-trust {
  text-align: center;
}

.offer-intro-note {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.offer-data-line {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.offer-sources-link {
  color: var(--color-primary-light);
}

/* ============================================
   SUBURB FAQ SECTION
   ============================================ */
.suburb-faq-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}

.suburb-faq-section .section-title {
  margin-bottom: var(--space-lg);
}

.suburb-faq-section .faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.suburb-faq-section .faq-item {
  border-bottom: 1px solid var(--color-border);
}

.suburb-faq-section .faq-question {
  display: block;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.suburb-faq-section .faq-question::-webkit-details-marker {
  display: none;
}

.suburb-faq-section .faq-question::before {
  content: '+';
  display: inline-block;
  width: 1.5em;
  font-weight: 400;
  color: var(--color-accent);
}

.suburb-faq-section details[open] > .faq-question::before {
  content: '\2212';
}

.suburb-faq-section .faq-answer {
  padding: 0 0 var(--space-md) 1.5em;
}

.suburb-faq-section .faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   SUBURB PAGE CTA
   ============================================ */
.suburb-cta-section {
  padding: var(--space-2xl) 0;
}

.suburb-cta-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a2f3d 100%);
  border: none;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 32px rgba(13, 59, 76, 0.25);
}

.suburb-cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--color-text-inverted);
  margin-bottom: var(--space-sm);
}

.suburb-cta-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.suburb-cta-btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  background: white;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.suburb-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
}

/* Suburb CTA address forms — dark background overrides */
.suburb-cta-address-form.address-form { max-width: 100%; }
.suburb-cta-address-form .input-wrapper { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.suburb-cta-address-form .input-wrapper:focus-within { border-color: rgba(255,255,255,0.6); box-shadow: none; }
.suburb-cta-address-form .address-input { color: #fff; }
.suburb-cta-address-form .address-input::placeholder { color: rgba(255,255,255,0.6); }
.suburb-cta-address-form .address-hint { color: rgba(255,255,255,0.6); }
.suburb-cta-address-form .address-hint::before { color: rgba(255,255,255,0.8); }

.suburb-mid-cta { max-width: 640px; margin: 0 auto; }
.suburb-mid-address-form.address-form { max-width: 100%; }

/* ============================================
   ADDRESS PAGE: Conversion-optimised layout
   Sticky CTA + desktop sidebar
   ============================================ */

/* Mobile sticky CTA pill */
.report-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.report-sticky-cta.visible {
  transform: translateY(0);
}

.report-sticky-cta.hidden {
  transform: translateY(100%);
}

.report-sticky-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.2s;
}

.report-sticky-cta-btn:hover {
  opacity: 0.85;
}

/* Desktop: hide mobile sticky CTA */
@media (min-width: 1025px) {
  .report-sticky-cta {
    display: none;
  }
}

/* Mobile: report bottom padding for sticky CTA */
@media (max-width: 1024px) {
  .report-section {
    padding-bottom: 70px;
  }
}

/* ============================================
   CHAPTER NAVIGATION & STRUCTURE
   Suburb page chapters + sticky nav + context bar
   ============================================ */

/* Chapter wrappers — no visual change on desktop, structure only */
.chapter {
  position: relative;
}

/* Chapter nav — sticky horizontal pill bar (visible on all sizes) */
.chapter-nav {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
  display: block;
}

.chapter-nav-inner {
  display: flex;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.chapter-nav-track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  justify-content: center;
}

.chapter-nav-track::-webkit-scrollbar {
  display: none;
}

/* Subtle persistent CTA in chapter nav — desktop only */
.chapter-cta {
  display: none;
  flex-shrink: 0;
  margin-left: var(--space-md);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.chapter-cta:hover {
  background: var(--color-accent);
  color: #fff;
  opacity: 1;
}

@media (min-width: 769px) {
  .chapter-cta {
    display: inline-flex;
    align-items: center;
  }
}

.chapter-pill {
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.chapter-pill:hover {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

.chapter-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(13, 59, 76, 0.2);
}

/* Desktop sticky context bar — sits below the fixed nav (56px) */
.desktop-context-bar {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.desktop-context-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.desktop-context-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.context-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.context-suburb {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 400;
}

.context-signal {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.context-signal.signal-buy {
  background: var(--color-success-pale, #e8f5e9);
  color: var(--color-success, #2e7d32);
}

.context-signal.signal-wait {
  background: var(--color-warning-pale, #fff3e0);
  color: var(--color-warning, #ef6c00);
}

.context-signal.signal-sell {
  background: var(--color-danger-pale, #fce4ec);
  color: var(--color-danger, #c62828);
}

.context-price {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-left: auto;
}

.context-cta {
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.2s;
}

.context-cta:hover {
  opacity: 0.85;
}

/* Mobile sticky bottom CTA */
.mobile-sticky-cta {
  display: none; /* hidden on desktop */
}

/* ---- MOBILE: Show chapter nav + sticky CTA ---- */
@media (max-width: 768px) {
  .chapter-nav {
    display: block;
  }

  .chapter-nav-track {
    justify-content: flex-start;
  }

  .chapter-pill {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
  }

  /* Hide desktop context bar on mobile */
  .desktop-context-bar {
    display: none !important;
  }

  /* Hide inline CTAs on mobile — replaced by sticky bottom */
  .cta-section,
  .suburb-cta-section {
    display: none;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  }

  .mobile-sticky-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }

  /* Add bottom padding to main so content doesn't hide behind sticky CTA */
  main {
    padding-bottom: 70px;
  }

  /* Compact density for later chapters on mobile */
  #ch-risks .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  #ch-risks .section-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
  }

  #ch-risks .practical-block {
    padding: var(--space-md) 0;
  }

  #ch-risks .practical-block-title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
  }

  /* Compact the livability section in ch-living */
  #ch-living .livability-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}

/* ---- DESKTOP: Show chapter nav, hide mobile-only elements ---- */
@media (min-width: 769px) {
  .chapter-nav {
    display: block;
  }

  .desktop-context-bar {
    display: none !important;
  }

  .mobile-sticky-cta {
    display: none;
  }
}

/* ============================================
   MOBILE UX POLISH — Feb 2026 review fixes
   ============================================ */

/* Fix 2: Trust badges tighter on small screens */
@media (max-width: 480px) {
  .report-trust-line {
    gap: var(--space-sm);
  }

  .trust-badge {
    font-size: 0.7rem;
  }
}

/* Fix 3: Filter pill signal key for mobile (replaces hidden tooltips) */
.filter-signal-key {
  display: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .filter-signal-key {
    display: block;
  }
}

/* Fix 4: Footer links touch-friendly */
/* Legacy footer-links/footer-research removed — replaced by .footer-col */

/* Fix 5: Long address word-break in report header */
.report-address {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Fix 6: Insights nav pill touch sizing */
.ins-nav-pill {
  min-height: 36px;
  padding: var(--space-sm) var(--space-md);
}

/* Fix 7: Bottom-sheet drag handle */
@media (max-width: 640px) {
  .modal-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--color-border-strong);
    border-radius: 2px;
    margin: var(--space-sm) auto var(--space-xs);
    flex-shrink: 0;
  }

  .suburb-detail-modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--color-border-strong);
    border-radius: 2px;
    margin: var(--space-sm) auto var(--space-xs);
    flex-shrink: 0;
  }
}

/* ============================================
   MOBILE MAP EXPERIENCE
   Two-finger guard, fullscreen, bigger controls
   ============================================ */

/* Two-finger overlay — appears on single-finger touch */
.map-mobile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 800;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.map-mobile-overlay.visible {
  opacity: 1;
}

.map-mobile-overlay span {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  text-align: center;
}

/* Fullscreen expand button */
.map-fullscreen-btn {
  display: none;
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 900;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  .map-fullscreen-btn {
    display: flex;
  }
}

.map-fullscreen-btn:active {
  background: var(--color-surface);
}

/* Fullscreen active state */
.map-fullscreen-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.map-fullscreen-active .map,
.map-fullscreen-active .suburb-map,
.map-fullscreen-active .explore-map {
  height: 100vh !important;
  border-radius: 0 !important;
}

.map-fullscreen-active .map-mobile-overlay {
  border-radius: 0;
}

.map-fullscreen-active .map-fullscreen-btn {
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  z-index: 10001;
}

/* Hide other page content when map is fullscreen */
body.map-fullscreen-open {
  overflow: hidden;
}

/* Touch devices: bigger Leaflet zoom controls */
@media (pointer: coarse) {
  .leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 20px !important;
  }

  .leaflet-control-zoom {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  }

  /* Bigger markers on touch screens */
  .marker-address {
    width: 22px !important;
    height: 22px !important;
  }

  .signal-dot {
    width: 14px !important;
    height: 14px !important;
  }

  .da-marker {
    width: 18px !important;
    height: 18px !important;
  }

  /* Bigger Leaflet attribution — prevent tiny unreadable text */
  .leaflet-control-attribution {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
}

/* Mobile maps — full-bleed, correct heights, consistent layout */
@media (max-width: 768px) {
  /* All maps: full-bleed edge-to-edge on mobile */
  .map-container {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .map {
    height: 300px;
    border-radius: 0;
  }

  .map-section .map-legend {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .suburb-map {
    height: 280px;
  }

  .explore-map {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .map {
    height: 260px;
  }

  .suburb-map {
    height: 250px;
  }
}

/* Fix 9: Suburb card consistent heights on tablet */
@media (min-width: 641px) {
  .suburb-card {
    display: flex;
    flex-direction: column;
  }

  .suburb-card-stats {
    margin-top: auto;
  }
}

/* Fix 10: Gated content use CSS variables instead of raw values */
.gated-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
}

.gated-stat-label {
  font-size: var(--text-sm);
}

.gated-headline-content strong {
  font-size: var(--text-base);
}

.gated-headline-meta {
  font-size: var(--text-sm);
}

.gated-more {
  font-size: var(--text-sm);
}

.gated-type-breakdown {
  font-size: var(--text-base);
}

.gated-trajectory-label {
  font-size: var(--text-xs);
}

.gated-trajectory-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

.gated-trajectory-point {
  font-size: var(--text-base);
}

.offer-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

.offer-lead {
  font-size: var(--text-base);
}

.offer-tier-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.offer-price-current {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
}

.offer-price-original {
  font-size: var(--text-base);
}

.offer-intro-badge {
  font-size: var(--text-xs);
}

.offer-tier-tagline {
  font-size: var(--text-base);
}

/* Fix 11 + 14: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .report-section .container > * {
    animation: none;
    opacity: 1;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Fix 12: Explore map safe area on full-bleed */
@media (max-width: 768px) {
  .explore-map {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Fix 13: Comparison table readable on small phones */
@media (max-width: 380px) {
  .compare-table {
    font-size: var(--text-xs);
  }

  .compare-table th,
  .compare-table td {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* Fix 15: text-wrap balance fallback for older browsers */
.landing-hero-title,
.landing-section-title,
.landing-final-title {
  max-width: 20em;
  margin-left: auto;
  margin-right: auto;
}

