/* ═══════════════════════════════════════════
   RESET & BASE — LIGHT MODE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Google Sans", sans-serif !important;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body,
.leaflet-container {
  font-family: "Google Sans", sans-serif !important;
  font-optical-sizing: auto;
  background: #f0f4f8;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
}

:root {
  --zonely-green: #01A76B;
  --zonely-green-dark: #018E5B;
  --zonely-green-aa: #007A51;
  --zonely-green-deep: #005D3D;
  --zonely-green-soft: #E8F8F1;
  --zonely-green-glow: rgba(1, 167, 107, 0.15);
  --zonely-ink: #0F172A;
  --zonely-ink-2: #1E293B;
  --zonely-muted: #64748B;
  --zonely-slate: #94A3B8;
  --zonely-border: rgba(15, 23, 42, 0.08);
  --zl-page: #EFF5F3;
  --zl-surface: rgba(255, 255, 255, 0.92);
  --zl-surface-solid: #FFFFFF;
  --zl-surface-soft: #F7FAF9;
  --zl-surface-tint: #ECF8F3;
  --zl-line: rgba(15, 23, 42, 0.1);
  --zl-line-strong: rgba(15, 23, 42, 0.16);
  --zl-focus: rgba(1, 167, 107, 0.24);
  --zl-radius-xs: 6px;
  --zl-radius-sm: 8px;
  --zl-radius-md: 12px;
  --zl-radius-lg: 16px;
  --zl-radius-xl: 18px;
  --zl-radius-pill: 999px;
  --zl-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --zl-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --zl-fast: 140ms;
  --zl-med: 220ms;
  --zl-slow: 420ms;
  --zl-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --zl-shadow-md: 0 8px 22px rgba(15, 23, 42, 0.1);
  --zl-shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.14);
  --zl-shadow-green: 0 14px 32px rgba(1, 167, 107, 0.22);

  /* Premium Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 12px 30px -10px rgba(1, 167, 107, 0.2), 0 4px 12px -5px rgba(1, 167, 107, 0.1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 24px;
}

:focus-visible {
  outline: 3px solid var(--zl-focus) !important;
  outline-offset: 3px !important;
}

/* ═══════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════ */
#map {
  width: 100vw;
  height: 100vh;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.24s ease;
}

body.is-preloading #map {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

body.auth-modal-open #map {
  filter: blur(9px) saturate(1.08);
}

/* Remove ugly browser focus rings from clicked map SVGs/Paths */
.leaflet-container *:focus,
.leaflet-container *:focus-visible,
path:focus,
svg:focus {
  outline: none !important;
}

#map .leaflet-tile-pane {
  filter: hue-rotate(15deg) saturate(1.2) sepia(0.15) brightness(1.02);
}

/* Hide lat/lng grid lines — tile borders visible during flyTo transitions */
.leaflet-container {
  background: #2d4a3e !important;
}

.leaflet-tile {
  outline: none !important;
  border: none !important;
}

.white-labels {
  filter: invert(1) brightness(2) contrast(1.5);
}

.leaflet-pane.labels-zooming .white-labels {
  opacity: 0 !important;
}

.glowing-boundary {
  filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.4));
}

.search-home-pin {
  width: 32px;
  height: 32px;
  background: var(--zonely-green-aa);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.search-home-icon-wrapper {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #FFFFFF !important;
  margin: -1px 0 0 1px; /* Center with a lower profile */
}

.hover-frosted {
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4));
}

.leaflet-zoom-animated path,
path.signal-fill {
  transition: opacity 0.4s ease, fill-opacity 0.4s ease, fill 0.4s ease;
}


/* ═══════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════ */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #020617;
  /* Deep dark background for the globe */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.6s;
}

#loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  pointer-events: none;
}



.loader-logo-full {
  width: 168px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  z-index: 2;
  margin-bottom: 8px;
}

#loader-percentage {
  font-family: "Google Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
  z-index: 2;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  pointer-events: none;
}

#top-bar>* {
  pointer-events: auto;
}

#logo {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* ═══════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════ */
#search-container {
  position: relative;
  width: min(420px, calc(100% - 200px));
}

#search-input {
  width: 100%;
  padding: 14px 16px 14px 52px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--zonely-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-input::placeholder {
  color: var(--zonely-muted);
}

#search-input:focus {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--zonely-green);
  box-shadow: var(--shadow-premium);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
}

#search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 20px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--glass-border);
  transform-origin: top;
  animation: searchShow 0.3s var(--zl-ease-expo);
}

@keyframes searchShow {
  from {
    opacity: 0;
    transform: scaleY(0.9) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

#search-results.show {
  display: block;
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--zonely-ink);
  font-weight: 500;
}

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

.search-result-item:hover {
  background: var(--zonely-green-soft);
  padding-left: 24px;
}

.search-result-item .result-icon {
  width: 16px;
  height: 16px;
  color: #01A76B;
  flex-shrink: 0;
}

.search-result-item .result-label {
  flex: 1;
  font-weight: 500;
}

.search-result-item .result-type {
  font-size: 11px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* User icon */
#user-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--zl-ease-expo);
}

#user-icon:hover {
  background: #ffffff;
  box-shadow: var(--shadow-premium);
  transform: translateY(-2px);
}

#user-icon:active {
  transform: scale(0.95);
}

.profile-menu {
  position: fixed;
  top: 74px;
  right: 16px;
  z-index: 3400;
  width: 240px;
  padding: 16px 8px 8px;
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  transform-origin: top right;
  animation: menuShow 0.3s var(--zl-ease-expo);
}

@keyframes menuShow {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.profile-menu.show {
  display: block;
}

.profile-status {
  margin-bottom: 12px;
  padding: 0 12px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-status.logged-in {
  color: var(--zonely-ink);
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
}

.profile-email {
  display: block;
  margin-top: 2px;
  color: var(--zonely-muted);
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-action {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  color: var(--zonely-green);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}

.profile-menu-action:hover {
  background: rgba(1, 167, 107, 0.08);
  color: var(--zonely-green-dark);
}

.profile-menu-action svg {
  flex: 0 0 auto;
}

.profile-menu-action.logout {
  color: #EF4444;
}

.profile-menu-action.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #B91C1C;
}

/* ═══════════════════════════════════════════
   LEFT CONTROLS
   ═══════════════════════════════════════════ */
#left-controls {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#zoom-controls {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#zoom-controls button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#zoom-controls button:hover {
  background: rgba(1, 167, 107, 0.05);
  color: #01A76B;
}

#zoom-controls button:active {
  transform: scale(0.92);
  background: rgba(1, 167, 107, 0.1);
}


/* ═══════════════════════════════════════════
   FILTER AREA — BOTTOM LEFT
   ═══════════════════════════════════════════ */
#filter-area {
  position: fixed;
  bottom: 16px;
  left: 14px;
  z-index: 1000;
}

#filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  background: var(--zonely-green);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#filter-btn:hover {
  background: var(--zonely-green-dark);
  box-shadow: 0 12px 30px rgba(1, 167, 107, 0.4);
  transform: translateY(-2px);
}

#filter-btn:active {
  transform: translateY(0) scale(0.96);
}

#filter-chevron {
  transition: transform 0.2s;
}

#filter-btn.open #filter-chevron {
  transform: rotate(180deg);
}

#filter-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 520px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: none;
  animation: slideUp 0.2s ease;
}

#filter-panel.show {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.filter-icons-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-icon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 2px solid #f3f4f6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.filter-icon-item[data-signal="buy"]:not(.unchecked) {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
}

.filter-icon-item[data-signal="neutral"]:not(.unchecked) {
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.2);
}

.filter-icon-item[data-signal="sell"]:not(.unchecked) {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
}

.filter-icon-item.unchecked {
  opacity: 0.5;
  filter: grayscale(1);
  background: #f9fafb;
  border-color: transparent;
  box-shadow: none;
}

.filter-icon-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-icon-item:active {
  transform: scale(0.95);
}

.filter-icon-item input[type="checkbox"] {
  display: none;
}

.weather-icon {
  font-size: 22px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.confidence-section {
  margin-bottom: 16px;
}

.confidence-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

.confidence-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: #1a1a2e;
  outline: none;
}

.confidence-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a1a2e;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.confidence-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #01A76B;
  font-weight: 600;
  margin-top: 6px;
}

#filter-reset-btn {
  padding: 8px 24px;
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #01A76B;
  cursor: pointer;
  transition: background 0.15s;
}

#filter-reset-btn:hover {
  background: #f0f4ff;
}

/* Time selector CSS removed */

/* Override Leaflet default icon wrapper */
.forecast-marker-wrapper {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  pointer-events: none !important;
}

/* ═══════════════════════════════════════════
   FORECAST MARKER CARDS (on map)
   ═══════════════════════════════════════════ */
.forecast-marker {
  position: relative !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--glass-blur)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
  border-radius: 20px !important;
  padding: 12px 12px !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--glass-border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: max-content !important;
  flex-shrink: 0 !important;
  transform-origin: bottom center !important;
  transition: all 0.3s var(--zl-ease-expo) !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.forecast-marker.map-marker {
  transform: translate(-50%, calc(-100% - 8px));
}

.forecast-marker.map-marker:hover {
  transform: translate(-50%, calc(-100% - 8px)) scale(1.05);
}

.forecast-marker:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: var(--shadow-premium) !important;
}

.forecast-marker.tooltip-marker {
  transform: scale(0.96);
  border-radius: 20px !important;
  padding: 12px 12px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(1, 167, 107, 0.12) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.03) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.forecast-marker.tooltip-marker:hover {
  transform: scale(1.02);
}

.marker-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.marker-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.marker-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -16px;
}

.marker-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.marker-full-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
  display: block;
  flex: 1;
  max-width: 220px;
}

.marker-full-name.buy-color {
  color: #00A86B;
}

.marker-full-name.sell-color {
  color: #F04438;
}

.marker-full-name.neutral-color {
  color: #A8491D;
}

.marker-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.marker-badge.strong-buy {
  background: #D1FAE5;
  color: #065F46;
}

.marker-badge.buy {
  background: #D1FAE5;
  color: #065F46;
}

.marker-badge.neutral {
  background: #F3F4F6;
  color: #6B7280;
}

.marker-badge.sell {
  background: #FEE2E2;
  color: #991B1B;
}

.marker-badge.strong-sell {
  background: #FEE2E2;
  color: #991B1B;
}

.marker-data-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 0 0 0;
  width: 100%;
}

