/* CSS Variables from Figma Design System */
:root {
  /* Colors - Using exact values from globals.css */
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  
  /* Slate colors */
  --slate-800: oklch(0.269 0 0);
  --slate-900: oklch(0.205 0 0);
  --slate-950: oklch(0.145 0 0);
  
  /* Emerald colors */
  --emerald-300: oklch(0.845 0.143 164.978);
  --emerald-400: oklch(0.696 0.17 162.48);
  --emerald-500: oklch(0.696 0.17 162.48);
  --emerald-950: oklch(0.262 0.051 172.552);
  
  /* Text colors */
  --text-slate-300: oklch(0.708 0 0);
  --text-slate-400: oklch(0.704 0.04 256.788);
  --text-slate-500: oklch(0.508 0 0);
  
  /* Border colors */
  --border-emerald: rgba(16, 185, 129, 0.3); /* emerald-500/30 */
  
  /* Typography */
  --font-size: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Border radius */
  --radius: 0.625rem;
  --radius-lg: 1.5rem;
  --radius-xl: 1.5rem;
  
  /* Dimensions */
  --sidebar-width: 256px; /* w-64 */
  --layers-panel-width: 384px; /* w-96 */
  --design-panel-width: 500px;
  --settings-panel-width: 450px;
  
  /* Tablet frame dimensions */
  --tablet-width: 1366px;
  --tablet-height: 1024px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--text-slate-300);
  background: var(--slate-800);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* Welcome Screen */
.welcome-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom right, rgb(2, 6, 23), rgb(15, 23, 42), rgb(6, 24, 19));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.welcome-title {
  font-size: 4rem;
  font-weight: 700;
  color: rgb(52, 211, 153);
  letter-spacing: 0.1em;
  margin: 0;
}

.welcome-button {
  background: rgb(16, 185, 129);
  color: rgb(15, 23, 42);
  border: none;
  padding: 1.5rem 3rem;
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5), 0 4px 6px -2px rgba(16, 185, 129, 0.5);
  transition: all 0.3s ease;
}

.welcome-button:hover {
  background: rgb(5, 150, 105);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.7), 0 4px 6px -2px rgba(16, 185, 129, 0.7);
  transform: scale(1.05);
}

/* Welcome Screen Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Main App */
.main-app {
  position: fixed;
  inset: 0;
  background: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablet Frame */
.tablet-frame {
  position: relative;
  width: var(--tablet-width);
  height: var(--tablet-height);
  max-width: 95vw;
  max-height: 95vh;
  background: var(--slate-950);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Map Background */
.map-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 50%, var(--emerald-950) 100%);
  background-image: url('../assets/images/city-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: box-shadow 0.3s ease;
}

.map-background.has-shadow {
  box-shadow: inset 0 0 100px 50px rgba(0, 0, 0, 0.5);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.map-overlay.active {
  opacity: 0.6;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(15, 23, 42, 0.95); /* slate-900/95 */
  backdrop-filter: blur(4px);
  border-right: 1px solid var(--border-emerald);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-emerald);
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--emerald-400);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s ease;
  margin: 0;
}

.sidebar-title:hover {
  color: var(--emerald-300);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-item {
  width: 100%;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.5); /* slate-800/50 */
  color: var(--text-slate-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
}

.menu-item:hover {
  background: var(--slate-800);
  color: var(--emerald-400);
}

.menu-item.active {
  background: var(--emerald-500);
  color: var(--slate-950);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5);
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-emerald);
}

.sidebar-footer p {
  font-size: 0.875rem;
  color: var(--text-slate-500);
  margin: 0;
}

/* Panels */
.panel {
  background: rgba(15, 23, 42, 0.95); /* slate-900/95 */
  backdrop-filter: blur(4px);
  border-right: 1px solid var(--border-emerald);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.design-panel {
  width: var(--design-panel-width);
}

.layers-panel {
  width: var(--layers-panel-width);
}

.settings-panel {
  width: var(--settings-panel-width);
}

.panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-emerald);
}

