/* =====================================================
   DERMATOLOGEN.BE — Design System
   Sage green + terracotta, clean medical directory
   ===================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
    --sage: #7C9A82;
    --sage-light: #E8F0E9;
    --sage-dark: #5A7A60;
    --sage-50: #F4F8F5;
    --terracotta: #C4704B;
    --terracotta-light: #F5E6DE;
    --terracotta-dark: #A85A38;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --text-muted: #999;
    --bg: #FAFAF8;
    --white: #FFFFFF;
    --border: #E5E5E0;
    --border-light: #F0F0EC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --font-heading: 'Source Serif 4', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    font-size: 16px; 
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
    padding: 2.5rem 0;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sage-dark);
}

.logo:hover { color: var(--sage); }

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-main a {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
    background: var(--sage-light);
    color: var(--sage-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero / Search Bar --- */
.hero {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    padding: 3.5rem 0;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
}

.hero p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1.05rem;
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-pill);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: box-shadow 0.2s;
}

.search-box input:focus {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.search-box .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
}

.search-box button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.65rem 1.5rem;
    background: var(--terracotta);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover { background: var(--terracotta-dark); }

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs span { margin: 0 0.4rem; }

/* --- Pill Grid (city overview) --- */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
    white-space: nowrap;
}

.pill:hover {
    background: var(--sage-light);
    border-color: var(--sage);
    color: var(--sage-dark);
}

.pill .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 0.5rem;
    padding: 0 0.35rem;
    background: var(--sage-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sage-dark);
}

.pill:hover .count {
    background: var(--sage);
    color: var(--white);
}

/* --- Section --- */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--terracotta);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.section a.more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--terracotta);
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-doctor {
    display: flex;
    gap: 1.25rem;
}

.card-doctor .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark);
}

.card-doctor .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.card-doctor .info { flex: 1; min-width: 0; }

.card-doctor .name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.card-doctor .name a { color: inherit; }
.card-doctor .name a:hover { color: var(--terracotta); }

.card-doctor .location {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* --- Tags --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--sage-50);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sage-dark);
}

.tag--terracotta {
    background: var(--terracotta-light);
    color: var(--terracotta-dark);
}

/* --- Convention Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge--conventie {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge--niet-conventie {
    background: #FFF3E0;
    color: #E65100;
}

.badge--gedeeltelijk {
    background: #FFF8E1;
    color: #F57F17;
}

/* --- Doctor Profile Page --- */
.profile-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-top {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sage-dark);
}

.profile-info { flex: 1; }

.profile-info h1 {
    font-size: 1.85rem;
    margin-bottom: 0.35rem;
}

.profile-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.profile-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

/* --- Section Block (single-column) --- */
.section-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.section-block h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

/* --- Contact Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    background: var(--sage-50);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.contact-item a { color: var(--terracotta); font-weight: 500; }

/* --- Location List --- */
.location-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
}

.location-item:last-child { border-bottom: none; }
.location-item .address { color: var(--text-light); margin-top: 0.2rem; }

/* --- Tarief Block --- */
.tarief-block {
    background: var(--sage-50);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.tarief-block strong { display: block; margin-bottom: 0.25rem; }
.tarief-block p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* --- Colleagues Grid --- */
.colleagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.colleague-link {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--sage-50);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sage-dark);
    transition: background 0.2s;
}

.colleague-link:hover { background: var(--sage-light); color: var(--terracotta); }

/* --- Badges row --- */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge--rating {
    background: #FFF8E1;
    color: #F57F17;
}

/* --- Sidebar Info Card --- */
.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--sage-dark);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.info-row:last-child { border-bottom: none; }

.info-row a { color: var(--terracotta); font-weight: 500; }

/* --- Map --- */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    background: var(--sage-light);
}

/* --- Review --- */
.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.review-stars {
    color: #F5A623;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Review Form --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--sage);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--terracotta);
    color: var(--white);
}
.btn--primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn--secondary {
    background: var(--sage-light);
    color: var(--sage-dark);
}
.btn--secondary:hover { background: var(--sage); color: var(--white); }

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn--outline:hover { border-color: var(--sage); color: var(--sage-dark); }

/* --- Content Page (articles, info) --- */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    margin-bottom: 1rem;
}

.content-page .lead {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.content-page h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
}

.content-page h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.content-page ul, .content-page ol {
    margin: 0.5rem 0 1.25rem 1.5rem;
}

.content-page li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.content-page blockquote {
    border-left: 3px solid var(--terracotta);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--terracotta-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

/* --- CTA Box --- */
.cta-box {
    background: var(--sage-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2.5rem;
}

/* --- Alphabet Navigation --- */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.alphabet-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-dark);
    transition: background 0.2s;
}

