
/* =========================================================
   FVSC CLINIC LOCATOR — PAGE VARIABLES
========================================================= */
.fvsc-locator-page {
    --fvsc-navy: #063b52;
    --fvsc-navy-dark: #032b3c;
    --fvsc-deep: #021f2c;
    --fvsc-teal: #159eba;
    --fvsc-blue: #62c9df;
    --fvsc-bg: #f5f9fb;
    --fvsc-light: #eaf4f7;
    --fvsc-text: #102a36;
    --fvsc-muted: #637d88;
    --fvsc-border: rgba(6, 59, 82, .12);
    --fvsc-card-shadow: 0 12px 40px rgba(3, 43, 60, .08);
}

/* =========================================================
   HERO (compact for locator)
========================================================= */
.fvsc-locator-hero {
    position: relative;
    padding: 90px 0 50px;
    color: #fff;
    background:
        linear-gradient(
            110deg,
            rgba(2, 31, 44, .97) 0%,
            rgba(3, 43, 60, .92) 52%,
            rgba(6, 59, 82, .78) 100%
        ),
        url("../../images/hero-3.jpg")
        center center / cover no-repeat;
    isolation: isolate;
    overflow: hidden;
}

.fvsc-locator-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(98, 201, 223, .035) 1px, transparent 1px),
        linear-gradient(rgba(98, 201, 223, .035) 1px, transparent 1px);
    background-size: 70px 70px;
    pointer-events: none;
    z-index: -1;
}

.fvsc-locator-hero .container {
    position: relative;
    z-index: 2;
}

.fvsc-locator-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--fvsc-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.fvsc-locator-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 600;
}

.fvsc-locator-hero h1 span {
    color: var(--fvsc-blue);
}

.fvsc-locator-hero-desc {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
.fvsc-locator-main {
    padding: 40px 0 80px;
    background: var(--fvsc-bg);
}

.fvsc-locator-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 28px;
    align-items: start;
}

/* =========================================================
   SEARCH + FILTERS PANEL
========================================================= */
.fvsc-locator-panel {
    background: #fff;
    border: 1px solid var(--fvsc-border);
    border-radius: 18px;
    box-shadow: var(--fvsc-card-shadow);
    overflow: hidden;
}

.fvsc-locator-panel-inner {
    padding: 22px 22px 18px;
}

.fvsc-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.fvsc-search-wrap label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.fvsc-search-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--fvsc-border);
    border-radius: 12px;
    background: var(--fvsc-light);
    color: var(--fvsc-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.fvsc-search-input::placeholder {
    color: var(--fvsc-muted);
}

.fvsc-search-input:focus {
    border-color: var(--fvsc-blue);
    box-shadow: 0 0 0 3px rgba(98, 201, 223, .25);
    background: #fff;
}

.fvsc-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fvsc-muted);
    pointer-events: none;
    font-size: 16px;
}

/* Filters */
.fvsc-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.fvsc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fvsc-filter-group label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--fvsc-muted);
}

.fvsc-filter-select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--fvsc-border);
    border-radius: 10px;
    background: #fff;
    color: var(--fvsc-text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color .25s ease;
}

.fvsc-filter-select:focus {
    border-color: var(--fvsc-blue);
}

.fvsc-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.fvsc-results-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--fvsc-muted);
}

.fvsc-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--fvsc-border);
    border-radius: 100px;
    background: transparent;
    color: var(--fvsc-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.fvsc-clear-btn:hover {
    background: var(--fvsc-light);
    border-color: var(--fvsc-teal);
    color: var(--fvsc-teal);
}

.fvsc-clear-btn:focus-visible {
    outline: 2px solid var(--fvsc-blue);
    outline-offset: 2px;
}

/* =========================================================
   CLINIC RESULTS LIST
========================================================= */
.fvsc-results-list {
    max-height: 560px;
    overflow-y: auto;
    padding: 0 10px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 59, 82, .25) transparent;
}

.fvsc-results-list::-webkit-scrollbar {
    width: 6px;
}

.fvsc-results-list::-webkit-scrollbar-thumb {
    background: rgba(6, 59, 82, .22);
    border-radius: 10px;
}

.fvsc-clinic-card {
    position: relative;
    padding: 16px 14px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--fvsc-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.fvsc-clinic-card:hover {
    border-color: rgba(98, 201, 223, .55);
    box-shadow: 0 8px 24px rgba(3, 43, 60, .08);
}

.fvsc-clinic-card.is-active {
    border-color: var(--fvsc-blue);
    box-shadow: 0 0 0 3px rgba(98, 201, 223, .28);
    background: #f8fcfd;
}

.fvsc-clinic-card:focus-visible {
    outline: 2px solid var(--fvsc-blue);
    outline-offset: 2px;
}

.fvsc-clinic-name {
    margin: 0 0 6px;
    color: var(--fvsc-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.fvsc-clinic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 8px;
}

.fvsc-clinic-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--fvsc-muted);
}

