/* =========================================================
   Where Can I Live — global stylesheet
   CSS variables drive light / dark theming.
   ========================================================= */

:root {
    --bg: #0a0a0b;
    --bg-elevated: #121214;
    --surface: #151517;
    --surface-2: #1e1e22;
    --text: #f4f4f5;
    --text-muted: #a3a3ac;
    --muted: #a3a3ac;
    --border: #2c2c33;
    --primary: #f97316;
    --primary-dark: #e0660a;
    --accent: #ffa733;
    --accent-soft: #3d2610;
    --accent-text: #1a0e05;
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
    --info: #fb923c;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 6px 22px rgba(0, 0, 0, .4);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, .6);
    --maxw: 1200px;
    --navbar-h: 68px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --bg: #0a0a0b;
    --bg-elevated: #121214;
    --surface: #151517;
    --surface-2: #1e1e22;
    --text: #f4f4f5;
    --text-muted: #a3a3ac;
    --muted: #a3a3ac;
    --border: #2c2c33;
    --primary: #f97316;
    --primary-dark: #e0660a;
    --accent: #ffa733;
    --accent-soft: #3d2610;
    --accent-text: #1a0e05;
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
    --info: #fb923c;
    --shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 6px 22px rgba(0, 0, 0, .4);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, .6);
}

[data-theme="light"] {
    --bg: #f7f9fc;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #17171c;
    --text-muted: #6b7280;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #f97316;
    --primary-dark: #c25b0a;
    --accent: #ff7a00;
    --accent-soft: #fff1e6;
    --accent-text: #4a2300;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --info: #ea580c;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 18px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, .12);
}


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

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    transition: background-color .2s ease, color .2s ease;
}

img { max-width: 100%; height: auto; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 650; }

p { margin: 0 0 1rem; color: var(--text); }
p.muted, .muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tinted { background: var(--surface-2); }
.site-main { min-height: 60vh; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 0; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: var(--navbar-h);
    backdrop-filter: saturate(140%) blur(8px);
    background-color: color-mix(in srgb, var(--surface) 82%, transparent);
}
.header-inner { height: var(--navbar-h); display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 1.3rem; }
.brand-name { letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text); font-weight: 500; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 9px;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--surface-2); cursor: pointer;
}
.nav-toggle-bar {
    display: block; height: 2px; width: 100%;
    background: var(--text); border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle:hover { border-color: var(--primary); box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 35%, transparent); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-2);
    cursor: pointer; color: var(--text); font-size: 18px;
}
.theme-toggle:hover { border-color: var(--primary); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: 1px solid transparent; line-height: 1.2;
    transition: transform .08s ease, background-color .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-text); }
.btn--outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card h3, .card h2 { margin-top: 0; }
.card--link { color: inherit; }
.card--link:hover { text-decoration: none; }

