/* ═══════════════════════════════════════════
   HERO — exact match to reference design
   ═══════════════════════════════════════════ */

.cn-hero {
  background: #F5570A;
  padding: 2.8rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

/* top-right dot pattern */
.cn-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 320px; height: 280px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* bottom-left big circle */
.cn-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 0;
}

.cn-hero-inner {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Left ────────────────────────────────── */
.cn-hero .section-label {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.cn-hero .section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: rgba(255,255,255,0.8) !important;
  border-radius: 2px;
  flex-shrink: 0;
}

.cn-hero h1 {
  color: #fff !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cn-hero-desc {
  color: rgba(255,255,255,0.9);
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── Stat Cards — peach bg, no border ────── */
.cn-stats-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border: none !important;
  background: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.cn-stat {
  background: rgba(255,255,255,0.92);
  border: none !important;
  border-radius: 12px;
  padding: 1rem 1.3rem !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 155px;
  flex: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cn-stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,87,10,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cn-stat-icon svg {
  width: 22px;
  height: 22px;
}

.cn-stat-num {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: #111 !important;
  line-height: 1 !important;
  display: block !important;
  letter-spacing: -0.02em !important;
}
.cn-stat-num sup { font-size: 0.55em; }
.cn-stat-red { color: #F5570A !important; }

.cn-stat-label {
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #111 !important;
  display: block !important;
  margin-top: 3px !important;
  line-height: 1.3 !important;
}

.cn-stat-sub {
  font-size: 0.68rem !important;
  color: #888 !important;
  display: block !important;
  margin-top: 1px !important;
}

/* ── Right: image ────────────────────────── */
.cn-hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 360px;
  position: relative;
}

/* large soft circle behind illustration */
.cn-hero-visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.cn-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.12));
  background: transparent;
  
}

/* ── TABS ────────────────────────────────── */
.cn-tabs-wrap {
  background: transparent;
  border-bottom: none;
  position: sticky;
  top: 70px;
  z-index: 99;
  padding: 0 0 0 0;
}
.cn-tabs {
  display: flex;
  gap: 0;
  background: transparent;
}
.cn-tab {
  flex: 1;
  background: #fff;
  border: none;
  border-right: 1.5px solid #e8e8e8;
  border-bottom: 2px solid #e8e8e8;
  padding: 1.2rem 1rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cn-tab:last-child { border-right: none; }
.cn-tab:hover { color: #F5570A; background: #fff8f5; }
.cn-tab.active {
  background: #C94200;
  color: #fff;
  border-color: #C94200;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 20px rgba(201,66,0,0.35);
  position: relative;
  z-index: 2;
}

.cn-tab-icon { font-size: 1rem; }

/* ── RESPONSIVE ──────────────────────────── */





/* ═══════════════════════════════════════════
   HERO — full orange/red background
   ═══════════════════════════════════════════ */

/* decorative background dots */

/* ── Left text ───────────────────────────── */

/* ── Stat Cards ──────────────────────────── */

/* ── Right visual ────────────────────────── */

/* big circle behind illustration */

/* ── TABS ────────────────────────────────── */

/* ── RESPONSIVE ──────────────────────────── */

/* Left */

/* Stats row */

/* Right: image */



/* ═══════════════════════════════════════════
   CITIZEN NEEDS — gilabs-citizen-needs.css
   Matches GILabs v2 design system exactly
   ═══════════════════════════════════════════ */

/* Tab Content */
.cn-tab-content { display: none; }
.cn-tab-content.active { display: block; }

/* ── MAP ────────────────────────────────── */
.cn-map-wrap {
  display: flex;
  height: calc(100vh - 140px);
  min-height: 500px;
}
#cnMap {
  flex: 1;
  z-index: 1;
}
.cn-map-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-right: 2px solid var(--border);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}
.cn-map-sidebar-header h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}
.cn-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cn-filter-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
}
.cn-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cn-pill {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--body);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.cn-pill:hover, .cn-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cn-pill.basic.active   { background: #E8400C; border-color: #E8400C; }
.cn-pill.standard.active{ background: #E88A0C; border-color: #E88A0C; }
.cn-pill.premium.active { background: #0C6BE8; border-color: #0C6BE8; }

/* Legend */
.cn-map-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg2);
  border-radius: 4px;
  border: 1.5px solid var(--border);
}
.cn-legend-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 0.3rem;
}
.cn-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--body);
}

