/* ── Rim Country AI — Bright Light Theme ── */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f3ef;
  --bg-muted: #faf9f7;
  --surface: #ffffff;
  --surface-hover: #f0eee9;
  --gold: #b8922e;
  --gold-light: #d4ab3a;
  --gold-dark: #8a6d1f;
  --gold-soft: rgba(184, 146, 46, 0.1);
  --text: #1a1a1a;
  --text-muted: #5a5550;
  --text-dim: #8a857e;
  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.06);
  --white: #ffffff;
  --forest: #2d5f3a;
  --forest-soft: rgba(45, 95, 58, 0.08);
  --sky: #3a7bc8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--gold-soft); color: var(--gold-dark); }

a { color: var(--forest); text-decoration: none; transition: color var(--transition); }
a:hover { color: #245230; }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--forest) 0%, #1e4a2a 100%);
  color: #fff;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  display: block; padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--text); background: rgba(0, 0, 0, 0.04);
}
.nav-cta {
  background: var(--forest) !important; color: #fff !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #245230 !important; }
.nav-active {
  color: var(--forest) !important; font-weight: 700 !important;
  background: var(--forest-soft) !important;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:first-child { transform: rotate(45deg) translateY(3.5px); }
.nav-toggle.open span:last-child { transform: rotate(-45deg) translateY(-3.5px); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85) saturate(1.2);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 80%),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.hero-badge-row { margin-bottom: 24px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.16em;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 8vw, 88px); line-height: 0.95;
  letter-spacing: -0.02em; color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.65;
  color: rgba(255, 255, 255, 0.85); max-width: 540px; margin: 0 auto 40px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ── AI Search Engine ── */
.ai-search-container {
  max-width: 640px; margin: 0 auto 48px;
}
.ai-search-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.ai-search-box:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft), var(--shadow);
}
.ai-search-icon {
  flex-shrink: 0; color: #999;
}
.ai-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 16px;
  color: #1a1a1a; padding: 14px 0;
}
.ai-search-input::placeholder { color: #999; }
.ai-search-btn {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.ai-search-btn:hover { background: #245230; transform: scale(1.05); }
.ai-search-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.ai-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 16px;
}
.ai-suggestion {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px; padding: 8px 16px;
  font-family: var(--font-body); font-size: 13px;
  color: rgba(255, 255, 255, 0.85); cursor: pointer;
  transition: all var(--transition);
}
.ai-suggestion:hover {
  background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* AI Response Panel */
.ai-response-panel {
  display: none; margin-top: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-lg);
}
.ai-response-panel.visible { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-response-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--forest);
  letter-spacing: 0.04em;
}
.ai-response-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
  display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden;
}
.ai-response-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.ai-response-close {
  margin-left: auto; background: none; border: none;
  color: #999; cursor: pointer; padding: 4px;
  border-radius: 4px; transition: color var(--transition);
}
.ai-response-close:hover { color: var(--text); }
.ai-response-body {
  padding: 20px;
  font-size: 15px; line-height: 1.7; color: var(--text-muted);
  max-height: 300px; overflow-y: auto;
  text-align: left;
}
.ai-response-body .typing-dots {
  display: flex; gap: 5px; padding: 4px 0;
}
.ai-response-body .typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--forest);
  animation: dotPulse 1.4s infinite;
}
.ai-response-body .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-response-body .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 60%, 100% { opacity: .3; transform: scale(.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; padding: 0 28px; }
.hero-stat-value {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: #fff; display: block;
}
.hero-stat-label {
  font-size: 11px; color: rgba(255, 255, 255, 0.65); text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 4px; display: block;
}
.hero-stat-divider {
  width: 1px; height: 32px; background: rgba(255, 255, 255, 0.2);
}
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

/* ── Home Hero (GuideGeek-style) ── */
.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay-home {
  background:
    radial-gradient(ellipse at center 40%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  color: var(--gold);
  background: rgba(184, 146, 46, 0.1);
}
.hero-title-home {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.hero-sub-home {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.hero-search-container {
  max-width: 640px;
  margin: 0 auto 24px;
}
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.hero-search-box:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft), 0 8px 32px rgba(0, 0, 0, 0.15);
}
.hero-search-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--forest-soft);
}
.hero-search-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: #1a1a1a;
  padding: 12px 0;
  min-width: 0;
}
.hero-search-input::placeholder {
  color: #999;
}
.hero-search-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.hero-search-btn:hover {
  background: #245230;
  transform: scale(1.05);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ── Section Styles ── */
.section { padding: 100px 0; background: var(--bg); }
.section-dark { padding: 100px 0; background: var(--bg-alt); }
.section-muted { padding: 100px 0; background: var(--bg-muted); }

/* ── Rim Country Map ── */
.rc-map-container {
  max-width: 800px;
  margin: 0 auto;
}
.rc-map-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.rc-map-town {
  transition: opacity var(--transition);
  cursor: default;
}
.rc-map-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.rc-map-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}
a.rc-map-legend-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}
.rc-map-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
}
.rc-map-dot-lg {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 4px var(--forest-soft);
}
.rc-map-legend-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.rc-map-legend-item span {
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .rc-map-legend {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .rc-map-legend {
    grid-template-columns: 1fr;
  }
}
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--text);
}
.section-sub {
  font-size: 17px; line-height: 1.65; color: var(--text-muted);
  max-width: 540px; margin: 16px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none; letter-spacing: 0.04em;
}
.btn-gold {
  background: var(--forest); color: #fff;
}
.btn-gold:hover {
  background: #245230; color: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(45, 95, 58, 0.25);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--forest); color: var(--forest);
  transform: translateY(-1px);
}
.btn-outline-light {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline-light:hover {
  border-color: var(--forest); color: var(--forest);
  transform: translateY(-1px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── About ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.about-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1) saturate(1.05);
}
.about-image::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
}
.about-text h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px;
  color: var(--text);
}
.about-text p {
  color: var(--text-muted); margin-bottom: 16px; font-size: 16px; line-height: 1.7;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.about-stat-value {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--forest);
}
.about-stat-label {
  font-size: 12px; color: var(--text-dim); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.features-grid a.feature-card { cursor: pointer; }
.features-grid a.feature-card:hover h3 { color: var(--forest); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  background: var(--forest-soft); color: var(--forest);
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  margin-bottom: 12px; color: var(--text);
}
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ── Restaurants ── */
.restaurant-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 20px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--forest); color: var(--forest); }
.filter-btn.active {
  background: var(--forest); color: #fff;
  border-color: var(--forest);
}