.fvsc-clinic-address {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--fvsc-text);
}

.fvsc-clinic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.fvsc-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--fvsc-light);
    color: var(--fvsc-navy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
}

.fvsc-tag--type {
    background: rgba(21, 158, 186, .12);
    color: var(--fvsc-teal);
}

.fvsc-clinic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fvsc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
    border: 1px solid transparent;
    font-family: inherit;
}

.fvsc-action-btn--primary {
    background: var(--fvsc-blue);
    color: var(--fvsc-navy);
    border-color: var(--fvsc-blue);
}

.fvsc-action-btn--primary:hover {
    background: var(--fvsc-navy);
    color: #fff;
    border-color: var(--fvsc-navy);
}

.fvsc-action-btn--ghost {
    background: transparent;
    color: var(--fvsc-navy);
    border-color: var(--fvsc-border);
}

.fvsc-action-btn--ghost:hover {
    background: var(--fvsc-light);
    border-color: var(--fvsc-teal);
    color: var(--fvsc-teal);
}

.fvsc-action-btn:focus-visible {
    outline: 2px solid var(--fvsc-blue);
    outline-offset: 2px;
}

/* Empty / Loading / Error */
.fvsc-state {
    padding: 36px 20px;
    text-align: center;
    color: var(--fvsc-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fvsc-state strong {
    display: block;
    margin-bottom: 6px;
    color: var(--fvsc-navy);
    font-size: 15px;
}

.fvsc-loading-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 14px;
    border: 3px solid var(--fvsc-light);
    border-top-color: var(--fvsc-teal);
    border-radius: 50%;
    animation: fvsc-spin .7s linear infinite;
}

@keyframes fvsc-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   MAP PANEL
========================================================= */
.fvsc-map-panel {
    position: relative;
    background: #fff;
    border: 1px solid var(--fvsc-border);
    border-radius: 18px;
    box-shadow: var(--fvsc-card-shadow);
    overflow: hidden;
    min-height: 640px;
}

.fvsc-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--fvsc-border);
    background: #fff;
}

.fvsc-map-header-label {
    color: var(--fvsc-teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.fvsc-map-header-title {
    margin-top: 3px;
    color: var(--fvsc-navy);
    font-size: 15px;
    font-weight: 700;
}

.fvsc-map-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fvsc-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.fvsc-map-status-dot {
    width: 8px;
    height: 8px;
    background: #48b98a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(72, 185, 138, .15);
}

#fvscClinicMap {
    width: 100%;
    height: 560px;
    background: var(--fvsc-light);
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-control-zoom {
    border: 0 !important;
    box-shadow: 0 8px 25px rgba(3, 43, 60, .12) !important;
}

.leaflet-control-zoom a {
    color: var(--fvsc-navy) !important;
    border: 0 !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(3, 43, 60, .15);
}

.leaflet-popup-content {
    margin: 14px 16px;
    font-family: inherit;
    min-width: 180px;
}

/* Custom markers */
.fvsc-marker {
    position: relative;
    width: 18px;
    height: 18px;
    background: var(--fvsc-blue);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(98, 201, 223, .25),
        0 5px 16px rgba(3, 43, 60, .28);
    transition: transform .2s ease;
}

.fvsc-marker.is-active {
    background: var(--fvsc-navy);
    transform: scale(1.25);
    box-shadow:
        0 0 0 5px rgba(6, 59, 82, .2),
        0 6px 18px rgba(3, 43, 60, .35);
}

.fvsc-marker::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: .7;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .fvsc-locator-grid {
        grid-template-columns: 1fr;
    }

    .fvsc-map-panel {
        min-height: auto;
        order: 2;
    }

    #fvscClinicMap {
        height: 380px;
    }

    .fvsc-results-list {
        max-height: 420px;
    }
}

@media (max-width: 767px) {
    .fvsc-locator-hero {
        padding: 70px 0 40px;
    }

    .fvsc-locator-main {
        padding: 28px 0 60px;
    }

    .fvsc-filters {
        grid-template-columns: 1fr;
    }

    .fvsc-map-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }

    #fvscClinicMap {
        height: 320px;
    }

    .fvsc-clinic-actions {
        flex-direction: column;
    }

    .fvsc-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fvsc-locator-hero h1 {
        font-size: 32px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fvsc-clinic-card,
    .fvsc-action-btn,
    .fvsc-clear-btn,
    .fvsc-marker {
        transition: none;
    }

    .fvsc-loading-spinner {
        animation: none;
    }
}