.panel-header h3 {
  font-size: 1.3rem;
  font-weight: var(--font-weight-semibold);
  color: var(--emerald-400);
  margin: 0 0 0.5rem 0;
}

.panel-header p {
  font-size: 0.875rem;
  color: var(--text-slate-400);
  margin: 0;
}

.panel-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-emerald);
}

/* Design Concept Panel */
.concept-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.icon-box {
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.2); /* emerald-500/20 */
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--emerald-400);
}

.section-header h4 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  color: var(--emerald-300);
  margin: 0;
}

.section-content {
  padding-left: 1rem;
  border-left: 2px solid rgba(16, 185, 129, 0.3);
}

.section-content p {
  color: var(--text-slate-300);
  margin-bottom: 0.75rem;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.section-content strong {
  color: var(--emerald-400);
  font-weight: var(--font-weight-semibold);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-item {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5); /* slate-800/50 */
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-slate-200);
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.process-step {
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 9999px;
  color: var(--emerald-300);
  white-space: nowrap;
  flex-shrink: 0;
}

.process-arrow {
  color: rgba(16, 185, 129, 0.5);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Layers Panel */
.layers-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.layer-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.5); /* slate-700/50 */
  background: rgba(30, 41, 59, 0.5); /* slate-800/50 */
  transition: all 0.3s ease;
}

.layer-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.layer-item.enabled {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
}

.layer-item.selected {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.8);
  border-width: 2px;
}

.layer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.layer-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: var(--text-slate-400);
}

.layer-item.enabled .layer-icon {
  color: var(--emerald-400);
}

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

.layer-label {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-slate-300);
  font-size: 0.875rem;
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  padding: 0;
}

.layer-label:hover {
  color: var(--emerald-300);
}

.layer-item.enabled .layer-label {
  color: var(--emerald-300);
}

.layer-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.layer-status {
  font-size: 0.875rem;
  color: var(--text-slate-500);
}

.layer-item.enabled .layer-status {
  color: var(--emerald-400);
}

.clear-button {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius);
  color: var(--emerald-400);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-button:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Settings Panel */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-section:not(:first-child) {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.settings-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-header h4 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--emerald-300);
  margin: 0;
}

.settings-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--emerald-400);
  flex-shrink: 0;
}

.language-buttons {
  display: flex;
  gap: 0.75rem;
}

.lang-button {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius);
  color: var(--emerald-400);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-button:hover {
  background: rgba(16, 185, 129, 0.1);
}

.lang-button.active {
  background: var(--emerald-500);
  color: var(--slate-950);
  border-color: var(--emerald-500);
}

.accessibility-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accessibility-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accessibility-header span {
  color: var(--text-slate-300);
}

.switch-item {
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
}

.slider-container {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.text-slider {
  width: 100%;
  height: 0.375rem;
  border-radius: 0.25rem;
  background: rgba(51, 65, 85, 0.5);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.text-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(16, 185, 129);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(16, 185, 129);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-slate-500);
}

