/* ============================================================
   London Broadband Speeds - Styles
   ============================================================ */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --border: #e2e6ea;
  --border-light: #eef1f4;
  --text: #1a1d23;
  --text-secondary: #5a6270;
  --text-muted: #8b95a5;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --green: #10b981;
  --green-light: #d1fae5;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --orange: #f97316;
  --red: #ef4444;
  --red-light: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --gradient-dark: linear-gradient(135deg, #1e3a5f 0%, #0c4a6e 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--primary); }
.nav { display: flex; gap: 6px; }
.nav-link { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: all 0.15s; }
.nav-link:hover { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--gradient-dark);
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14,165,233,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.2);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 28px; line-height: 1.7; }

/* ============================================================
   Search
   ============================================================ */
.search-container { max-width: 560px; margin: 0 auto; }

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 5px 5px 5px 16px;
  box-shadow: var(--shadow-xl);
  gap: 8px;
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-box input {
  flex: 1; border: none; outline: none; font-family: inherit; font-size: 15px;
  color: var(--text); background: transparent; padding: 10px 0;
}
.search-box input::placeholder { color: var(--text-muted); }

.search-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 20px;
  background: var(--gradient); color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.search-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.search-hints { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.search-hints span { font-size: 13px; color: rgba(255,255,255,0.45); }

.hint-btn {
  padding: 4px 12px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65);
  font-family: inherit; font-size: 13px; cursor: pointer; transition: all 0.15s;
}
.hint-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }

/* ============================================================
   Results
   ============================================================ */
.results-section { padding: 0 24px; margin-top: -24px; position: relative; z-index: 10; }

.results-container {
  max-width: 1080px; margin: 0 auto; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 28px;
  border: 1px solid var(--border-light);
}

.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.results-header h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.results-header h2 svg { color: var(--primary); }
#resultPostcode { color: var(--primary); text-transform: uppercase; }

.clear-btn {
  padding: 7px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); font-family: inherit;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.clear-btn:hover { border-color: var(--red); color: var(--red); }

.speed-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }

.speed-card {
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-light);
  background: var(--surface-alt); transition: all 0.2s;
}
.speed-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.speed-card-icon {
  width: 36px; height: 36px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}

.speed-card.superfast .speed-card-icon { background: var(--green-light); color: var(--green); }
.speed-card.ultrafast .speed-card-icon { background: var(--primary-light); color: var(--primary); }
.speed-card.fibre .speed-card-icon { background: var(--purple-light); color: var(--purple); }
.speed-card.addresses .speed-card-icon { background: var(--yellow-light); color: var(--yellow); }

.speed-card-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.speed-card-value { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.speed-card-bar { height: 5px; border-radius: 3px; background: var(--border); margin: 10px 0 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; width: 0%; transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1); }
.sfbb-fill { background: var(--red); }
.ufbb-fill { background: var(--orange); }
.fttp-fill { background: var(--yellow); }
.addr-fill { background: var(--primary); }
.speed-card-desc { font-size: 11px; color: var(--text-muted); }