.restaurant-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.restaurant-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.restaurant-card:hover {
  transform: translateY(-4px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.restaurant-card-img {
  position: relative; height: 200px; overflow: hidden;
}
.restaurant-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.95);
  transition: transform var(--transition), filter var(--transition);
}
.restaurant-card:hover .restaurant-card-img img {
  transform: scale(1.05); filter: brightness(1);
}
.restaurant-cuisine-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 100px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; color: var(--forest);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.restaurant-card-body { padding: 24px; }
.restaurant-card-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.restaurant-card-body .restaurant-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
}
.restaurant-meta {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.restaurant-meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.restaurant-meta-row svg { flex-shrink: 0; color: var(--forest); }
.restaurant-meta-row a { color: var(--forest); font-weight: 500; }
.restaurant-meta-row a:hover { color: #245230; }

.restaurant-loading {
  grid-column: 1 / -1; text-align: center; padding: 48px 0;
  color: var(--text-dim);
}
.loading-spinner {
  width: 32px; height: 32px; border: 2px solid var(--border);
  border-top-color: var(--forest); border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Council ── */
.council-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.council-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
  box-shadow: var(--shadow);
}
.council-card:hover {
  transform: translateY(-3px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.council-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: #fff; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
  overflow: hidden;
}
.council-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.council-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.council-role {
  font-size: 12px; color: var(--forest); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.council-email {
  display: block; font-size: 13px; color: var(--text-muted);
  padding-top: 16px; border-top: 1px solid var(--border);
}
.council-email:hover { color: var(--forest); }

/* ── News ── */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer; text-decoration: none; display: block;
}
.news-card:hover {
  transform: translateY(-3px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.news-tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.tag-community { background: rgba(45, 95, 58, 0.1); color: #2d5f3a; }
.tag-government { background: rgba(184, 146, 46, 0.12); color: #8a6d1f; }
.tag-recreation { background: rgba(58, 123, 200, 0.1); color: #2a6ab5; }
.tag-infrastructure { background: rgba(194, 100, 50, 0.1); color: #b35a20; }
.news-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  line-height: 1.35; margin-bottom: 12px; color: var(--text);
}
a.news-card { color: inherit; }
a.news-card:hover { color: inherit; }
a.news-card h3 { transition: color var(--transition); }
a.news-card:hover h3 { color: var(--forest); }
.news-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.news-meta { font-size: 12px; color: var(--text-dim); }

/* ── Events ── */
.events-list {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 800px; margin: 0 auto;
}
.event-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.event-card:hover {
  transform: translateY(-2px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.event-date-block {
  flex-shrink: 0; width: 64px; text-align: center;
  padding: 12px 8px; border-radius: var(--radius);
  background: var(--forest-soft); border: 1px solid rgba(45, 95, 58, 0.12);
}
.event-month {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--forest);
}
.event-day {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--forest); line-height: 1.2;
}
.event-details h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.event-details p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.event-location {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-dim); margin-top: 10px;
}

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.contact-form > p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 12px; font-weight: 700;
  margin-bottom: 6px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-alt);
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  outline: none; transition: border-color var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--forest);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field select { appearance: none; cursor: pointer; }
.form-status { margin-top: 16px; font-size: 14px; color: var(--forest); display: none; }

.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-info-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.contact-info-block h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.contact-info-block p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; background: var(--surface);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(45, 95, 58, 0.15); }
.faq-item summary {
  padding: 20px 24px; cursor: pointer; font-weight: 600;
  font-size: 15px; list-style: none; display: flex;
  align-items: center; justify-content: space-between;
  color: var(--text);
}
.faq-item summary::after {
  content: '+'; font-size: 20px; color: var(--text-dim);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; color: var(--forest); }
.faq-item p { padding: 0 24px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ── Footer ── */
.footer {
  background: #1a2e20; color: rgba(255, 255, 255, 0.55); padding: 72px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p { font-size: 14px; line-height: 1.65; margin-top: 16px; max-width: 280px; color: rgba(255, 255, 255, 0.55); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: linear-gradient(135deg, #4a9960, #2d5f3a); }
.footer-col h4 {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: #fff; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 13px;
}
.legal-links { list-style: none; display: flex; gap: 24px; }
.legal-links a { color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.legal-links a:hover { color: #fff; }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
  }
  .nav-links.open a { padding: 12px 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news-grid { grid-template-columns: 1fr; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 16px; }
}

@media (max-width: 600px) {
  .hero { min-height: 100svh; padding: 100px 0 60px; }
  .section, .section-dark, .section-muted { padding: 72px 0; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .council-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .hero-stat { padding: 0; }
  .ai-suggestions { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .ai-suggestion { white-space: nowrap; }
  .hero-icon-circle { width: 44px; height: 44px; }
  .hero-icon-circle svg { width: 22px; height: 22px; }
  .hero-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .hero-chip { white-space: nowrap; flex-shrink: 0; }
  .hero-search-input { font-size: 15px; }
}

/* ── Town Hero (sub-pages) ── */
.town-hero {
  position: relative; min-height: 50vh; display: flex; align-items: center;
  padding: 120px 0 60px; overflow: hidden;
}
.town-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.town-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.8) saturate(1.2);
}
.town-hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; margin: 0 auto;
}

/* ── Town Selector (home hero) ── */
.town-selector {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.town-selector-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff; font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.town-selector-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Town Cards ── */
.town-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.town-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.town-card:hover {
  transform: translateY(-4px); border-color: rgba(45, 95, 58, 0.3);
  box-shadow: var(--shadow-lg); color: inherit;
}
.town-card-img {
  height: 220px; overflow: hidden;
}
.town-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.town-card:hover .town-card-img img { transform: scale(1.05); }
.town-card-body { padding: 28px; }
.town-card-body h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.town-card-body p {
  font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
}
.town-card-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.town-card-stats span {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.town-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--forest);
  transition: gap var(--transition);
}
.town-card:hover .town-card-link { gap: 10px; }

/* ── Maggie Section ── */
.maggie-section {
  max-width: 720px; margin: 0 auto;
}
.maggie-intro {
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 40px;
}
.maggie-photo-wrapper {
  flex-shrink: 0;
  width: 140px; height: 140px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--forest);
  box-shadow: 0 8px 32px rgba(45, 95, 58, 0.2);
}
.maggie-photo {
  width: 100%; height: 100%; object-fit: cover;
}
.maggie-intro-text .eyebrow { margin-bottom: 8px; }
.maggie-intro-text .section-title {
  font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px;
}
.maggie-intro-text p {
  font-size: 16px; line-height: 1.7; color: var(--text-muted);
}

.maggie-chat-container {
  max-width: 640px; margin: 0 auto;
}
.maggie-chat-container .ai-search-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.maggie-chat-container .ai-search-input {
  color: var(--text);
}
.maggie-chat-container .ai-suggestions {
  justify-content: flex-start;
}
.maggie-chat-container .ai-suggestion {
  background: var(--forest-soft);
  border: 1px solid rgba(45, 95, 58, 0.15);
  color: var(--forest);
}
.maggie-chat-container .ai-suggestion:hover {
  background: rgba(45, 95, 58, 0.15);
  border-color: var(--forest);
  color: var(--forest);
}
.maggie-chat-container .ai-response-panel {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.maggie-input-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--forest);
}
.maggie-input-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Council Initials Avatar ── */
.council-avatar-initials {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
}

/* ── Responsive additions ── */
@media (max-width: 900px) {
  .town-cards { grid-template-columns: 1fr; }
  .maggie-intro { flex-direction: column; text-align: center; }
  .maggie-photo-wrapper { width: 120px; height: 120px; }
  .town-hero { min-height: 40vh; }
}
@media (max-width: 600px) {
  .town-selector { flex-direction: column; align-items: center; }
  .town-selector-btn { width: 100%; max-width: 280px; justify-content: center; }
  .maggie-photo-wrapper { width: 100px; height: 100px; }
  .town-hero { min-height: 35vh; padding: 100px 0 40px; }
}

/* ── Weather Widget ── */
.weather-banner {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 90;
  background: linear-gradient(135deg, #1e4a2a 0%, var(--forest) 100%);
  color: #fff; padding: 8px 0;
  font-size: 13px; text-align: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.weather-banner.visible { transform: translateY(0); }
.weather-banner-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap;
}
.weather-item {
  display: flex; align-items: center; gap: 6px;
}
.weather-item svg { flex-shrink: 0; }
.weather-temp { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.weather-desc { opacity: 0.85; }
.weather-alert {
  background: rgba(255, 200, 50, 0.2); border: 1px solid rgba(255, 200, 50, 0.4);
  border-radius: 100px; padding: 2px 12px; font-weight: 600;
  color: #ffd700;
}
.weather-close {
  background: rgba(255, 255, 255, 0.15); border: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; margin-left: 8px;
  transition: background var(--transition);
}
.weather-close:hover { background: rgba(255, 255, 255, 0.25); }
body.weather-visible .town-hero,
body.weather-visible .hero { padding-top: calc(120px + 40px); }

/* ── Emergency Alerts Banner ── */
.alert-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff; padding: 0;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.3);
}
.alert-banner.visible { transform: translateY(0); }
.alert-banner-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 12px;
}
.alert-banner-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  animation: alertPulse 2s ease-in-out infinite;
}
@keyframes alertPulse {
  0%, 100% { background: rgba(255, 255, 255, 0.2); }
  50% { background: rgba(255, 255, 255, 0.35); }
}
.alert-banner-content {
  flex: 1; min-width: 0;
}
.alert-banner-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; opacity: 0.85; line-height: 1;
  margin-bottom: 2px;
}
.alert-banner-title {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alert-banner-title a {
  color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 2px;
}
.alert-banner-title a:hover { text-decoration-color: #fff; }
.alert-banner-nav {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.alert-banner-nav button {
  background: rgba(255, 255, 255, 0.15); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background var(--transition);
}
.alert-banner-nav button:hover { background: rgba(255, 255, 255, 0.3); }
.alert-banner-count {
  font-size: 11px; font-weight: 700; opacity: 0.8; padding: 0 4px;
  min-width: 32px; text-align: center;
}
.alert-banner-close {
  background: rgba(255, 255, 255, 0.15); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; flex-shrink: 0; margin-left: 4px;
  transition: background var(--transition);
}
.alert-banner-close:hover { background: rgba(255, 255, 255, 0.3); }
body.alert-visible .nav { top: 52px; }
body.alert-visible .weather-banner { top: calc(72px + 52px); }
body.alert-visible .town-hero,
body.alert-visible .hero { padding-top: calc(120px + 52px); }
body.alert-visible.weather-visible .town-hero,
body.alert-visible.weather-visible .hero { padding-top: calc(120px + 52px + 40px); }

@media (max-width: 600px) {
  .alert-banner-inner { padding: 8px 16px; gap: 8px; }
  .alert-banner-icon { width: 28px; height: 28px; }
  .alert-banner-title { font-size: 13px; }
  .alert-banner-count { display: none; }
}

/* ── Trail Cards ── */
.trail-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.trail-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.trail-card:hover {
  transform: translateY(-3px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.trail-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px;
}
.trail-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.trail-difficulty {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; flex-shrink: 0;
}
.trail-difficulty.easy { background: rgba(45, 95, 58, 0.1); color: #2d5f3a; }
.trail-difficulty.moderate { background: rgba(184, 146, 46, 0.12); color: #8a6d1f; }
.trail-difficulty.strenuous { background: rgba(200, 50, 50, 0.1); color: #c23232; }
.trail-stats {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.trail-stat {
  font-size: 13px; color: var(--text-dim); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.trail-stat svg { color: var(--forest); }
.trail-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.trail-conditions {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--forest); font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  background: var(--forest-soft); border: 1px solid rgba(45, 95, 58, 0.12);
}
.trail-trailhead {
  font-size: 12px; color: var(--text-dim); margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}

/* ── Poll Cards ── */
.poll-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.poll-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.poll-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.poll-category {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
  background: var(--forest-soft); color: var(--forest);
}
.poll-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.poll-option-label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer;
  font-size: 14px; color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.poll-option-label:hover { border-color: var(--forest); background: var(--forest-soft); }
.poll-option-label input[type="radio"] { accent-color: var(--forest); }
.poll-results { display: flex; flex-direction: column; gap: 10px; }
.poll-result-row {
  display: flex; flex-direction: column; gap: 4px;
}
.poll-result-label {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--text);
}
.poll-result-bar {
  height: 8px; border-radius: 4px; background: var(--bg-alt); overflow: hidden;
}
.poll-result-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--forest), #4a9960);
  transition: width 0.6s ease;
}
.poll-total {
  font-size: 12px; color: var(--text-dim); text-align: right; margin-top: 4px;
}

/* ── Itinerary ── */
.itinerary-form {
  max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.itinerary-result {
  max-width: 640px; margin: 24px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); display: none;
  white-space: pre-wrap; font-size: 14px; line-height: 1.7;
  color: var(--text-muted);
}
.itinerary-result.visible { display: block; animation: slideUp 0.4s ease; }
.itinerary-result h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
}

/* ── Relocation Info Cards ── */
.relocation-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.relocation-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.relocation-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
}
.relocation-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.relocation-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.relocation-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--forest-soft); color: var(--forest); flex-shrink: 0;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
  color: #fff; padding: 48px; border-radius: var(--radius-lg);
  text-align: center;
}
.cta-banner h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn {
  background: rgba(255, 255, 255, 0.2); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-banner .btn:hover {
  background: rgba(255, 255, 255, 0.3); color: #fff;
  transform: translateY(-1px);
}

/* ── Search Box (directory) ── */
.search-container {
  max-width: 640px; margin: 0 auto 32px;
}
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 6px 20px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft), var(--shadow);
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 15px;
  color: var(--text); padding: 12px 0;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box svg { flex-shrink: 0; color: var(--text-dim); }

/* ── Map ── */
.map-container {
  height: 70vh; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.map-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 24px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

/* ── Visitors Section ── */
.visitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.visitor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.visitor-card:hover {
  transform: translateY(-6px); border-color: rgba(45, 95, 58, 0.3);
  box-shadow: var(--shadow-lg); color: inherit;
}
.visitor-card-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.4fr 1fr;
}
.visitor-card-featured .visitor-card-img { height: 100%; min-height: 300px; }
.visitor-card-featured .visitor-card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.visitor-card-featured h3 { font-size: clamp(24px, 3vw, 32px); }
.visitor-card-img {
  position: relative; height: 200px; overflow: hidden;
}
.visitor-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}
.visitor-card:hover .visitor-card-img img { transform: scale(1.08); }
.visitor-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.15) 100%);
}
.visitor-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.visitor-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--forest-soft); color: var(--forest);
}
.visitor-card-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.visitor-card-body p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1;
}
.visitor-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--forest);
  transition: gap var(--transition);
}
.visitor-card:hover .visitor-card-link { gap: 10px; }