.credits-content {
  padding-left: 2rem;
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

.credits-content p {
  margin-bottom: 0.5rem;
}

.credits-content ul {
  list-style: disc;
  list-style-position: inside;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.last-updated {
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-slate-500);
}

.reset-button {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius);
  color: var(--emerald-400);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.reset-button:hover {
  background: rgba(16, 185, 129, 0.1);
}

.reset-button svg {
  width: 1rem;
  height: 1rem;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(51, 65, 85, 0.5);
  transition: 0.3s;
  border-radius: 9999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: rgb(16, 185, 129);
}

.switch input:checked + .slider:before {
  transform: translateX(1.25rem);
}

/* Map View */
.map-view {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Map Overlay */
.map-overlay.active {
  opacity: 0.4;
}

/* Layer Detail Panels */
.layer-detail {
  position: absolute;
  inset: 0;
  padding: 2rem;
  overflow-y: auto;
  z-index: 20;
}

.layer-detail-content {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.layer-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.layer-detail-icon-box {
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer-detail-icon-box svg {
  width: 2rem;
  height: 2rem;
}

.layer-detail-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.layer-detail-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-slate-400);
  padding-left: 4rem;
}

/* Traffic Cards */
.traffic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.traffic-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(251, 146, 60, 0.5);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.traffic-card:hover {
  transform: scale(1.05);
}

.traffic-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.traffic-card-header svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.traffic-card-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.traffic-card-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

.risk-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: auto;
}

.risk-badge.high-risk {
  background: rgba(251, 146, 60, 0.2);
  color: rgb(251, 146, 60);
}

.risk-badge.medium-risk {
  background: rgba(251, 146, 60, 0.2);
  color: rgb(251, 146, 60);
}

.traffic-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.traffic-card-details > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-slate-300);
}

.traffic-card-details svg {
  flex-shrink: 0;
}

.traffic-card-details span {
  color: var(--text-slate-500);
}

/* Construction Cards */
.construction-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.construction-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .construction-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.construction-projects-grid > * {
  min-width: 0;
}

.timeline-filter-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(234, 179, 8, 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.timeline-filter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-slider {
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.5);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(250, 204, 21);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(250, 204, 21);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

.construction-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(234, 179, 8, 0.5);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.construction-card:hover {
  transform: scale(1.05);
}

.construction-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.construction-card-header svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.construction-card-header h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.construction-card-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

.impact-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.impact-badge.high-impact {
  background: rgba(251, 146, 60, 0.2);
  color: rgb(251, 146, 60);
}

.impact-badge.medium-impact {
  background: rgba(251, 146, 60, 0.2);
  color: rgb(251, 146, 60);
}

.impact-badge.low-impact {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(74, 222, 128);
}

.construction-card-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

.construction-card-details svg {
  flex-shrink: 0;
}

/* Summary Cards */
.summary-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid;
  border-radius: var(--radius-lg);
}

.summary-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.summary-card p {
  margin: 0;
}

/* Heat Summary Cards */
.heat-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Transport Summary Cards */
.transport-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Transport Layer Styles */
.transport-search-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.transport-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 0.5rem;
  color: var(--text-slate-200);
  font-size: 1rem;
  height: 3.5rem;
  transition: border-color 0.2s;
}

.transport-search-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
}

.transport-search-input::placeholder {
  color: var(--text-slate-500);
}

.transport-map-container {
  margin-bottom: 1.5rem;
}

.transport-stop-details {
  margin-bottom: 1.5rem;
}

.transport-stop-details.hidden {
  display: none;
}

.transport-stops-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.transport-stop-card {
  transition: all 0.2s;
}