.marker-main-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marker-change {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.marker-change.negative {
  color: #F04438;
}

.marker-change.positive {
  color: #00A86B;
}

.marker-change.neutral {
  color: #F59E0B;
}

.marker-change span.pct {
  font-size: 16px;
  font-weight: 700;
  vertical-align: super;
  margin-left: 1px;
}

.marker-timeline {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
}

.marker-weather {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.marker-signal-icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.2;
}

.marker-upgrade-row {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid #F3F4F6;
}

.marker-upgrade-row .up-btn {
  background: #01A76B;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  width: 100%;
  border: none !important;
  border-radius: 16px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.marker-upgrade-row .up-btn:hover {
  background: #018E5B;
}

.auth-marker-card,
.auth-tooltip-card {
  position: relative;
  min-width: 140px;
  max-width: 180px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
  color: var(--zonely-ink);
  pointer-events: auto;
}

.auth-marker-card {
  transform: translate(-50%, calc(-100% - 8px));
}

.auth-marker-card::after,
.auth-tooltip-card::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: -9px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 9px solid transparent !important;
  border-right: 9px solid transparent !important;
  border-top: 9px solid var(--glass-bg) !important;
  pointer-events: none !important;
  filter: drop-shadow(0 1px 0 var(--glass-border)) !important;
}

.auth-tooltip-eyebrow {
  display: block;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-tooltip-title {
  color: var(--zonely-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 8px;
}

.auth-tooltip-copy {
  color: var(--zonely-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.auth-tooltip-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-tooltip-actions .up-btn,
.auth-tooltip-actions .secondary-auth-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}

/* Pointer triangle at bottom */
.forecast-marker::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: -11px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 10px solid transparent !important;
  border-right: 10px solid transparent !important;
  border-top: 10px solid var(--glass-bg) !important;
  pointer-events: none !important;
  filter: drop-shadow(0 1px 0 var(--glass-border)) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════
   UPGRADE PLAN TOOLTIP (Hover)
   ═══════════════════════════════════════════ */
.leaflet-upgrade-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.leaflet-upgrade-tooltip::before,
.leaflet-upgrade-tooltip::after {
  display: none !important;
  /* remove leaflet default triangle */
}

.upgrade-tooltip-card {
  background: #fdfcfb;
  padding: 16px 20px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
  position: relative;
  font-family: "Google Sans", sans-serif;
  top: -15px;
  /* Offset to clear mouse properly */
}

.upgrade-tooltip-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fdfcfb;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

.up-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.up-name {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  margin-right: 12px;
}

.up-icon-group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  border-radius: 12px;
  padding: 4px 8px;
}

.up-cloud {
  font-size: 16px;
  opacity: 0.8;
}

.up-question {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  right: 6px;
  top: 6px;
}

.up-btn {
  background: #01A76B;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  width: 100%;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.up-btn:hover {
  background: #018E5B;
}

.secondary-auth-btn {
  background: rgba(1, 167, 107, 0.08);
  color: #018E5B;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.secondary-auth-btn:hover {
  background: rgba(1, 167, 107, 0.14);
  color: #016B45;
}

/* ═══════════════════════════════════════════
   DETAIL PANEL — LIGHT MODE
   ═══════════════════════════════════════════ */
#detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  height: 100vh;
  z-index: 2000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.08);
  border-left: 1px solid var(--glass-border);
}

#detail-panel.open {
  transform: translateX(0);
}

.sidebar-toggle-btn {
  position: fixed;
  top: 50%;
  right: 0;
  width: 44px;
  height: 88px;
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--zonely-green);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-toggle-btn.visible {
  display: flex;
}

.sidebar-toggle-btn.panel-open {
  right: 520px;
  border-radius: 18px 0 0 18px;
}

.sidebar-toggle-btn.panel-open .sidebar-toggle-icon {
  transform: rotate(180deg);
}

.sidebar-toggle-btn:hover {
  background: #ffffff;
  box-shadow: -6px 10px 30px rgba(15, 23, 42, 0.2);
}

.sidebar-toggle-icon {
  transition: transform 0.2s ease;
}

#detail-panel::-webkit-scrollbar {
  width: 4px;
}

#detail-panel::-webkit-scrollbar-track {
  background: transparent;
}

#detail-panel::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* Panel top bar */
.panel-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

#panel-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #01A76B;
  cursor: pointer;
}

.panel-top-actions {
  display: flex;
  gap: 4px;
}

.panel-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.panel-action-btn:hover {
  background: #f3f4f6;
}

/* Panel header */
.panel-header {
  padding: 16px 20px 0;
}

.panel-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-area-name {
  font-family: "Google Sans", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.panel-signal-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.panel-signal-badge.strong-buy {
  background: #D1FAE5;
  color: #065F46;
}

.panel-signal-badge.buy {
  background: #D1FAE5;
  color: #065F46;
}

.panel-signal-badge.neutral {
  background: #F3F4F6;
  color: #6B7280;
}

.panel-signal-badge.sell {
  background: #FEE2E2;
  color: #991B1B;
}

.panel-signal-badge.strong-sell {
  background: #FEE2E2;
  color: #991B1B;
}

.panel-weather-icon {
  font-size: 28px;
}

.flood-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flood-risk-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

/* Panel time tabs */


/* Panel body */
.panel-body {
  padding: 16px 20px 40px;
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════
   LOCKED STATE STYLES (Panel)
   ═══════════════════════════════════════════ */
.panel-locked-summary {
  display: none;
  padding-bottom: 24px;
}

.locked .panel-locked-summary {
  display: block;
}

.panel-locked-summary h4 {
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.panel-locked-summary p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 16px;
}

.panel-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.panel-auth-actions button {
  flex: 1;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-locked-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.locked .panel-locked-overlay {
  display: flex;
}

.locked .panel-locked-overlay .up-btn {
  box-shadow: 0 4px 12px rgba(1, 167, 107, 0.4);
}

.panel-auth-lock-card {
  width: min(100%, 360px);
  margin-top: 230px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.panel-auth-logo {
  width: 142px;
  height: auto;
  display: block;
  margin-bottom: 18px;
  filter: brightness(0) invert(39%) sepia(74%) saturate(2333%) hue-rotate(134deg) brightness(95%) contrast(101%);
}

.panel-auth-lock-card h3 {
  color: var(--zonely-ink);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.panel-auth-lock-card p {
  color: var(--zonely-muted);
  font-size: 14px;
  line-height: 1.48;
  margin-bottom: 18px;
}

.auth-locked-placeholder {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(1, 167, 107, 0.08), rgba(255, 255, 255, 0.8));
  border-radius: 16px;
  color: #047857;
  font-size: 14px;
  font-weight: 800;
}

/* Blurring the content — handled by new rpt-* selectors at bottom of file */

/* ═══════════════════════════════════════════
   GAUGE + FORECAST ROW
   ═══════════════════════════════════════════ */
.gauge-forecast-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.gauge-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-container canvas {
  width: 170px;
  height: 110px;
}

.gauge-legend {
  font-size: 10px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.gauge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
}

.gauge-dot.current {
  background: #01A76B;
}

.gauge-dot.forecast {
  background: #8B5CF6;
}

.forecast-text-container {
  flex: 1;
}

.forecast-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  font-style: italic;
}

.forecast-body {
  font-size: 12px;
  line-height: 1.6;
  color: #4B5563;
}

.forecast-body strong {
  color: #01A76B;
}

.forecast-body em {
  font-style: italic;
}

.intel-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.intel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
  color: #334155;
}

.intel-row:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════
   RECOMMENDATIONS
   ═══════════════════════════════════════════ */
.recommendations-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.section-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.rec-text {
  font-size: 12px;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 8px;
}

.rec-text strong {
  color: #1a1a2e;
}

/* ═══════════════════════════════════════════
   CHART SECTION IN PANEL
   ═══════════════════════════════════════════ */
.chart-panel-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.chart-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}

.chart-header-actions {
  display: flex;
  gap: 4px;
}

.chart-info-btn,
.chart-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.chart-info-btn:hover,
.chart-collapse-btn:hover {
  background: #f3f4f6;
}



.chart-wrapper {
  height: 180px;
  margin-bottom: 8px;
}

.chart-legend-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  color: #6B7280;
}

.chart-leg {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chart-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-leg-dot.seller {
  background: #22C55E;
}

.chart-leg-dot.buyer {
  background: #EF4444;
}

/* ═══════════════════════════════════════════
   PANEL OVERLAY
   ═══════════════════════════════════════════ */
#panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#panel-overlay.show {
  opacity: 1;
  pointer-events: none;
}

/* Drag handle (mobile) */
.drag-handle {
  display: none;
  width: 100%;
  height: 32px;
  /* Large hit area */
  cursor: grab;
  position: relative;
  z-index: 10;
  margin-top: 4px;
}

.drag-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 6px;
  background: #d1d5db;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════
   LEAFLET OVERRIDES — LIGHT
   ═══════════════════════════════════════════ */
.leaflet-control-zoom {
  display: none !important;
}

.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.leaflet-tooltip-pane {
  pointer-events: auto !important;
}

/* ═══════════════════════════════════════════
   UPGRADE / MARKER TOOLTIP OVERRIDES
   ═══════════════════════════════════════════ */
.leaflet-tooltip.leaflet-upgrade-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.leaflet-tooltip.leaflet-upgrade-tooltip::before {
  display: none !important;
}

.marker-avg-price {
  font-family: "Google Sans", sans-serif;
  letter-spacing: -0.2px;
}

#custom-hover-tooltip {
  pointer-events: auto;
}

#custom-hover-tooltip .forecast-marker {
  transform: none !important;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15)) !important;
}

#custom-hover-tooltip .auth-tooltip-card {
  filter: drop-shadow(0 10px 30px rgba(15, 23, 42, 0.12));
}