@media (max-width: 900px) {
  .visitor-grid { grid-template-columns: 1fr 1fr; }
  .visitor-card-featured { grid-template-columns: 1fr; }
  .visitor-card-featured .visitor-card-img { min-height: 220px; }
}
@media (max-width: 600px) {
  .visitor-grid { grid-template-columns: 1fr; }
}

/* ── Maggie Floating Action Button ── */
.maggie-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
  border: none; cursor: pointer;
  box-shadow: 0 6px 28px rgba(45, 95, 58, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.maggie-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(45, 95, 58, 0.5);
}
.maggie-fab.hidden { display: none; }
.maggie-fab-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.maggie-fab-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.maggie-fab-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--forest);
  animation: fabPulse 2.5s infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ── Maggie Side Panel ── */
.maggie-panel-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.maggie-panel-overlay.open { opacity: 1; visibility: visible; }

.maggie-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: 420px; max-width: 100vw;
  background: var(--bg);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}
.maggie-panel.open { transform: translateX(0); }

.maggie-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
  color: #fff; flex-shrink: 0;
}
.maggie-panel-header-info {
  display: flex; align-items: center; gap: 12px;
}
.maggie-panel-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.maggie-panel-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.maggie-panel-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
}
.maggie-panel-status {
  font-size: 12px; opacity: 0.75; letter-spacing: 0.04em;
}
.maggie-panel-close {
  background: rgba(255, 255, 255, 0.15); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background var(--transition);
}
.maggie-panel-close:hover { background: rgba(255, 255, 255, 0.25); }