.transport-stop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.transport-stop-card.selected {
  border-color: rgba(59, 130, 246, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.locate-me-btn {
  transition: all 0.2s;
}

.locate-me-btn:hover {
  background: rgb(59, 130, 246) !important;
  transform: scale(1.05);
}

.locate-me-btn:hover svg {
  color: white !important;
}

/* Air Summary Cards */
.air-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Green Summary Cards */
.green-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Demographics Summary Cards */
.demographics-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Noise Summary Cards */
.noise-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Waste Summary Cards */
.waste-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Waste Layer Styles */
.waste-map-container {
  margin-bottom: 1.5rem;
}

.waste-facility-details {
  margin-bottom: 1.5rem;
}

.waste-facility-details.hidden {
  display: none;
}

.waste-facilities-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.waste-facility-card {
  transition: all 0.2s;
}

.waste-facility-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.waste-facility-card.selected {
  border-color: rgba(16, 185, 129, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Air Quality Zones */
.air-quality-zones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.air-zone-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.air-zone-card:hover {
  transform: scale(1.02);
  border-color: rgba(6, 182, 212, 0.8);
}

.air-zone-card.selected {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(167, 139, 250, 0.8);
  border-width: 3px;
}

.air-zone-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.air-zone-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.air-zone-indicator.good {
  background: rgb(34, 197, 94);
}

.air-zone-indicator.moderate {
  background: rgb(234, 179, 8);
}

.air-zone-indicator.unhealthy {
  background: rgb(251, 146, 60);
}

.air-aqi-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: auto;
}

.air-aqi-badge.good {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(74, 222, 128);
}

.air-aqi-badge.moderate {
  background: rgba(234, 179, 8, 0.2);
  color: rgb(234, 179, 8);
}

.air-aqi-badge.unhealthy {
  background: rgba(251, 146, 60, 0.2);
  color: rgb(251, 146, 60);
}

.air-zone-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.air-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.air-zone-detail-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.air-zone-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.air-zone-detail-header svg {
  flex-shrink: 0;
}

.air-zone-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.air-detail-metric {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
}

/* Demographics Styles */
.choropleth-selector-card {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.choropleth-selector-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.choropleth-select {
  flex: 1;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  color: var(--text-slate-200);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.choropleth-select:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.choropleth-select:focus {
  border-color: rgba(139, 92, 246, 0.8);
}

.neighborhood-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.neighborhood-area-card {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.neighborhood-area-card:hover {
  transform: scale(1.02);
  background: rgba(139, 92, 246, 0.1);
}

.neighborhood-area-card.selected {
  background: rgba(139, 92, 246, 0.2);
  border-width: 3px;
}

.demographics-area-detail-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.demographics-area-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.demographics-area-header svg {
  flex-shrink: 0;
}

.demographics-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.demographics-kpi-item {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.demographics-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.demographics-chart {
  display: flex;
  flex-direction: column;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.income-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.income-item {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
}

.demographics-footnote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Green Spaces Styles */
.green-spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.green-space-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.green-space-card:hover {
  transform: scale(1.02);
  background: rgba(34, 197, 94, 0.1);
}

.green-space-card.selected {
  background: rgba(34, 197, 94, 0.2);
  border-width: 3px;
}

.green-space-detail-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.green-space-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.green-space-icon-box {
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.green-space-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.green-space-metric {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
}

.facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Heat Zones Styles */
.heat-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.heat-zone-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.heat-zone-card:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.97);
}

.heat-zone-card.selected {
  background: rgba(30, 41, 59, 0.97);
}

.heat-zone-detail-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.heat-zone-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.heat-zone-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.heat-detail-metric {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
}

/* Noise Zones Styles */
.noise-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.noise-zone-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.noise-zone-card:hover {
  transform: scale(1.02);
  background: rgba(139, 92, 246, 0.1);
}

.noise-zone-card.selected {
  background: rgba(139, 92, 246, 0.2);
  border-width: 3px;
}

.noise-zone-detail-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.noise-zone-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.noise-zone-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.noise-detail-metric {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
}

/* Traffic Cards Styles */
.traffic-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.traffic-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.traffic-card:hover {
  transform: scale(1.02);
}

.traffic-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.traffic-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Feedback Section Styles */
.feedback-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: none;
  border-radius: var(--radius-lg);
}

.feedback-section-header {
  margin-bottom: 1.5rem;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feedback-item {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
}

.feedback-input-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-input {
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-slate-300);
  font-size: 0.875rem;
  resize: vertical;
  font-family: inherit;
}

.feedback-input:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.6);
}

.feedback-submit-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-lg);
  color: rgb(248, 113, 113);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.feedback-submit-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

.feedback-like-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.375rem;
  color: rgb(248, 113, 113);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback-like-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Scrollbar Styling */
.panel::-webkit-scrollbar,
.layers-list::-webkit-scrollbar {
  width: 0.5rem;
}

.panel::-webkit-scrollbar-track,
.layers-list::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb,
.layers-list::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
}

.panel::-webkit-scrollbar-thumb:hover,
.layers-list::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .tablet-frame {
    width: 95vw;
    height: 95vh;
  }
}


/* Leaflet map: zoom buttons sit above the locate-me button */
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin-right: 1.6rem;
  margin-bottom: 5.5rem;
}