/* ═══════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-modal.show {
  display: flex;
}

.auth-modal-card {
  position: relative;
  width: min(100%, 460px);
  padding: 48px 40px 36px;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  transform-origin: center;
  animation: modalScaleUp 0.4s var(--zl-ease-expo);
  border: 1px solid var(--zonely-border);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(1, 167, 107, 0.74);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.auth-close-btn:hover {
  background: rgba(1, 167, 107, 0.08);
  color: var(--zonely-green-dark);
}

.auth-logo {
  display: block;
  width: 200px;
  max-width: 68%;
  height: auto;
  margin: 0 auto 32px;
  filter: brightness(0) invert(39%) sepia(74%) saturate(2333%) hue-rotate(134deg) brightness(95%) contrast(101%);
}

.auth-modal-card h2 {
  color: var(--zonely-ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 34px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field-wrap {
  position: relative;
  display: block;
}

.auth-field {
  width: 100%;
  height: 58px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--zonely-ink);
  font-size: 18px;
  font-weight: 500;
  border-radius: 34px;
  box-shadow: inset 0 0 0 2px rgba(1, 167, 107, 0.1);
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

.auth-field::placeholder {
  color: #667085;
}

.auth-field:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 3px var(--zonely-green), 0 0 0 4px rgba(1, 167, 107, 0.18);
}

.auth-field-wrap.has-eye .auth-field {
  padding-right: 74px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--zonely-green);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.auth-password-toggle:hover {
  background: rgba(1, 167, 107, 0.08);
}

.auth-error {
  min-height: 18px;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
  background: var(--zonely-green);
  color: #ffffff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 14px 34px rgba(1, 167, 107, 0.24);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.auth-submit-btn:hover {
  background: var(--zonely-green-dark);
  box-shadow: 0 16px 38px rgba(1, 167, 107, 0.28);
}

.auth-submit-btn:active {
  transform: scale(0.98);
}

.auth-link-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 26px auto 22px;
  color: #667085;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.auth-link-grid button {
  display: block;
  margin: 6px auto 0;
  background: transparent;
  color: var(--zonely-ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 999px;
}

.auth-link-grid button:hover {
  color: var(--zonely-green-dark);
}

.auth-google-btn {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--zonely-ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(1, 167, 107, 0.1);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.auth-google-btn:hover {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(1, 167, 107, 0.22);
}

.google-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

/* ═══════════════════════════════════════════
   MOBILE — ≤768px
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #logo-img {
    width: 44px !important;
    height: 44px !important;
  }

  #detail-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 20vh;
    border-left: none;
    border-top: none;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #detail-panel.dragging {
    transition: none !important;
  }

  #detail-panel.open {
    transform: translateY(0);
  }

  .panel-auth-lock-card {
    margin-top: 10px;
  }

  .sidebar-toggle-btn {
    display: none !important;
  }

  .drag-handle {
    display: block;
    margin-top: 12px;
    margin-bottom: -8px;
  }

  #top-bar {
    padding: 8px 10px;
  }

  #region-label {
    display: none;
  }

  #search-container {
    width: calc(100% - 100px);
  }

  #filter-panel {
    min-width: calc(100vw - 28px);
  }

  .profile-menu {
    top: 62px;
    right: 8px;
    width: min(280px, calc(100vw - 20px));
    padding: 18px 14px 12px;
  }

  .profile-status {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .profile-menu-action {
    min-height: 46px;
    font-size: 16px;
    gap: 10px;
    padding: 0 12px;
  }

  .profile-menu-action svg {
    width: 18px;
    height: 18px;
  }

  .auth-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 150px 14px 18px;
  }

  .auth-modal-card {
    padding: 42px 22px 28px;
    border-radius: 16px;
  }

  .auth-logo {
    width: 174px;
    margin-bottom: 28px;
  }

  .auth-modal-card h2 {
    font-size: 34px;
    margin-bottom: 26px;
  }

  .auth-field {
    height: 58px;
    padding: 0 22px;
    font-size: 19px;
  }

  .auth-submit-btn {
    min-height: 58px;
    font-size: 18px;
  }

  .auth-link-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 22px auto 18px;
  }

  .auth-google-btn {
    width: 100%;
  }

  #time-selector {
    right: 8px;
    bottom: 12px;
    padding: 3px;
  }

  .time-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .gauge-forecast-row {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════
   REPORT-STYLE PANEL COMPONENTS
   ═══════════════════════════════════════════ */

/* ── Score Hero Block ── */
.rpt-score-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #01A76B 100%);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.rpt-score-hero.score-exceptional {
  background: linear-gradient(135deg, #052E16 0%, #047857 44%, #FACC15 100%);
  box-shadow: 0 20px 48px rgba(4, 120, 87, 0.34);
}

.rpt-score-hero.score-high {
  background: linear-gradient(135deg, #064E3B 0%, #01A76B 58%, #86EFAC 100%);
  box-shadow: 0 18px 44px rgba(1, 167, 107, 0.34);
}

.rpt-score-hero.score-good {
  background: linear-gradient(135deg, #0F3D3E 0%, #0EA5A4 62%, #67E8F9 100%);
  box-shadow: 0 16px 38px rgba(14, 165, 164, 0.26);
}

.rpt-score-hero.score-mid {
  background: linear-gradient(135deg, #1F2937 0%, #64748B 100%);
  box-shadow: 0 14px 32px rgba(71, 85, 105, 0.22);
}

.rpt-score-hero.score-low {
  background: linear-gradient(135deg, #7C2D12 0%, #F97316 100%);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.28);
}

.rpt-score-hero.score-very-low {
  background: linear-gradient(135deg, #450A0A 0%, #DC2626 100%);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.32);
}

.rpt-score-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.rpt-big-score {
  text-align: center;
  flex-shrink: 0;
}

.rpt-big-score-num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rpt-big-score-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.rpt-score-divider {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rpt-score-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpt-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpt-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
}

.rpt-meta-dot-signal {
  background: #8B5CF6;
}

.rpt-meta-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.rpt-meta-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* ── KPI Cards ── */
.rpt-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.rpt-kpi-card {
  background: #ffffff;
  border: 1px solid var(--zonely-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rpt-kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6B7280;
  margin-bottom: 6px;
}

.rpt-kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--zonely-ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.rpt-kpi-value.green {
  color: #10B981;
}

.rpt-kpi-value.amber {
  color: #F59E0B;
}

.rpt-kpi-value.red {
  color: #EF4444;
}

.rpt-kpi-sub {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ── Section Cards ── */
.rpt-section-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--zonely-border);
  transition: transform 0.3s var(--zl-ease-expo), box-shadow 0.3s ease;
}

.rpt-section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rpt-section-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rpt-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rpt-icon-safety {
  background: #F0FDF4;
}

.rpt-icon-education {
  background: #FDF4FF;
}

.rpt-icon-deprivation {
  background: #FFFBEB;
}

.rpt-section-titles {
  flex: 1;
}

.rpt-section-num {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9CA3AF;
}

.rpt-section-label {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.2px;
}

/* ── Detail Grid (score params in section cards) ── */
.rpt-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpt-detail-param {
  margin: 0;
}

.rpt-detail-param-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.rpt-detail-param-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
}

.rpt-detail-param-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rpt-detail-param-status {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rpt-status-excellent {
  background: #D1FAE5;
  color: #065F46;
}

.rpt-status-good {
  background: #DBEAFE;
  color: #1E40AF;
}

.rpt-status-moderate {
  background: #F3F4F6;
  color: #374151;
}

.rpt-status-concern {
  background: #FEF3C7;
  color: #92400E;
}

.rpt-status-poor {
  background: #FEE2E2;
  color: #991B1B;
}

.rpt-detail-param-score {
  font-size: 13px;
  font-weight: 800;
  color: #064E3B;
  min-width: 24px;
  text-align: right;
}

.rpt-detail-bar-track {
  height: 5px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
}

.rpt-detail-bar-fill {
  height: 100%;
  border-radius: 3px;
  transform-origin: left;
  transition: transform 0.5s ease;
}

.rpt-detail-param-desc {
  font-size: 11px;
  color: #374151;
  margin-top: 8px;
  line-height: 1.5;
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  border-top: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  display: block;
}

/* ── Intel rows inside section cards ── */
.rpt-intel-rows {
  background: #f8fafc;
  border-radius: 10px;
  padding: 4px 12px;
}

.rpt-intel-rows .intel-row {
  padding: 8px 0;
}

/* ── Data Freshness ── */
.data-freshness {
  font-size: 9px;
  color: #9ca3af;
  margin-top: 12px;
  text-align: right;
  font-weight: 400;
  line-height: 1.35;
}

.loading .rpt-score-hero,
.loading .rpt-kpi-grid,
.loading .rpt-section-card,
.loading .gauge-forecast-row,
.loading .chart-panel-section,
.loading #market-signal-card-container,
.loading #zonely-forecast-chart-container,
.loading .data-freshness {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0 !important;
  transition: none;
}

/* Locked state remains semi-visible with blur */
.locked .rpt-score-hero,
.locked .rpt-kpi-grid,
.locked .rpt-section-card,
.locked .gauge-forecast-row,
.locked .chart-panel-section,
.locked #market-signal-card-container,
.locked #zonely-forecast-chart-container,
.locked .data-freshness {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.4;
}

.panel-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.loading .panel-loading-overlay {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

/* ── Skeleton Shimmer Effect ── */
.skeleton-loader>div {
  background: linear-gradient(90deg,
      rgba(1, 167, 107, 0.12) 25%,
      rgba(1, 167, 107, 0.26) 37%,
      rgba(1, 167, 107, 0.12) 63%);
  background-size: 400% 100%;
  animation: skeleton-premium 1.4s ease-in-out infinite;
  border-radius: 12px;
  margin-bottom: 20px;
}

@keyframes skeleton-premium {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.skeleton-header {
  height: 32px;
  width: 60%;
  margin-top: 20px;
}

.skeleton-hero {
  height: 160px;
  width: 100%;
}

.skeleton-scorecard {
  height: 280px;
  width: 100%;
}

.skeleton-row {
  height: 44px;
  width: 100%;
  margin-bottom: 12px !important;
}

.skeleton-chart {
  height: 200px;
  width: 100%;
}

/* ── Loading Status Overlay ── */
.loading-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  width: 100%;
}



/* ── Section Badge (inside section header row) ── */
.flood-risk-badge {
  display: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 10px;
  background: #FEE2E2;
  color: #991B1B;
}

#logo-img {
  display: block;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.4s var(--zl-ease-expo);
}

#logo-img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

#logo-img:active {
  transform: scale(0.95);
}

/* ── Environment / Info Grid ── */
.rpt-env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rpt-env-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F9FAFB;
  border-radius: 10px;
  padding: 12px 14px;
}

.rpt-env-item.full-width {
  grid-column: 1 / -1;
}

.rpt-env-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rpt-env-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6B7280;
  display: block;
  margin-bottom: 2px;
}

.rpt-env-value {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  display: block;
}

@media (max-width: 768px) {
  .rpt-env-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Styles imported from Zonely_Report_template.html ── */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --zonely-blue: #1E4A7A;
  --zonely-mid: #2563A8;
  --zonely-light: #3B82C4;
  --zonely-pale: #DBEAFE;
  --zonely-accent: #0EA5E9;
  --bg: #F7F6F3;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --muted: #6B7280;
  --border: #E5E7EB;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;
}



body {
  font-family: 'Google Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.cover {
  background: linear-gradient(135deg, #0F2844 0%, #1E4A7A 50%, #2563A8 100%);
  color: white;
  padding: 60px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cover::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cover-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.report-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.cover-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.cover-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--zonely-accent);
  margin-bottom: 16px;
}

.cover-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.cover-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
}

.cover-score-block {
  display: flex;
  align-items: center;
  gap: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px 40px;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.big-score {
  text-align: center;
}

.big-score-num {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  color: #ffffff;
}

.big-score-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.score-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zonely-accent);
  flex-shrink: 0;
}

.score-meta-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.score-meta-text strong {
  color: white;
  font-weight: 600;
}

.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.cover-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
}

