/* ═══════════════════════════════════════════════════════════════
   Seznam-lékařů.cz — Modern Medical Directory
   A completely fresh, timeless design
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    /* Brand */
    --indigo-50:  #EEF2FF;
    --indigo-100: #E0E7FF;
    --indigo-200: #C7D2FE;
    --indigo-300: #A5B4FC;
    --indigo-400: #818CF8;
    --indigo-500: #6366F1;
    --indigo-600: #4F46E5;
    --indigo-700: #4338CA;
    --indigo-800: #3730A3;
    --indigo-900: #312E81;

    /* Slate Neutrals */
    --slate-50:  #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    /* Semantic */
    --emerald-50: #ECFDF5;
    --emerald-500: #10B981;
    --emerald-700: #047857;
    --rose-50: #FFF1F2;
    --rose-500: #F43F5E;
    --rose-700: #BE123C;
    --amber-50: #FFFBEB;
    --amber-500: #F59E0B;

    /* Surfaces */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.08), 0 8px 10px -6px rgba(15,23,42,0.04);
    --shadow-focus: 0 0 0 3px rgba(99,102,241,0.2);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms;
    --t-normal: 250ms;
    --t-slow: 400ms;
}

html { scroll-behavior: smooth; }

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

a { color: var(--indigo-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--indigo-700); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

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

/* ── Header ──────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--slate-800);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.logo:hover { color: var(--slate-900); text-decoration: none; }
.logo strong { font-weight: 800; color: var(--indigo-600); }
.logo svg { flex-shrink: 0; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--r-sm);
    transition: all var(--t-fast) var(--ease);
}
.main-nav a:hover {
    color: var(--indigo-700);
    background: var(--indigo-50);
    text-decoration: none;
}
.nav-cta {
    background: var(--indigo-600) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--r-full) !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}
.nav-cta:hover {
    background: var(--indigo-700) !important;
    color: #fff !important;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-600);
    padding: 0.5rem;
    border-radius: var(--r-sm);
}
.nav-toggle:hover { background: var(--slate-100); }

/* ── Mobile nav ──────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-radius: var(--r-sm);
        width: 100%;
    }
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 0.25rem;
        text-align: center;
    }
}

/* ── Breadcrumbs ─────────────────────────────────── */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}
.breadcrumbs a { color: var(--indigo-500); }
.breadcrumbs a:hover { color: var(--indigo-700); text-decoration: underline; }
.breadcrumbs strong { color: var(--text-secondary); font-weight: 600; }

/* ── Hero ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #312E81 0%, #4F46E5 50%, #6366F1 100%);
    color: #fff;
    padding: 3.5rem 1.5rem;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    max-width: 600px;
}
.hero .subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 550px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--indigo-700);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--r-full);
    transition: all var(--t-fast) var(--ease);
    box-shadow: var(--shadow-md);
}
.btn-hero-primary:hover { background: var(--indigo-50); color: var(--indigo-800); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--t-fast) var(--ease);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }

/* ── Search ──────────────────────────────────────── */
.search-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
}
.search-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.search-box-wrapper label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.search-box {
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 0.875rem 3.25rem 0.875rem 1.125rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: all var(--t-fast) var(--ease);
}
.search-box input:focus {
    border-color: var(--indigo-400);
    box-shadow: var(--shadow-focus);
}
.search-box input::placeholder { color: var(--slate-400); }
.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--indigo-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    z-index: 2;
}
.search-btn:hover { background: var(--indigo-700); }
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    margin-top: -2px;
    max-height: 340px;
    overflow-y: auto;
}
.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--t-fast);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--indigo-50); text-decoration: none; }
.search-item strong { font-weight: 600; }
.search-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ── Section Titles ──────────────────────────────── */
.section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

/* ── Specialization Grid ─────────────────────────── */
.specs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
}
.spec-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    transition: all var(--t-normal) var(--ease);
    text-decoration: none;
}
.spec-card:hover {
    border-color: var(--indigo-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.spec-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.spec-card p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--indigo-500);
    background: var(--indigo-50);
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    white-space: nowrap;
}