.unable-section {
  padding: 20px; border-radius: var(--radius); background: var(--red-light);
  border: 1px solid rgba(239,68,68,0.15); margin-bottom: 24px;
}
.unable-section h3 { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 12px; }
.unable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.unable-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(255,255,255,0.7); border-radius: var(--radius-sm); }
.unable-speed { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.unable-value { font-size: 17px; font-weight: 700; color: var(--red); }

.suitability-section { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border-light); background: var(--surface-alt); }
.suitability-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.suitability-content { display: flex; gap: 28px; align-items: flex-start; }
.suitability-gauge { text-align: center; flex-shrink: 0; }
.gauge-circle { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; background: var(--green); box-shadow: 0 4px 12px rgba(16,185,129,0.3); margin-bottom: 6px; }
.gauge-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.suitability-details { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.suit-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.suit-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.suit-icon.good { background: var(--green-light); color: var(--green); }
.suit-icon.warn { background: var(--yellow-light); color: var(--yellow); }
.suit-icon.bad { background: var(--red-light); color: var(--red); }

/* ============================================================
   Error & Loading
   ============================================================ */
.error-banner {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 2000;
  display: flex; align-items: center; gap: 8px; padding: 10px 22px;
  background: var(--red); color: #fff; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity:0; transform: translateX(-50%) translateY(-16px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

.loading-overlay {
  position: fixed; inset: 0; z-index: 3000; background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.loading-overlay p { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Interactive Map
   ============================================================ */
.interactive-map-section {
  padding: 48px 24px 32px;
  max-width: 1360px;
  margin: 0 auto;
}

.imap-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.imap-header-left h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.imap-header-left p { font-size: 15px; color: var(--text-secondary); margin: 0; }

.metric-selector { display: flex; gap: 6px; flex-wrap: wrap; }

.metric-btn {
  padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}

.metric-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
.metric-btn.gigabit-btn.active { background: linear-gradient(135deg, #059669, #10b981); border-color: #059669; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
.metric-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.metric-btn.gigabit-btn:hover:not(.active) { border-color: #059669; color: #059669; }

/* District quick-jump bar */
.district-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.district-bar::-webkit-scrollbar { height: 4px; }
.district-bar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.district-bar-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }

.district-bar-chips { display: flex; gap: 6px; flex-wrap: nowrap; }

.dchip {
  padding: 6px 14px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); font-family: inherit;
  font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s;
  white-space: nowrap; flex-shrink: 0;
}

.dchip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.dchip.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.dchip.reset-chip { border-color: var(--text-muted); color: var(--text-muted); }
.dchip.reset-chip:hover { border-color: var(--text); color: var(--text); background: var(--surface-alt); }

/* Map container */
.map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: #e8ecf0;
}

#broadbandMap {
  width: 100%;
  height: 700px;
  z-index: 1;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(248,250,252,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.map-loading p { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

/* Legend */
.map-legend {
  position: absolute;
  bottom: 28px;
  left: 16px;
  z-index: 500;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}

.legend-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

.legend-bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 20%, #f59e0b 40%, #84cc16 60%, #22c55e 80%, #10b981 100%);
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.legend-labels span { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.legend-note { font-size: 10px; color: var(--text-muted); margin-top: 6px; }

/* Info panel */
.map-info-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  max-width: 320px;
  width: 100%;
  animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-close {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  border-radius: 50%; border: none; background: var(--surface-alt);
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.info-close:hover { background: var(--red-light); color: var(--red); }

.info-ward-name { font-size: 18px; font-weight: 800; margin-bottom: 2px; color: var(--text); }
.info-borough { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.info-metrics { display: flex; flex-direction: column; gap: 10px; }

.info-metric {
  display: flex; align-items: center; justify-content: space-between;
}

.info-metric-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.info-metric-value { font-size: 15px; font-weight: 700; }

.info-metric-bar { height: 5px; border-radius: 3px; background: var(--border); margin-top: 4px; }
.info-metric-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

.info-score { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 12px; }
.info-score-circle { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0; }
.info-score-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.info-score-label { font-weight: 700; color: var(--text); font-size: 13px; }

.map-source-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.map-source-note a { color: var(--primary); text-decoration: none; }
.map-source-note a:hover { text-decoration: underline; }

/* ============================================================
   Boroughs
   ============================================================ */
.boroughs-section { padding: 56px 24px; background: var(--surface-alt); }
.boroughs-container { max-width: 1080px; margin: 0 auto; text-align: center; }
.boroughs-container h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.boroughs-container > p { font-size: 15px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 24px; }

.borough-selector { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.borough-select {
  padding: 11px 36px 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); font-family: inherit; font-size: 14px; color: var(--text);
  min-width: 220px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b95a5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.vs-badge { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.compare-btn {
  padding: 11px 24px; border-radius: var(--radius-sm); border: none;
  background: var(--gradient); color: #fff; font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.compare-btn:hover { opacity: 0.92; }

.comparison-results { text-align: left; }

.comparison-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.comparison-table th, .comparison-table td { padding: 12px 18px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.comparison-table th { background: var(--surface-alt); font-weight: 600; color: var(--text-secondary); text-align: left; }
.comparison-table td { color: var(--text); }
.comparison-table .metric-name { font-weight: 600; }
.comparison-table .winner { background: rgba(16,185,129,0.06); color: var(--green); font-weight: 700; }

/* ============================================================
   Stats
   ============================================================ */
.stats-section { padding: 56px 24px; }
.stats-container { max-width: 1080px; margin: 0 auto; text-align: center; }
.stats-container h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.stats-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

.stat-card {
  padding: 28px 20px; background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-number { font-size: 36px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   About
   ============================================================ */
.about-section { padding: 56px 24px; background: var(--surface-alt); }
.about-container { max-width: 1080px; margin: 0 auto; }
.about-container h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; text-align: center; }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }

.about-card { padding: 24px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

.data-links { padding: 24px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.data-links h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.data-links ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.data-links a { color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.data-links a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 28px 24px; border-top: 1px solid var(--border-light); text-align: center; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer p { font-size: 13px; color: var(--text-secondary); }
.footer a { color: var(--primary); text-decoration: none; }
.footer-small { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Leaflet Overrides
   ============================================================ */
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm) !important; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-family: 'Inter', sans-serif !important; font-size: 13px !important; }
.leaflet-popup-tip { box-shadow: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .nav { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .hero { padding: 48px 16px 40px; }
  .search-box { flex-direction: column; padding: 10px; gap: 8px; }
  .search-box input { padding: 8px; text-align: center; }
  .search-btn { width: 100%; justify-content: center; }
  #broadbandMap { height: 500px; }
  .imap-header { flex-direction: column; align-items: flex-start; }
  .results-container { padding: 16px; }
  .speed-cards { grid-template-columns: repeat(2, 1fr); }
  .suitability-content { flex-direction: column; align-items: center; }
  .borough-select { min-width: 100%; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
  .map-info-panel { max-width: 260px; padding: 14px; }
  .map-legend { bottom: 12px; left: 8px; padding: 10px 14px; min-width: 160px; }
}

@media (max-width: 480px) {
  .speed-cards { grid-template-columns: 1fr; }
  .unable-grid { grid-template-columns: repeat(2, 1fr); }
  #broadbandMap { height: 400px; }
}