.cover-meta-item label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.cover-meta-item span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.disclaimer-cover {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 280px;
  text-align: right;
  line-height: 1.5;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-address {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.header-score-pill {
  background: var(--zonely-pale);
  color: var(--zonely-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--zonely-blue);
  letter-spacing: -0.3px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--zonely-blue);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--zonely-blue);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.kpi-value.green {
  color: var(--green);
}

.kpi-value.amber {
  color: var(--amber);
}

.kpi-value.red {
  color: var(--red);
}

.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.kpi-trend {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.kpi-trend.up {
  background: #DCFCE7;
  color: #166534;
}

.kpi-trend.down {
  background: #FEF3C7;
  color: #92400E;
}

.kpi-trend.neutral {
  background: #F3F4F6;
  color: #374151;
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.summary-scorecard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.summary-scorecard-header {
  background: linear-gradient(135deg, var(--zonely-blue), var(--zonely-mid));
  color: white;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-scorecard-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.summary-scorecard-body {
  padding: 8px 0;
}

.scorecard-row {
  display: grid;
  grid-template-columns: 36px 1fr 160px 60px;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid #F9FAFB;
}

.scorecard-row:last-child {
  border-bottom: none;
}

.scorecard-row:hover {
  background: #F9FAFB;
}

.scorecard-icon {
  font-size: 18px;
  text-align: center;
}

.scorecard-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.scorecard-name .sub-score {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.scorecard-bar-wrap {
  display: flex;
  align-items: center;
}

.scorecard-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--zonely-blue);
  text-align: right;
}

.score-bar-track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.score-param {
  margin-bottom: 16px;
}

.score-param:last-child {
  margin-bottom: 0;
}

.score-param-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}

.score-param-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.score-param-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-excellent {
  background: #DCFCE7;
  color: #166534;
}

.status-good {
  background: #DBEAFE;
  color: #1E40AF;
}

.status-moderate {
  background: #F3F4F6;
  color: #374151;
}

.status-concern {
  background: #FEF3C7;
  color: #92400E;
}

.status-poor {
  background: #FEE2E2;
  color: #991B1B;
}

.score-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--zonely-blue);
  min-width: 28px;
  text-align: right;
}

.compare-row {
  display: grid;
  grid-template-columns: 90px 1fr 32px 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.compare-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.compare-bar-track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}

.compare-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.compare-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--zonely-blue);
  text-align: right;
}

.compare-vs {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.insight-box {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.insight-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--zonely-blue);
  margin-bottom: 6px;
}

.insight-box p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}

.insight-box.amber {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.insight-box.green {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.insight-box.red {
  background: #FEF2F2;
  border-color: #FECACA;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 400px;
}

th {
  background: var(--zonely-pale);
  color: var(--zonely-blue);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #F9FAFB;
}

.roi-box {
  background: linear-gradient(135deg, #0F2844 0%, #1E4A7A 100%);
  color: white;
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.roi-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.roi-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--zonely-accent);
  margin-bottom: 24px;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.roi-item-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.roi-item-value {
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
}

.roi-item-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.forecast-table {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-blue {
  background: var(--zonely-pale);
  color: var(--zonely-blue);
}

.tag-green {
  background: #DCFCE7;
  color: #166534;
}

.tag-amber {
  background: #FEF3C7;
  color: #92400E;
}

.tag-red {
  background: #FEE2E2;
  color: #991B1B;
}

.verdict-box {
  background: linear-gradient(135deg, #064E3B, #065F46);
  color: white;
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  margin-top: 40px;
}

.verdict-box h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.verdict-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.verdict-score-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.verdict-score-item {
  text-align: center;
}

.verdict-score-num {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
}

.verdict-score-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ══ RESPONSIVE ══ */
@media(max-width:768px) {
  .cover {
    padding: 32px 24px;
    min-height: auto;
  }

  .cover-title {
    font-size: 32px;
  }

  .cover-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .cover-score-block {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    width: 100%;
  }

  .score-divider {
    width: 100%;
    height: 1px;
  }

  .big-score-num {
    font-size: 60px;
  }

  .cover-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cover-footer {
    flex-direction: column;
    gap: 16px;
  }

  .disclaimer-cover {
    text-align: left;
    max-width: 100%;
  }

  .page-header {
    padding: 10px 16px;
    gap: 8px;
  }

  .header-address {
    display: none;
  }

  .container {
    padding: 20px 16px;
  }

  .section-header {
    margin-top: 32px;
  }

  .section-header h2 {
    font-size: 18px;
  }

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

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

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

  .scorecard-row {
    grid-template-columns: 32px 1fr 50px;
    gap: 8px;
    padding: 12px 16px;
  }

  .scorecard-bar-wrap {
    display: none;
  }

  .scorecard-name .sub-score {
    display: none;
  }

  .compare-row {
    grid-template-columns: 80px 1fr 28px;
  }

  .compare-vs {
    display: none;
  }

  .roi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .roi-box {
    padding: 24px 20px;
  }

  .roi-item-value {
    font-size: 18px;
  }

  .verdict-box {
    padding: 28px 20px;
  }

  .verdict-box h2 {
    font-size: 20px;
  }

  .verdict-box p {
    font-size: 13px;
  }

  .verdict-score-row {
    gap: 20px;
  }

  .verdict-score-num {
    font-size: 26px;
  }
}

@media(max-width:480px) {
  .cover {
    padding: 24px 16px;
  }

  .cover-title {
    font-size: 26px;
  }

  .cover-subtitle {
    font-size: 13px;
  }

  .big-score-num {
    font-size: 52px;
  }

  .report-badge {
    font-size: 9px;
    padding: 4px 10px;
    letter-spacing: 0.8px;
  }

  .cover-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .kpi-value {
    font-size: 22px;
  }

  .kpi-card {
    padding: 14px;
  }

  .scorecard-row {
    grid-template-columns: 28px 1fr 46px;
    padding: 10px 12px;
  }

  .scorecard-score {
    font-size: 16px;
  }

  .card {
    padding: 16px;
  }

  .roi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .roi-item-value {
    font-size: 16px;
  }

  .summary-scorecard-header {
    padding: 16px;
  }

  .summary-scorecard-header h3 {
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════════
   FORECAST TABLE COMPONENT
   ═══════════════════════════════════════════ */

.fct-table-card {
  background: #ffffff;
  border: 1px solid var(--zonely-border);
  border-radius: 20px;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--zl-ease-expo), box-shadow 0.3s ease;
}

.fct-table-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fct-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.fct-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fct-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #EDE9FE;
  flex-shrink: 0;
}

.fct-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

/* ── Tabs ── */
.fct-tabs {
  display: flex;
  gap: 6px;
  padding: 16px 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fct-tabs::-webkit-scrollbar {
  display: none;
}

.fct-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  font-family: 'Google Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.fct-tab:hover {
  background: #E2E8F0;
  color: #334155;
}

.fct-tab.active {
  background: #01A76B;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(1, 167, 107, 0.3);
  transform: translateY(-1px);
}

/* ── Body ── */
.fct-body {
  padding: 20px 24px 24px;
  animation: fctFadeIn 0.3s ease;
}

@keyframes fctFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Gauge Row ── */
.fct-gauge-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.fct-gauge-container {
  flex-shrink: 0;
  width: 260px;
  text-align: center;
}

.forecast-gauge-svg {
  width: 100%;
  height: auto;
  max-height: 220px;
}

.fct-gauge-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-top: 8px;
}

.fct-gauge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.fct-dot-current {
  background: #2563EB;
}

.fct-dot-forecast {
  background: #D946EF;
}

/* ── Forecast Text ── */
.fct-forecast-text {
  flex: 1;
  min-width: 0;
}

.fct-signal-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.fct-forecast-headline {
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
  font-style: italic;
}

.fct-forecast-body {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.fct-forecast-body strong {
  font-weight: 700;
}

/* ── Indicators ── */
.fct-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.fct-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fct-indicator:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fct-ind-positive {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.04);
}

.fct-ind-negative {
  border-color: rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.03);
}

.fct-ind-icon {
  font-size: 18px;
  line-height: 1;
  color: #9CA3AF;
}

.fct-ind-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
}

.fct-ind-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.fct-ind-positive .fct-ind-value {
  color: #059669;
}

.fct-ind-negative .fct-ind-value {
  color: #DC2626;
}

/* ── Recommendations ── */
.fct-recs {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
}

.fct-recs-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  font-style: italic;
  margin: 0 0 12px 0;
  letter-spacing: -0.2px;
}

.fct-rec-item {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 8px 0;
}

.fct-rec-item:last-child {
  margin-bottom: 0;
}

.fct-rec-item strong {
  font-weight: 700;
  color: #1E293B;
}

/* ── Loading and Locked states ── */
.loading .fct-table-card,
.loading #zonely-forecast-table-container {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

.locked .fct-table-card,
.locked #zonely-forecast-table-container {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.4;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .fct-gauge-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fct-gauge-container {
    width: 240px;
  }

  .fct-indicators {
    grid-template-columns: repeat(2, 1fr);
  }

  .fct-tabs {
    padding: 12px 16px 0;
    gap: 4px;
  }

  .fct-tab {
    padding: 6px 14px;
    font-size: 12px;
  }

  .fct-body {
    padding: 16px 16px 20px;
  }

  .fct-header {
    padding: 16px 16px 0;
  }
}

/* ── KPI Estimate Style ── */
.rpt-kpi-value.estimate {
  color: #6366F1;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   PRICE & RENT FORECAST TABLE
   ═══════════════════════════════════════════ */

.pft-card {
  margin-bottom: 24px;
  padding: 0 !important;
  overflow: hidden;
  transition: transform 0.3s var(--zl-ease-expo), box-shadow 0.3s ease;
}

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

.pft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
}

.pft-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pft-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #EDE9FE;
  flex-shrink: 0;
}

.pft-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.pft-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pft-estimate-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #EDE9FE;
  color: #6366F1;
}

/* ── Table ── */
.pft-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 4px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.pft-table-wrap::-webkit-scrollbar {
  height: 4px;
}

.pft-table-wrap::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

.pft-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Google Sans', sans-serif;
  min-width: 680px;
}

.pft-table thead {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

.pft-col-header {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  text-align: center;
  white-space: nowrap;
  border-bottom: 2px solid #E2E8F0;
}

.pft-col-header.pft-col-now {
  color: #0F172A;
  font-weight: 800;
  background: rgba(1, 167, 107, 0.06);
}

.pft-metric-col {
  width: 120px;
  min-width: 110px;
  padding: 10px 16px;
  border-bottom: 2px solid #E2E8F0;
}

.pft-metric-label {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  border-right: 1px solid #F1F5F9;
  vertical-align: middle;
}

.pft-metric-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pft-metric-icon {
  font-size: 15px;
  line-height: 1;
}

/* ── Cells ── */
.pft-cell {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s ease;
}

.pft-cell:hover {
  background: #F8FAFC;
}

.pft-cell.pft-cell-now {
  background: rgba(1, 167, 107, 0.04);
  border-left: 2px solid rgba(1, 167, 107, 0.15);
  border-right: 2px solid rgba(1, 167, 107, 0.15);
}

.pft-val {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

/* ── Badges ── */
.pft-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pft-badge-green {
  background: #DCFCE7;
  color: #166534;
}

.pft-badge-amber {
  background: #FEF3C7;
  color: #92400E;
}

.pft-badge-red {
  background: #FEE2E2;
  color: #991B1B;
}

.pft-badge-neutral {
  background: #F1F5F9;
  color: #64748B;
}

/* ── Rows ── */
.pft-row-price td {
  border-bottom: 1px solid #E2E8F0;
}

.pft-row-rent td {
  border-bottom: none;
}

/* ── Footer ── */
.pft-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px 16px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
}

.pft-footer-note {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
}

.pft-footer-note strong {
  font-weight: 700;
  color: #334155;
}

.pft-footer-disclaimer {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  font-style: italic;
}

/* ── Loading & Locked states ── */
.loading .pft-card,
.loading #price-forecast-table-container {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

.locked .pft-card,
.locked #price-forecast-table-container {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.4;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .pft-header {
    padding: 16px 16px 12px;
  }

  .pft-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px 14px;
  }

  .pft-table {
    min-width: 600px;
  }

  .pft-metric-col {
    width: 95px;
    min-width: 95px;
  }

  .pft-col-header {
    font-size: 10px;
    padding: 8px 8px;
  }

  .pft-cell {
    padding: 10px 6px;
  }

  .pft-val {
    font-size: 11px;
  }

  .pft-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
}