/* ── Region Grid ─────────────────────────────────── */
.regions-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.region-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all var(--t-normal) var(--ease);
}
.region-card:hover {
    border-color: var(--indigo-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.region-card h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}
.region-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── City Grid ───────────────────────────────────── */
.cities-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2rem;
}
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.city-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.875rem 1.125rem;
    transition: all var(--t-fast) var(--ease);
}
.city-card:hover {
    border-color: var(--indigo-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    text-decoration: none;
}
.city-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.city-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ── Maps ────────────────────────────────────────── */
.map-section {
    max-width: 1200px;
    margin: 0.75rem auto;
    padding: 0 1.5rem;
}
.map-full, .map-region, .map-city, .map-chain {
    height: 420px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    z-index: 1;
    overflow: hidden;
}
.map-region { height: 380px; }
.map-city { height: 340px; }
.map-detail {
    height: 240px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    z-index: 1;
    overflow: hidden;
}
.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(248,250,252,0.75);
    backdrop-filter: blur(4px);
    border-radius: var(--r-lg);
}
.map-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--indigo-600);
    color: #fff;
    border: none;
    border-radius: var(--r-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--t-fast) var(--ease);
    font-family: inherit;
}
.map-overlay-btn:hover { background: var(--indigo-700); transform: translateY(-1px); box-shadow: var(--shadow-xl); }
.map-overlay-loading {
    padding: 0.875rem 1.75rem;
    background: var(--surface);
    border-radius: var(--r-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-lg);
}

/* ── Page Header + Badge ─────────────────────────── */
.page-header-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}
.page-header-row > div:first-child { flex: 1; min-width: 0; }
.page-header-row h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
}
.new-patients-badge {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--emerald-50);
    border: 1px solid #A7F3D0;
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    max-width: 240px;
    margin-top: 0.25rem;
}
.new-patients-badge svg { flex-shrink: 0; color: var(--emerald-500); }
.new-patients-badge h2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--emerald-700);
    margin: 0;
    line-height: 1.3;
}
.new-patients-badge span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Doctor Cards (listings) ─────────────────────── */
.doctor-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
}
.doctor-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all var(--t-fast) var(--ease);
}
.doctor-card:hover {
    border-color: var(--indigo-200);
    box-shadow: var(--shadow-md);
}
.doctor-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.4rem;
}
.doctor-card h3 a { color: var(--slate-900); }
.doctor-card h3 a:hover { color: var(--indigo-600); }
.card-spec {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--indigo-600);
    background: var(--indigo-50);
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-full);
    margin-right: 0.25rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.card-rep {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.25rem;
}
.card-address {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.card-phone {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--indigo-600);
    transition: color var(--t-fast);
}
.card-link:hover { color: var(--indigo-700); text-decoration: none; }
.card-link::after {
    content: '→';
    transition: transform var(--t-fast) var(--ease);
}
.doctor-card:hover .card-link::after { transform: translateX(3px); }