/* Free OpenStreetMap tiles, darkened to match the site (no API key needed) */
.map-tiles-dark {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.5);
}

/* Every top header (sidebar title and the panel next to it) has the same height,
   so their bottom lines always line up */
.top-header {
  height: 6.5rem;
  box-sizing: border-box;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Traffic layer: cards ---------- */
.traffic-cards-grid { align-items: stretch; gap: 1rem; margin-bottom: 0; }
.traffic-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.traffic-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.traffic-card-title { display: flex; align-items: flex-start; gap: 0.6rem; }
.traffic-card-title svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.2rem; }
.traffic-card-title h3 { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.traffic-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.traffic-risk-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.65rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.traffic-risk-pill > span { width: 0.45rem; height: 0.45rem; border-radius: 50%; }
.traffic-card-type { color: #CBD5E1; font-size: 0.875rem; }
.traffic-card .traffic-card-details {
  display: flex; flex-direction: column; gap: 0.55rem;
  margin-top: auto; padding-top: 0.85rem;
  border-top: 1px solid rgba(71, 85, 105, 0.5);
}
.traffic-card .traffic-card-details > .traffic-detail-row {
  display: grid;
  grid-template-columns: 1rem 8.5rem 1fr;
  align-items: start;
  column-gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.traffic-card .traffic-detail-row svg { width: 1rem; height: 1rem; margin-top: 0.1rem; color: rgb(52, 211, 153); }
.traffic-card .traffic-detail-label { color: #CBD5E1; }
.traffic-card .traffic-detail-value { color: #F8FAFC; font-weight: 600; }

/* ---------- Feedback call-to-action ---------- */
.feedback-cta {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(6, 40, 34, 0.96);
  border: 1px solid rgba(52, 211, 153, 0.6);
  border-radius: 0.875rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.feedback-cta-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.6rem; background: rgba(16, 185, 129, 0.2); color: rgb(52, 211, 153);
}
.feedback-cta-icon svg { width: 1.25rem; height: 1.25rem; display: block; }
.feedback-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.feedback-cta-text strong { color: #F1F5F9; font-size: 1rem; font-weight: 600; }
.feedback-cta-text span { color: #CBD5E1; font-size: 0.85rem; }
.feedback-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  min-height: 2.75rem; padding: 0 1.1rem;
  background: rgb(16, 185, 129); color: rgb(4, 34, 26);
  border: none; border-radius: 0.6rem; cursor: pointer;
  font-size: 0.9rem; font-weight: 600;
}
.feedback-cta-btn:hover { background: rgb(52, 211, 153); }
.feedback-cta-count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: rgba(4, 34, 26, 0.85); color: #6EE7B7; font-size: 0.75rem;
}

/* ---------- Feedback: helpful (heart) button ---------- */
.feedback-like-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2rem; padding: 0 0.6rem;
  background: transparent; border: 1px solid rgba(71, 85, 105, 0.6); border-radius: 9999px;
  color: #CBD5E1; font-size: 0.8rem; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.feedback-like-btn svg { width: 0.95rem; height: 0.95rem; transition: transform 0.2s, fill 0.2s; }
.feedback-like-btn:hover { border-color: rgba(248, 113, 113, 0.6); color: #FCA5A5; }
.feedback-like-btn.liked { color: rgb(239, 68, 68); border-color: rgba(239, 68, 68, 0.7); }
.feedback-like-btn.liked svg { fill: rgb(239, 68, 68); animation: heart-pop 0.45s ease; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-like-btn.liked svg { animation: none; }
}

/* ---------- Heat stress layer ---------- */
.heat-level-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.heat-card-live { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.heat-card-temp { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.heat-card-temp-label { color: #CBD5E1; font-size: 0.85rem; }
.heat-zone-detail-card-inline .heat-zone-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.heat-zone-detail-card-inline .heat-detail-metric {
  padding: 0.9rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--radius-lg);
}
.heat-detail-metric-label { margin: 0 0 0.25rem 0; color: #CBD5E1; font-size: 0.8rem; }
.heat-detail-metric-value { margin: 0; color: #F8FAFC; font-size: 1.4rem; font-weight: 700; }
.heat-detail-metric-sub { margin: 0.2rem 0 0 0; color: #CBD5E1; font-size: 0.8rem; }
.heat-detail-info { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.1rem; }
.heat-detail-info-title { margin: 0 0 0.2rem 0; color: #F1F5F9; font-size: 0.9rem; font-weight: 600; }
.heat-detail-info-text { margin: 0; color: #CBD5E1; font-size: 0.9rem; line-height: 1.55; }
.heat-detail-info-text strong { color: #F8FAFC; }
.heat-detail-advice {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.6);
}
.heat-detail-advice.is-hot { background: rgba(127, 29, 29, 0.45); border-color: rgba(248, 113, 113, 0.7); }
.heat-detail-source { margin: 1rem 0 0 0; color: #94A3B8; font-size: 0.75rem; line-height: 1.5; }

/* Heat: next-hours strip */
.heat-zone-detail-card-inline .heat-zone-detail-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.heat-hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.heat-hour {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.6rem 0.25rem; border-radius: var(--radius-lg); background: rgba(30, 41, 59, 0.6);
}
.heat-hour-time { color: #CBD5E1; font-size: 0.8rem; }
.heat-hour-temp { font-size: 1.05rem; font-weight: 700; }

/* ---------- Green spaces ---------- */
.green-space-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.green-space-card:hover { transform: translateY(-2px); background: rgba(30, 41, 59, 0.97); }
.green-space-card.selected { background: rgba(30, 41, 59, 0.97); }
.green-card-top { display: flex; align-items: center; gap: 0.75rem; }
.green-card-icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.9rem; background: rgba(34, 197, 94, 0.15);
}
.green-card-icon.is-large { width: 3.75rem; height: 3.75rem; }
.green-card-title { margin: 0 0 0.3rem 0; color: rgb(74, 222, 128); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.green-type-pill {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 9999px;
  background: rgba(34, 197, 94, 0.18); color: #86EFAC; font-size: 0.75rem; font-weight: 600;
}
.green-card-text { margin: 0; color: #E2E8F0; font-size: 0.9rem; line-height: 1.5; }
.green-card-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.green-fact {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.65rem; border-radius: 9999px;
  background: rgba(30, 41, 59, 0.9); border: 1px solid rgba(71, 85, 105, 0.6);
  color: #E2E8F0; font-size: 0.8rem;
}
.green-fact svg { width: 0.95rem; height: 0.95rem; color: #86EFAC; }
.green-fact.is-good { border-color: rgba(74, 222, 128, 0.5); color: #BBF7D0; }
.green-fact.is-bad { border-color: rgba(56, 189, 248, 0.5); color: #BAE6FD; }
.green-section-title { margin: 1.1rem 0 0.5rem 0; color: #F1F5F9; font-size: 0.9rem; font-weight: 600; }
.green-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.green-metric { padding: 0.8rem 1rem; border-radius: var(--radius-lg); background: rgba(30, 41, 59, 0.6); }
.green-metric-label { margin: 0 0 0.2rem 0; color: #CBD5E1; font-size: 0.8rem; }
.green-metric-value { margin: 0; color: #F8FAFC; font-size: 1.15rem; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.green-metric { min-width: 0; }
.green-metric-sub { margin: 0.2rem 0 0 0; color: #CBD5E1; font-size: 0.8rem; }
.green-outlook { margin: 0.6rem 0 0 0; padding: 0.6rem 0.9rem; border-radius: var(--radius-lg); font-size: 0.9rem; }
.green-outlook.is-good { background: rgba(22, 101, 52, 0.45); color: #BBF7D0; }
.green-outlook.is-bad { background: rgba(12, 74, 110, 0.5); color: #BAE6FD; }
.green-chip { padding: 0.3rem 0.8rem; border-radius: 9999px; background: rgba(34, 197, 94, 0.18); color: #86EFAC; font-size: 0.8rem; }

/* Map markers: little pins with a tree inside */
.green-marker { background: none; border: none; }
.green-marker-pin {
  position: relative; width: 42px; height: 42px; border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  background: #F0FDF4; border: 3px solid #22C55E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.green-marker-pin.is-forest { border-color: #15803D; background: #DCFCE7; }
.green-marker-pin svg { transform: rotate(45deg); }
.leaflet-marker-icon.is-active .green-marker-pin,
.green-marker:hover .green-marker-pin { transform: rotate(-45deg) scale(1.2); }
.leaflet-marker-icon.is-active .green-marker-pin { border-color: #FACC15; }
@media (prefers-reduced-motion: reduce) { .green-marker-pin { transition: none; } }

/* Green map markers: plain tree shapes */
.green-marker-tree { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); transition: transform 0.2s ease; transform-origin: 50% 100%; }
.green-marker:hover .green-marker-tree,
.leaflet-marker-icon.is-active .green-marker-tree { transform: scale(1.35); }
.leaflet-marker-icon.is-active .green-marker-tree g { stroke: #FACC15; }
@media (prefers-reduced-motion: reduce) { .green-marker-tree { transition: none; } }

/* ---------- Noise layer ---------- */
.noise-level-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.noise-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.noise-metric { padding: 0.9rem 1rem; border-radius: var(--radius-lg); background: rgba(30, 41, 59, 0.6); min-width: 0; }
.noise-metric-label { margin: 0 0 0.25rem 0; color: #CBD5E1; font-size: 0.8rem; }
.noise-metric-value { margin: 0; color: #F8FAFC; font-size: 1.4rem; font-weight: 700; }
.noise-metric-sub { margin: 0.2rem 0 0 0; color: #CBD5E1; font-size: 0.8rem; line-height: 1.4; }
.noise-scale { position: relative; height: 4.6rem; margin: 2.2rem 0.5rem 0.5rem; }
.noise-scale-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 0.6rem; border-radius: 9999px;
  background: linear-gradient(90deg, #22C55E 0%, #EAB308 45%, #EF4444 100%);
}
.noise-scale-who { position: absolute; top: -0.35rem; width: 2px; height: 1.3rem; background: #F8FAFC; transform: translateX(-1px); }
.noise-scale-who span { position: absolute; bottom: 1.45rem; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #F8FAFC; font-size: 0.72rem; font-weight: 600; }
.noise-scale-marker { position: absolute; top: -0.3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 3px solid #0F172A; transform: translateX(-50%); }
.noise-scale-marker span { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.8rem; font-weight: 700; }
.noise-scale-ref { position: absolute; top: 2.6rem; transform: translateX(-50%); }
.noise-scale-ref span { display: block; text-align: center; color: #94A3B8; font-size: 0.7rem; line-height: 1.3; white-space: nowrap; }
.noise-note { margin: 0.75rem 0 0 0; color: #CBD5E1; font-size: 0.85rem; line-height: 1.5; }

/* Selected / hovered cards stay solid so the text is readable */
.noise-zone-card:hover, .noise-zone-card.selected,
.neighborhood-area-card:hover, .neighborhood-area-card.selected {
  background: rgba(30, 41, 59, 0.97);
}
.noise-zone-card:hover, .neighborhood-area-card:hover { transform: translateY(-2px); }