/* Dots */
.cn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.cn-dot-basic    { background: #E8400C; }
.cn-dot-standard { background: #E88A0C; }
.cn-dot-premium  { background: #0C6BE8; }
.cn-dot-large    { background: #E8400C; width: 18px; height: 18px; border: 2px solid #fff; box-shadow: 0 0 0 2px #E8400C; }

/* Map Summary Panel */
.cn-map-summary {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 1rem;
  border-radius: 4px;
}
.cn-summary-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.6rem;
}
.cn-summary-body { font-size: 0.82rem; color: var(--body); line-height: 1.7; }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: 260px !important; }
.cn-popup {
  padding: 1rem;
  font-family: var(--font);
}
.cn-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.cn-popup-constituency {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--black);
}
.cn-popup-district {
  font-size: 0.72rem;
  color: var(--body);
  margin-top: 2px;
}
.cn-popup-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  color: #fff;
  white-space: nowrap;
}
.cn-popup-tag.Basic    { background: #E8400C; }
.cn-popup-tag.Standard { background: #E88A0C; }
.cn-popup-tag.Premium  { background: #0C6BE8; }
.cn-popup-need {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.cn-popup-desc {
  font-size: 0.85rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  border-left: 2px solid var(--border);
  padding-left: 0.6rem;
}
.cn-popup-authority {
  font-size: 0.75rem;
  color: var(--body);
  background: var(--bg2);
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}
.cn-popup-authority strong { color: var(--body); }
.cn-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid var(--border);
  padding-top: 0.7rem;
}
.cn-popup-rating { font-size: 0.85rem; color: var(--red); font-weight: 700; }
.cn-popup-like-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--ease);
  color: var(--body);
}
.cn-popup-like-btn:hover, .cn-popup-like-btn.liked {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── BROWSE / CITIZEN NEEDS ─────────────── */
.cn-browse-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.cn-browse-header h2 { margin-top: 0.5rem; }
.cn-browse-header p  { color: var(--body); margin-top: 0.3rem; }

.cn-browse-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 6px;
}
.cn-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cn-search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  pointer-events: none;
}
.cn-search {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  outline: none;
  background: #fff;
  transition: var(--ease);
  color: var(--black);
}
.cn-search:focus { border-color: var(--red); }
.cn-browse-pills,
.cn-browse-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cn-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Needs Grid */
.cn-needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cn-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem;
  color: var(--body);
  font-size: 0.9rem;
}
.cn-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem;
  color: var(--body);
}
.cn-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Need Card */
.cn-need-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.cn-need-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.cn-card-top {
  padding: 1.2rem 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cn-card-constituency {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
}
.cn-card-district {
  font-size: 0.72rem;
  color: var(--body);
  margin-top: 2px;
}
.cn-card-cat-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.cn-card-cat-badge.Basic    { background: #FFF0ED; color: #E8400C; border: 1px solid #ffc9b8; }
.cn-card-cat-badge.Standard { background: #FFF8ED; color: #E88A0C; border: 1px solid #ffd9a8; }
.cn-card-cat-badge.Premium  { background: #EDF3FF; color: #0C6BE8; border: 1px solid #a8c4ff; }

.cn-card-need {
  padding: 0.8rem 1.2rem 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}
.cn-card-desc {
  padding: 0.5rem 1.2rem 0;
  font-size: 0.85rem;
  color: var(--body);
  line-height: 1.6;
  flex: 1;
  border-left: 2px solid var(--border);
  margin: 0 1.2rem;
  padding: 0.4rem 0.6rem;
}
.cn-card-authority {
  margin: 0.6rem 1.2rem 0;
  font-size: 0.75rem;
  color: var(--body);
  background: var(--bg2);
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
}
.cn-card-authority strong { color: var(--body); }
.cn-card-footer {
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid var(--border);
  margin-top: 0.8rem;
}
.cn-card-rating { font-size: 0.85rem; color: var(--red); font-weight: 700; }
.cn-card-date   { font-size: 0.72rem; color: var(--light); }
.cn-like-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--ease);
  color: var(--body);
}
.cn-like-btn:hover { border-color: var(--red); color: var(--red); }
.cn-like-btn.liked {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cn-like-btn .cn-like-count { font-weight: 900; }

.cn-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── SUBMIT FORM ────────────────────────── */
.cn-submit-wrap { max-width: 1100px; }

.cn-anon-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 2.5rem;
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.6;
}
.cn-anon-icon { font-size: 1.2rem; flex-shrink: 0; }

.cn-submit-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: flex-start;
}
.cn-submit-form-col h2 { margin-bottom: 0.5rem; }

/* Form elements */
.cn-form { display: flex; flex-direction: column; gap: 1.5rem; }
.cn-form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.cn-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}
.cn-required { color: var(--red); }
.cn-select,
.cn-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  outline: none;
  transition: var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.cn-input {
  background-image: none;
  padding-right: 1rem;
}
.cn-select:focus,
.cn-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,64,12,0.08); }
.cn-select:disabled { background: var(--bg2); color: var(--light); cursor: not-allowed; }
.cn-select-lg { padding: 0.9rem 2.5rem 0.9rem 1rem; }