/* ── Insurance Homepage Tiles ────────────────────── */
.insurers-hp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
}
.ins-hp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.ins-hp-tile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--t-normal) var(--ease);
    text-decoration: none;
    color: inherit;
}
.ins-hp-tile:hover {
    border-color: var(--indigo-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.ins-hp-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--r-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(--slate-900); }
.ins-hp-fullname { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-hp-count { font-size: 0.85rem; font-weight: 600; color: var(--indigo-600); margin-top: 0.15rem; }
.ins-hp-arrow { flex-shrink: 0; font-size: 1.4rem; color: var(--slate-300); transition: all var(--t-fast) var(--ease); }
.ins-hp-tile:hover .ins-hp-arrow { color: var(--indigo-500); transform: translateX(3px); }

/* ── Insurance Landing Header ────────────────────── */
.ins-landing-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}
.ins-landing-header > div { flex: 1; min-width: 0; }
.ins-landing-header h1 { font-size: 1.75rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; }
.ins-landing-logo {
    flex-shrink: 0;
    width: auto;
    height: 90px;
    object-fit: contain;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    background: var(--surface);
}

/* ── Doctor Detail ───────────────────────────────── */
.doctor-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2rem;
}
.doctor-detail h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.expert-rep {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.spec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.spec-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--indigo-50);
    color: var(--indigo-700);
    border: 1px solid var(--indigo-200);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--t-fast);
}
.spec-badge:hover { background: var(--indigo-100); border-color: var(--indigo-300); text-decoration: none; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.detail-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}
.detail-section h2 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.detail-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}
.address-block {
    line-height: 1.9;
    color: var(--text);
    font-size: 0.9375rem;
}
.contact-item {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text);
}
.contact-item .label { font-weight: 600; color: var(--text-muted); font-size: 0.8125rem; }
.contact-item a { color: var(--indigo-600); }
.contact-item a:hover { color: var(--indigo-700); }
.detail-row {
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--text);
}
.detail-row .label { font-weight: 600; color: var(--text-muted); font-size: 0.8125rem; }
.detail-row--patients { margin-top: 0.25rem; }
.patients-unknown {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--slate-100);
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-full);
}
.dept-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--indigo-600);
    margin: 1rem 0 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--indigo-50);
}
.dept-heading:first-child { margin-top: 0; }

/* ── 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.875rem;
}
.hours-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border);
}
.hours-table td { border-bottom: 1px solid var(--border-light); color: var(--text); }
.hours-table tr.open td:first-child { font-weight: 600; color: var(--slate-900); }
.hours-table tr.closed td { color: var(--text-muted); font-style: italic; }

/* ── Open Now ────────────────────────────────────── */
.open-now-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid #A7F3D0;
    border-radius: var(--r-md);
}
.open-now-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--emerald-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.85; box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ── Insurance Cards ─────────────────────────────── */
.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(--r-md);
    border: 1px solid transparent;
}
.ins-card--yes { background: var(--emerald-50); border-color: #A7F3D0; }
.ins-card--no { background: var(--rose-50); border-color: #FECDD3; }
.ins-card--unknown { background: var(--slate-100); border-color: var(--border); }
.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: #fff;
    flex-shrink: 0;
}
.ins-badge--yes { background: var(--emerald-500); }
.ins-badge--no { background: var(--rose-500); }
.ins-badge--unknown { background: var(--slate-400); }
.ins-card-name { font-size: 0.8rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.ins-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--r-full);
    white-space: nowrap;
    flex-shrink: 0;
}
.ins-status--yes { color: var(--emerald-700); background: #A7F3D0; }
.ins-status--no { color: var(--rose-700); background: #FECDD3; }
.ins-status--unknown { color: var(--text-muted); background: var(--slate-200); }
.ins-card-link { font-size: 0.65rem; color: var(--indigo-500); flex-shrink: 0; }
.ins-card-link:hover { text-decoration: underline; }
.insurance-note { margin-top: 0.75rem; font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }
.insurance-section { }

/* ── Related Doctors ─────────────────────────────── */
.related-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.related-section h2 { font-size: 1.0625rem; font-weight: 700; color: var(--slate-800); margin-bottom: 0.75rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.75rem; }
.related-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    transition: all var(--t-fast) var(--ease);
}
.related-card:hover { border-color: var(--indigo-200); box-shadow: var(--shadow-sm); }
.related-card h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.3rem; line-height: 1.3; }
.related-card h3 a { color: var(--slate-800); }
.related-card h3 a:hover { color: var(--indigo-600); text-decoration: underline; }
.related-addr { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.1rem; }
.related-phone { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.4rem; }
.related-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--indigo-600);
    align-self: flex-start;
}
.related-btn::after { content: '→'; }
.related-btn:hover { color: var(--indigo-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.75rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.2rem; }
.related-more { margin-top: 0.75rem; }
.related-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--indigo-600);
}
.related-more a:hover { color: var(--indigo-700); text-decoration: none; }

