  :root {
    --midnight: #0E1B2C;
    --paper: #F8FAFC;
    --snow: #F4F6F8;
    --pine: #0F7A6C;
    --pine-50: #E6F1EF;
    --pine-100: #BEDBD5;
    --pine-600: #0B6459;
    --pine-700: #084F47;
    --terracotta: #C85A33;
    --terracotta-50: #F9E9E2;
    --terracotta-600: #A64A28;
    --olive: #6B7A3A;
    --ochre: #C99A3E;
    --slate-50: #F8FAFC;
    --slate-100: #EEF2F6;
    --slate-200: #DDE4EC;
    --slate-300: #BDC8D4;
    --slate-400: #8C9AAB;
    --slate-500: #5B6573;
    --slate-600: #3E4856;
    --slate-700: #2A3342;
    --slate-800: #1A2232;
    --slate-900: #0E1625;
    --font-serif: 'Source Serif 4', ui-serif, Georgia, serif;
    --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  }

  /* Scoped reset — only affects descendants of .ce-page-wrap, not site nav/footer */
  .ce-page-wrap, .ce-page-wrap *, .ce-page-wrap *::before, .ce-page-wrap *::after {
    box-sizing: border-box;
  }
  .ce-page-wrap h1, .ce-page-wrap h2, .ce-page-wrap h3, .ce-page-wrap h4,
  .ce-page-wrap p, .ce-page-wrap ul, .ce-page-wrap ol, .ce-page-wrap figure,
  .ce-page-wrap blockquote {
    margin: 0;
    padding: 0;
  }
  .ce-page-wrap {
    font-family: var(--font-sans);
    color: var(--midnight);
    line-height: 1.5;
  }
  .ce-breadcrumb-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px 0;
  }

  .ce-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 96px;
  }

  /* ---- HERO ---- */
  .ce-hero { text-align: center; margin-bottom: 56px; }
  .ce-hero .eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pine);
    margin-bottom: 16px;
  }
  .ce-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 18px;
  }
  .ce-hero p {
    font-size: 18px;
    color: var(--slate-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* ---- MAP STAGE ---- */
  .map-stage {
    background: linear-gradient(180deg, #FAFCFD 0%, #F2F6F9 100%);
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 60px -30px rgba(14,27,44,0.15);
  }

  .stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .stage-instructions { font-size: 14px; color: var(--slate-500); }
  .stage-instructions strong { color: var(--midnight); font-weight: 600; }

  .selection-bar {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .selection-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate-500);
    padding: 6px 12px;
    background: var(--paper);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    transition: all 200ms ease;
  }
  .selection-count.active {
    color: var(--terracotta);
    border-color: var(--terracotta);
    background: var(--terracotta-50);
  }
  .compare-cta {
    background: var(--midnight);
    color: var(--paper);
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .compare-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .compare-cta:hover {
    background: var(--pine);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(15, 122, 108, 0.6);
  }
  .compare-cta .arrow { transition: transform 200ms ease; }
  .compare-cta:hover .arrow { transform: translateX(3px); }

  /* ---- MAP WRAP ---- */
  /* Aspect ratio matches the Wikimedia Spain location map (1183.5554 x 1015.8372). */
  .map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1183.5554 / 1015.8372;
    user-select: none;
    border-radius: 16px;
    overflow: visible;
  }
  .map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
    /* The source SVG already has cream Spain + light-blue sea + gray neighbors.
       We slightly soften the saturation to fit the rest of the design. */
    filter: saturate(0.85) contrast(0.97);
  }
  .pins-layer {
    position: absolute;
    inset: 0;
    pointer-events: none; /* pins re-enable individually */
  }

  /* ---- CITY PIN (HTML) ---- */
  .city-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 0; /* anchor point — children expand from this */
    height: 0;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
  }
  .pin-halo {
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%) scale(0.85);
    border-radius: 50%;
    background: var(--pine);
    opacity: 0;
    transition: opacity 250ms ease, transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), background 250ms ease;
    pointer-events: none;
  }
  .pin-dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--paper);
    border: 2.5px solid var(--pine);
    box-shadow: 0 2px 4px rgba(15, 122, 108, 0.25);
    transition: all 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
  }
  .city-pin .city-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
      -1.5px -1.5px 0 rgba(255,255,255,0.85),
       1.5px -1.5px 0 rgba(255,255,255,0.85),
      -1.5px  1.5px 0 rgba(255,255,255,0.85),
       1.5px  1.5px 0 rgba(255,255,255,0.85);
    transition: all 220ms ease;
  }

  .city-pin:hover .pin-halo,
  .city-pin.selected .pin-halo {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1);
    animation: halo-pulse 2.4s ease-in-out infinite;
  }
  .city-pin:hover .pin-dot {
    width: 18px; height: 18px;
    background: var(--pine);
    border-color: var(--paper);
    box-shadow: 0 4px 12px rgba(15, 122, 108, 0.45);
  }
  .city-pin:hover .city-label {
    color: var(--midnight);
    font-size: 13px;
  }
  .city-pin.selected .pin-dot {
    width: 20px; height: 20px;
    background: var(--terracotta);
    border-color: var(--paper);
    box-shadow: 0 4px 14px rgba(200, 90, 51, 0.55);
  }
  .city-pin.selected .pin-halo { background: var(--terracotta); }
  .city-pin.selected .city-label {
    color: var(--terracotta-600);
    font-size: 13px;
  }
  /* Push label below the pin if pin is near top edge (e.g., Bilbao) */
  .city-pin[data-label-position="below"] .city-label {
    bottom: auto;
    top: 16px;
  }

  /* ---- TOOLTIP ---- */
  .tooltip {
    position: absolute;
    background: var(--midnight);
    color: var(--paper);
    padding: 14px 16px;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 18px)) scale(0.96);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 240px;
    box-shadow: 0 20px 40px -12px rgba(14, 27, 44, 0.4);
    z-index: 10;
  }
  .tooltip.visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 22px)) scale(1);
  }
  .tooltip.below {
    transform: translate(-50%, 22px) scale(0.96);
  }
  .tooltip.below.visible {
    transform: translate(-50%, 26px) scale(1);
  }
  .tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--midnight);
  }
  .tooltip.below::after { bottom: auto; top: -6px; }

  .tooltip-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
  }
  .tooltip-region {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }
  .tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }
  .tooltip-stat { display: flex; flex-direction: column; gap: 2px; }
  .tooltip-stat-label {
    font-size: 10px;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
  }
  .tooltip-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
    font-family: var(--font-mono);
  }
  .tooltip-region-line {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    color: var(--slate-300);
    line-height: 1.5;
  }
  .tooltip-region-line strong {
    color: var(--paper);
    font-weight: 600;
  }
  .tooltip-region-line .sep {
    color: var(--slate-500);
    margin: 0 6px;
  }
  .tooltip-hint {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: var(--slate-400);
    text-align: center;
  }
  .tooltip-hint kbd {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
  }
  .tooltip-guide {
    margin-top: 6px;
    text-align: center;
  }
  .tt-guide-link {
    font-size: 11px;
    color: #93c5fd;
    text-decoration: none;
  }
  .tt-guide-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
  }
  .seo-city-chip--link {
    text-decoration: none;
    color: inherit;
  }
  .seo-city-chip--link:hover {
    background: var(--pine-50, #f0fdf4);
    border-color: var(--pine, #1e5f3b);
    color: var(--pine, #1e5f3b);
  }

  /* ---- COMPARISON PANEL ---- */
  .comparison-panel {
    margin-top: 32px;
    background: var(--paper);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 400ms ease, opacity 300ms ease, margin-top 400ms ease;
  }
  .comparison-panel.visible { max-height: 8000px; opacity: 1; }

  .comparison-mobile { display: none; }

  /* ---- MOBILE PER-CITY CARDS ---- */
  .city-mobile-card {
    border-bottom: 8px solid var(--snow);
  }
  .city-mobile-card:last-child { border-bottom: none; }

  .city-mobile-header {
    padding: 18px 16px 14px;
    background: var(--paper);
    position: relative;
    border-bottom: 1px solid var(--slate-100);
  }
  .city-mobile-header .name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--midnight);
  }
  .city-mobile-header .region {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
  }
  .city-mobile-header .badge {
    margin-top: 12px;
  }
  .city-mobile-header .remove {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--slate-100);
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .city-mobile-header .remove:active {
    background: var(--terracotta);
    color: var(--paper);
  }

  .city-mobile-section {
    padding: 4px 0;
  }
  .city-mobile-section-title {
    padding: 14px 16px 8px;
    background: linear-gradient(180deg, var(--snow), var(--paper));
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
  }
  .city-mobile-section-title .label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
  }
  .city-mobile-section-title .src {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--slate-400);
    flex-basis: 100%;
  }

  .city-mobile-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-100);
  }
  .city-mobile-row:last-child { border-bottom: none; }
  .city-mobile-row .lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
  }
  .city-mobile-row .val { color: var(--midnight); }

  .comparison-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--slate-200);
    background: linear-gradient(180deg, var(--paper), var(--snow));
  }
  .comparison-header h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .comparison-header p { font-size: 13px; color: var(--slate-500); margin-top: 4px; }

  .comparison-grid {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    border-bottom: 1px solid var(--slate-200);
  }

  .grid-cell {
    padding: 16px 20px;
    border-right: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
  }
  .grid-cell:last-child { border-right: none; }
  .grid-cell.row-label {
    font-size: 12px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    background: var(--snow);
  }
  .grid-cell.empty {
    background: var(--snow);
    color: var(--slate-300);
    text-align: center;
    align-items: center;
    font-size: 13px;
  }

  .city-header {
    padding: 24px 20px 18px;
    border-right: 1px solid var(--slate-100);
    background: var(--paper);
    position: relative;
  }
  .city-header:last-child { border-right: none; }
  .city-header .name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--midnight);
  }
  .city-header .region {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
  }
  .city-header .badge {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    background: var(--ochre);
    color: var(--midnight);
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.02em;
    position: relative;
  }
  .badge-cite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(14, 27, 44, 0.25);
    color: var(--paper);
    font-size: 9px;
    font-weight: 700;
    cursor: help;
    transition: background 180ms ease;
    font-family: var(--font-mono);
    position: relative;
  }
  .badge-cite:hover { background: rgba(14, 27, 44, 0.5); }
  .badge-cite::after {
    content: attr(data-src);
    position: absolute;
    bottom: calc(100% + 8px);
    right: -4px;
    padding: 8px 10px;
    background: var(--midnight);
    color: var(--paper);
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
    font-family: var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 50;
    box-shadow: 0 8px 16px -8px rgba(14,27,44,0.4);
  }
  .badge-cite::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--midnight);
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 49;
  }
  .badge-cite:hover::after,
  .badge-cite:hover::before { opacity: 1; }
  .city-header .remove {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slate-100);
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    transition: all 180ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
  }
  .city-header .remove:hover {
    background: var(--terracotta);
    color: var(--paper);
    transform: scale(1.08);
  }

  .stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--midnight);
  }
  .stat-value.muted { color: var(--slate-500); font-weight: 500; }

  .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
  }
  .badge-soft.high { background: var(--pine-50); color: var(--pine-700); }
  .badge-soft.medium { background: #FFF4DD; color: #8A6612; }
  .badge-soft.low { background: var(--slate-100); color: var(--slate-600); }
  .badge-soft.warm { background: var(--terracotta-50); color: var(--terracotta-600); }

  .heat-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--terracotta);
    font-weight: 500;
  }

  .meter { display: flex; align-items: center; gap: 10px; }
  .meter-bar {
    flex: 1;
    height: 6px;
    background: var(--slate-100);
    border-radius: 3px;
    overflow: hidden;
    max-width: 100px;
  }
  .meter-fill {
    height: 100%;
    background: var(--pine);
    border-radius: 3px;
    transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .meter-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
  }

  .city-about {
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate-700);
    font-style: italic;
  }

  .region-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
  }
  .region-cell .region-name {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--midnight);
  }
  .region-cell .region-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    color: var(--slate-600);
  }
  .region-cell .region-stat .lbl {
    color: var(--slate-400);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 64px;
    flex-shrink: 0;
  }
  .region-cell .region-stat .val {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--slate-700);
  }

  .grid-cell.section-divider {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, var(--snow), var(--paper));
    padding: 14px 20px 12px;
    min-height: auto;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .grid-cell.section-divider .label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
  }
  .grid-cell.section-divider .src {
    margin-left: auto;
    font-size: 10px;
    color: var(--slate-400);
    font-family: var(--font-mono);
  }

  /* Sunshine bar — yellow/amber gradient by hours */
  .sunshine-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .sunshine-secondary {
    font-size: 11px;
    color: var(--slate-500);
    font-family: var(--font-mono);
  }
  .sunshine-bar {
    height: 6px;
    background: var(--slate-100);
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
    position: relative;
  }
  .sunshine-fill {
    height: 100%;
    background: linear-gradient(90deg, #FCD34D, #F59E0B, #EA580C);
    border-radius: 3px;
    transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  /* Safety bar — red/yellow/green by score */
  .safety-cell { display: flex; flex-direction: column; gap: 4px; }
  .safety-bar {
    height: 6px;
    background: var(--slate-100);
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
  }
  .safety-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .safety-fill.low { background: #DC2626; }
  .safety-fill.med { background: #F59E0B; }
  .safety-fill.high { background: #16A34A; }
  .safety-label {
    font-size: 11px;
    color: var(--slate-500);
  }

  /* Best-for tags — small pills */
  .best-for-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .best-for-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: var(--pine-50);
    color: var(--pine-700);
    font-size: 11px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--pine-100);
  }

  .density-dots { display: flex; gap: 3px; }
  .density-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate-200);
  }
  .density-dots span.active { background: var(--pine); }

  .footnote {
    margin-top: 24px;
    text-align: center;
    color: var(--slate-400);
    font-size: 12px;
    font-family: var(--font-mono);
  }

  /* ---- SEO / EDITORIAL CONTENT (bottom of page, indexable) ---- */
  .seo-content {
    margin-top: 64px;
    padding: 48px 40px;
    background: var(--paper);
    border: 1px solid var(--slate-200);
    border-radius: 24px;
  }
  .seo-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--midnight);
    margin-bottom: 16px;
    line-height: 1.15;
  }
  .seo-content h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 8px;
    letter-spacing: -0.005em;
  }
  .seo-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--slate-700);
    margin-bottom: 16px;
  }
  .seo-content p:last-child { margin-bottom: 0; }
  .seo-content a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
  .seo-content a:hover { color: var(--pine-700); }
  .seo-lead {
    font-size: 18px;
    color: var(--slate-700);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 32px;
  }
  .seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 32px 0;
    padding: 28px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
  }
  .seo-grid h3 {
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .seo-grid h3::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pine);
  }
  .seo-grid p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .seo-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .seo-city-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--snow);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
  }
  .seo-sources {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--slate-200);
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.7;
  }
  .seo-sources strong { color: var(--slate-700); }
  @media (max-width: 768px) {
    .seo-content { padding: 32px 18px; margin-top: 40px; border-radius: 16px; }
    .seo-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
    .seo-content h2 { font-size: 26px; }
    .seo-lead { font-size: 16px; }
  }

  /* ---- RESPONSIVE ---- */
  @media (max-width: 768px) {
    .ce-hero { margin-bottom: 32px; }
    .ce-container { padding: 28px 14px 56px; }
    .map-stage { padding: 16px 12px; border-radius: 14px; }
    .stage-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .selection-bar { justify-content: space-between; }
    .stage-instructions { font-size: 12px; }

    /* Larger tap target around each pin (44x44px per WCAG) */
    .city-pin::before {
      content: '';
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 44px;
      height: 44px;
      border-radius: 50%;
    }
    /* Hide labels on mobile — too crowded with 12 pins */
    .city-pin .city-label { display: none; }

    /* Tooltip narrower and constrained to viewport */
    .tooltip { width: 200px; padding: 12px 14px; }
    .tooltip-title { font-size: 16px; }
    .tooltip-stats { gap: 6px 10px; }
    .tooltip-stat-value { font-size: 13px; }

    /* Comparison grid: hidden on mobile, mobile cards take over */
    .comparison-grid { display: none; }
    .comparison-mobile { display: block; }
    .grid-cell { padding: 12px 16px; min-height: auto; }
    .grid-cell.row-label {
      padding: 10px 16px 4px;
      min-height: auto;
      font-size: 11px;
    }
    .grid-cell.empty { display: none; }
    .grid-cell.section-divider {
      flex-wrap: wrap;
      padding: 12px 16px;
    }
    .grid-cell.section-divider .src {
      margin-left: 0;
      flex-basis: 100%;
      margin-top: 4px;
    }
    .city-header {
      padding: 18px 16px 14px;
      border-right: none;
      border-bottom: 1px solid var(--slate-200);
    }
    .city-header .name { font-size: 20px; }

    /* Comparison header */
    .comparison-header { padding: 18px 16px; }
    .comparison-header h2 { font-size: 20px; }

    /* Best-for tags wrap nicely */
    .best-for-tags { gap: 5px; }

    /* Region cell label column shrinks */
    .region-cell .region-stat .lbl { min-width: 56px; font-size: 9px; }
    .region-cell .region-stat .val { font-size: 11px; }

    /* Source popover: position so it never clips off-screen */
    .badge-cite::after { right: auto; left: 0; }
    .badge-cite::before { right: auto; left: 4px; }

    /* Footer note compact */
    .footnote { font-size: 11px; }
  }

  /* On touch devices: hover-only popovers also trigger on tap-and-hold */
  @media (hover: none) {
    .badge-cite:active::after,
    .badge-cite:active::before { opacity: 1; }
  }

  /* ---- ANIMATIONS ---- */
  @keyframes halo-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.18); }
  }

  @keyframes pop-in {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  .comparison-panel.visible .grid-cell,
  .comparison-panel.visible .city-header {
    animation: pop-in 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