/* AI Transparency Notice */
.maggie-ai-notice {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: var(--forest-soft);
  border-bottom: 1px solid rgba(45, 95, 58, 0.12);
  font-size: 11px; line-height: 1.5;
  color: var(--text-muted);
  flex-shrink: 0;
}
.maggie-ai-notice svg { flex-shrink: 0; color: var(--forest); opacity: 0.6; }
.maggie-ai-notice a { color: var(--forest); font-weight: 600; text-decoration: underline; }

/* Service Request Form in Chat */
.maggie-route-card {
  background: var(--bg-alt);
  border: 1px solid rgba(45, 95, 58, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
}
.maggie-route-card h4 {
  font-size: 13px; font-weight: 700; color: var(--forest);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.maggie-route-card .route-dept {
  font-size: 12px; color: var(--text-muted); margin-bottom: 12px;
}
.maggie-route-form .form-row {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.maggie-route-form .form-row input,
.maggie-route-form .form-row textarea,
.maggie-route-form .form-row select {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 13px;
  background: var(--bg); color: var(--text);
}
.maggie-route-form .form-row textarea { resize: vertical; min-height: 60px; }
.maggie-route-form .form-row input:focus,
.maggie-route-form .form-row textarea:focus,
.maggie-route-form .form-row select:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 2px var(--forest-soft);
}
.maggie-route-submit {
  width: 100%; padding: 10px;
  background: var(--forest); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.maggie-route-submit:hover { background: #245230; }
.maggie-route-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.maggie-route-success {
  text-align: center; padding: 12px;
  color: var(--forest); font-size: 13px; font-weight: 600;
}
.maggie-route-success svg { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Messages area */
.maggie-panel-messages {
  flex: 1; overflow-y: auto; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 16px;
}

.maggie-message {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 92%;
}
.maggie-message-user {
  flex-direction: row-reverse; margin-left: auto;
}
.maggie-message-avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--forest);
}
.maggie-message-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.maggie-message-user .maggie-message-avatar {
  border-color: var(--border);
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.maggie-message-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  font-size: 14px; line-height: 1.65; color: var(--text);
}
.maggie-message-user .maggie-message-bubble {
  background: var(--forest);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  border-color: transparent;
}

.maggie-message-bubble .typing-dots {
  display: flex; gap: 5px; padding: 4px 0;
}
.maggie-message-bubble .typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--forest);
  animation: dotPulse 1.4s infinite;
}
.maggie-message-bubble .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.maggie-message-bubble .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Suggestions */
.maggie-panel-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 20px 16px; flex-shrink: 0;
}
.maggie-panel-suggestion {
  background: var(--forest-soft);
  border: 1px solid rgba(45, 95, 58, 0.15);
  border-radius: 100px; padding: 8px 16px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--forest); cursor: pointer;
  transition: all var(--transition);
}
.maggie-panel-suggestion:hover {
  background: rgba(45, 95, 58, 0.15);
  border-color: var(--forest);
}
.maggie-panel-suggestions.hidden { display: none; }

/* Input area */
.maggie-panel-input-area {
  padding: 16px 20px; flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.maggie-panel-input-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px 4px 4px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.maggie-panel-input-box:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}
.maggie-panel-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--text); padding: 10px 0;
}
.maggie-panel-input::placeholder { color: var(--text-dim); }
.maggie-panel-send {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.maggie-panel-send:hover { background: #245230; transform: scale(1.05); }
.maggie-panel-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Side panel responsive ── */
@media (max-width: 480px) {
  .maggie-panel { width: 100vw; }
  .maggie-fab { bottom: 60px; right: 20px; width: 56px; height: 56px; }
  .maggie-fab-avatar { width: 42px; height: 42px; }
}

/* ── Landmarks Grid ── */
.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.landmark-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.landmark-featured .landmark-img { height: 100%; min-height: 320px; }
.landmark-featured .landmark-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.landmark-featured h3 { font-size: clamp(24px, 3vw, 32px); }

.landmark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.landmark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.landmark-img {
  height: 200px; overflow: hidden;
}
.landmark-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.landmark-card:hover .landmark-img img { transform: scale(1.05); }
.landmark-body { padding: 24px; }
.landmark-tag {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--forest-soft); color: var(--forest);
  margin-bottom: 10px;
}
.landmark-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.landmark-body p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
}