/* ── Nearby (parking, MHD) ───────────────────────── */
.nearby-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}
.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(--indigo-50);
    border-radius: 50%;
    margin-top: 0.1rem;
}
.nearby-icon svg { fill: var(--indigo-600); }
.nearby-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.nearby-value { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }
.walk-icon { flex-shrink: 0; color: var(--slate-400); }

/* ── Contact Page ────────────────────────────────── */
.contact-page { max-width: 600px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.contact-page h1 { font-size: 2rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.contact-page p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; }
.contact-email a { font-size: 1.125rem; font-weight: 600; color: var(--indigo-600); }
.contact-email a:hover { color: var(--indigo-700); }

/* ── Error Page ──────────────────────────────────── */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page h1 { font-size: 2.5rem; font-weight: 900; color: var(--slate-900); margin-bottom: 1rem; letter-spacing: -0.03em; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.0625rem; }
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--indigo-600);
    color: #fff;
    border-radius: var(--r-full);
    font-weight: 600;
    transition: all var(--t-fast) var(--ease);
}
.btn:hover { background: var(--indigo-700); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

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

/* ── Leaflet Popup ───────────────────────────────── */
.leaflet-popup-content { font-family: inherit; font-size: 0.875rem; }
.leaflet-popup-content a { color: var(--indigo-600); font-weight: 600; }
.leaflet-popup-content .popup-address { color: var(--text-muted); 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(--indigo-500);
    text-decoration: underline;
    font-weight: 400;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-700);
    margin-bottom: 1.25rem;
}
.footer-about { max-width: 400px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-logo:hover { color: #fff; text-decoration: none; }
.footer-about p { font-size: 0.8125rem; color: var(--slate-400); line-height: 1.7; }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    margin-bottom: 0.75rem;
}
.footer-col a {
    display: block;
    font-size: 0.8125rem;
    color: var(--slate-400);
    padding: 0.25rem 0;
    transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    font-size: 0.75rem;
    color: var(--slate-500);
    display: flex;
    justify-content: space-between;
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: #fff; text-decoration: none; }

/* ── Generic containers for inner pages ──────────── */
main > h1,
main > .subtitle {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
main > h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    padding-top: 1.5rem;
}

/* ── Mobile bottom nav (hidden by default) ───────── */
.mobile-nav { display: none; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .hero { margin: 0.75rem 0.75rem 0; padding: 2.5rem 1.5rem; border-radius: var(--r-lg); }
    .hero h1 { font-size: 1.75rem; }
    .hero .subtitle { font-size: 0.9375rem; }
    .search-boxes { grid-template-columns: 1fr; gap: 0.75rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .cities-grid { grid-template-columns: 1fr 1fr; }
    .regions-grid { grid-template-columns: 1fr; }
    .ins-grid { grid-template-columns: 1fr; }
    .ins-hp-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .map-full, .map-region, .map-city { height: 260px; }
    .page-header-row { flex-direction: column; gap: 0.75rem; }
    .page-header-row h1 { font-size: 1.375rem; }
    .new-patients-badge { max-width: 100%; }
    .footer-top { flex-direction: column; gap: 2rem; }
    .footer-links { gap: 2rem; }
    .ins-landing-header { flex-direction: column; gap: 0.75rem; padding: 1rem 1.5rem 0; }
    .ins-landing-logo { height: 60px; padding: 0.35rem; }
    .doctor-detail h1 { font-size: 1.5rem; }
    main > h1 { font-size: 1.375rem; }
}

@media (max-width: 480px) {
    .hero { margin: 0.5rem 0.5rem 0; padding: 2rem 1.25rem; }
    .hero h1 { font-size: 1.4rem; }
    .specs-grid { grid-template-columns: 1fr; }
    .cities-grid { grid-template-columns: 1fr; }
    .map-full, .map-region, .map-city { height: 200px; }
    .page-header-row h1 { font-size: 1.2rem; }
    .doctor-detail h1 { font-size: 1.25rem; }
    .logo span { font-size: 0.95rem; }
    main > h1 { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   New Widget Designs (v2)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Spec Chip ───────────────────────────────────── */
.spec-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 0.6rem 0.75rem 0.6rem 1.25rem;
    transition: all var(--t-fast) var(--ease);
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
}
.spec-chip:hover {
    background: var(--indigo-50);
    border-color: var(--indigo-300);
    transform: translateX(2px);
    text-decoration: none;
}
.spec-chip .chip-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--slate-800);
}
.spec-chip .chip-meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--indigo-500);
    background: var(--indigo-50);
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    white-space: nowrap;
}

