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

:root {
    /* Primary: Sage Green */
    --sage-50:  #f4f7f4;
    --sage-100: #e4ebe4;
    --sage-200: #c9d7c9;
    --sage-300: #a3bba3;
    --sage-400: #7a9e7a;
    --sage-500: #5a845a;
    --sage-600: #466b46;
    --sage-700: #3a5739;
    --sage-800: #31472f;
    --sage-900: #293b28;

    /* Accent: Terracotta */
    --terra-50:  #fdf5f2;
    --terra-100: #fbe8e0;
    --terra-200: #f7cfc0;
    --terra-300: #f0ae96;
    --terra-400: #e68a68;
    --terra-500: #d96d47;
    --terra-600: #c4553a;
    --terra-700: #a34430;
    --terra-800: #86392b;
    --terra-900: #6e3227;

    /* Neutral: Warm Grays */
    --warm-50:  #faf9f7;
    --warm-100: #f3f1ed;
    --warm-200: #e8e4de;
    --warm-300: #d5cfc5;
    --warm-400: #b5ad9f;
    --warm-500: #9a9183;
    --warm-600: #7d7568;
    --warm-700: #615b50;
    --warm-800: #4a4540;
    --warm-900: #2d2a27;

    /* Semantic */
    --success-light: #ecfdf0;
    --success: #22874a;
    --success-dark: #166534;
    --danger-light: #fef2f2;
    --danger: #dc2626;

    /* Surface */
    --surface-base: #faf9f7;
    --surface-card: #ffffff;
    --surface-hero: var(--sage-700);

    /* Text */
    --text-primary: #2d2a27;
    --text-secondary: #615b50;
    --text-tertiary: #9a9183;
    --text-on-dark: #ffffff;

    /* Shadows */
    --shadow-xs:  0 1px 2px rgba(45,42,39,0.04);
    --shadow-sm:  0 1px 3px rgba(45,42,39,0.06), 0 1px 2px rgba(45,42,39,0.04);
    --shadow-md:  0 4px 12px rgba(45,42,39,0.08), 0 2px 4px rgba(45,42,39,0.04);
    --shadow-lg:  0 12px 32px rgba(45,42,39,0.10), 0 4px 8px rgba(45,42,39,0.06);
    --shadow-focus: 0 0 0 3px rgba(90,132,90,0.25);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 150ms;
    --dur-normal: 250ms;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--surface-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sage-700); text-decoration: none; }
a:hover { color: var(--sage-800); text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
    background: var(--sage-50);
    border-bottom: 2px solid var(--sage-200);
    position: relative;
    z-index: 100;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sage-800);
    white-space: nowrap;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--sage-900); }
.logo svg { flex-shrink: 0; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.main-nav a {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--dur-fast) var(--ease-out);
}
.main-nav a:hover { background: var(--sage-100); color: var(--sage-700); text-decoration: none; }
.nav-btn {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-on-dark) !important;
    padding: 0.45rem 1.1rem !important;
    background: var(--terra-500);
    border-radius: var(--radius-md) !important;
    transition: all var(--dur-fast) var(--ease-out);
}
.nav-btn:hover { background: var(--terra-600); color: var(--text-on-dark) !important; text-decoration: none; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 7px;
    background: none;
    border: 1px solid var(--sage-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sage-700);
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface-card);
        border-bottom: 2px solid var(--sage-200);
        padding: 0.5rem 1.25rem;
        box-shadow: var(--shadow-md);
        gap: 0;
        z-index: 999;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--warm-100);
        border-radius: 0;
    }
    .main-nav a:last-child { border-bottom: none; }
    .nav-btn { text-align: center; margin-top: 0.25rem; }
}