/* ═══════════════════════════════════════════
   GEODATA SECTIONS
   ═══════════════════════════════════════════ */

/* ── Section visibility transition ── */
.geodata-section {
  animation: geodataFadeIn 0.4s ease;
}

@keyframes geodataFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Stat rows ── */
.geodata-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  font-family: 'Google Sans', sans-serif;
}

.geodata-stat-row:last-child {
  border-bottom: none;
}

.geodata-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
}

.geodata-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.geodata-stat-value.positive {
  color: #059669;
}

.geodata-stat-value.negative {
  color: #DC2626;
}

.geodata-stat-value.muted {
  color: #94A3B8;
  font-style: italic;
  font-weight: 500;
}

/* ── Section sub-header ── */
.geodata-sub-header {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #F1F5F9;
}

/* ── Horizontal bar chart ── */
.geodata-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.geodata-bar-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  width: 120px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geodata-bar-track {
  flex: 1;
  height: 8px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.geodata-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #01A76B, #10B981);
  transition: opacity var(--zl-med) ease;
}

.geodata-bar-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ── IMD Domain Indicators ── */
.geodata-imd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.geodata-imd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.geodata-imd-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.geodata-imd-decile {
  font-family: 'Google Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.geodata-imd-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94A3B8;
  text-align: center;
}

.geodata-imd-bar {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.geodata-imd-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: opacity var(--zl-med) ease;
}

/* Decile colour coding */
.geodata-imd-item[data-decile="1"] .geodata-imd-decile,
.geodata-imd-item[data-decile="2"] .geodata-imd-decile {
  color: #DC2626;
}

.geodata-imd-item[data-decile="1"] .geodata-imd-bar-fill,
.geodata-imd-item[data-decile="2"] .geodata-imd-bar-fill {
  background: #DC2626;
}

.geodata-imd-item[data-decile="3"] .geodata-imd-decile,
.geodata-imd-item[data-decile="4"] .geodata-imd-decile {
  color: #F59E0B;
}

.geodata-imd-item[data-decile="3"] .geodata-imd-bar-fill,
.geodata-imd-item[data-decile="4"] .geodata-imd-bar-fill {
  background: #F59E0B;
}

.geodata-imd-item[data-decile="5"] .geodata-imd-decile,
.geodata-imd-item[data-decile="6"] .geodata-imd-decile {
  color: #6B7280;
}

.geodata-imd-item[data-decile="5"] .geodata-imd-bar-fill,
.geodata-imd-item[data-decile="6"] .geodata-imd-bar-fill {
  background: #6B7280;
}

.geodata-imd-item[data-decile="7"] .geodata-imd-decile,
.geodata-imd-item[data-decile="8"] .geodata-imd-decile {
  color: #3B82F6;
}

.geodata-imd-item[data-decile="7"] .geodata-imd-bar-fill,
.geodata-imd-item[data-decile="8"] .geodata-imd-bar-fill {
  background: #3B82F6;
}

.geodata-imd-item[data-decile="9"] .geodata-imd-decile,
.geodata-imd-item[data-decile="10"] .geodata-imd-decile {
  color: #059669;
}

.geodata-imd-item[data-decile="9"] .geodata-imd-bar-fill,
.geodata-imd-item[data-decile="10"] .geodata-imd-bar-fill {
  background: #059669;
}

/* ── Crime category bars (legacy, kept for compat) ── */
.geodata-crime-bars {
  margin-top: 8px;
}

.geodata-crime-bar-fill {
  background: linear-gradient(90deg, #EF4444, #F87171) !important;
}

/* ═══════════════════════════════════════════
   CRIME SECTION — NEW DASHBOARD DESIGN
   ═══════════════════════════════════════════ */

/* Hero row: donut + meta */
.crime-hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 20px;
}

.crime-donut {
  flex-shrink: 0;
}

.crime-donut svg {
  display: block;
}

.crime-hero-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crime-hero-count {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0F172A;
  line-height: 1.3;
}

.crime-count-num {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -1px;
  margin-right: 2px;
}

.crime-count-period {
  font-size: 13px;
  font-weight: 400;
  color: #64748B;
}

.crime-hero-month {
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

.crime-hero-trend {
  font-family: 'Google Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.crime-hero-trend strong {
  font-weight: 700;
}

/* Chart section wrapper */
.crime-chart-section {
  margin-bottom: 4px;
}

.crime-chart-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #94A3B8;
  margin-bottom: 10px;
}

/* Category bar chart */
.crime-cat-bars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.crime-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.crime-cat-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

.crime-cat-bar-track {
  flex: 1;
  height: 10px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.crime-cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #DC2626, #EF4444);
  transition: opacity var(--zl-med) ease;
}

.crime-cat-val {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  width: 28px;
  flex-shrink: 0;
  text-align: left;
}

/* Yearly trend chart */
.crime-trend-chart {
  width: 100%;
  overflow: hidden;
}

.crime-trend-chart svg text {
  font-family: 'Google Sans', sans-serif !important;
}

/* ── Signal card ── */
.geodata-signal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.geodata-signal-card.buy {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.geodata-signal-card.sell {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.03));
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.geodata-signal-card.hold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.geodata-signal-emoji {
  font-size: 28px;
  line-height: 1;
}

.geodata-signal-text {
  flex: 1;
}

.geodata-signal-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.geodata-signal-card.buy .geodata-signal-label {
  color: #059669;
}

.geodata-signal-card.sell .geodata-signal-label {
  color: #DC2626;
}

.geodata-signal-card.hold .geodata-signal-label {
  color: #D97706;
}

.geodata-signal-score {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
}

/* ── Signal reasons ── */
.geodata-signal-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.geodata-signal-reasons li {
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.geodata-signal-reasons li:last-child {
  border-bottom: none;
}

.geodata-signal-reasons li::before {
  content: '•';
  color: #01A76B;
  font-weight: 800;
  font-size: 14px;
}

/* ── Loading and error states ── */
.geodata-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

.geodata-loading-dot {
  width: 6px;
  height: 6px;
  background: #01A76B;
  border-radius: 50%;
  animation: geodataPulse 1.2s ease-in-out infinite;
}

@keyframes geodataPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.geodata-error {
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #DC2626;
  padding: 10px 0;
}

.geodata-no-data {
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  font-style: italic;
  padding: 8px 0;
}

/* ── Loading and Locked states for GeoData sections ── */
.loading .geodata-section {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

.locked .geodata-section {
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.4;
}

.postcode-highlight-boundary {
  filter: drop-shadow(0 0 8px rgba(1, 167, 107, 0.6));
  stroke-dasharray: 6 6;
  animation: postcodeGlowDash 30s linear infinite;
}

@keyframes postcodeGlowDash {
  to {
    stroke-dashoffset: -100;
  }
}

/* ── Education Catchment Grid & Table ── */
.geodata-education-header {
  margin-bottom: 16px;
  font-family: 'Google Sans', sans-serif;
}

.geodata-edu-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.geodata-edu-icon-box {
  width: 38px;
  height: 38px;
  background: #EEF2FF;
  /* Light indigo/purple */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6366F1;
}

.geodata-edu-title-text {
  display: flex;
  flex-direction: column;
}

.geodata-edu-main-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.geodata-edu-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
}

.geodata-education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 20px;
}

.geodata-edu-card {
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.geodata-edu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: #FFFFFF;
}

.geodata-edu-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.geodata-edu-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748B;
  line-height: 1.1;
}

.geodata-edu-table-container {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  padding-bottom: 6px;
}

.geodata-edu-table-container::-webkit-scrollbar {
  height: 4px;
}

.geodata-edu-table-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

.geodata-edu-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  min-width: 760px;
}

.geodata-edu-table th {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  padding: 10px 12px;
  border-bottom: 2px solid #E2E8F0;
  font-size: 8.5px;
  white-space: nowrap;
}

.geodata-edu-table td {
  padding: 12px;
  border-bottom: 1px solid #F1F5F9;
  color: #475569;
  vertical-align: middle;
}

.geodata-edu-table tr:hover {
  background: rgba(248, 250, 252, 0.5);
}

.school-name-cell {
  font-weight: 700;
  color: #0F172A !important;
  max-width: 160px;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-dist-container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.school-dist-val {
  font-weight: 600;
  color: #334155;
  width: 42px;
  flex-shrink: 0;
  font-size: 11px;
}

.school-dist-track {
  flex: 1;
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.school-dist-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366F1, #818CF8);
  transition: opacity var(--zl-med) ease;
}

.table-expand-control {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}

.table-expand-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.table-expand-btn::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.16s ease;
}

.table-expand-btn[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.table-expand-btn:hover {
  background: #FFFFFF;
  border-color: rgba(1, 167, 107, 0.28);
  color: var(--zonely-green-aa);
  transform: translateY(-1px);
}

.table-expand-meta {
  color: #94A3B8;
  font-weight: 700;
}

/* ── Livability & Amenities ── */
.livability-wrapper {
  font-family: 'Google Sans', sans-serif;
}

.livability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.livability-card {
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  padding: 16px 14px;
  min-width: 0;
}

.livability-card-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #64748B;
  margin-bottom: 8px;
}

.livability-card-value {
  font-size: 28px;
  font-weight: 850;
  color: #0F172A;
  letter-spacing: 0;
  line-height: 1.1;
}

.livability-card-sub {
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  margin-top: 8px;
  line-height: 1.25;
}

.livability-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
}

.livability-metrics-row span {
  background: #F1F5F9;
  border-radius: 999px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}

.livability-noise-detail {
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 13px 14px;
}

.livability-noise-detail .noise-detail-value .noise-db-unit {
  font-size: inherit !important;
  font-weight: inherit !important;
}

.livability-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 6px;
}

.amenity-category-tab {
  appearance: none;
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 74px;
  min-width: 0;
  padding: 14px 12px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.amenity-category-tab:hover {
  background: #FFFFFF;
  border-color: #BFDBFE;
  transform: translateY(-1px);
}

.amenity-category-tab.active {
  background: #E0F2FE;
  border-color: #38BDF8;
}

.amenity-tab-count {
  color: #0F172A;
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
}

.amenity-tab-label {
  color: #64748B;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.amenity-category-tab.active .amenity-tab-label {
  color: #075985;
}

.amenity-type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #E0F2FE;
  color: #075985;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 7px;
}

.livability-amenities-table {
  min-width: 760px;
}