@media (max-width: 900px) {
  .landmarks-grid { grid-template-columns: 1fr 1fr; }
  .landmark-featured { grid-template-columns: 1fr; }
  .landmark-featured .landmark-img { min-height: 240px; }
}
@media (max-width: 600px) {
  .landmarks-grid { grid-template-columns: 1fr; }
}

/* ── Homepage Poll Grid ── */
.home-poll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-poll-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-poll-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.home-poll-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.home-poll-options {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.home-poll-opt-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-alt);
  cursor: pointer; font-family: var(--font-body); font-size: 14px;
  color: var(--text); text-align: left; width: 100%;
  transition: border-color var(--transition), background var(--transition);
}
.home-poll-opt-btn:hover {
  border-color: var(--forest); background: var(--forest-soft);
}
.home-poll-opt-btn .poll-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.home-poll-opt-btn:hover .poll-radio {
  border-color: var(--forest);
}
.home-poll-results {
  display: flex; flex-direction: column; gap: 10px;
}
.home-poll-result-row {
  display: flex; flex-direction: column; gap: 4px;
}
.home-poll-result-label {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--text);
}
.home-poll-result-bar {
  height: 8px; border-radius: 4px; background: var(--bg-alt); overflow: hidden;
}
.home-poll-result-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--forest), #4a9960);
  transition: width 0.8s cubic-bezier(.4, 0, .2, 1);
}
.home-poll-total {
  font-size: 12px; color: var(--text-dim); text-align: right; margin-top: 4px;
}
.home-poll-voted-msg {
  font-size: 13px; color: var(--forest); font-weight: 600;
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}

@media (max-width: 600px) {
  .home-poll-grid { grid-template-columns: 1fr; }
}

/* ── Government Departments ── */
.govt-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.govt-dept-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.govt-dept-card:hover {
  transform: translateY(-3px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.govt-dept-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--forest-soft); color: var(--forest);
}
.govt-dept-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.govt-dept-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
}
.govt-dept-contact {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.govt-dept-contact span {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.govt-dept-contact span svg { color: var(--forest); flex-shrink: 0; }

@media (max-width: 600px) {
  .govt-dept-grid { grid-template-columns: 1fr; }
}

/* ── Business Highlights ── */
.biz-town-heading {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
  padding-bottom: 8px; border-bottom: 2px solid var(--forest);
  display: inline-block;
}
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 12px;
}
.biz-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.biz-card:hover {
  transform: translateY(-4px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg); color: inherit;
}
.biz-card-img {
  position: relative; height: 160px; overflow: hidden;
}
.biz-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.biz-card:hover .biz-card-img img { transform: scale(1.06); }
.biz-card-type {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 100px; padding: 3px 10px;
  font-size: 10px; font-weight: 700; color: var(--forest);
  letter-spacing: 0.06em;
}
.biz-card-body { padding: 18px; }
.biz-card-body h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.biz-card-body p {
  font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px;
}
.biz-card-loc {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-dim);
}
.biz-card-loc svg { color: var(--forest); flex-shrink: 0; }

@media (max-width: 600px) {
  .biz-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .biz-grid { grid-template-columns: 1fr; }
}

/* ── News Ticker (fixed bottom) ── */
.news-ticker {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: stretch;
  background: linear-gradient(135deg, #1e4a2a 0%, var(--forest) 100%);
  overflow: hidden; white-space: nowrap;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.news-ticker-label {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em;
  flex-shrink: 0;
  z-index: 1;
}
.news-ticker-track {
  flex: 1; overflow: hidden; position: relative;
}
.news-ticker-content {
  display: inline-flex; align-items: center; gap: 0;
  animation: tickerScroll 45s linear infinite;
  padding: 14px 0;
}
.news-ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  padding: 0 8px;
  transition: color var(--transition);
  white-space: nowrap;
}
.ticker-item:hover { color: #fff; text-decoration: underline; }
.ticker-dot {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 8px; font-size: 10px;
}
.ticker-dot::before { content: '•'; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
body { padding-bottom: 48px; }
.maggie-fab { bottom: 68px; }

/* ── Back-to-top button ── */
.back-to-top {
  position: fixed;
  bottom: 68px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #1e4a2a;
  transform: translateY(-2px);
}

/* ── Skip-to-content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--forest);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ── Visitors: Activity Cards ── */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 95, 58, 0.25);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.activity-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.activity-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}
.activity-card:hover .activity-card-img img { transform: scale(1.06); }
.activity-card-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; color: var(--forest);
  letter-spacing: 0.04em;
}
.activity-card-badge svg { flex-shrink: 0; }
.activity-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.activity-card-body h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.activity-card-body p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; flex: 1;
}
.activity-card-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-dim);
}
.activity-card-rating {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--forest-soft); color: var(--forest);
  border-radius: 100px; padding: 3px 10px;
  font-size: 12px; font-weight: 700;
}
.activity-card-rating svg { color: #d4a017; }
.activity-card-tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 100px; font-size: 11px; font-weight: 600;
  background: var(--bg-alt); color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Visitors: Category Filter Tabs ── */
.category-tabs {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 32px;
  justify-content: center;
}
.category-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition); letter-spacing: 0.02em;
}
.category-tab:hover {
  border-color: var(--forest); color: var(--forest);
  background: var(--forest-soft);
}
.category-tab.active {
  background: var(--forest); color: #fff;
  border-color: var(--forest);
}
.category-tab svg { width: 14px; height: 14px; }

