/* RMP Bengaluru 2031 - Shared styles for Planning District pages */
:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --accent: #4f8cff;
  --accent2: #7c5cfc;
  --accent3: #ef4444;
  --green: #10b981;
  --yellow: #f59e0b;
  --orange: #f97316;
  --pink: #ec4899;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Nunito Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 56px 56px;
}

/* Back nav */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  padding: 8px 0;
  transition: color 0.2s;
  line-height: 1.45;
}
.pd-back:hover { color: var(--accent); }

/* Header */
.overview-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.pd-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; line-height: 1.25; letter-spacing: -0.02em; }
.pd-subtitle { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }

/* Map (left, bigger square) + Demography 2x2 cards (right) – cards match page, not long */
.pd-demography-map-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
}
.pd-map-col {
  flex-shrink: 0;
  width: 380px;
}
.pd-demography-col {
  flex: 1;
  min-width: 0;
}
.pd-demography-section { margin-bottom: 0; }
.pd-demography-section .subsection-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pd-demography-section .subsection-title::after { max-width: 120px; }
.pd-demography-section .stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.pd-demography-section .stat-card {
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.pd-demography-section .stat-card::before { height: 3px; }
.pd-demography-section .stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.pd-demography-section .stat-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pd-demography-section .stat-note {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .pd-demography-map-row { flex-direction: column; gap: 24px; }
  .pd-map-col { width: 100%; max-width: 420px; }
}

/* PD area map – left column, square, compact */
.pd-demography-map-row .pd-area-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  background: var(--card);
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
}
.pd-demography-map-row .pd-area-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-demography-map-row .pd-area-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 16px;
}
.pd-area-map-placeholder code { font-size: 10px; background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.pd-area-map-icon { font-size: 20px; opacity: 0.7; }

/* Legacy full-width area map (if used elsewhere) */
.pd-area-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: var(--card);
  min-height: 200px;
}
.pd-area-map { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.pd-area-map-placeholder { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: var(--text-muted); font-size: 13px; padding: 20px; }

/* Stat cards */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(79, 140, 255, 0.25);
}
.stat-card.green:hover { border-color: rgba(52, 211, 153, 0.3); }
.stat-card.orange:hover { border-color: rgba(249, 115, 22, 0.3); }
.stat-card.pink:hover { border-color: rgba(244, 114, 182, 0.3); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: height 0.25s ease;
}
.stat-card:hover::before { height: 4px; }
.stat-card.green::before { background: linear-gradient(90deg, var(--green), #2dd4bf); }
.stat-card.orange::before { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.stat-card.pink::before { background: linear-gradient(90deg, var(--pink), var(--accent3)); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 8px; letter-spacing: -0.02em; }
.stat-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }

/* Section line accents (Webflow-style) */
.section-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-title-line::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 6px;
}
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* Overview section – lead paragraph and card */
.pd-overview-section { margin-bottom: 44px; }
.pd-overview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
.pd-overview-card:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.pd-overview-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.pd-overview-lead + .pd-overview-lead { margin-top: 1em; }

/* Sections */
.section { margin-bottom: 44px; }
.section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Subsection titles – line accent, spacing */
.subsection-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.subsection-title::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 8px;
}
.section-intro {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.program-subsection { margin-bottom: 22px; }
.program-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.program-subsection .proposal-list { margin-top: 0; }

/* Link to maps in the report PDF */
.pd-doc-link {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.pd-doc-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.pd-doc-link a:hover { text-decoration: underline; }

/* Land Use Map Legend (report-style) */
.pd-map-legend {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.pd-map-legend:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); }
.pd-map-legend-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pd-map-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 22px;
}
.pd-map-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.pd-map-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Maps row: Existing and Proposed side by side, same size, full width */
.pd-maps-row {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-bottom: 24px;
}
.pd-maps-row .pd-figure {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 520px;
}
.pd-maps-row .pd-figure-img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  flex: 1;
  min-height: 0;
}
.pd-maps-row .pd-figure-placeholder {
  flex: 1;
  min-height: 220px;
  display: flex;
}
.pd-maps-row .pd-figure-caption {
  flex-shrink: 0;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .pd-maps-row { flex-direction: column; }
  .pd-maps-row .pd-figure { height: auto; min-height: 320px; }
  .pd-maps-row .pd-figure-img { max-height: 380px; }
}

/* Figure: Land Use Maps (image or placeholder) */
.pd-figure {
  margin: 0 0 24px 0;
  max-width: 100%;
}
.pd-figure-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}
.pd-figure-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.pd-figure-placeholder .pd-figure-hint {
  font-size: 11px;
  opacity: 0.8;
}
.pd-figure-icon { font-size: 48px; opacity: 0.6; }
.pd-figure-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* Land use */
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lu-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.25s ease;
}
.lu-panel:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); border-color: rgba(79, 140, 255, 0.2); }
.lu-panel-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lu-panel-title .dot { width: 8px; height: 8px; border-radius: 50%; }
.lu-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lu-bar-label { font-size: 11px; width: 140px; min-width: 140px; color: var(--text-muted); text-align: right; }
.lu-bar-track { flex: 1; height: 18px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.lu-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}
.lu-bar-fill span { font-size: 9px; font-weight: 700; color: #fff; }

/* Land Use Distribution: Summary on top, then two tables side by side */
.lu-statement-section {
  margin-bottom: 28px;
}
.lu-statement-section:last-of-type { margin-bottom: 0; }
.lu-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.lu-tables-row .lu-statement-section { margin-bottom: 0; }
.lu-statement-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  letter-spacing: 0.5px;
}
.lu-table-wrap {
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}
.lu-table-wrap:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.lu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.lu-table th, .lu-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.lu-table th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 10px; }
.lu-table td.lu-td-name { text-align: left; color: var(--text); font-weight: 500; }
.lu-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.lu-table .lu-total-row { font-weight: 700; border-top: 2px solid var(--border); }
.lu-table .lu-total-row td { color: var(--text); }
.lu-table.lu-table-single { min-width: 320px; }
.lu-table-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* Description & tags */
.desc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.desc-box:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); }
.desc-box p { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-bottom: 12px; }
.desc-box p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.tag:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); opacity: 0.95; }
.tag.blue { border-color: var(--accent); color: var(--accent); }
.tag.green { border-color: var(--green); color: var(--green); }
.tag.orange { border-color: var(--orange); color: var(--orange); }
.tag.purple { border-color: var(--accent2); color: var(--accent2); }

/* Proposals list */
.proposal-list { list-style: none; }
.proposal-list li {
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.proposal-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-color: rgba(79, 140, 255, 0.2);
}
.proposal-list li .bullet { min-width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; }

/* Wards */
.wards-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ward-chip {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ward-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: rgba(79, 140, 255, 0.25);
}

/* Infra grid */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.infra-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.infra-card .infra-val { font-size: 20px; font-weight: 800; }
.infra-card .infra-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Nav to other PDs */
.pd-nav-links { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.pd-nav-links .subsection-title { margin-bottom: 14px; }
.pd-nav-links a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.pd-nav-links a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .lu-grid { grid-template-columns: 1fr; }
  .lu-tables-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
}