/* Amenities section: green distance bar */
.livability-amenities-table .school-dist-fill {
  background: linear-gradient(90deg, #059669, #10B981);
}

.livability-amenity-row.clickable {
  cursor: pointer;
}

.livability-amenity-row.clickable:hover {
  background: rgba(236, 253, 245, 0.75);
}

.livability-amenity-row.active {
  background: #D1FAE5 !important;
}

.livability-amenity-row.active .school-name-cell {
  color: #065F46 !important;
}

.transport-table {
  min-width: 760px;
}

/* Transport section: blue distance bar */
.transport-table .school-dist-fill {
  background: linear-gradient(90deg, #0891b2, #38bdf8);
}

.transport-category-tabs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.transport-type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 7px;
}

.transport-row.clickable {
  cursor: pointer;
}

.transport-row.clickable:hover {
  background: rgba(239, 246, 255, 0.85);
}

.transport-row.active {
  background: #DBEAFE !important;
}

.transport-row.active .school-name-cell {
  color: #1E40AF !important;
}

.transport-source-note {
  margin-top: 10px;
  color: #94A3B8;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
}

.livability-source-note {
  margin-top: 10px;
  color: #94A3B8;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* ── deprivation-container Layout ── */
.deprivation-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

.deprivation-summary-card {
  border: 1px solid var(--zl-line);
  border-radius: var(--zl-radius-lg);
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  padding: 14px;
}

.deprivation-summary-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.deprivation-summary-kicker {
  color: #64748B;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deprivation-summary-title {
  color: var(--zonely-ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 3px;
}

.deprivation-summary-score {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.deprivation-summary-copy {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.deprivation-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.deprivation-summary-meta span {
  border-radius: 999px;
  background: #EEF8F4;
  color: var(--zonely-green-deep);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.deprivation-radar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  width: 100%;
}

/* ── Main Score Card ── */
.deprivation-main-score-block {
  text-align: center;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  margin-bottom: 12px;
}

.deprivation-main-score-val {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.deprivation-main-score-label {
  font-size: 12.5px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.deprivation-main-score-rank,
.deprivation-main-score-raw {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Poverty Cards Grid ── */
.deprivation-poverty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.deprivation-poverty-card {
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deprivation-poverty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: #FFFFFF;
}

.deprivation-poverty-val {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.deprivation-poverty-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: var(--zonely-ink-2);
  line-height: 1.2;
}

.deprivation-poverty-sub {
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 5px;
}

.deprivation-takeaways {
  display: grid;
  gap: 8px;
}

.deprivation-takeaway-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--zl-line);
  border-radius: var(--zl-radius-md);
  background: #FFFFFF;
  padding: 10px 12px;
}

.deprivation-takeaway-label {
  grid-column: 1 / -1;
  color: #64748B;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.deprivation-takeaway-row strong {
  color: var(--zonely-ink);
  font-size: 13px;
  font-weight: 850;
}

.deprivation-takeaway-row span:last-child {
  font-size: 13px;
  font-weight: 850;
}

/* ── Radar Chart Column ── */
.deprivation-radar-title {
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--zonely-ink);
  margin-bottom: 8px;
  text-align: center;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
  width: 100%;
}

.deprivation-radar-title span {
  display: block;
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 3px;
  text-transform: none;
}

.deprivation-radar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: visible;
}

.deprivation-footer {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 14px;
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  font-style: italic;
}

/* ── Score Color Coding ── */
.dep-score-green {
  color: #10B981;
}

.dep-score-light-green {
  color: #10B981;
}

/* Fallback to theme green */
.dep-score-yellow {
  color: #D97706;
}

.dep-score-orange {
  color: #EA580C;
}

.dep-score-red {
  color: #DC2626;
}

/* ═══════════════════════════════════════════
   DEMOGRAPHICS SECTION — NEW DESIGN
   ═══════════════════════════════════════════ */

.demographics-wrapper {
  padding: 8px 0;
  font-family: 'Google Sans', sans-serif;
}

.demo-subtitle {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 500;
}

/* KPI Summary Cards Grid */
.demo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.demo-kpi-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.demo-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  border-color: #CBD5E1;
}

.demo-kpi-value {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.demo-kpi-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
}

/* Chart sections layout */
.demo-chart-section {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.01);
}

.demo-chart-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  margin: 0 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #F1F5F9;
}

.demo-canvas-wrap {
  position: relative;
  width: 100%;
}

.age-canvas-wrap {
  height: 240px;
}

.ethnicity-canvas-wrap {
  height: 280px;
}

.demo-no-chart-data {
  font-size: 11.5px;
  color: #94A3B8;
  font-style: italic;
  text-align: center;
  padding: 16px 0;
}

/* Health status progress bar styling */
.demo-health-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-health-track {
  height: 10px;
  background: #F1F5F9;
  border-radius: 999px;
  display: flex;
  overflow: hidden;
}

.demo-health-segment {
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-health-segment.very-good {
  background: #10B981;
}

.demo-health-segment.good {
  background: #84CC16;
}

.demo-health-segment.fair {
  background: #F59E0B;
}

.demo-health-segment.bad {
  background: #F97316;
}

.demo-health-segment.very-bad {
  background: #EF4444;
}

.demo-health-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 600;
  color: #94A3B8;
  padding: 0 2px;
}

.demo-health-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.demo-health-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: #475569;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.very-good {
  background: #10B981;
}

.legend-dot.good {
  background: #84CC16;
}

.legend-dot.fair {
  background: #F59E0B;
}

.legend-dot.bad {
  background: #F97316;
}

.legend-dot.very-bad {
  background: #EF4444;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .demo-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .demo-health-legend-item {
    font-size: 10px;
  }
}

/* ═══════════════════════════════════════════
   HOUSING MARKET SECTION — NEW DESIGN
   ═══════════════════════════════════════════ */

.housing-wrapper {
  padding: 8px 0;
  font-family: 'Google Sans', sans-serif;
}

.housing-subtitle {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 500;
}

.housing-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}

.price-kpi-val {
  font-size: 15px !important;
}

/* Tenure Progress Bar */
.tenure-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tenure-track {
  height: 10px;
  background: #F1F5F9;
  border-radius: 999px;
  display: flex;
  overflow: hidden;
}

.tenure-segment {
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenure-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 600;
  color: #94A3B8;
  padding: 0 2px;
}

.tenure-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.tenure-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: #475569;
}

/* ═══════════════════════════════════════════
   BUSINESS & ECONOMY SECTION — NEW DESIGN
   ═══════════════════════════════════════════ */

.economy-wrapper {
  padding: 4px 0;
  font-family: 'Google Sans', sans-serif;
}

.economy-canvas-wrap {
  position: relative;
  width: 100%;
}

.demo-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 20px 0 16px 0;
  width: 100%;
}

.religion-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}

.qualifications-canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

/* ═══════════════════════════════════════════
   CONNECTIVITY & COVERAGE SECTION
   ═══════════════════════════════════════════ */
.connectivity-wrapper {
  padding: 8px 0;
  font-family: 'Google Sans', sans-serif;
}

.connectivity-tech-section {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.01);
}

.connectivity-tech-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-item {
  display: flex;
  flex-direction: column;
}

.tech-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.tech-name {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.tech-pct {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
}

.tech-bar-track {
  height: 6px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   ZONELY IMPECCABLE SYSTEM LAYER
   Single product vocabulary applied after legacy report styles.
   ========================================================== */
:root {
  --bg: var(--zl-page);
  --card: var(--zl-surface-solid);
  --text: var(--zonely-ink);
  --muted: var(--zonely-muted);
  --border: var(--zl-line);
  --zonely-blue: var(--zonely-green-deep);
  --zonely-mid: var(--zonely-green-aa);
  --zonely-light: var(--zonely-green);
  --zonely-pale: var(--zonely-green-soft);
  --zonely-accent: var(--zonely-green-aa);
  --green: var(--zonely-green-aa);
}

body,
.leaflet-container {
  background: var(--zl-page);
  color: var(--zonely-ink);
  font-size: 14px;
}

button,
input {
  font: inherit;
}

button,
[role="button"],
label,
.clickable {
  touch-action: manipulation;
}

.zl-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

.section-icon-svg,
.metric-icon,
.panel-signal-icon,
.marker-signal-icon,
.pin-inner-icon,
.search-marker-icon,
.note-icon {
  width: 100%;
  height: 100%;
}

#top-bar {
  padding: 14px 18px;
}

#logo-img {
  opacity: 0.96;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
  transition: transform var(--zl-med) var(--zl-ease-expo), opacity var(--zl-fast) ease, filter var(--zl-med) ease;
}

#logo-img:hover {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 10px 18px rgba(1, 167, 107, 0.22));
}

#search-container {
  width: min(460px, calc(100% - 210px));
}

#search-input {
  min-height: 50px;
  padding: 0 18px 0 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--zl-radius-xl);
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.09), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  color: var(--zonely-ink);
  transition: transform var(--zl-med) var(--zl-ease-expo), box-shadow var(--zl-med) ease, background var(--zl-fast) ease;
}

#search-input::placeholder {
  color: #536179;
}

#search-input:focus {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.1), 0 0 0 4px var(--zl-focus);
}

.search-icon {
  color: var(--zonely-green-aa);
  stroke: currentColor;
}

#search-results,
.profile-menu,
#filter-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--zl-radius-lg);
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.08), 0 18px 50px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  animation: zlMenuIn var(--zl-med) var(--zl-ease-expo);
}

@keyframes zlMenuIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-result-item {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--zonely-ink);
  border-radius: var(--zl-radius-md);
  transition: background var(--zl-fast) ease, color var(--zl-fast) ease, transform var(--zl-fast) var(--zl-ease-out);
}

.search-result-item:hover {
  padding-left: 16px;
  background: var(--zl-surface-tint);
  transform: translateX(2px);
}

.search-result-item .result-type,
.profile-status,
.pft-subtitle,
.pft-footer-disclaimer,
.data-freshness,
.demo-subtitle,
.housing-subtitle,
.geodata-no-data {
  color: #536179;
}

#user-icon,
#zoom-controls,
.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

#user-icon {
  border-radius: 50%;
  transition: transform var(--zl-med) var(--zl-ease-expo), box-shadow var(--zl-med) ease, background var(--zl-fast) ease;
}

#user-icon:hover {
  transform: translateY(-50%) translateX(-1px);
  background: #ffffff;
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.1), 0 0 0 4px rgba(1, 167, 107, 0.1);
}

.sidebar-toggle-btn:hover {
  transform: translateY(-50%);
  background: #ffffff;
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.1), 0 0 0 4px rgba(1, 167, 107, 0.1);
}

#user-icon:hover {
  transform: translateY(-1px) scale(1.02);
}

#zoom-controls {
  border-radius: var(--zl-radius-lg);
}

#zoom-controls button {
  color: var(--zonely-ink-2);
  transition: background var(--zl-fast) ease, color var(--zl-fast) ease, transform 100ms var(--zl-ease-out);
}

#zoom-controls button:hover {
  background: var(--zl-surface-tint);
  color: var(--zonely-green-aa);
}