/* ── Page header with badge ─────────────────────────── */
.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}
.page-header-row > div:first-child { flex: 1; min-width: 0; }
.new-patients-badge {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--sage-50);
    border: 1px solid var(--sage-200);
    border-left: 3px solid var(--sage-500);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--sage-700);
    max-width: 260px;
    margin-top: 0.25rem;
}
.new-patients-badge svg { flex-shrink: 0; margin-top: 1px; }
.new-patients-badge h2 {
    display: block;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--sage-700);
    margin: 0;
    font-weight: 700;
}
.new-patients-badge span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .page-header-row { flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
    .page-header-row h1 { font-size: 1.25rem; }
    .page-header-row .subtitle { font-size: 0.85rem; margin-bottom: 0 !important; }
    .new-patients-badge { max-width: 100%; }
    .page-header-row + .map-region,
    .page-header-row + .map-city,
    .page-header-row + section { margin-top: 0; }
    .regions-section { padding: 0rem 0; }
    .cities-section { padding: 0rem 0 2rem; }
}
@media (max-width: 480px) {
    .page-header-row h1 { font-size: 1.1rem; }
    .page-header-row .subtitle { font-size: 0.8rem; }
}

/* ── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs {
    padding: 1rem 0 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}
.breadcrumbs a { color: var(--sage-600); }
.breadcrumbs a:hover { color: var(--sage-800); }
.breadcrumbs a:hover svg { color: var(--sage-800); }
.breadcrumbs strong { color: var(--text-secondary); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
    background: var(--sage-700);
    color: var(--text-on-dark);
    padding: 2.5rem 2rem;
    margin: 0 -1.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.subtitle {
    color: var(--text-tertiary);
    font-size: 1.1rem;
}
.hero .subtitle {
    color: var(--sage-200);
    font-size: 1.05rem;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all var(--dur-fast) var(--ease-out);
}
.btn-hero-primary {
    background: var(--terra-500);
    color: var(--text-on-dark);
}
.btn-hero-primary:hover { background: var(--terra-400); color: var(--text-on-dark); text-decoration: none; }
.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--text-on-dark);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); color: var(--text-on-dark); text-decoration: none; }

/* ── Search section (homepage – unified) ─────────────── */
.search-section {
    padding: 1.5rem 0 1rem;
}
.search-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.search-box-wrapper label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.search-box {
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--warm-200);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease-out);
    font-family: inherit;
}
.search-box input:focus {
    border-color: var(--sage-500);
    box-shadow: var(--shadow-focus);
}
.search-box input::placeholder { color: var(--warm-400); }
.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--sage-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur-fast) var(--ease-out);
    z-index: 2;
}
.search-btn:hover { background: var(--sage-700); }
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border: 1px solid var(--warm-200);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-top: -2px;
    max-height: 320px;
    overflow-y: auto;
}
.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--warm-100);
    transition: background var(--dur-fast);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--sage-50); text-decoration: none; }
.search-item strong { font-weight: 600; }
.search-item span { font-size: 0.8rem; color: var(--text-tertiary); }

/* ── Maps ────────────────────────────────────────────── */
.map-section { margin: 0.5rem 0; }
.map-full, .map-region, .map-city, .map-chain {
    height: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
    z-index: 1;
    overflow: hidden;
}
.map-region { height: 380px; }
.map-city { height: 350px; }
.map-detail {
    height: 260px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: none;
    margin-bottom: 1.5rem;
    z-index: 1;
    overflow: hidden;
}

/* Map lazy-load overlay */
.map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(250,249,247,0.7);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-lg);
}
.map-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--terra-500);
    color: var(--text-on-dark);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background var(--dur-fast) var(--ease-out);
    font-family: inherit;
}
.map-overlay-btn:hover { background: var(--terra-600); }
.map-overlay-loading {
    padding: 0.75rem 1.5rem;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
}

/* ── Section titles ──────────────────────────────────── */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warm-900);
    letter-spacing: -0.01em;
}

/* ── Regions grid ────────────────────────────────────── */
.regions-section { padding: 2rem 0; }
.regions-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.region-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--warm-200);
    transition: all var(--dur-fast) var(--ease-out);
}
.region-card:first-child { border-top: 1px solid var(--warm-200); }
.region-card:hover {
    background: var(--sage-50);
    padding-left: 1.75rem;
    text-decoration: none;
}
.region-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.region-card p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* ── Specializations grid ────────────────────────────── */
.specs-section { padding: 1.5rem 0 2rem; }
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}
.spec-card {
    background: var(--surface-card);
    border: none;
    border-left: 3px solid var(--sage-300);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-normal) var(--ease-out);
    display: block;
}
.spec-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--terra-500);
    transform: translateX(4px);
    text-decoration: none;
}
.spec-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.spec-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ── Cities grid ─────────────────────────────────────── */
.cities-section { padding: 1.5rem 0 2rem; }
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.city-card {
    background: var(--surface-card);
    border: none;
    border-left: 3px solid var(--warm-300);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0.85rem 1.1rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--dur-fast) var(--ease-out);
    display: block;
}
.city-card:hover {
    border-left-color: var(--terra-500);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
    text-decoration: none;
}
.city-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.city-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.1rem;
}