/* ── Visitors: Day Trip Cards ── */
.daytrip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.daytrip-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.daytrip-card:hover {
  transform: translateY(-4px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg); color: inherit;
}
.daytrip-card-img {
  position: relative; height: 200px; overflow: hidden;
}
.daytrip-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.daytrip-card:hover .daytrip-card-img img { transform: scale(1.05); }
.daytrip-card-dist {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px);
  border-radius: 100px; padding: 4px 14px;
  font-size: 12px; font-weight: 600; color: #fff;
  letter-spacing: 0.02em;
}
.daytrip-card-body { padding: 24px; }
.daytrip-card-body h4 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.daytrip-card-body p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
}
@media (max-width: 900px) {
  .daytrip-grid { grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .daytrip-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
}

/* ── Visitors: Quick Stats Row ── */
.attraction-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  padding: 32px 0; margin-bottom: 16px;
}
.attraction-stat {
  text-align: center;
}
.attraction-stat-value {
  display: block; font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px); font-weight: 700;
  color: var(--forest); line-height: 1.1;
}
.attraction-stat-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-top: 4px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── Dashboard: Knowledge Updates Grid ── */
.dash-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.dash-knowledge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.dash-knowledge-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.dash-knowledge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.dash-knowledge-card[data-category="road closure"]::before { background: #e74c3c; }
.dash-knowledge-card[data-category="utility"]::before { background: #f39c12; }
.dash-knowledge-card[data-category="school"]::before { background: #3498db; }
.dash-knowledge-card[data-category="government"]::before { background: var(--forest); }
.dash-knowledge-card[data-category="community"]::before { background: #9b59b6; }
.dash-knowledge-card[data-category="budget"]::before { background: #27ae60; }
.dash-knowledge-card[data-category="history"]::before { background: #8B6914; }
.dash-knowledge-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 12px;
}
.dash-knowledge-card[data-category="road closure"] .dash-knowledge-badge {
  background: rgba(231, 76, 60, 0.1); color: #c0392b;
}
.dash-knowledge-card[data-category="utility"] .dash-knowledge-badge {
  background: rgba(243, 156, 18, 0.1); color: #d68910;
}
.dash-knowledge-card[data-category="school"] .dash-knowledge-badge {
  background: rgba(52, 152, 219, 0.1); color: #2980b9;
}
.dash-knowledge-card[data-category="government"] .dash-knowledge-badge {
  background: var(--forest-soft); color: var(--forest);
}
.dash-knowledge-card[data-category="community"] .dash-knowledge-badge {
  background: rgba(155, 89, 182, 0.1); color: #8e44ad;
}
.dash-knowledge-card[data-category="budget"] .dash-knowledge-badge {
  background: rgba(39, 174, 96, 0.1); color: #27ae60;
}
.dash-knowledge-card[data-category="history"] .dash-knowledge-badge {
  background: rgba(139, 105, 20, 0.1); color: #8B6914;
}
.dash-knowledge-card h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.dash-knowledge-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px;
}
.dash-knowledge-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-dim);
}
.dash-knowledge-meta a {
  font-size: 12px; color: var(--forest); font-weight: 600;
}
.dash-knowledge-card-clickable { cursor: pointer; }
.dash-knowledge-card-clickable:focus-visible {
  outline: 2px solid var(--forest); outline-offset: 2px;
}
.dash-knowledge-card-expanded { border-color: var(--forest); }
.dash-knowledge-expand-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); margin-bottom: 8px;
  transition: color 0.2s;
}
.dash-knowledge-card-clickable:hover .dash-knowledge-expand-hint { color: var(--forest); }
.dash-knowledge-expand-hint.expanded svg { transform: rotate(180deg); }
.dash-knowledge-expand-hint svg { transition: transform 0.2s; }
.dash-knowledge-source-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--forest-soft); color: var(--forest) !important;
  font-weight: 600; font-size: 12px; transition: background 0.2s;
}
.dash-knowledge-source-link:hover { background: var(--forest); color: #fff !important; }
.dash-knowledge-source-link:hover svg { stroke: #fff; }
.dash-knowledge-full { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }

/* ── Did You Know? History Section ── */
.dyk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.dyk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.dyk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.dyk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: #8B6914;
}
.dyk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 12px;
  background: rgba(139, 105, 20, 0.1); color: #8B6914;
}
.dyk-card h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.dyk-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px;
}
.dyk-expand-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); margin-bottom: 0;
  transition: color 0.2s;
}
.dyk-card:hover .dyk-expand-hint { color: #8B6914; }
.dyk-expand-hint.expanded svg { transform: rotate(180deg); }
.dyk-expand-hint svg { transition: transform 0.2s; }
.dyk-card-expanded { border-color: #8B6914; }
.dyk-card:focus-visible {
  outline: 2px solid #8B6914; outline-offset: 2px;
}
.dyk-full { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.dyk-source-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(139, 105, 20, 0.08); color: #8B6914 !important;
  font-weight: 600; font-size: 12px; transition: background 0.2s;
  text-decoration: none; margin-top: 4px;
}
.dyk-source-link:hover { background: #8B6914; color: #fff !important; }
.dyk-source-link:hover svg { stroke: #fff; }

/* ── Board of Supervisors ── */
.bos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.bos-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bos-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bos-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--forest-soft); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--forest);
}
.bos-avatar svg { width: 36px; height: 36px; }
.bos-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bos-district { font-size: 13px; font-weight: 600; color: var(--forest); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.bos-title { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.bos-contact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.bos-contact a { color: var(--forest); font-weight: 500; }
.bos-contact a:hover { text-decoration: underline; }
.bos-contact span { display: flex; align-items: center; gap: 6px; justify-content: center; }
.bos-contact span svg { flex-shrink: 0; }

/* ── Officials Directory ── */
.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}
.official-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; gap: 20px; align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.official-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.official-photo {
  width: 80px; height: 80px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--forest), #1e4a2a);
  display: flex; align-items: center; justify-content: center;
}
.official-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.official-photo-initials {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
}
.official-info { flex: 1; min-width: 0; }
.official-info h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
}
.official-role {
  font-size: 12px; color: var(--forest); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.official-contacts {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.official-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  text-decoration: none; word-break: break-all;
}
a.official-contact-item:hover { color: var(--forest); }
.official-contact-item svg { flex-shrink: 0; color: var(--forest); }
@media (max-width: 600px) {
  .officials-grid { grid-template-columns: 1fr; }
  .official-card { flex-direction: column; align-items: center; text-align: center; }
  .official-contacts { align-items: center; }
  .official-contact-item { justify-content: center; }
}

/* ── Public Resources Grid ── */
.public-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.public-resource-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none; color: inherit;
}
.public-resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--forest); }
.public-resource-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest-soft); color: var(--forest);
}
.public-resource-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); }
.public-resource-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.public-resource-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--forest); margin-top: auto;
}
.public-resource-link svg { transition: transform 0.2s; }
.public-resource-card:hover .public-resource-link svg { transform: translateX(4px); }

/* ── Financial Transparency ── */
.finance-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.finance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.finance-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.finance-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--forest-soft); color: var(--forest);
}
.finance-card-value {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: var(--forest); line-height: 1;
  margin-bottom: 8px;
}
.finance-card-label {
  font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.finance-card-detail {
  font-size: 12px; color: var(--text-muted);
}
.finance-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.finance-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.finance-detail-card h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.finance-detail-card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0;
}
@media (max-width: 600px) {
  .finance-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .finance-card-value { font-size: 26px; }
  .finance-details-grid { grid-template-columns: 1fr; }
}

/* ── Budget Charts ── */
.budget-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.budget-chart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.budget-chart-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.budget-chart-panel .chart-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Donut Chart */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}
.donut-chart {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.donut-chart svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}
.donut-chart svg circle {
  fill: none;
  stroke-width: 36;
  cx: 100;
  cy: 100;
  r: 82;
  transition: opacity 0.2s;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-center-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}