/* City card */
.city-card { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.city-card-link { display: flex; gap: 16px; align-items: center; padding: 20px; color: inherit; flex: 1; }
.city-card-link:hover { text-decoration: none; }
.city-card-flag {
    font-size: 34px; line-height: 1; width: 52px; height: 52px;
    display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; flex: none;
}
.city-card-body { flex: 1; }
.city-card-name { margin: 0; }
.city-card-country { margin: 2px 0 0; color: var(--text-muted); font-size: .92rem; }
.city-card-score { padding-right: 16px; }
.city-card-status { padding: 0 20px 18px; }

.score-ring {
    --pct: 50;
    width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0);
    font-weight: 700; font-size: .8rem; color: var(--text); position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; z-index: 1; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    background: var(--surface-2); color: var(--text);
    text-transform: uppercase;
}
.badge--very-comfortable, .badge--premium-lifestyle { background: var(--accent-soft); color: var(--success); }
.badge--comfortable { background: var(--accent-soft); color: var(--accent); }
.badge--affordable { background: #dcfced; color: var(--success); }
.badge--tight-budget { background: #fef3c7; color: var(--warning); }
.badge--very-difficult { background: #fee2e2; color: var(--danger); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(900px 500px at 15% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
                radial-gradient(700px 400px at 90% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.hero h1 { max-width: 15ch; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 54ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; }
.hero-stat b { font-size: 1.7rem; display: block; }
.hero-stat span { color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step-card .step-num {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 14px;
}

/* ---------- Calculator ---------- */
.calc-shell { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .calc-shell { grid-template-columns: 1fr 1fr; } }
.calc-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.calc-progress span { flex: 1; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.calc-progress span.is-active { background: var(--primary); }

.calc-step { display: none; }
.calc-step.is-active, .calc-step.is-visible { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.calc-step.is-hidden { display: none; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field-hint { color: var(--text-muted); font-size: .82rem; margin-top: 6px; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 6px; }

.input, select.input, textarea.input {
    width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-size: 1rem; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.input.is-invalid { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); cursor: pointer; font-weight: 500; font-size: .92rem;
}
.chip:hover { border-color: var(--primary); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }

.calc-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; }

/* ---------- Result cards ---------- */
.result-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 620px) { .result-item { grid-template-columns: 1fr; } }
.result-rank {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface-2); font-weight: 800; color: var(--text-muted);
}
.result-item:first-child .result-rank { background: var(--accent); color: var(--accent-text); }
.result-meta b { font-size: 1.25rem; display: block; }
.result-meta span { color: var(--text-muted); font-size: .9rem; }
.result-stats { display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: .92rem; }
.result-stats .stat-row { display: flex; gap: 12px; justify-content: flex-end; }
.result-stats .stat-label { color: var(--text-muted); }
.result-stats .stat-value { font-weight: 700; color: var(--text); }
.result-stats .stat-value.positive { color: var(--success); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-weight: 700; color: var(--text); background: var(--surface-2); }
.table td { color: var(--text); }
.table--striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.table .t-muted { color: var(--text-muted); }

/* Comparison table: highlight the best value in each row */
.table .t-best {
    color: var(--success); font-weight: 700;
}
.table .t-best::after { content: " ★"; font-size: .75em; }
.table td.t-best { background: color-mix(in srgb, var(--success) 9%, transparent); }
.table td.t-lowest { color: var(--success); font-weight: 700; }
.table td.t-highest { color: var(--primary); font-weight: 700; }
.small { font-size: .85rem; }
.verdict { border-left: 4px solid var(--primary); padding: 6px 16px; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.verdict b { color: var(--primary); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); text-decoration: none; }
.breadcrumbs-sep { color: var(--text-muted); opacity: .6; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-box .stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-box .stat-label { color: var(--text-muted); font-size: .85rem; }

/* ---------- KPI rows ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 18px 0; }
.kpi { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.kpi b { display: block; font-size: 1.4rem; color: var(--primary); }
.kpi span { font-size: .8rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; }
textarea.input { min-height: 180px; resize: vertical; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- Panel / admin ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 760px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; }
.admin-sidebar a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; margin-bottom: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--surface-2); color: var(--primary); text-decoration: none; }
.admin-main { padding: 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }

/* ---------- Auth card ---------- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }

/* ---------- Flash ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert--success { background: #dcfced; color: #14532d; }
[data-theme="dark"] .alert--success { background: #0f3d25; color: #86efac; }
.alert--error { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .alert--error { background: #3d1212; color: #fca5a5; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.text-large { font-size: 1.25rem; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-2 { gap: 8px; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.pagination span { background: var(--surface-2); }
.pagination a:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }
.pagination .pagination-active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination .pagination-disabled { color: var(--text-muted); opacity: .55; cursor: not-allowed; }
.pagination .pagination-ellipsis { border-color: transparent; background: transparent; color: var(--text-muted); }
.pagination-meta { color: var(--text-muted); font-size: .9rem; margin-top: 18px; }
.pagination-meta b { color: var(--text); }

/* ---------- Ad slot ---------- */
.ad-slot { position: relative; overflow: hidden; margin: 0 auto; max-width: var(--maxw); min-height: 90px; display: grid; place-items: center; padding: 6px; }
.ad-slot--vertical { min-height: 250px; }
.ad-slot--in-article { min-height: 160px; }
.ad-slot .ad-ad-label { position: absolute; top: 2px; right: 6px; font-size: .6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 44px 20px 24px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; color: var(--text-muted); font-size: .85rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tab { padding: 10px 16px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
[data-tab-pane] { display: none; }
[data-tab-pane].is-active { display: block; animation: fadeUp .3s ease; }

/* ---------- Score bars ---------- */
.score-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.score-bar .track { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.score-bar .fill { height: 100%; background: var(--primary); border-radius: 999px; }
.score-bar .val { width: 40px; text-align: right; font-weight: 700; }

/* ---------- Pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons ul { margin: 0; padding-left: 4px; list-style: none; }
.pros-cons li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.pros-cons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.pros-cons .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
.pros-cons h3 { display: flex; align-items: center; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .site-nav { gap: 14px; }
    .site-nav a { font-size: .92rem; }
}
@media (max-width: 700px) {
    .site-nav { display: none; }
    .hero { padding: 56px 0 40px; }
    .result-stats { text-align: left; }
    .result-item { grid-template-columns: auto 1fr; }
    /* Mobile navigation: hamburger toggle + slide-down panel */
    .header-inner { gap: 12px; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 8px 20px 14px;
    }
    .site-nav.is-open { display: flex; animation: fadeUp .18s ease; }
    .site-nav a {
        padding: 12px 4px; font-size: 1rem; font-weight: 600;
        border-bottom: 1px solid var(--border);
    }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a:hover { color: var(--primary); }
}

/* =========================================================
   Design v2 — richer page heroes, pills, steppers & panels
   ========================================================= */

/* ---------- Page hero banner (city / country pages) ---------- */
.page-hero {
    position: relative;
    border-radius: var(--radius);
    padding: 34px 32px 30px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(700px 320px at 12% -20%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 60%),
        radial-gradient(520px 300px at 95% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
        var(--surface);
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35;
    -webkit-mask-image: radial-gradient(620px 300px at 85% 0%, #000, transparent 75%);
            mask-image: radial-gradient(620px 300px at 85% 0%, #000, transparent 75%);
}
.page-hero-inner { position: relative; z-index: 1; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.page-hero-flag {
    width: 84px; height: 84px; flex: none;
    display: grid; place-items: center;
    font-size: 46px; line-height: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.page-hero-title { margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-hero-sub { color: var(--text-muted); margin: 0; max-width: 60ch; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Pills ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: .82rem; font-weight: 600; color: var(--text);
    white-space: nowrap;
}
.pill--accent { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); color: var(--primary); }
.pill--success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); color: var(--success); }
.pill--sea { background: color-mix(in srgb, #38bdf8 12%, var(--surface)); border-color: color-mix(in srgb, #38bdf8 35%, var(--border)); color: #38bdf8; }
.pill--mountain { background: color-mix(in srgb, #a78bfa 12%, var(--surface)); border-color: color-mix(in srgb, #a78bfa 35%, var(--border)); color: #a78bfa; }

/* ---------- Stat tiles with score rings ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.stat-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 12px;
    box-shadow: var(--shadow); text-align: center;
}
.stat-tile .score-ring { width: 62px; height: 62px; font-size: .95rem; }
.stat-tile b { font-size: 1.05rem; }
.stat-tile span { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-tile--money .score-ring { background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--surface-2) 0); }
.stat-tile--money b { color: var(--success); }

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.section-head .section-ico {
    width: 38px; height: 38px; flex: none;
    display: grid; place-items: center;
    font-size: 19px; border-radius: 11px;
    background: color-mix(in srgb, var(--primary) 13%, var(--surface-2));
    border: 1px solid var(--border);
}
.section-head h2, .section-head h3 { margin: 0; }
.section-sub { color: var(--text-muted); margin: 2px 0 16px; }

/* ---------- Detail rows (at a glance) ---------- */
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 2px; border-bottom: 1px dashed var(--border); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .dl-label { color: var(--text-muted); }
.detail-list .dl-value { font-weight: 600; text-align: right; }

/* ---------- Budget pills ---------- */
.budget-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.budget-pill {
    display: block; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    transition: transform .08s ease, border-color .15s ease;
}
.budget-pill:hover { border-color: var(--primary); transform: translateY(-1px); text-decoration: none; }
.budget-pill .bp-label { display: block; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.budget-pill .bp-value { display: block; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.budget-pill .bp-note { display: block; color: var(--text-muted); font-size: .78rem; margin-top: 2px; }

/* ---------- Calculator stepper ---------- */
.calc-stepper { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.calc-stepper .cs-step {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text-muted); font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: all .15s ease;
}
.calc-stepper .cs-step .cs-num {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .75rem; font-weight: 800;
}
.calc-stepper .cs-step.is-active { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.calc-stepper .cs-step.is-active .cs-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.calc-stepper .cs-step.is-done { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); color: var(--success); }
.calc-stepper .cs-step.is-done .cs-num { background: var(--success); color: #fff; border-color: var(--success); }

.calc-step-card { padding: 26px; }
.calc-step-card .calc-step { animation: fadeUp .3s ease; }

/* ---------- Calculator live summary ---------- */
.calc-summary { position: sticky; top: calc(var(--navbar-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-row .sr-label { color: var(--text-muted); }
.summary-row .sr-value { font-weight: 700; text-align: right; }
.summary-empty { color: var(--text-muted); font-size: .9rem; }

/* ---------- Comparison polish ---------- */
.cmp-hero { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.cmp-hero .cmp-flag { font-size: 44px; line-height: 1; }
.cmp-hero h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.cmp-vs { font-weight: 900; color: var(--primary); font-size: 1.15rem; }

.winner-banner {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    border-radius: var(--radius); padding: 16px 18px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
    margin-bottom: 4px;
}
.winner-banner .wb-item { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.winner-banner .wb-item b { color: var(--primary); }

/* Comparison tables: sticky first column on wide screens */
.table-wrap--cmp table th:first-child,
.table-wrap--cmp table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.table-wrap--cmp table thead th:first-child { z-index: 2; background: var(--surface-2); }

/* Per-city score columns (auto-fit) */
.score-cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* Scenario bar */
.scenario-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.scenario-bar .field { margin-bottom: 0; min-width: 150px; flex: 1; }

/* ---------- Responsive (design v2) ---------- */
@media (max-width: 700px) {
    .page-hero { padding: 24px 20px 22px; }
    .page-hero-flag { width: 64px; height: 64px; font-size: 34px; border-radius: 16px; }
    .stat-tiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
    .stat-tile { padding: 14px 8px; }
    .stat-tile .score-ring { width: 52px; height: 52px; }
    .cmp-hero { flex-wrap: wrap; gap: 10px; }
    .cmp-vs { order: 99; width: 100%; text-align: center; }
    .calc-stepper { gap: 6px; }
    .calc-stepper .cs-step { padding: 6px 10px; font-size: .78rem; }
    .calc-stepper .cs-step .cs-num { width: 18px; height: 18px; font-size: .68rem; }
    .scenario-bar .field { min-width: 100%; }
    .budget-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* =========================================================
   SEO / content typography (articles & policy pages)
   ========================================================= */
.article-body { line-height: 1.75; font-size: 1.02rem; color: var(--text); }
.article-body h1, .article-body h2, .article-body h3 { margin: 1.6em 0 .6em; line-height: 1.25; }
.article-body h2 { font-size: 1.45rem; padding-bottom: .35em; border-bottom: 1px solid var(--border); }
.article-body h3 { font-size: 1.15rem; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin-bottom: .45em; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
    margin: 1.2em 0; padding: 12px 18px;
    border-left: 4px solid var(--primary);
    background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
}
.article-body code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--surface-2); }

/* Footer disclosure */
.footer-disclosure { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-muted); }

/* Footer credit line */
.footer-credit { display: block; margin-top: 10px; font-size: .85rem; color: var(--text-muted); }
.footer-credit a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--primary); }

/* Guide index cards */
.guide-card .gc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.guide-card .gc-excerpt { color: var(--text-muted); margin: 8px 0 0; }

/* Policy pages */
details.card summary { cursor: pointer; font-weight: 700; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "▾"; float: right; color: var(--text-muted); transition: transform .15s ease; }
details.card[open] summary::after { transform: rotate(180deg); }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* =========================================================
   Design v3 — neon accents & premium polish
   ========================================================= */

:root {
    --neon: var(--primary);
    --neon-cyan: #22d3ee;
    --neon-green: #34d399;
    --neon-pink: #f472b6;
    --glow-soft: 0 0 18px color-mix(in srgb, var(--primary) 45%, transparent);
    --glow-strong: 0 0 6px color-mix(in srgb, var(--primary) 80%, transparent), 0 0 28px color-mix(in srgb, var(--primary) 45%, transparent);
}
[data-theme="light"] {
    --glow-soft: 0 0 14px color-mix(in srgb, var(--primary) 28%, transparent);
    --glow-strong: 0 0 5px color-mix(in srgb, var(--primary) 55%, transparent), 0 0 18px color-mix(in srgb, var(--primary) 25%, transparent);
}

::selection { background: color-mix(in srgb, var(--primary) 55%, transparent); color: #fff; }

/* ---------- Neon text helpers ---------- */
.neon-text { color: var(--primary); text-shadow: 0 0 14px color-mix(in srgb, var(--primary) 60%, transparent); }
.neon-title {
    background: linear-gradient(92deg, var(--primary), var(--accent) 55%, var(--neon-pink));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--primary) 35%, transparent));
}

/* ---------- Hero glow ---------- */
.hero h1, .page-hero-title, .cmp-hero h1 { letter-spacing: -.02em; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(700px 360px at 18% -10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 62%),
        radial-gradient(520px 300px at 92% 120%, color-mix(in srgb, var(--neon-cyan) 16%, transparent), transparent 60%);
}
.hero-stat b { text-shadow: 0 0 22px color-mix(in srgb, var(--primary) 55%, transparent); }
.hero-stat b.neon-green { color: var(--neon-green); text-shadow: 0 0 20px color-mix(in srgb, var(--neon-green) 55%, transparent); }

/* ---------- Buttons with neon ---------- */
.btn--primary {
    box-shadow: var(--glow-soft);
    transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary:hover { box-shadow: var(--glow-strong); transform: translateY(-1px); }
.btn--accent { box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--accent:hover { box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn--outline:hover, .btn--ghost:hover { text-shadow: 0 0 12px color-mix(in srgb, var(--primary) 60%, transparent); }

/* ---------- Badges with neon tints ---------- */
.badge { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent); }
.badge--very-comfortable, .badge--premium-lifestyle { box-shadow: 0 0 14px color-mix(in srgb, var(--success) 35%, transparent); }
.badge--comfortable { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.badge--affordable { box-shadow: 0 0 12px color-mix(in srgb, var(--success) 30%, transparent); }
.badge--tight-budget { box-shadow: 0 0 12px color-mix(in srgb, var(--warning) 35%, transparent); }
.badge--very-difficult { box-shadow: 0 0 12px color-mix(in srgb, var(--danger) 35%, transparent); }

/* ---------- Score rings & bars with glow ---------- */
.score-ring { box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.stat-tile .score-ring { box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.stat-tile--money .score-ring { box-shadow: 0 0 20px color-mix(in srgb, var(--success) 40%, transparent); }
.score-bar .fill {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 45%, transparent);
}
.score-bar .val { color: var(--primary); font-weight: 800; }

/* ---------- Pills with neon hover ---------- */
.pill { transition: transform .1s ease, box-shadow .18s ease, border-color .18s ease; }
.pill:hover { border-color: var(--primary); box-shadow: var(--glow-soft); transform: translateY(-1px); }
.pill--accent { box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 28%, transparent); }
.pill--success { box-shadow: 0 0 12px color-mix(in srgb, var(--success) 28%, transparent); }

/* ---------- Cards hover glow ---------- */
.card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card:hover { box-shadow: var(--shadow-lg), var(--glow-soft); }
.city-card { position: relative; }
.city-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.city-card:hover::after { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: inset 0 0 22px color-mix(in srgb, var(--primary) 12%, transparent); }

/* ---------- City card vignette thumbnail ---------- */
.city-card-vignette {
    position: relative; height: 96px; display: grid; place-items: center;
    background:
        radial-gradient(140px 90px at 30% 20%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 65%),
        radial-gradient(120px 80px at 75% 85%, color-mix(in srgb, var(--neon-cyan) 18%, transparent), transparent 60%),
        linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--primary) 8%, var(--surface)));
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.city-card-vignette::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
    background-size: 18px 18px; opacity: .35;
    -webkit-mask-image: radial-gradient(200px 90px at 50% 40%, #000, transparent 78%);
            mask-image: radial-gradient(200px 90px at 50% 40%, #000, transparent 78%);
}
.city-card-flag-big {
    position: relative; z-index: 1;
    font-size: 44px; line-height: 1;
    filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--primary) 50%, transparent));
}
.city-card-flag-big .cc-flag-shadow {
    position: absolute; inset: 40% 10% -4px; z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 45%, transparent), transparent);
    filter: blur(6px);
}

/* ---------- City card body spacing ---------- */
.city-card-body { padding: 16px 18px 0; }
.city-card-status { padding: 6px 18px 18px; }
.city-card-body .cc-sub { margin: 2px 0 0; color: var(--text-muted); font-size: .85rem; }
.city-card-metrics { display: flex; gap: 14px; margin-top: 10px; }
.city-card-metrics .cc-m b { display: block; font-size: .95rem; color: var(--primary); }
.city-card-metrics .cc-m span { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Flag frames ---------- */
.flag-badge {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; font-size: 26px; line-height: 1;
    border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 30%, transparent), var(--shadow);
}
.flag-badge--lg { width: 60px; height: 60px; font-size: 36px; border-radius: 16px; }
.page-hero-flag { box-shadow: var(--shadow), 0 0 26px color-mix(in srgb, var(--primary) 35%, transparent); }

/* ---------- Breadcrumbs pills ---------- */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.breadcrumbs li a {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-muted); text-decoration: none;
    transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.breadcrumbs li a:hover { color: var(--primary); border-color: var(--primary); box-shadow: var(--glow-soft); transform: translateY(-1px); text-decoration: none; }
.breadcrumbs li span[aria-current="page"] {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
    color: var(--primary); font-weight: 700;
}
.breadcrumbs-sep { color: var(--text-muted); opacity: .7; padding: 0 2px; }

/* ---------- Section headers neon underline ---------- */
.section-head { position: relative; }
.section-head::after {
    content: ""; display: block; margin-top: 8px; height: 2px; width: 56px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 55%, transparent);
}
.section-head .section-ico {
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ---------- Section rhythm ---------- */
.section { padding: 64px 0; }
.section--tinted { background:
    radial-gradient(600px 240px at 10% 0%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 60%),
    var(--surface-2); }
h2 { letter-spacing: -.01em; }
h2 strong, .hero-stat b { font-weight: 800; }

/* ---------- KPI & stat tiles neon ---------- */
.kpi b { text-shadow: 0 0 16px color-mix(in srgb, var(--primary) 50%, transparent); }
.stat-tile { transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease; }
.stat-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow-lg), var(--glow-soft); }
.stat-tile--money { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); }
.stat-tile--money b { color: var(--success); text-shadow: 0 0 14px color-mix(in srgb, var(--success) 50%, transparent); }

/* ---------- Comparison polish neon ---------- */
.cmp-vs {
    text-shadow: 0 0 18px color-mix(in srgb, var(--primary) 70%, transparent);
}
.winner-banner { box-shadow: var(--glow-soft); }
.winner-banner .wb-item b { text-shadow: 0 0 12px color-mix(in srgb, var(--primary) 60%, transparent); }
.table .t-best { text-shadow: 0 0 10px color-mix(in srgb, var(--success) 55%, transparent); }
.table .t-highest { text-shadow: 0 0 10px color-mix(in srgb, var(--primary) 55%, transparent); }
.pagination .pagination-active { box-shadow: var(--glow-soft); }

/* ---------- FAQ neon ---------- */
details.card { position: relative; }
details.card summary { padding-right: 34px; }
details.card summary::after {
    content: "＋"; float: right; color: var(--primary);
    font-size: 1.1rem; text-shadow: 0 0 10px color-mix(in srgb, var(--primary) 60%, transparent);
    transition: transform .18s ease;
}
details.card[open] summary::after { content: "－"; transform: none; }
details.card[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--glow-soft); }

/* ---------- Detail list polish ---------- */
.detail-list li .dl-value b { color: var(--primary); }

/* ---------- Footer neon divider ---------- */
.site-footer { position: relative; }
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, transparent), transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 55%, transparent);
}

/* ---------- Header glow underline ---------- */
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 65%, transparent), transparent);
    opacity: .7;
}

/* ---------- Table polish ---------- */
.table th { letter-spacing: .02em; }
.table td, .table th { transition: background-color .15s ease; }
.table--striped tbody tr:hover td { background: color-mix(in srgb, var(--primary) 6%, transparent); }

/* ---------- Ad slot label ---------- */
.ad-ad-label { letter-spacing: .08em; }

/* ---------- Guides ---------- */
.guide-card .city-card-vignette { height: 110px; }
.guide-card .badge { margin-top: 2px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--primary) 60%, var(--surface-2)); }

/* ---------- Result cards neon ---------- */
.result-rank { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent); }
.result-item:first-child .result-rank { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- Budget pills neon ---------- */
.budget-pill { transition: transform .1s ease, box-shadow .18s ease, border-color .18s ease; }
.budget-pill:hover { box-shadow: var(--glow-soft); }
.budget-pill .bp-value { color: var(--primary); }

/* ---------- Responsive (design v3) ---------- */
@media (max-width: 700px) {
    .section { padding: 44px 0; }
    .breadcrumbs li a, .breadcrumbs li span[aria-current="page"] { padding: 4px 10px; font-size: .8rem; }
    .city-card-vignette { height: 80px; }
    .city-card-flag-big { font-size: 36px; }
}
