:root {
    --bg: #eef5fb;
    --bg-soft: rgba(255, 255, 255, 0.78);
    --surface: #ffffff;
    --surface-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(13, 35, 61, 0.1);
    --line-strong: rgba(13, 35, 61, 0.16);
    --ink: #10233b;
    --muted: #61758a;
    --blue: #0d63ff;
    --blue-deep: #0e49b5;
    --teal: #1bb7a4;
    --teal-deep: #0b8e7f;
    --gold: #ff9f43;
    --low: #18b779;
    --normal: #3d7eff;
    --busy: #f07454;
    --shadow-lg: 0 28px 80px rgba(16, 35, 59, 0.14);
    --shadow-md: 0 18px 40px rgba(16, 35, 59, 0.1);
    --shadow-sm: 0 12px 24px rgba(16, 35, 59, 0.08);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shell: 100%;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(20, 183, 164, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(13, 99, 255, 0.12), transparent 34%),
        linear-gradient(180deg, #f4f9fd 0%, #eef5fb 35%, #f7fbfe 100%);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 78%);
    z-index: -2;
}

a {
    color: inherit;
    text-decoration: none !important;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

.page-aura {
    position: fixed;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.38;
}

.page-aura-one {
    top: 80px;
    left: -120px;
    background: rgba(27, 183, 164, 0.28);
}

.page-aura-two {
    top: 260px;
    right: -110px;
    background: rgba(13, 99, 255, 0.25);
}

.mobile-search-standalone,
.mobile-mode-selector,
.mobile-page-header {
    display: none;
}

@media (min-width: 1201px) {
    .desktop-only-search {
        display: flex !important;
    }
}

/* Compact Filter Bar */
.filter-bar {
    background: #fff;
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(13, 35, 61, 0.05);
}

.filter-main-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box-compact {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 0 16px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(13, 35, 61, 0.08);
}

.search-box-compact input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 0 16px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(13, 35, 61, 0.08);
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-trigger i {
    color: var(--blue);
}

.filter-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(13, 35, 61, 0.05);
}

.filter-toggles {
    display: flex;
    gap: 20px;
}

.compact-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.compact-select {
    border: 0;
    background: transparent;
    font-weight: 700;
    color: var(--blue-deep);
    cursor: pointer;
    outline: 0;
}

.reset-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

/* New Layout */
.finder-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-panel {
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.results-header-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

/* Featured Card Enhancements */
.featured-card {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(13, 35, 61, 0.05);
    box-shadow: 0 10px 30px rgba(13, 35, 61, 0.04);
    position: relative;
    overflow: hidden;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.featured-card .identity-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.featured-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.featured-card h3 {
    font-size: 24px;
    margin: 4px 0;
    color: var(--ink);
}

.featured-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.featured-metric {
    flex: 1;
    min-width: 140px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(13, 35, 61, 0.03);
    transition: all 0.2s ease;
}

.featured-metric:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.featured-metric span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.featured-metric strong {
    font-size: 18px;
    color: var(--blue-deep);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.featured-card .identity-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.featured-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.featured-card h3 {
    font-size: 24px;
    margin: 4px 0;
    color: var(--ink);
}

.featured-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.featured-metric {
    flex: 1;
    min-width: 140px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(13, 35, 61, 0.03);
    transition: all 0.2s ease;
}

.featured-metric:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.featured-metric span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.featured-metric strong {
    font-size: 18px;
    color: var(--blue-deep);
}

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

/* Individual Result Cards */
.doctor-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(13, 35, 61, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(13, 35, 61, 0.06);
    border-color: var(--blue-light);
}

.doctor-card.selected {
    border-color: var(--blue);
    background: linear-gradient(to bottom right, #fff, #f8faff);
    box-shadow: 0 10px 20px rgba(13, 99, 255, 0.08);
}

.map-container-fixed {
    position: sticky;
    top: 100px;
}

.map-card-v2 {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 35, 61, 0.05);
}

.map-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.map-controls-mini {
    display: flex;
    gap: 8px;
}

.map-controls-mini button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 1px solid rgba(13, 35, 61, 0.08);
}

.map-shell-v2 {
    height: 600px;
    border-radius: 16px;
    background-clip: padding-box;
    background-clip: border-box; /* Standard property */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 35, 61, 0.08);
}

/* Map Elements */
#doctorMap {
    width: 100%;
    height: 100%;
}

/* Dropdown Content */
.filter-dropdown-group {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 12px;
    display: none;
    z-index: 2000;
    border: 1px solid rgba(13, 35, 61, 0.1);
}

.filter-dropdown-group.active .dropdown-content {
    display: block;
}

.scrollable-dropdown {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.dropdown-item.active {
    background: linear-gradient(135deg, rgba(13, 99, 255, 0.08), rgba(27, 183, 164, 0.1));
    color: var(--blue-deep);
    border-color: rgba(13, 99, 255, 0.15);
}

.vertical-dropdown {
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 240px;
}

/* Map Expanded State Overhaul */
.finder-layout.map-expanded {
    grid-template-columns: 450px 1fr !important;
    gap: 48px !important;
}

.map-expanded .results-panel {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 12px;
}

.map-expanded .featured-card,
.map-expanded .doctor-card {
    display: block !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    background: #fff !important;
    border-radius: 20px !important;
}

.map-expanded .featured-header,
.map-expanded .doctor-card-header {
    margin-bottom: 12px !important;
    display: block !important;
}

.map-expanded .identity-row {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.map-expanded .avatar {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
}

.map-expanded h3 {
    font-size: 16px !important;
    margin: 0 !important;
}

.map-expanded .identity-copy p,
.map-expanded .identity-copy .minor-copy {
    font-size: 12px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.map-expanded .featured-metrics,
.map-expanded .card-meta-row-compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    margin-top: 12px !important;
}

.map-expanded .featured-metric,
.map-expanded .card-meta-row-compact span {
    background: #f8fafc !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(13, 35, 61, 0.03) !important;
    font-size: 12px !important;
    text-align: center !important;
    display: block !important;
}

.map-expanded .featured-metric span {
    display: block !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    margin-bottom: 2px !important;
}

.map-expanded .featured-metric strong {
    font-size: 14px !important;
    color: var(--blue-deep) !important;
}

.map-expanded .section-actions,
.map-expanded .card-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 0 !important;
}

.map-expanded .hero-btn-primary,
.map-expanded .card-action-button.primary {
    flex: 2 !important;
    padding: 10px !important;
    font-size: 13px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    min-width: auto !important;
}

.map-expanded .ghost-button.compact,
.map-expanded .card-action-button.secondary {
    flex: 1 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

.map-expanded .ghost-button.compact span,
.map-expanded .card-action-button span {
    display: none !important;
}

.map-expanded .ghost-button.compact i,
.map-expanded .card-action-button i {
    font-size: 20px !important;
    margin: 0 !important;
}

.map-expanded .availability-pill {
    display: none !important;
}

.ghost-button.compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(13, 35, 61, 0.1);
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ghost-button.compact:hover {
    background: #f8fafc;
    border-color: var(--blue);
    color: var(--blue);
}

.shell {
    width: var(--shell);
    margin: 0 auto;
    padding: 0 120px;
}

@media (max-width: 1440px) {
    .shell {
        padding: 0 40px;
    }
}

/* Responsiveness */
@media (max-width: 1100px) {
    .finder-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .map-container-fixed {
        position: static;
        margin-top: 0;
    }
    
    .map-shell-v2 {
        height: 500px;
    }

    /* Mobile Segregation UI */
    .mobile-mode-selector {
        display: flex;
        background: #f1f5f9;
        padding: 6px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .mode-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 14px;
        color: var(--muted);
        transition: all 0.2s ease;
    }

    .mode-btn.active {
        background: #fff;
        color: var(--ink);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .mobile-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .mobile-page-header h1 {
        font-size: 24px;
        font-weight: 800;
        margin: 0;
        color: var(--ink);
    }

    .mobile-filter-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: #fff;
        border: 1px solid rgba(13, 35, 61, 0.1);
        border-radius: 12px;
        font-size: 13px;
        font-weight: 700;
        color: var(--blue);
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .filter-bar {
        display: none !important; /* Hide by default on mobile */
    }

    .filter-bar.active {
        display: flex !important;
        margin-top: 12px;
    }

    .mobile-search-standalone {
        margin-bottom: 16px;
    }

    .search-input-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px 18px;
        transition: all 0.2s ease;
    }

    .search-input-wrapper:focus-within {
        border-color: var(--blue);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(13, 99, 255, 0.08);
    }

    .search-input-wrapper i {
        color: var(--muted);
        font-size: 18px;
    }

    .search-input-wrapper input {
        border: 0;
        background: transparent;
        width: 100%;
        font-size: 15px;
        font-weight: 500;
        color: var(--ink);
    }

    .desktop-only-search {
        display: none !important;
    }

    .filter-chips-container {
        display: block;
        margin-top: 4px;
        margin-bottom: 24px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .filter-chips-container::-webkit-scrollbar {
        display: none;
    }

    .filter-chips-scroll {
        display: flex;
        gap: 10px;
        width: max-content;
    }

    .chip {
        padding: 8px 18px;
        border-radius: 50px;
        background: #fff;
        border: 1px solid rgba(13, 35, 61, 0.08);
        font-size: 13px;
        font-weight: 700;
        color: var(--muted);
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .chip.active {
        background: var(--blue);
        color: #fff;
        border-color: var(--blue);
        box-shadow: 0 4px 12px rgba(13, 99, 255, 0.2);
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 72px;
        background: #fff;
        border-top: 1px solid rgba(0,0,0,0.06);
        z-index: 10000;
        padding: 0 16px 8px;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        transition: all 0.2s ease;
    }

    .nav-item i {
        font-size: 22px;
    }

    .nav-item.active {
        color: var(--blue);
    }

    /* List/Map Toggle Logic */
    .finder-layout.mobile-map-active .results-panel {
        display: none;
    }

    .footer {
        display: none !important;
    }

    .finder-layout:not(.mobile-map-active) .map-container-fixed {
        display: none;
    }

    .finder-layout.mobile-map-active .map-container-fixed {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        margin-top: 10px !important;
        height: calc(100vh - 320px) !important;
        min-height: 450px !important;
        width: 100% !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 20px;
        overflow: hidden;
    }

    #doctorMap {
        height: 100% !important;
        width: 100% !important;
        background: #f8fafc;
    }

    .shell {
        padding-bottom: 40px;
    }

    .finder-section {
        padding-top: 80px !important;
    }

    .map-card-v2, .map-shell-v2 {
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
}

@media (min-width: 1201px) {
    .mobile-mode-selector, .mobile-page-header, .filter-chips-container, .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 1100px) {
    .shell {
        padding: 0 40px;
    }
    
    .filter-bar {
        padding: 12px 16px;
    }

    .filter-main-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 1100px) {
    .shell {
        padding: 0 20px;
    }
    
    .results-header-inline {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .filter-toggles {
        flex-wrap: wrap;
    }
}

.map-expand-button-floating {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(13, 35, 61, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-expand-button-floating:hover {
    transform: scale(1.05);
    border-color: var(--blue);
    color: var(--blue);
}

.map-expand-button-floating i {
    font-size: 20px;
}

.doctor-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.doctor-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 154px;
    height: auto;
}

.brand-meta {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 35, 61, 0.08);
}

.doctor-nav {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 35, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.doctor-nav a {
    color: var(--muted);
    font-weight: 700;
    transition: color 0.2s ease;
}

.doctor-nav a:hover,
.doctor-nav a.active {
    color: var(--ink);
}

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

.header-status,
.header-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(13, 35, 61, 0.08);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.header-status {
    color: var(--ink);
}

.header-link {
    color: var(--blue-deep);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00D2FF;
    box-shadow: 0 0 0 8px rgba(0, 210, 255, 0.14);
}

.hero-band {
    padding: 48px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.88fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-brief {
    display: grid;
    gap: 22px;
}

.hero-copy {
    padding: 42px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 183, 164, 0.24), rgba(27, 183, 164, 0));
}

.eyebrow,
.stat-label,
.brief-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-copy h1,
.section-title h2,
.panel-heading h2 {
    margin: 0;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.8rem);
    line-height: 1.02;
    max-width: 12ch;
}

.hero-text,
.panel-copy,
.results-note,
.brief-list li {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.panel-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn:hover,
.ghost-button:hover,
.doctor-card:hover,
.hero-stat-card:hover,
.brief-card:hover,
.featured-card:hover,
.visit-plan:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: #fff;
    box-shadow: 0 16px 30px rgba(13, 99, 255, 0.28);
}

.hero-btn-secondary,
.ghost-button {
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    border: 1px solid rgba(13, 35, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.ghost-button.compact {
    padding: 11px 16px;
    font-size: 14px;
}

.hero-stat-grid,
.brief-stats,
.map-insights {
    display: grid;
    gap: 14px;
}

.hero-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat-card,
.brief-card,
.control-panel,
.map-card,
.results-panel,
.visit-plan,
.featured-card,
.doctor-card {
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.hero-stat-card {
    padding: 18px 18px 20px;
    border-radius: var(--radius-lg);
}

.hero-stat-card strong {
    display: block;
    margin: 10px 0 6px;
    font-family: "Inter", sans-serif;
    font-size: 2rem;
    letter-spacing: -0.06em;
}

.hero-stat-card p,
.brief-stats span,
.visit-plan p,
.slot-hint,
.card-copy {
    margin: 0;
    color: var(--muted);
}

.hero-brief {
    align-self: stretch;
}

.brief-card {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.brief-card-primary {
    min-height: 250px;
    background:
        linear-gradient(140deg, rgba(7, 48, 123, 0.96), rgba(8, 90, 142, 0.9)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.brief-card-primary::after {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 183, 164, 0.42), rgba(27, 183, 164, 0));
}

.brief-card-primary .brief-kicker,
.brief-card-primary .brief-stats span {
    color: rgba(255, 255, 255, 0.72);
}

.brief-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.brief-card h2 {
    margin: 0 0 24px;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.3rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.brief-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.brief-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brief-stats strong {
    display: block;
    margin-top: 8px;
    font-family: "Inter", sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.05em;
}

.brief-card-secondary {
    background: rgba(255, 255, 255, 0.88);
}

.brief-list {
    margin: 18px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
}

.finder-section {
    padding: 40px 0 60px;
}

.finder-grid {
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.control-panel {
    position: sticky;
    top: 104px;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.panel-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.search-box,
.select-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 58px;
    border-radius: 18px;
    background: rgba(240, 246, 252, 0.95);
    border: 1px solid rgba(13, 35, 61, 0.08);
}

.search-box i,
.select-wrap i {
    color: var(--muted);
    font-size: 20px;
}

.search-box input,
.select-wrap select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.filter-group {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 800;
}

.link-button {
    color: var(--blue-deep);
    font-weight: 800;
}

.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip,
.segment,
.slot-button,
.metric-pill,
.mode-pill,
.availability-pill,
.insight-card,
.time-chip {
    border-radius: 999px;
}

.filter-chip,
.segment {
    padding: 10px 14px;
    border: 1px solid rgba(13, 35, 61, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-weight: 800;
    transition: all 0.2s ease;
}

.filter-chip:hover,
.segment:hover,
.slot-button:hover {
    border-color: rgba(13, 99, 255, 0.24);
    color: var(--ink);
}

.filter-chip.active,
.segment.active,
.slot-button.active {
    background: linear-gradient(135deg, rgba(13, 99, 255, 0.1), rgba(27, 183, 164, 0.12));
    color: var(--ink);
    border-color: rgba(13, 99, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.specialty-grid .filter-chip {
    justify-content: center;
}

.range-input {
    width: 100%;
    accent-color: var(--blue);
}

.switch-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(13, 35, 61, 0.08);
}

.switch-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.switch-row strong {
    display: block;
    margin-bottom: 4px;
}

.switch-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    width: 54px;
    height: 32px;
    border-radius: 999px;
    background: rgba(13, 35, 61, 0.12);
    position: relative;
    transition: background 0.2s ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 12px rgba(16, 35, 59, 0.18);
    transition: transform 0.2s ease;
}

.switch-row input:checked + .switch-ui {
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.switch-row input:checked + .switch-ui::after {
    transform: translateX(22px);
}

.visit-plan {
    margin-top: 24px;
    padding: 22px;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 16px;
}

.visit-plan h3,
.featured-card h3,
.doctor-card h3,
.empty-state h3 {
    margin: 0;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.04em;
}

.visit-plan h3 {
    font-size: 1.15rem;
}

.visit-plan-grid,
.featured-metrics {
    display: grid;
    gap: 12px;
}

.visit-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-stat,
.featured-metric {
    padding: 14px;
    border-radius: 16px;
    background: rgba(240, 246, 252, 0.9);
    border: 1px solid rgba(13, 35, 61, 0.08);
}

.plan-stat span,
.featured-metric span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.plan-stat strong,
.featured-metric strong {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
}

.finder-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.map-card,
.results-panel {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.map-card {
    padding: 26px;
}

.section-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    margin-top: 6px;
}

.map-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.insight-card {
    padding: 16px 18px;
    background: rgba(240, 246, 252, 0.92);
    border: 1px solid rgba(13, 35, 61, 0.08);
}

.insight-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.insight-card strong {
    display: block;
    font-size: 1.35rem;
    font-family: "Inter", sans-serif;
}

.map-shell {
    position: relative;
    margin-top: 22px;
    height: 760px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(13, 35, 61, 0.08);
    background: linear-gradient(180deg, rgba(230, 239, 246, 0.9), rgba(255, 255, 255, 0.96));
}

#doctorMap {
    width: 100%;
    height: 100%;
}

.map-legend,
.map-callout {
    position: absolute;
    left: 20px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 35, 61, 0.08);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.map-legend {
    bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
}

.map-callout {
    top: 20px;
    max-width: min(78%, 420px);
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.55;
}

.legend-swatch {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.swatch-low {
    background: var(--low);
}

.swatch-normal {
    background: var(--normal);
}

.swatch-busy {
    background: var(--busy);
}

.results-panel {
    padding: 26px;
    max-height: 980px;
    display: grid;
    align-content: start;
    gap: 18px;
}

.results-title {
    margin-bottom: 2px;
}

.featured-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 18px;
}

.featured-header,
.doctor-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.identity-row {
    display: flex;
    gap: 14px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(16, 35, 59, 0.16);
}

.identity-copy h3 {
    font-size: 1.18rem;
}

.identity-copy p,
.identity-copy .minor-copy,
.doctor-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.metric-pill,
.availability-pill,
.mode-pill,
.time-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(240, 246, 252, 0.94);
    border: 1px solid rgba(13, 35, 61, 0.08);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.availability-pill.low {
    color: var(--low);
}

.availability-pill.normal {
    color: var(--normal);
}

.availability-pill.busy {
    color: var(--busy);
}

.featured-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-description {
    margin: 0;
    line-height: 1.75;
    color: var(--muted);
}

.tag-row,
.slot-row,
.card-tag-row,
.card-meta-row,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-chip {
    background: rgba(13, 99, 255, 0.08);
    color: var(--blue-deep);
}

.slot-button {
    padding: 11px 14px;
    border: 1px solid rgba(13, 35, 61, 0.08);
    background: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.results-list {
    display: grid;
    gap: 16px;
    max-height: 540px;
    overflow: auto;
    padding-right: 4px;
}

.doctor-card {
    padding: 18px;
    border-radius: 22px;
    display: grid;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.doctor-card:focus-visible,
.filter-chip:focus-visible,
.segment:focus-visible,
.slot-button:focus-visible,
.hero-btn:focus-visible,
.ghost-button:focus-visible,
.card-action-button:focus-visible,
.link-button:focus-visible {
    outline: 3px solid rgba(13, 99, 255, 0.22);
    outline-offset: 3px;
}

.doctor-card.selected {
    border-color: rgba(13, 99, 255, 0.18);
    box-shadow: 0 22px 42px rgba(13, 99, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98));
}

.doctor-card h3 {
    font-size: 1.05rem;
}

.card-copy {
    line-height: 1.7;
}

.card-actions {
    justify-content: space-between;
    align-items: center;
}

.card-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
}

.card-action-button.primary {
    background: linear-gradient(135deg, rgba(13, 99, 255, 0.14), rgba(27, 183, 164, 0.16));
    color: var(--ink);
}

.card-action-button.secondary {
    background: rgba(240, 246, 252, 0.92);
    color: var(--blue-deep);
}

.empty-state {
    padding: 38px 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px dashed rgba(13, 35, 61, 0.16);
    text-align: center;
}

.empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(13, 99, 255, 0.14), rgba(27, 183, 164, 0.18));
    color: var(--blue-deep);
    font-size: 34px;
}

.empty-state p {
    color: var(--muted);
    margin: 12px 0 22px;
}

.leaflet-container {
    font-family: "Inter", sans-serif;
}

.leaflet-control-zoom a {
    width: 36px;
    height: 36px;
    line-height: 34px;
    color: var(--ink);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.96);
}

.map-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.7;
}

.leaflet-popup-content {
    margin: 14px 16px;
    min-width: 220px;
}

.popup-card strong {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    margin-bottom: 6px;
}

.popup-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}

.popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-marker-shell {
    background: transparent;
    border: 0;
}

.doc-marker {
    position: relative;
    min-width: 58px;
    padding: 10px 12px;
    border-radius: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 14px 22px rgba(16, 35, 59, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.92);
}

.doc-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
    border-right: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom-right-radius: 4px;
}

.doc-marker.low {
    background: linear-gradient(135deg, #15b877, #109d67);
}

.doc-marker.normal {
    background: linear-gradient(135deg, #3878ff, #225fdc);
}

.doc-marker.busy {
    background: linear-gradient(135deg, #f08253, #e96a42);
}

.doc-marker.selected {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 16px 30px rgba(13, 99, 255, 0.28);
}

.scrollbar-hidden::-webkit-scrollbar,
.results-list::-webkit-scrollbar {
    width: 10px;
}

.results-list::-webkit-scrollbar-thumb {
    background: rgba(13, 35, 61, 0.12);
    border-radius: 999px;
}

@media (max-width: 1360px) {
    .finder-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .results-panel {
        max-height: none;
    }

    .results-list {
        max-height: none;
    }

    .map-shell {
        height: 680px;
    }
}

@media (max-width: 1100px) {
    .doctor-nav,
    .brand-meta {
        display: none;
    }

    .hero-grid,
    .finder-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .control-panel {
        position: static;
    }

    .hero-stat-grid,
    .brief-stats,
    .map-insights,
    .featured-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    :root {
        --shell: min(100% - 22px, 100%);
    }

    .doctor-header {
        padding: 14px 0;
    }

    .doctor-header-inner,
    .header-actions,
    .section-title,
    .featured-header,
    .doctor-card-header,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-copy,
    .brief-card,
    .control-panel,
    .map-card,
    .results-panel {
        padding: 22px;
    }

    .hero-stat-grid,
    .brief-stats,
    .map-insights,
    .visit-plan-grid,
    .featured-metrics,
    .segmented-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-shell {
        height: 520px;
    }

    .map-callout {
        max-width: calc(100% - 40px);
        font-size: 14px;
    }

    .brand-logo {
        width: 124px;
    }

    .header-status,
    .header-link {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.mobile-nav-toggle,
.mobile-nav-shell {
    display: none;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .floating-actions {
    display: none !important;
}

@media (max-width: 1100px) {
    .doctor-header {
        padding: 14px 0;
        backdrop-filter: blur(16px);
    }

    .doctor-header-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
    }

    .header-actions {
        display: none;
    }

    .mobile-nav-toggle {
        width: 54px;
        height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(13, 99, 255, 0.16), rgba(27, 183, 164, 0.18));
        border: 1px solid rgba(13, 99, 255, 0.12);
        box-shadow: 0 18px 34px rgba(13, 99, 255, 0.16);
        flex-shrink: 0;
    }

    .mobile-nav-toggle::before {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: 17px;
        background: rgba(255, 255, 255, 0.95);
    }

    .mobile-nav-toggle-lines {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 5px;
    }

    .mobile-nav-toggle-line {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--blue), var(--teal));
        transition: transform 0.28s ease, opacity 0.2s ease;
    }

    body.mobile-nav-open .mobile-nav-toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.mobile-nav-open .mobile-nav-toggle-line:nth-child(2) {
        opacity: 0;
    }

    body.mobile-nav-open .mobile-nav-toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-nav-shell {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1400;
        pointer-events: none;
    }

    .mobile-nav-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(16, 35, 59, 0.46);
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    .mobile-nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: min(100vw, 380px);
        height: 100%;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-nav-card {
        position: relative;
        height: 100%;
        padding: 24px 20px 22px;
        overflow-y: auto;
        background:
            radial-gradient(circle at top right, rgba(27, 183, 164, 0.16), transparent 28%),
            linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
        box-shadow: -26px 0 64px rgba(16, 35, 59, 0.18);
    }

    body.mobile-nav-open .mobile-nav-shell {
        pointer-events: auto;
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
    }

    body.mobile-nav-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    .mobile-nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .mobile-nav-close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--ink);
        box-shadow: var(--shadow-sm);
    }

    .mobile-nav-close i {
        font-size: 20px;
    }

    .mobile-nav-eyebrow {
        margin: 0 0 12px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .mobile-nav-note,
    .mobile-nav-status {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(13, 35, 61, 0.08);
        box-shadow: var(--shadow-sm);
        color: var(--ink);
        font-weight: 700;
    }

    .mobile-nav-note-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--blue), var(--teal));
        box-shadow: 0 0 10px var(--teal);
        animation: live-pulse 2s infinite ease-in-out;
    }

    .mobile-nav-links {
        display: grid;
        gap: 12px;
        margin: 26px 0;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 16px 18px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.84);
        border: 1px solid rgba(13, 35, 61, 0.08);
        color: var(--ink);
        font-weight: 700;
        box-shadow: var(--shadow-sm);
    }

    .mobile-nav-links a i {
        color: var(--blue-deep);
        font-size: 18px;
    }

    .mobile-nav-links a.active {
        background: linear-gradient(135deg, rgba(13, 99, 255, 0.12), rgba(27, 183, 164, 0.14));
    }

    .mobile-nav-actions {
        display: grid;
        gap: 12px;
        margin-top: auto;
    }

    .mobile-nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 14px 18px;
        border-radius: 999px;
        color: #fff;
        font-weight: 800;
        background: linear-gradient(135deg, var(--blue), var(--teal));
        box-shadow: 0 18px 34px rgba(13, 99, 255, 0.18);
    }
}

@media (max-width: 1100px) {
    .doctor-header {
        padding: 12px 0;
    }

    .shell {
        padding: 0 16px;
    }

    .brand-logo {
        width: 126px;
    }

    .finder-section {
        padding: 18px 0 40px;
    }

    .filter-bar {
        padding: 20px;
        margin-bottom: 24px;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(13, 35, 61, 0.05);
    }

    .filter-main-controls {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .search-box-compact,
    .dropdown-trigger {
        width: 100%;
        height: 54px;
        border-radius: 16px;
        background: #F8FAFC;
        border: 1px solid rgba(13, 35, 61, 0.06);
    }

    .filter-actions-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(13, 35, 61, 0.05);
    }

    .filter-toggles {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .compact-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        background: #F8FAFC;
        border-radius: 14px;
        border: 1px solid rgba(13, 35, 61, 0.06);
        font-weight: 700;
        font-size: 14px;
    }

    .compact-select {
        width: 100%;
        height: 50px;
        padding: 0 16px;
        background: #F8FAFC;
        border-radius: 14px;
        border: 1px solid rgba(13, 35, 61, 0.06);
        font-weight: 700;
        color: var(--blue-deep);
    }

    .reset-link {
        text-align: center;
        padding: 10px;
        display: block;
        width: 100%;
    }


    .compact-select {
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        border-radius: 14px;
        background: #f8fbff;
        border: 1px solid rgba(13, 35, 61, 0.08);
    }

    .finder-layout {
        gap: 16px;
    }

    .results-header-inline {
        margin-bottom: 18px;
    }

    .results-header-inline h2 {
        margin: 0;
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .featured-card,
    .doctor-card,
    .map-card-v2 {
        padding: 18px;
        border-radius: 22px;
    }

    .featured-header,
    .doctor-card-header {
        gap: 14px;
    }

    .featured-card .identity-row,
    .doctor-card .identity-row {
        gap: 14px;
        align-items: center;
    }

    .featured-card .avatar,
    .doctor-card .avatar {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 20px;
    }

    .featured-card h3,
    .doctor-card h3 {
        font-size: 1.15rem;
    }

    .featured-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }

    .map-shell-v2 {
        height: 360px;
        border-radius: 20px;
    }

    .map-expand-button-floating {
        display: none;
    }

    .finder-layout.map-expanded {
        display: flex;
        flex-direction: column;
    }

    .map-expanded .map-container-fixed {
        order: -1;
        height: 50vh;
        position: sticky;
        top: 80px;
        z-index: 10;
        margin-bottom: 20px;
    }

    .map-expanded .map-card-v2 {
        height: 100%;
        padding: 0;
        border-radius: 0;
    }

    .map-expanded .map-shell-v2 {
        height: 100%;
        border-radius: 0;
    }

    .map-expanded .results-panel {
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .mobile-nav-card {
        padding: 20px 16px 18px;
    }

    .results-header-inline h2 {
        font-size: 1.7rem;
    }

    .featured-header,
    .doctor-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-metrics {
        grid-template-columns: 1fr;
    }

    .card-meta-row-compact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .map-shell-v2 {
        height: 320px;
    }
}
@keyframes live-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(27, 183, 164, 0.7);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 15px 5px rgba(27, 183, 164, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(27, 183, 164, 0);
    }
}

/* Full Bleed Layout CSS */
body.doctor-page {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

main.finder-main-full {
    height: 100vh;
    margin-top: 0 !important;
    padding-top: 86px;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--bg);
}

.finder-layout-full {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Hidden on desktop, shown in mobile media query */
.mobile-view-toggle-full {
    display: none;
}

.map-container-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-container-full #doctorMap {
    width: 100%;
    height: 100%;
}

.results-panel-full {
    position: absolute;
    top: 32px;
    right: 32px;
    bottom: 32px;
    width: 440px;
    background: #fff;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}

.results-panel-header {
    padding: 24px;
    border-bottom: 1px solid rgba(13, 35, 61, 0.08);
}

.results-panel-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--ink);
}

.search-input-wrapper-full {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.search-input-wrapper-full i {
    color: var(--muted);
    font-size: 18px;
}

.search-input-wrapper-full input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.filter-chips-full {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chips-full .chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(13, 35, 61, 0.1);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.2s ease;
}

.filter-chips-full .chip.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.results-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8fafc;
}

/* Horizontal Cards */
.group-header-full {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 24px 0 12px 0;
}
.group-header-full:first-child {
    margin-top: 0;
}

.group-header-full .count {
    color: var(--blue);
}

.doctor-card-horizontal {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(13, 35, 61, 0.04);
    border: 1px solid rgba(13, 35, 61, 0.04);
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doctor-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 35, 61, 0.08);
}