/* ── Doctor cards (listing) ──────────────────────────── */
.doctor-list { padding: 1rem 0 2rem; }
.doctor-card {
    background: var(--surface-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.doctor-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sage-400);
    transition: background var(--dur-fast);
}
.doctor-card:hover {
    box-shadow: var(--shadow-md);
}
.doctor-card:hover::before {
    background: var(--terra-500);
}
.doctor-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--warm-900);
    margin-bottom: 0.35rem;
}
.doctor-card h3 a { color: var(--sage-700); }
.doctor-card h3 a:hover { color: var(--sage-800); }
.card-address {
    font-size: 0.88rem;
    color: var(--warm-700);
    margin-bottom: 0.35rem;
}
.card-phone {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--warm-600);
    margin-bottom: 0.5rem;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terra-600);
    padding: 0.3rem 0;
    border: none;
    background: none;
    transition: all var(--dur-fast);
}
.card-link:hover { color: var(--terra-700); text-decoration: none; }
.card-link::after {
    content: '\2192';
    transition: transform var(--dur-fast) var(--ease-out);
}
.doctor-card:hover .card-link::after {
    transform: translateX(4px);
}
.card-spec {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--sage-700);
    background: var(--sage-50);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-right: 4px;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.card-rep {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 0.25rem;
}

/* ── Homepage insurance tiles ────────────────────────── */
.insurers-hp-section { margin-top: 2rem; padding-bottom: 1rem; }
.ins-hp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.ins-hp-tile {
    flex: 1 1 300px;
    max-width: calc(33.333% - 0.7rem);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    min-width: 0;
    background: var(--surface-card);
    border: none;
    border-left: 3px solid var(--sage-300);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--dur-normal) var(--ease-out);
}
.ins-hp-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left-color: var(--terra-500);
    text-decoration: none;
}
.ins-hp-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.ins-hp-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}
.ins-hp-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--warm-900);
}
.ins-hp-fullname {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ins-hp-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-600);
    margin-top: 0.15rem;
}
.ins-hp-arrow {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--warm-300);
    transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.ins-hp-tile:hover .ins-hp-arrow {
    color: var(--terra-500);
    transform: translateX(3px);
}

/* ── Insurance landing header ────────────────────────── */
.ins-landing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 20px;
}
.ins-landing-header > div { flex: 1; min-width: 0; }
.ins-landing-logo {
    flex-shrink: 0;
    width: auto;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--warm-200);
    padding: 0.75rem 1rem;
    background: var(--surface-card);
}
@media (max-width: 768px) {
    .ins-landing-logo { height: 65px; padding: 0.35rem; }
    .ins-landing-header h1 { font-size: 1.2rem; }
    .ins-landing-header .subtitle { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .ins-landing-header { gap: 1rem; }
    .ins-landing-logo { height: 48px; padding: 0.25rem; }
    .ins-landing-header h1 { font-size: 1.05rem; }
    .ins-landing-header .subtitle { font-size: 0.8rem; }
}

/* ── Related doctors sections ────────────────────────── */
.related-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--warm-200);
}
.related-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--warm-800);
    margin-bottom: 0.75rem;
}
.related-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.related-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: none;
    border-left: 3px solid var(--warm-300);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--dur-fast) var(--ease-out);
}
.related-card:hover {
    border-left-color: var(--terra-500);
    box-shadow: var(--shadow-sm);
}
.related-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
.related-card h3 a { color: var(--sage-700); text-decoration: none; }
.related-card h3 a:hover { text-decoration: underline; }
.related-addr {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin: 0 0 0.1rem;
    line-height: 1.35;
}
.related-phone {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin: 0 0 0.4rem;
}
.related-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.3rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--terra-600);
    text-decoration: none;
    align-self: flex-start;
    transition: color var(--dur-fast);
}
.related-btn::after { content: '\2192'; }
.related-btn:hover { color: var(--terra-700); text-decoration: none; }
.related-card .card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.25rem;
}
.related-card .card-spec { margin-right: 0; margin-bottom: 0; }
.related-card .card-rep {
    display: block;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 0.2rem;
}
.related-more {
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.related-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--terra-600);
    text-decoration: none;
    transition: color var(--dur-fast);
}
.related-more a:hover { color: var(--terra-700); text-decoration: none; }