.alphabet-nav a:hover {
    background: var(--sage-light);
    color: var(--terracotta);
}

.alphabet-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    color: var(--border);
}

.alpha-heading {
    font-size: 1.1rem;
    color: var(--sage-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

/* --- Overview Grid (symptoms, treatments) --- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.overview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s;
}

.overview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--sage);
}

.overview-card .icon {
    width: 48px;
    height: 48px;
    background: var(--sage-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.overview-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.overview-card h3 a { color: inherit; }
.overview-card h3 a:hover { color: var(--terracotta); }

.overview-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* --- Insurance Table --- */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--sage-light);
    font-weight: 600;
    color: var(--sage-dark);
    border-bottom: 2px solid var(--sage);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

tr:hover td { background: var(--sage-50); }

/* --- Symptom/Treatment Page Layout --- */
.wrap, .page-container, .page-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.hero-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.hero-content h1 {
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
}

.content-section h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.content-section ul, .content-section ol {
    margin: 0.5rem 0 1.25rem 1.5rem;
}

.content-section li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem 0;
}

.styled-list li {
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
}

.styled-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 700;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.related-links li::before {
    display: none;
}

.related-links li {
    padding-left: 0;
}

.cta-section {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--sage-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.cta-section h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.cta-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.cta-button {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    background: var(--sage);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--sage-dark);
}

/* --- FAQ Accordion --- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    background: var(--white);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--sage);
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

.faq-item.open .faq-answer { display: block; }

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-block {
    background: var(--sage-light);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.contact-info-block h3 {
    color: var(--sage-dark);
    margin-bottom: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sage-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
}

.pagination a:hover { background: var(--sage-light); border-color: var(--sage); }
.pagination .current { background: var(--sage); color: var(--white); border-color: var(--sage); }

/* --- Footer --- */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.65;
}

.site-footer h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .profile-body { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero { padding: 2.5rem 0; }
    
    .nav-main { 
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
    }
    .nav-main.open { display: flex; }
    .nav-toggle { display: block; }
    
    .profile-top { flex-direction: column; align-items: center; text-align: center; }
    .profile-meta { justify-content: center; }
    .card-grid { grid-template-columns: 1fr; }
    .overview-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
}


/* =====================================================
   CITY PAGE ENHANCEMENTS
   ===================================================== */

/* --- Stats bar --- */
.city-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 800px;
}

.city-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sage-dark);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Comparison table --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table thead {
    background: var(--sage-50);
}

.compare-table th {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-light);
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.compare-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover {
    background: var(--sage-50);
}

.compare-table .tags {
    gap: 0.3rem;
}

.compare-table .tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
}

.compare-table .badge {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* --- FAQ (scoped to city pages only) --- */
.city-faq {
    max-width: 800px;
}

.city-faq .faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.city-faq .faq-item[open] {
    box-shadow: var(--shadow-sm);
}

.city-faq .faq-question {
    display: block;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    color: var(--text);
}

.city-faq .faq-question::-webkit-details-marker {
    display: none;
}

.city-faq .faq-question::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--sage);
    transition: transform 0.2s;
}

.city-faq .faq-item[open] .faq-question::after {
    content: '−';
}

.city-faq .faq-question:hover {
    color: var(--sage-dark);
}

.city-faq .faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

.city-faq .faq-item[open] .faq-answer {
    display: block;
}

.city-faq .faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- Mobile responsive for table --- */
@media (max-width: 768px) {
    .compare-table thead {
        display: none;
    }

    .compare-table tbody tr {
        display: block;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }

    .compare-table tbody tr:last-child {
        border-bottom: none;
    }

    .compare-table td {
        display: block;
        padding: 0.25rem 0;
        border-bottom: none;
    }

    .compare-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--text-muted);
        margin-bottom: 0.15rem;
    }

    .compare-table td:last-child {
        margin-top: 0.5rem;
    }

    .compare-table td:last-child::before {
        display: none;
    }

    .city-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   HOMEPAGE — Province grid
   ===================================================== */

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.province-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.province-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.province-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pill-grid--compact {
    gap: 0.4rem;
}

.pill-grid--compact .pill {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.pill-grid--compact .pill .count {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
}

.province-more {
    margin-top: 0.5rem;
}

.province-toggle {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--sage-dark);
    cursor: pointer;
    padding: 0.3rem 0;
    list-style: none;
    font-weight: 500;
}

.province-toggle::-webkit-details-marker {
    display: none;
}

.province-toggle::before {
    content: '+ ';
}

.province-more[open] .province-toggle::before {
    content: '− ';
}

.province-toggle:hover {
    color: var(--terracotta);
}

@media (max-width: 768px) {
    .province-grid {
        grid-template-columns: 1fr;
    }
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}
.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.hours-table td:first-child {
    width: 120px;
}