.card-avatar-h {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.card-avatar-h img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info-h {
    flex-grow: 1;
}

.card-info-h h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: var(--ink);
}

.card-info-h .specialty-h {
    font-size: 12px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.card-info-h .meta-h {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}

.card-info-h .meta-h i {
    margin-right: 4px;
}

.card-info-h .rating-h {
    font-size: 11px;
    color: var(--ink);
    font-weight: 600;
}

.card-info-h .rating-h i {
    color: var(--gold);
    margin-right: 4px;
}

.card-action-h {
    flex-shrink: 0;
}

.action-btn-h {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.action-btn-h.walkin {
    background: var(--teal);
}

.action-btn-h.virtual {
    background: var(--blue);
}

@media (max-width: 1100px) {
    main.finder-main-full {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-top: 80px;
        background: #f8fafc;
    }

    .finder-layout-full {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Mobile List/Map Toggle */
    .finder-layout-full::before {
        content: '';
        display: block;
        order: -2;
    }

    .mobile-view-toggle-full {
        display: flex;
        background: #f1f5f9;
        padding: 5px;
        border-radius: 14px;
        margin: 12px 20px 0;
        order: -1;
        border: 1px solid rgba(13, 35, 61, 0.06);
    }

    .mobile-view-toggle-full .view-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 15px;
        color: var(--muted);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .mobile-view-toggle-full .view-btn.active {
        background: #fff;
        color: var(--ink);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .mobile-view-toggle-full .view-btn i {
        font-size: 18px;
    }

    /* Map hidden by default on mobile (list view) */
    .map-container-full {
        position: relative;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .finder-layout-full.mobile-map-view .map-container-full {
        height: calc(100vh - 180px);
    }

    /* Panel takes full width */
    .results-panel-full {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        background: #f8fafc;
    }

    /* Hide panel when map is active */
    .finder-layout-full.mobile-map-view .results-panel-full {
        display: none;
    }

    .results-panel-header {
        padding: 20px 20px 16px;
        background: #fff;
        border-bottom: 1px solid rgba(13, 35, 61, 0.06);
    }

    .results-panel-header h1 {
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 14px;
    }

    .search-input-wrapper-full {
        border-radius: 16px;
        padding: 14px 18px;
        margin-bottom: 14px;
    }

    .filter-chips-full {
        padding-bottom: 2px;
    }

    .results-panel-body {
        padding: 16px 20px;
        background: #f8fafc;
        overflow-y: auto;
    }

    /* Unlock page scrolling on mobile */
    body.doctor-page {
        overflow: auto;
        height: auto;
    }
}

/* Modal Overlay */
.doctor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 35, 61, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.doctor-modal-content {
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px rgba(13, 35, 61, 0.15);
}

.doctor-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
    transition: all 0.2s;
}

.doctor-modal-close:hover {
    background: #e2e8f0;
}

.modal-header-section {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(13, 35, 61, 0.08);
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.modal-header-section h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: var(--ink);
}

.modal-specialty {
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-rating {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-body-section {
    padding: 32px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.modal-info-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-info-item i {
    font-size: 20px;
    color: var(--blue);
}

.modal-info-item label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

.modal-info-item span {
    font-size: 14px;
    color: var(--ink);
    font-weight: 700;
}

.modal-note-box {
    background: #f0f7ff;
    border: 1px solid #d6e8ff;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-note-box i {
    color: var(--blue);
    font-size: 20px;
    flex-shrink: 0;
}

.modal-note-box p {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

.modal-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-keywords span {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* Map Popup Enhancements */
.popup-details-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    transition: background 0.2s;
}

.popup-details-btn:hover {
    background: #0d63ff;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
    color: var(--blue);
}

/* Advanced Filters Panel */
.advanced-filters-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    margin-top: 16px;
    border: 1px solid rgba(13, 35, 61, 0.05);
    align-items: center;
}

/* Modal Book Appointment Pill Button */
.modal-book-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(13, 99, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(13, 99, 255, 0.35);
    filter: brightness(1.05);
}

.modal-book-btn:active {
    transform: translateY(-1px);
}