/* ── Doctor detail ───────────────────────────────────── */
.doctor-detail { padding: 1rem 0 2rem; }
.doctor-detail h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--warm-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.spec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.5rem;
    margin-bottom: 1.5rem;
}
.spec-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--sage-50);
    color: var(--sage-700);
    border: 1px solid var(--sage-200);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--dur-fast);
}
.spec-badge:hover {
    background: var(--sage-100);
    border-color: var(--sage-400);
    text-decoration: none;
}
.expert-rep {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.dept-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sage-700);
    margin: 1rem 0 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--sage-100);
}
.dept-heading:first-child { margin-top: 0; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.detail-section {
    background: var(--surface-card);
    border: none;
    border-left: 3px solid var(--sage-300);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}
.detail-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--warm-700);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--warm-100);
}
.detail-intro {
    font-size: 0.92rem;
    color: var(--warm-700);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--warm-100);
}
.address-block {
    line-height: 1.8;
    color: var(--warm-800);
}
.contact-item {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--warm-800);
}
.contact-item .label {
    font-weight: 600;
    color: var(--warm-600);
}
.contact-item a { color: var(--sage-700); }
.contact-item a:hover { color: var(--sage-800); }
.detail-row {
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--warm-800);
}
.detail-row .label {
    font-weight: 600;
    color: var(--warm-600);
}
.detail-row--patients { margin-top: 0.25rem; }
.patients-unknown {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--warm-200);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

/* ── Opening hours table ─────────────────────────────── */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}
.hours-table th, .hours-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.hours-table th {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--warm-200);
}
.hours-table td {
    border-bottom: 1px solid var(--warm-100);
    color: var(--warm-800);
}
.hours-table tr.open td:first-child {
    font-weight: 600;
    color: var(--warm-900);
}
.hours-table tr.open td { color: var(--warm-800); }
.hours-table tr.closed td {
    color: var(--warm-500);
    font-style: italic;
}

/* ── "Právě otevřeno" indicator ─────────────────────── */
.open-now-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-dark);
    background: var(--success-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
}
.open-now-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 135, 74, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(34, 135, 74, 0); }
}

/* ── Contact page ────────────────────────────────────── */
.contact-page {
    max-width: 600px;
    padding: 2rem 0;
}
.contact-page h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--warm-900);
    margin-bottom: 1.5rem;
}
.contact-page p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.contact-email a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--terra-600);
}
.contact-email a:hover { color: var(--terra-700); }

/* ── Error page ──────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 4rem 0;
}
.error-page h1 {
    font-size: 2rem;
    color: var(--warm-900);
    margin-bottom: 1rem;
}
.error-page p { color: var(--text-tertiary); margin-bottom: 2rem; }
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--terra-500);
    color: var(--text-on-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--terra-600); text-decoration: none; color: var(--text-on-dark); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    background: var(--sage-900);
    color: var(--sage-200);
    padding: 2.5rem 0 1.25rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--sage-700);
    margin-bottom: 1rem;
}
.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sage-100);
    margin-bottom: 0.5rem;
}
.footer-desc {
    font-size: 0.85rem;
    color: var(--sage-300);
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sage-100);
    margin-bottom: 0.75rem;
}
.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--sage-300);
    padding: 0.25rem 0;
    transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--sage-100); text-decoration: none; }
.footer-bottom {
    font-size: 0.78rem;
    color: var(--sage-400);
    display: flex;
    justify-content: space-between;
}
.footer-bottom a { color: var(--sage-300); }
.footer-bottom a:hover { color: var(--sage-100); text-decoration: none; }

/* ── Text muted ──────────────────────────────────────── */
.text-muted { color: var(--warm-400); font-style: italic; }