#filter-btn,
.up-btn,
.auth-submit-btn {
  background: var(--zonely-green-aa);
  color: #ffffff;
  border-radius: var(--zl-radius-pill);
  box-shadow: 0 8px 8px rgba(1, 92, 61, 0.16), 0 12px 26px rgba(1, 167, 107, 0.16);
  transition: transform var(--zl-fast) var(--zl-ease-out), background var(--zl-fast) ease, box-shadow var(--zl-med) ease;
}

#filter-btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

#filter-btn:hover,
.up-btn:hover,
.auth-submit-btn:hover {
  background: var(--zonely-green-deep);
  box-shadow: 0 8px 8px rgba(0, 93, 61, 0.2), 0 16px 30px rgba(1, 167, 107, 0.18);
  transform: translateY(-1px);
}

#filter-btn:active,
.up-btn:active,
.auth-submit-btn:active,
.profile-menu-action:active,
.fct-tab:active {
  transform: scale(0.98);
}

#filter-panel {
  min-width: 420px;
  padding: 18px;
}

.filter-title,
.confidence-label {
  color: var(--zonely-ink);
}

.filter-icon-item {
  min-height: 42px;
  border: 1px solid var(--zl-line);
  border-radius: 999px;
  box-shadow: none;
  background: var(--zl-surface-solid);
  transition: transform var(--zl-fast) var(--zl-ease-out), background var(--zl-fast) ease, box-shadow var(--zl-fast) ease;
}

.filter-icon-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--zl-shadow-sm);
}

.filter-icon-item[data-signal="buy"]:not(.unchecked) {
  background: rgba(1, 167, 107, 0.1);
  border-color: rgba(1, 167, 107, 0.22);
}

.filter-icon-item[data-signal="neutral"]:not(.unchecked) {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.2);
}

.filter-icon-item[data-signal="sell"]:not(.unchecked) {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
}

i.bi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  width: auto !important;
  height: auto !important;
  line-height: 1;
  -webkit-text-stroke: 0.5px;
}

i.bi.marker-signal-icon {
  font-size: 32px !important;
}

.weather-icon,
.panel-weather-icon,
.marker-weather,
.fct-ind-icon,
.pft-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.weather-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.filter-icon-item[data-signal="buy"] .weather-icon,
.panel-signal-badge.buy+.panel-weather-icon,
.marker-full-name.buy-color+.marker-badge+.marker-weather {
  color: #00A86B;
}

.filter-icon-item[data-signal="neutral"] .weather-icon {
  color: #F59E0B;
}

.filter-icon-item[data-signal="sell"] .weather-icon {
  color: #F04438;
}

.confidence-range {
  height: 5px;
  background: linear-gradient(90deg, var(--zonely-green-aa), #D97706, #B91C1C);
}

.confidence-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 3px solid var(--zonely-green-aa);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

#filter-reset-btn,
.secondary-auth-btn,
.profile-menu-action {
  border-radius: 999px;
  border: none;
}

#filter-reset-btn,
.secondary-auth-btn {
  color: var(--zonely-green-aa);
  background: rgba(1, 167, 107, 0.08);
}

#filter-reset-btn:hover,
.secondary-auth-btn:hover {
  color: var(--zonely-green-deep);
  background: rgba(1, 167, 107, 0.14);
}

.forecast-marker,
.auth-marker-card,
.auth-tooltip-card,
.upgrade-tooltip-card {
  border-radius: var(--zl-radius-lg) !important;
  background: rgba(255, 255, 255, 0.93) !important;
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  transition: transform var(--zl-med) var(--zl-ease-expo), box-shadow var(--zl-med) ease, background var(--zl-fast) ease !important;
}

.forecast-marker:hover {
  box-shadow: 0 8px 8px rgba(1, 167, 107, 0.18) !important;
}

.marker-weather {
  width: 32px;
  height: 32px;
  filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-weather.buy,
.marker-weather.strong-buy {
  color: #00A86B !important;
}

.marker-weather.neutral {
  color: #B84A1B !important;
}

.marker-weather.sell,
.marker-weather.strong-sell {
  color: #F04438 !important;
}

.marker-signal-icon {
  width: 30px;
  height: 30px;
}

.marker-badge,
.panel-signal-badge,
.pft-badge,
.rpt-detail-param-status,
.pft-estimate-badge,
.amenity-type-badge,
.transport-type-badge,
.tag {
  border-radius: var(--zl-radius-xs);
  letter-spacing: 0.03em;
}

.marker-badge.neutral,
.panel-signal-badge.neutral {
  background: #FFF3D6;
  color: #A8491D;
}

.marker-badge.buy,
.marker-badge.strong-buy,
.panel-signal-badge.buy,
.panel-signal-badge.strong-buy {
  background: #E0FFF2;
  color: #008F5B;
}

.marker-badge.sell,
.marker-badge.strong-sell,
.panel-signal-badge.sell,
.panel-signal-badge.strong-sell {
  background: #FFE4E2;
  color: #D92D20;
}

.marker-upgrade-row {
  border-top: 1px solid var(--zl-line);
}

.search-home-marker .marker-emoji {
  width: 18px;
  height: 18px;
  color: var(--zonely-green-aa);
  margin-top: -10px;
}

.pin-inner-icon {
  color: inherit;
  width: 14px;
  height: 14px;
}

#detail-panel {
  width: min(560px, 100vw);
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: -12px 0 52px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  transition: transform var(--zl-slow) var(--zl-ease-expo);
}

.sidebar-toggle-btn.panel-open {
  right: min(560px, 100vw);
}

.panel-top-bar {
  padding: 14px 20px 6px;
}

#panel-back-btn {
  min-height: 40px;
  gap: 6px;
  padding: 0 10px 0 4px;
  color: var(--zonely-green-aa);
  border-radius: var(--zl-radius-md);
  transition: background var(--zl-fast) ease, color var(--zl-fast) ease, transform var(--zl-fast) var(--zl-ease-out);
}

#panel-back-btn:hover {
  background: rgba(1, 167, 107, 0.08);
  color: var(--zonely-green-deep);
}

.panel-header {
  padding: 10px 24px 0;
}