/* ── 2. Region Tile ─────────────────────────────────── */
.region-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    transition: all var(--t-normal) var(--ease);
    text-decoration: none;
    color: inherit;
}
.region-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--indigo-200);
    text-decoration: none;
}
.region-tile .tile-count {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--indigo-600);
    min-width: 60px;
    text-align: center;
    line-height: 1;
}
.region-tile .tile-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-800);
}

/* ── 3. City Pill ───────────────────────────────────── */
.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    transition: all var(--t-fast) var(--ease);
    text-decoration: none;
    color: inherit;
}
.city-pill:hover {
    border-color: var(--indigo-300);
    background: var(--indigo-50);
    text-decoration: none;
}
.city-pill span:first-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
}
.city-pill .pill-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--indigo-500);
    padding: 0.15rem 0.45rem;
    border-radius: var(--r-full);
    min-width: 24px;
    text-align: center;
}

/* ── 4. Doc Row ─────────────────────────────────────── */
.doc-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 0.625rem;
    transition: all var(--t-fast) var(--ease);
}
.doc-row:hover {
    border-color: var(--indigo-200);
    box-shadow: var(--shadow-sm);
}
.doc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.doc-body {
    flex: 1;
    min-width: 0;
}
.doc-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.3rem;
}
.doc-body h3 a {
    color: var(--slate-900);
}
.doc-body h3 a:hover {
    color: var(--indigo-600);
}
.doc-addr {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.doc-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}
.doc-phone {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.doc-go {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--indigo-600);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--t-fast);
}
.doc-go:hover {
    color: var(--indigo-700);
    text-decoration: none;
}

/* ── 5. Profile (Doctor Detail v2) ──────────────────── */
.profile {
    padding: 1.5rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.profile-header {
    flex: 1;
    min-width: 0;
}
.profile-header h1 {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    margin-bottom: 0.35rem;
}
.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.875rem;
    margin-bottom: 1rem;
}
.pcard {
    display: flex;
    gap: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
}
.pcard-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--indigo-50);
    border-radius: var(--r-md);
}
.pcard-content {
    flex: 1;
    min-width: 0;
}
.pcard-content h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.profile-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 1.25rem;
    background: var(--slate-50);
    border-radius: var(--r-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

/* spec-badges inside profile context */
.profile .spec-badges {
    margin-bottom: 1rem;
}

/* ── 6. Grid Containers for New Widgets ─────────────── */
.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}
.pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.doc-list {
    padding: 1rem 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── 7. Responsive Overrides for New Widgets ────────── */
@media (max-width: 768px) {
    .profile-hero {
        flex-direction: column;
        gap: 0.75rem;
    }
    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.125rem;
        border-radius: 16px;
    }
    .profile-header h1 {
        font-size: 1.375rem;
    }
    .profile-cards {
        grid-template-columns: 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .doc-row {
        flex-wrap: wrap;
    }
    .doc-side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-light);
    }
    .doc-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
    .region-tile .tile-count {
        font-size: 1.25rem;
        min-width: 48px;
    }
}