/* ── Nearby (parking, MHD) ──────────────────────────── */
.nearby-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--warm-100);
}
.nearby-item:last-child { border-bottom: none; }
.nearby-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sage-50);
    border-radius: 50%;
    margin-top: 0.1rem;
}
.nearby-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--warm-800);
    line-height: 1.3;
}
.nearby-value {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--warm-600);
    margin-top: 0.1rem;
}
.walk-icon {
    flex-shrink: 0;
    color: var(--warm-400);
}

/* ── Insurance cards (detail page) ───────────────────── */
.insurance-section { }
.ins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.ins-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--dur-fast);
}
.ins-card--yes { background: var(--success-light); }
.ins-card--no { background: var(--danger-light); }
.ins-card--unknown { background: var(--warm-100); }
.ins-card-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}
.ins-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-on-dark);
    flex-shrink: 0;
}
.ins-badge--yes { background: var(--success); }
.ins-badge--no { background: var(--danger); }
.ins-badge--unknown { background: var(--warm-400); }
.ins-card-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.ins-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}
.ins-status--yes { color: var(--success-dark); background: #bbf7d0; }
.ins-status--no { color: var(--danger); background: #fecaca; }
.ins-status--unknown { color: var(--text-tertiary); background: var(--warm-200); }
.ins-card-link {
    font-size: 0.68rem;
    color: var(--terra-600);
    text-decoration: none;
    flex-shrink: 0;
}
.ins-card-link:hover { text-decoration: underline; }
.insurance-note {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--warm-400);
    line-height: 1.4;
}

/* ── Edit link ──────────────────────────────────────── */
.edit-link { text-align: right; margin-top: 0.5rem; }
.edit-link a { font-size: 0.75rem; color: var(--warm-400); text-decoration: none; }
.edit-link a:hover { color: var(--text-secondary); text-decoration: underline; }

/* ── Leaflet popup ───────────────────────────────────── */
.leaflet-popup-content { font-family: inherit; font-size: 0.875rem; }
.leaflet-popup-content a { color: var(--sage-700); font-weight: 600; }
.leaflet-popup-content .popup-address { color: var(--text-tertiary); font-size: 0.8rem; margin: 0.25rem 0 0; }
.leaflet-popup-content .popup-detail {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--terra-600);
    text-decoration: underline;
    font-weight: 400;
}

/* ── Mobile bottom nav ───────────────────────────────── */
.mobile-nav {
    display: none;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 2rem 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero-actions { flex-wrap: wrap; }
    .search-boxes { grid-template-columns: 1fr; gap: 0.85rem; }
    .container > h1, .doctor-detail h1 { font-size: 1.35rem; }
    .map-full, .map-region, .map-city { height: 280px; }
    .detail-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .cities-grid { grid-template-columns: 1fr 1fr; }
    .logo span { font-size: 0.95rem; }
    .ins-grid { grid-template-columns: 1fr; }
    .ins-hp-tile { max-width: 100%; }
    .ins-hp-logo { width: 44px; height: 44px; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface-card);
        border-top: 1px solid var(--warm-200);
        box-shadow: 0 -2px 10px rgba(45,42,39,0.08);
        justify-content: space-around;
        padding: 0.35rem 0 0.25rem;
        z-index: 1000;
    }
    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.65rem;
        color: var(--text-tertiary);
        text-decoration: none;
        padding: 0.25rem 0.5rem;
        font-weight: 500;
    }
    .mobile-nav a:hover { color: var(--sage-600); text-decoration: none; }

    body { padding-bottom: 56px; }
    .site-footer { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .specs-grid { grid-template-columns: 1fr; }
    .cities-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.25rem; }
    .container > h1, .doctor-detail h1 { font-size: 1.15rem; }
    .map-full, .map-region, .map-city { height: 220px; }
    .logo span { font-size: 0.85rem; }
}