/* Category Select */
.cn-cat-select { display: flex; flex-direction: column; gap: 0.6rem; }
.cn-cat-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: var(--ease);
  width: 100%;
}
.cn-cat-btn:hover { border-color: var(--red); background: #FFF8F6; }
.cn-cat-btn.selected { border-color: var(--red); background: #FFF3EF; }
.cn-cat-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cn-cat-btn strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--black); }
.cn-cat-btn small  { display: block; font-size: 0.78rem; color: var(--body); margin-top: 2px; }

/* Stars */
.cn-stars {
  display: flex;
  gap: 0.3rem;
}
.cn-star {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s;
  padding: 0;
  line-height: 1;
}
.cn-star.active, .cn-star:hover { color: #F5A623; }
.cn-rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--body);
  margin-top: 0.3rem;
}

/* Textarea */
.cn-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  outline: none;
  transition: var(--ease);
  line-height: 1.6;
  min-height: 100px;
}
.cn-textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,64,12,0.08); }
.cn-char-count { text-align: right; font-size: 0.72rem; color: var(--body); margin-top: 0.3rem; }
.cn-submit-btn { width: 100%; padding: 1rem; font-size: 0.88rem; }

/* Success */
.cn-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 6px;
}
.cn-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.cn-success h3   { margin-bottom: 0.8rem; }
.cn-success p    { color: var(--body); margin-bottom: 1.5rem; max-width: 40ch; margin-left: auto; margin-right: auto; }

/* Info Cards */
.cn-info-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.cn-info-card h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.cn-info-card-red { border-left: 3px solid var(--red); }
.cn-how-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.cn-how-step:last-child { margin-bottom: 0; }
.cn-how-num {
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}
.cn-how-step strong { font-size: 0.88rem; color: var(--black); display: block; margin-bottom: 2px; }
.cn-how-step p { font-size: 0.85rem; color: var(--body); margin: 0; line-height: 1.5; }
.cn-cat-info {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.5;
}
.cn-cat-info:last-child { margin-bottom: 0; }
.cn-cat-info .cn-dot { margin-top: 4px; }

/* ── ADMIN NOTICE ───────────────────────── */
.cn-admin-bar {
  background: var(--red);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  padding: 0.4rem 0;
  text-align: center;
}





/* ── MOBILE SUBMIT FORM FIX ─────────────── */
@media (max-width: 900px) {
  .cn-submit-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cn-submit-info-col {
    display: none;
  }
  .cn-submit-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .cn-hero-inner { grid-template-columns: 1fr !important; }
  .cn-hero-visual { display: none !important; }
  .cn-stats-bar { gap: 0.8rem; flex-wrap: wrap; }
  .cn-stat { min-width: 0; flex: 1; }
  .cn-stat-label { font-size: 0.62rem !important; letter-spacing: 0.06em !important; }
  .cn-map-wrap { flex-direction: column; height: auto; }
  .cn-map-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
    border-right: none;
    border-bottom: 2px solid var(--border);
  }
  .cn-map-sidebar .cn-filter-group { flex: 1; min-width: 140px; }
  .cn-map-legend { display: none; }
  #cnMap { height: 400px; }
  .cn-needs-grid { grid-template-columns: 1fr; }
  .cn-browse-pills { display: none; }
}

@media (max-width: 600px) {
  .cn-hero { padding: 1.8rem 0 2.2rem; }
  /* Stack stats vertically on small screens */
  .cn-stats-bar {
    gap: 0.6rem;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cn-stat {
    padding: 0.8rem 0.9rem !important;
    min-width: 0;
    flex: none;
  }
  .cn-stat:last-child {
    grid-column: 1 / -1;
  }
  .cn-stat-num { font-size: 1.2rem !important; }
  .cn-stat-icon { width: 32px; height: 32px; flex-shrink: 0; }
  .cn-stat-icon svg { width: 18px; height: 18px; }
  .cn-stat-sub { display: none !important; }
  .cn-stat-label { font-size: 0.6rem !important; letter-spacing: 0.06em !important; }
  .cn-tab { font-size: 0.68rem; padding: 0.9rem 0.4rem; }
  .cn-tab-icon { display: none; }
  .cn-cat-btn { padding: 0.8rem; }
  .cn-submit-btn { font-size: 0.85rem; }
  .cn-anon-banner { font-size: 0.82rem; }
}

@media (max-width: 380px) {
  .cn-stats-bar { grid-template-columns: 1fr; }
  .cn-stat:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .cn-stats-bar { gap: 0.4rem; }
  .cn-stat { padding: 0.7rem 0.6rem !important; }
  .cn-stat-label { font-size: 0.58rem !important; }
}