.donut-center-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.donut-legend-item:hover {
  background: var(--bg-alt);
}
.donut-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.donut-legend-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donut-legend-value {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-chart-label {
  width: 130px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-chart-track {
  flex: 1;
  height: 28px;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bar-chart-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  padding-left: 10px;
  min-width: 0;
}
.bar-chart-fill-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.bar-chart-amount {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

/* Budget Summary Cards */
.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.budget-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.budget-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.budget-summary-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.budget-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.budget-summary-header h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.budget-summary-header .summary-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}
.budget-summary-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.budget-summary-body p:last-child {
  margin-bottom: 0;
}
.budget-summary-body .key-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* Mini inline stat bars */
.mini-stat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.mini-stat-bar-label {
  font-size: 11px;
  color: var(--text-dim);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}
.mini-stat-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.mini-stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.mini-stat-bar-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  width: 40px;
  flex-shrink: 0;
}

/* Year-over-year comparison */
.yoy-comparison {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}
.yoy-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.yoy-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.yoy-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.yoy-label {
  font-size: 12px;
  color: var(--text-muted);
}
.yoy-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 100px;
}
.yoy-change.down {
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
}
.yoy-change.up {
  background: rgba(45, 95, 58, 0.08);
  color: var(--forest);
}
.yoy-change.neutral {
  background: var(--bg-alt);
  color: var(--text-muted);
}

/* Stacked bar chart for fund breakdown */
.stacked-bar-wrap {
  margin-top: 20px;
}
.stacked-bar {
  display: flex;
  height: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.stacked-bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex 1s cubic-bezier(.4,0,.2,1);
  position: relative;
  cursor: pointer;
}
.stacked-bar-seg span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.stacked-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.stacked-bar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.stacked-bar-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.stacked-bar-legend-amount {
  font-weight: 600;
  color: var(--text-muted);
}

/* Tooltip */
.chart-tooltip {
  position: fixed;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.chart-tooltip.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .budget-charts-row { grid-template-columns: 1fr; }
  .donut-chart-wrap { flex-direction: column; align-items: center; }
  .donut-legend { width: 100%; }
  .yoy-comparison { flex-direction: column; }
}
@media (max-width: 600px) {
  .budget-summary-grid { grid-template-columns: 1fr; }
  .bar-chart-label { width: 90px; font-size: 11px; }
  .donut-chart { width: 160px; height: 160px; }
  .donut-chart svg { width: 160px; height: 160px; }
  .donut-center-value { font-size: 22px; }
  .yoy-value { font-size: 28px; }
  .stacked-bar { height: 32px; }
}

/* ── Dashboard: Events Grid ── */
.dash-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.dash-event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dash-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.dash-event-date {
  flex-shrink: 0; text-align: center;
  background: var(--forest-soft); border-radius: var(--radius-sm);
  padding: 10px 14px; min-width: 60px;
}
.dash-event-date-month {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--forest);
}
.dash-event-date-day {
  display: block; font-family: var(--font-display);
  font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1;
}
.dash-event-info h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.dash-event-info p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.dash-event-time {
  font-size: 12px; color: var(--forest); font-weight: 600; margin-top: 6px;
  display: flex; align-items: center; gap: 4px;
}
.dash-event-category {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 8px;
  background: var(--bg-alt); color: var(--text-dim);
}
.dash-no-events {
  grid-column: 1 / -1; text-align: center;
  color: var(--text-muted); padding: 40px 20px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .dash-knowledge-grid { grid-template-columns: 1fr; }
  .dyk-grid { grid-template-columns: 1fr; }
  .dash-events-grid { grid-template-columns: 1fr; }
}

/* ── Strategic Plan ── */
.strategic-plan-summary {
  max-width: 800px;
  margin: 0 auto 40px;
}
.strategic-plan-vision {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  background: var(--forest-soft);
  border: 1px solid rgba(45, 95, 58, 0.15);
  border-radius: var(--radius-lg);
}
.strategic-plan-vision-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest);
  color: white;
}
.strategic-plan-vision h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.strategic-plan-vision p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.strategic-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.strategic-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.strategic-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.strategic-pillar-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}
.strategic-pillar-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.strategic-pillar-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.strategic-pillar-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.strategic-pillar-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
}
.strategic-pillar-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
@media (max-width: 700px) {
  .strategic-pillars-grid { grid-template-columns: 1fr; }
  .strategic-plan-vision { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Linked Knowledge Cards ── */
.dash-knowledge-card-linked {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.dash-knowledge-card-linked:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 95, 58, 0.3);
}
.dash-knowledge-card-linked .dash-knowledge-expand-hint {
  color: var(--forest);
}
.dash-knowledge-card-linked .dash-knowledge-expand-hint svg {
  stroke: var(--forest);
}

/* ── Community Ideas Board ── */
.ideas-submit-card {
  max-width: 640px; margin: 0 auto 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow);
}
.ideas-submit-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.ideas-submit-card p {
  color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6;
}
.idea-char-count {
  text-align: right; font-size: 12px; color: var(--text-dim); margin-top: 4px;
}
.idea-submit-success {
  display: none; padding: 16px; border-radius: var(--radius);
  background: var(--forest-soft); border: 1px solid rgba(45, 95, 58, 0.2);
  color: var(--forest); font-weight: 600; text-align: center;
  margin-top: 16px; font-size: 14px;
}
.idea-submit-success.visible { display: block; }