.panel-name-row {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-area-name {
  color: var(--zonely-ink);
  font-size: 26px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.panel-weather-icon {
  width: 28px;
  height: 28px;
  color: var(--zonely-green-aa);
}

.panel-signal-badge.buy+.panel-weather-icon,
.panel-signal-badge.strong-buy+.panel-weather-icon {
  color: #00A86B;
}

.panel-signal-badge.neutral+.panel-weather-icon {
  color: #B84A1B;
}

.panel-signal-badge.sell+.panel-weather-icon,
.panel-signal-badge.strong-sell+.panel-weather-icon {
  color: #F04438;
}

.flood-risk-badge {
  background: rgba(1, 167, 107, 0.1);
  color: var(--zonely-green-deep);
}

.flood-risk-badge.warning {
  background: #FEF3C7;
  color: #7C2D12;
}

.panel-body {
  padding: 16px 24px 48px;
  scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

.panel-body.loading {
  background: transparent;
}

.rpt-score-hero {
  align-items: stretch;
  border-radius: 28px;
  padding: 30px 32px;
  margin-bottom: 20px;
  min-height: 176px;
  background:
    linear-gradient(135deg, #07382E 0%, #006C4B 50%, #00885A 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 38px rgba(1, 92, 61, 0.18), 0 4px 10px rgba(15, 23, 42, 0.08);
  isolation: isolate;
}

.rpt-score-hero.score-exceptional,
.rpt-score-hero.score-high,
.rpt-score-hero.score-good {
  background:
    linear-gradient(135deg, #052E24 0%, #006B49 56%, #00966B 100%);
}

.rpt-score-hero.score-mid {
  background:
    linear-gradient(135deg, #172033 0%, #334155 58%, #475569 100%);
}

.rpt-score-hero.score-low {
  background:
    linear-gradient(135deg, #7C2D12 0%, #A44416 60%, #C35A1C 100%);
}

.rpt-score-hero.score-very-low {
  background:
    linear-gradient(135deg, #450A0A 0%, #8F1D1D 58%, #B42318 100%);
}

.rpt-score-hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(118deg, transparent 0 52%, rgba(255, 255, 255, 0.11) 52% 53%, rgba(255, 255, 255, 0.035) 53% 61%, transparent 61% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 52%);
  pointer-events: none;
}

.rpt-score-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, 0.08) 43%,
      rgba(255, 255, 255, 0.28) 50%,
      rgba(255, 255, 255, 0.08) 57%,
      transparent 66%,
      transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.74;
  transform: translateX(-120%);
  animation: zlScoreSweep 4.2s var(--zl-ease-expo) infinite;
  pointer-events: none;
}

@keyframes zlScoreSweep {

  0%,
  62% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(115%);
  }
}

.rpt-big-score-num {
  font-size: clamp(78px, 8vw, 104px);
  font-weight: 850;
  letter-spacing: -0.05em;
  text-shadow: none;
}

.rpt-big-score {
  align-self: center;
  min-width: 210px;
}

.rpt-big-score-label {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.rpt-score-divider {
  align-self: stretch;
  height: auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.rpt-score-meta {
  flex: 1;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.rpt-meta-item {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rpt-meta-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.rpt-meta-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.25;
}

.rpt-meta-text strong {
  color: #FFFFFF;
  font-weight: 850;
}

.rpt-section-card,
.fct-table-card,
.pft-card,
.chart-panel-section,
.forecast-table,
.summary-scorecard,
.card,
.kpi-card {
  background: var(--zl-surface-solid);
  border: 1px solid var(--zl-line);
  border-radius: var(--zl-radius-lg);
  box-shadow: var(--zl-shadow-sm);
}

.rpt-section-card,
.fct-table-card,
.pft-card {
  margin-bottom: 18px;
  transition: transform var(--zl-med) var(--zl-ease-expo), box-shadow var(--zl-med) ease, border-color var(--zl-fast) ease;
}

.rpt-section-card:hover,
.fct-table-card:hover,
.pft-card:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 167, 107, 0.2);
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.08);
}

.rpt-section-header-row,
.fct-header-left,
.pft-header-left,
.geodata-edu-title-row {
  gap: 10px;
}

.rpt-section-icon,
.fct-section-icon,
.pft-section-icon,
.section-icon,
.market-signal-icon,
.geodata-edu-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--zl-radius-md);
  background: var(--zl-surface-tint);
  color: var(--zonely-green-aa);
  border: 1px solid rgba(1, 167, 107, 0.12);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.rpt-section-icon .zl-icon,
.fct-section-icon .zl-icon,
.pft-section-icon .zl-icon,
.market-signal-icon .zl-icon,
.geodata-edu-icon-box .zl-icon {
  width: auto !important;
  height: auto !important;
  font-size: 18px !important;
}

.rpt-section-label,
.fct-title,
.pft-title,
.section-heading,
.chart-panel-title,
.card-title,
.demo-chart-title,
.crime-chart-title,
.deprivation-radar-title {
  color: var(--zonely-ink);
  letter-spacing: -0.01em;
  text-transform: none;
}

.rpt-kpi-grid,
.demo-kpi-grid,
.geodata-education-grid,
.livability-grid,
.deprivation-poverty-grid {
  gap: 10px;
}

.rpt-kpi-card,
.demo-kpi-card,
.geodata-edu-card,
.livability-card,
.deprivation-poverty-card,
.geodata-imd-item,
.fct-indicator,
.rpt-env-item,
.connectivity-tech-section,
.demo-chart-section,
.livability-noise-detail,
.fct-recs {
  background: var(--zl-surface-soft);
  border: 1px solid var(--zl-line);
  border-radius: var(--zl-radius-md);
  box-shadow: none;
}

.rpt-kpi-card:hover,
.demo-kpi-card:hover,
.geodata-edu-card:hover,
.deprivation-poverty-card:hover,
.geodata-imd-item:hover,
.fct-indicator:hover {
  transform: translateY(-1px);
  box-shadow: var(--zl-shadow-sm);
  border-color: var(--zl-line-strong);
}

.rpt-kpi-label,
.kpi-label,
.demo-kpi-label,
.geodata-edu-label,
.deprivation-poverty-label,
.livability-card-label,
.geodata-imd-label,
.pft-col-header,
th {
  color: #536179;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.deprivation-summary-card,
.deprivation-takeaway-row {
  background: var(--zl-surface-solid);
  border: 1px solid var(--zl-line);
  border-radius: var(--zl-radius-md);
}

.deprivation-poverty-card {
  padding: 14px 12px;
  text-align: left;
}

.deprivation-poverty-label {
  color: var(--zonely-ink-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.deprivation-poverty-sub {
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.marker-badge,
.panel-signal-badge,
.pft-badge,
.rpt-detail-param-status,
.pft-estimate-badge,
.amenity-type-badge,
.transport-type-badge,
.tag,
.market-signal-unit,
.pft-footer-note,
.pft-footer-disclaimer,
.data-freshness,
.transport-source-note,
.livability-source-note,
.auth-tooltip-eyebrow,
.rpt-big-score-label,
.score-meta-text,
.cover-meta-item label,
.roi-item-label,
.verdict-score-lbl,
.demo-health-ticks,
.tenure-ticks {
  font-size: 12px;
}

.data-freshness {
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
}

.rpt-kpi-value,
.kpi-value,
.demo-kpi-value,
.geodata-edu-value,
.livability-card-value,
.deprivation-main-score-val,
.deprivation-poverty-val,
.geodata-stat-value,
.pft-val,
.fct-ind-value {
  color: var(--zonely-ink);
}

.rpt-detail-bar-track,
.geodata-bar-track,
.geodata-imd-bar,
.crime-cat-bar-track,
.school-dist-track,
.tech-bar-track,
.tenure-track,
.demo-health-track {
  background: #E8EEF2;
  border-radius: var(--zl-radius-pill);
}

.rpt-detail-bar-fill,
.geodata-bar-fill,
.geodata-imd-bar-fill,
.crime-cat-bar-fill,
.school-dist-fill,
.tech-bar-fill,
.score-bar-fill,
.compare-bar-fill {
  border-radius: var(--zl-radius-pill);
  transition: transform var(--zl-slow) var(--zl-ease-expo), opacity var(--zl-med) ease;
}

.rpt-detail-param-desc,
.rpt-detail-desc {
  border: 0;
  border-radius: var(--zl-radius-md);
  color: var(--zonely-ink-2);
  line-height: 1.5;
}

.fct-tabs {
  gap: 8px;
}

.fct-tab {
  min-height: 36px;
  background: var(--zl-surface-soft);
  border: 1px solid var(--zl-line);
  color: #536179;
  border-radius: var(--zl-radius-pill);
  transition: background var(--zl-fast) ease, color var(--zl-fast) ease, transform var(--zl-fast) var(--zl-ease-out), box-shadow var(--zl-fast) ease;
}

.fct-tab:hover {
  background: #EEF8F4;
  color: var(--zonely-green-deep);
}

.fct-tab.active {
  background: var(--zonely-green-aa);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(1, 167, 107, 0.18);
}

.fct-body,
.geodata-section {
  animation: zlContentIn var(--zl-med) var(--zl-ease-expo);
}

@keyframes zlContentIn {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.fct-forecast-headline,
.fct-recs-title {
  font-style: normal;
}

.fct-forecast-body,
.fct-rec-item,
.market-signal-copy,
.rec-text,
.forecast-body,
.geodata-stat-label,
.crime-hero-trend,
.tenure-legend-item,
.demo-health-legend-item {
  color: #405064;
}

.fct-ind-icon,
.pft-metric-icon {
  width: 19px;
  height: 19px;
  color: currentColor;
}

.fct-ind-icon {
  color: #9CA3AF;
}

.fct-ind-positive {
  background: rgba(1, 167, 107, 0.08);
  border-color: rgba(1, 167, 107, 0.18);
}

.fct-ind-negative {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.14);
}

.pft-table-wrap,
.geodata-edu-table-container,
.table-wrap {
  scrollbar-color: rgba(15, 23, 42, 0.24) transparent;
}

.pft-table,
.geodata-edu-table,
table {
  border-collapse: separate;
  border-spacing: 0;
}

.pft-table thead,
thead {
  background: var(--zl-surface-soft);
}

th,
.pft-col-header,
.geodata-edu-table th {
  background: var(--zl-surface-soft);
  border-bottom: 1px solid var(--zl-line);
}

td,
.pft-cell,
.geodata-edu-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

tr:hover td,
.pft-cell:hover,
.geodata-edu-table tr:hover {
  background: rgba(1, 167, 107, 0.05);
}

.pft-cell.pft-cell-now {
  background: rgba(1, 167, 107, 0.07);
  border-left: 1px solid rgba(1, 167, 107, 0.16);
  border-right: 1px solid rgba(1, 167, 107, 0.16);
}

.pft-footer {
  background: var(--zl-surface-soft);
  border-top: 1px solid var(--zl-line);
}

.market-signal-card {
  margin-bottom: 18px;
}

.market-signal-header,
.market-signal-topline,
.market-signal-score-row,
.market-signal-note {
  display: flex;
  align-items: center;
}

.market-signal-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.market-signal-topline {
  gap: 10px;
}

.market-signal-card h3 {
  margin: 0;
  color: var(--zonely-ink);
  font-size: 16px;
  font-weight: 800;
}

.market-signal-strength {
  color: #536179;
  font-size: 13px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.market-signal-score-row {
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.market-signal-score {
  color: var(--zonely-ink);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.market-signal-unit {
  color: #536179;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-signal-note {
  gap: 8px;
  margin: 12px 0;
  padding: 9px 10px;
  border-radius: var(--zl-radius-md);
  background: #FEF3C7;
  color: #7C2D12;
  font-size: 12px;
  font-weight: 700;
}

.note-icon {
  width: 16px;
  height: 16px;
}

.market-signal-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.market-signal-list li {
  position: relative;
  padding-left: 16px;
  color: #405064;
  font-size: 12px;
  line-height: 1.45;
}

.market-signal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zonely-green-aa);
}

.market-signal-card.buy .market-signal-icon,
.market-signal-card.buy .market-signal-strength,
.market-signal-card.buy .market-signal-score {
  color: var(--zonely-green-aa);
}

.market-signal-card.sell .market-signal-icon,
.market-signal-card.sell .market-signal-strength,
.market-signal-card.sell .market-signal-score {
  color: #B91C1C;
}

.market-signal-card.hold .market-signal-icon,
.market-signal-card.hold .market-signal-strength,
.market-signal-card.hold .market-signal-score {
  color: #A16207;
}

.auth-modal {
  background: rgba(15, 23, 42, 0.48);
}

.auth-modal-card,
.panel-auth-lock-card {
  border-radius: var(--zl-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 8px rgba(15, 23, 42, 0.08), 0 18px 50px rgba(15, 23, 42, 0.14);
  animation: zlModalIn var(--zl-med) var(--zl-ease-expo);
}

@keyframes zlModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-auth-lock-card h2,
.auth-modal-card h2 {
  color: var(--zonely-ink);
  letter-spacing: -0.03em;
}

.panel-auth-lock-card h2 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.auth-field {
  height: 54px;
  border-radius: var(--zl-radius-lg);
  background: var(--zl-surface-soft);
  border: 1px solid var(--zl-line);
  box-shadow: none;
  font-size: 16px;
}

.auth-field:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--zl-focus);
}

.auth-submit-btn {
  min-height: 54px;
  font-size: 16px;
}

.auth-close-btn,
.auth-password-toggle {
  color: var(--zonely-green-aa);
  transition: background var(--zl-fast) ease, color var(--zl-fast) ease, transform var(--zl-fast) var(--zl-ease-out);
}

.auth-close-btn:hover,
.auth-password-toggle:hover {
  background: rgba(1, 167, 107, 0.08);
  color: var(--zonely-green-deep);
}

.panel-loading-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-left: 0;
}

.skeleton-loader>div {
  border-radius: var(--zl-radius-md);
  background: linear-gradient(90deg,
      rgba(1, 167, 107, 0.14) 25%,
      rgba(1, 167, 107, 0.28) 38%,
      rgba(1, 167, 107, 0.14) 64%);
  background-size: 320% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 24px rgba(1, 92, 61, 0.06);
}

.loader-logo-full {
  animation: fadeSlideUp var(--zl-slow) var(--zl-ease-expo) forwards;
}

#loader-percentage {
  animation: fadeSlideUp var(--zl-slow) var(--zl-ease-expo) 120ms forwards;
}

.profile-menu-action {
  color: var(--zonely-green-aa);
}

.profile-menu-action:hover {
  background: rgba(1, 167, 107, 0.08);
  color: var(--zonely-green-deep);
}

@media (max-width: 768px) {
  #top-bar {
    padding: 10px;
    gap: 8px;
  }

  #search-container {
    width: calc(100% - 104px);
  }

  #search-input {
    min-height: 46px;
    padding-left: 46px;
    font-size: 15px;
  }

  #filter-panel {
    min-width: calc(100vw - 28px);
  }

  #detail-panel {
    height: 20vh;
    border-radius: var(--zl-radius-lg) var(--zl-radius-lg) 0 0;
    box-shadow: 0 -12px 38px rgba(15, 23, 42, 0.16);
  }

  .panel-header,
  .panel-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel-area-name {
    font-size: 22px;
  }

  .rpt-score-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .rpt-big-score {
    text-align: left;
    min-width: 0;
  }

  .rpt-score-divider {
    width: 100%;
    height: 1px;
  }

  .rpt-score-meta {
    width: 100%;
  }

  .rpt-kpi-grid,
  .demo-kpi-grid,
  .geodata-education-grid,
  .livability-grid,
  .deprivation-poverty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-modal {
    padding-top: 96px;
  }

  .auth-modal-card {
    border-radius: var(--zl-radius-lg);
  }
}

@media (max-width: 480px) {

  .rpt-kpi-grid,
  .demo-kpi-grid,
  .geodata-education-grid,
  .livability-grid,
  .deprivation-poverty-grid,
  .fct-indicators {
    grid-template-columns: 1fr 1fr;
  }

  .fct-gauge-container {
    width: min(240px, 100%);
  }

  .deprivation-poverty-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