.ideas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.idea-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.idea-card:hover {
  transform: translateY(-2px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.idea-text {
  font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 12px;
}
.idea-author {
  font-size: 12px; color: var(--text-dim); margin-bottom: 16px; font-style: italic;
}
.idea-vote-row {
  display: flex; gap: 8px; align-items: center;
}
.idea-vote-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  color: var(--text-muted);
}
.idea-vote-btn:hover { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
.idea-vote-btn.agree:hover { border-color: #2D5F3A; color: #2D5F3A; }
.idea-vote-btn.disagree:hover { border-color: #b04050; color: #b04050; }
.idea-vote-btn.pass:hover { border-color: #6c757d; color: #6c757d; }
.idea-vote-btn.voted {
  pointer-events: none; opacity: 0.7;
}
.idea-vote-btn.voted.agree { background: rgba(45,95,58,0.1); border-color: #2D5F3A; color: #2D5F3A; }
.idea-vote-btn.voted.disagree { background: rgba(176,64,80,0.1); border-color: #b04050; color: #b04050; }
.idea-vote-btn.voted.pass { background: rgba(108,117,125,0.1); border-color: #6c757d; color: #6c757d; }
.idea-vote-count { font-size: 12px; color: var(--text-dim); margin-left: auto; white-space: nowrap; }

.ideas-consensus-panel {
  max-width: 640px; margin: 32px auto 0;
  background: var(--forest-soft); border: 1px solid rgba(45,95,58,0.15);
  border-radius: var(--radius-lg); padding: 24px;
}
.ideas-consensus-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--forest);
}
.ideas-consensus-header h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0;
}
#consensusSummary {
  font-size: 14px; line-height: 1.7; color: var(--text-muted);
}

/* ── Home Page Idea Submission Widget ── */
.home-idea-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.home-idea-info .eyebrow {
  color: var(--gold);
}
.home-idea-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.home-idea-reward {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(184,146,46,0.08), rgba(184,146,46,0.03));
  border: 1px solid rgba(184,146,46,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.home-idea-reward-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.home-idea-reward-icon svg {
  stroke: #fff;
}
.home-idea-reward strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.home-idea-reward p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.home-idea-reward-perks {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.home-idea-reward-perks li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.home-idea-reward-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.home-idea-reward-perks li strong {
  color: var(--gold-dark);
  font-weight: 700;
}
.home-idea-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.home-idea-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-idea-card h3 svg {
  color: var(--gold);
}
.home-idea-card .form-field {
  margin-bottom: 12px;
}
.home-idea-card textarea,
.home-idea-card input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  resize: vertical;
  box-sizing: border-box;
}
.home-idea-card textarea:focus,
.home-idea-card input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,46,0.1);
}
.home-idea-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}
.home-idea-link:hover {
  text-decoration: underline;
}
@media (max-width: 840px) {
  .home-idea-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-idea-card {
    position: static;
  }
}

/* ── $100 Idea Reward Sidebar ── */
.idea-reward-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  background: linear-gradient(160deg, #fffdf5, #fff8e5);
  border: 1.5px solid rgba(184,146,46,0.3);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 28px 22px 24px;
  box-shadow: -4px 8px 32px rgba(0,0,0,0.10), 0 0 0 1px rgba(184,146,46,0.06) inset;
  z-index: 200;
  text-align: center;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
  animation: ideaSidebarSlideIn 0.6s 1.5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ideaSidebarSlideIn {
  from { transform: translateY(-50%) translateX(100%); opacity: 0; }
  to   { transform: translateY(-50%) translateX(0);    opacity: 1; }
}
.idea-reward-sidebar.hidden {
  transform: translateY(-50%) translateX(110%);
  opacity: 0;
  pointer-events: none;
}
.idea-reward-sidebar-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  line-height: 0;
}
.idea-reward-sidebar-close:hover {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}
.idea-reward-sidebar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,146,46,0.3);
}
.idea-reward-sidebar-badge svg {
  stroke: #fff;
}
.idea-reward-sidebar-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 2px;
}
.idea-reward-sidebar-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.idea-reward-sidebar-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.idea-reward-sidebar-text strong {
  color: var(--gold-dark);
  font-weight: 700;
}
.idea-reward-sidebar-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(184,146,46,0.25);
}
.idea-reward-sidebar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,146,46,0.35);
}
@media (max-width: 1100px) {
  .idea-reward-sidebar {
    width: 190px;
    padding: 22px 16px 20px;
  }
  .idea-reward-sidebar-amount {
    font-size: 30px;
  }
}
@media (max-width: 840px) {
  .idea-reward-sidebar {
    top: auto;
    bottom: 80px;
    right: 0;
    transform: none;
    width: 180px;
    padding: 20px 14px 18px;
    border-radius: var(--radius) 0 0 var(--radius);
    animation-name: ideaSidebarSlideInMobile;
  }
  @keyframes ideaSidebarSlideInMobile {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
  }
  .idea-reward-sidebar.hidden {
    transform: translateX(110%);
  }
  .idea-reward-sidebar-amount {
    font-size: 28px;
  }
  .idea-reward-sidebar-text {
    font-size: 11.5px;
  }
}
@media (max-width: 480px) {
  .idea-reward-sidebar {
    width: 160px;
    padding: 18px 12px 16px;
    bottom: 80px;
  }
  .idea-reward-sidebar-badge {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
  }
  .idea-reward-sidebar-badge svg {
    width: 18px;
    height: 18px;
  }
  .idea-reward-sidebar-amount {
    font-size: 24px;
  }
  .idea-reward-sidebar-label {
    font-size: 13px;
  }
  .idea-reward-sidebar-text {
    font-size: 11px;
    margin-bottom: 14px;
  }
}

/* ── Real-Time Data Hub ── */
.data-hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.data-hub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.data-hub-card:hover {
  transform: translateY(-2px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.data-hub-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.data-hub-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.data-hub-card-header h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text); margin: 0;
}
.data-hub-body { }
.data-hub-value {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: var(--forest); margin-bottom: 4px;
}
.data-hub-detail {
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
}
.data-hub-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px;
  font-size: 13px; color: var(--text-dim);
}
.data-hub-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--forest); text-decoration: none;
}
.data-hub-link:hover { text-decoration: underline; }
.data-hub-fire-items { display: flex; flex-direction: column; gap: 8px; }
.data-hub-fire-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--bg-alt); border-radius: var(--radius-sm);
}
.data-hub-fire-area { font-size: 14px; font-weight: 500; color: var(--text); }
.data-hub-fire-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.data-hub-fire-badge.stage1 { background: #fef3c7; color: #92400e; }
.data-hub-fire-badge.stage2 { background: #fed7aa; color: #9a3412; }
.data-hub-fire-badge.none { background: #d1fae5; color: #065f46; }
.data-hub-fire-badge.closure { background: #fecaca; color: #991b1b; }
.data-hub-road-links { display: flex; flex-direction: column; gap: 6px; }
.data-hub-road-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-alt); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text);
  text-decoration: none; transition: all var(--transition);
}
.data-hub-road-item:hover {
  background: var(--forest-soft); color: var(--forest);
}

/* ── Digital Services Coming Soon ── */
.digital-services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.digital-service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.digital-service-card:hover {
  transform: translateY(-3px); border-color: rgba(45, 95, 58, 0.2);
  box-shadow: var(--shadow-lg);
}
.digital-service-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--forest-soft); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.digital-service-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.digital-service-card p {
  font-size: 14px; line-height: 1.6; color: var(--text-muted);
  margin-bottom: 16px;
}
.digital-service-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold-soft); color: var(--gold-dark);
}

/* ── Chat Feedback Buttons ── */
.maggie-feedback-row {
  display: flex; gap: 6px; margin-top: 8px;
}
.maggie-feedback-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent; cursor: pointer;
  color: var(--text-dim);
  transition: all var(--transition);
}
.maggie-feedback-btn:hover {
  background: var(--bg-alt); color: var(--text);
}
.maggie-feedback-btn.voted-up {
  background: rgba(45,95,58,0.1); border-color: #2D5F3A; color: #2D5F3A;
  pointer-events: none;
}
.maggie-feedback-btn.voted-down {
  background: rgba(176,64,80,0.1); border-color: #b04050; color: #b04050;
  pointer-events: none;
}
.maggie-feedback-btn.voted-inactive {
  opacity: 0.3; pointer-events: none;
}

@media (max-width: 900px) {
  .ideas-grid { grid-template-columns: 1fr; }
  .data-hub-grid { grid-template-columns: 1fr; }
  .digital-services-grid { grid-template-columns: 1fr; }
}
