/* ============================================
   UK Aftercare Network - Integrated Design
   ============================================ */

.safari-health-uk-map {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.safari-health-uk-map .section-title-area {
    text-align: center;
    margin-bottom: 60px;
}

.safari-health-uk-map .section-title-area .section-title {
    font-family: var(--font-primary);
    color: var(--color-heading-1);
}

.safari-health-uk-map .section-title-area .desc {
    max-width: 580px;
    margin: 15px auto 0;
    font-family: var(--font-four);
}

/* Grid - center both columns vertically */
.uk-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* LEFT: Map */
.uk-map-visual {
    display: flex;
    justify-content: center;
}

.uk-map-visual .map-frame {
    width: 100%;
    max-width: 460px;
}

.map-svg-container { width: 100%; }
.map-svg-container svg { width: 100%; height: auto; display: block; }

/* SVG Regions */
.map-region-path {
    fill: #c2d6ec;
    stroke: #fff;
    stroke-width: 5;
    transition: fill 0.4s ease;
    cursor: pointer;
}
.map-region-path:hover { fill: #a8c4e0; }
.map-region-path.is-highlighted { fill: #84b0dd; }

/* City Pins */
.city-pin-group { cursor: pointer; }
.city-pin-outer { fill: rgba(132,176,221,0.2); transition: all 0.3s; }
.city-pin-ring { fill: #fff; transition: all 0.3s; }
.city-pin-core { fill: #0b0e33; transition: all 0.3s; }
.city-pin-group.is-active .city-pin-outer { fill: rgba(11,14,51,0.3); }
.city-pin-group.is-active .city-pin-core { fill: #84b0dd; }
.city-pin-pulse { fill: none; stroke: #84b0dd; stroke-width: 2; opacity: 0; }
.city-pin-group.is-active .city-pin-pulse {
    animation: svgPulse 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes svgPulse {
    0% { r: 12; opacity: 0.5; stroke-width: 2; }
    100% { r: 35; opacity: 0; stroke-width: 0.5; }
}
.city-pin-label {
    font-size: 20px; font-weight: 600; fill: #0b0e33;
    text-anchor: middle; pointer-events: none;
    opacity: 0; transition: opacity 0.3s;
    font-family: var(--font-four);
}
.city-pin-group.is-active .city-pin-label { opacity: 1; }

/* RIGHT: Location List */
.uk-locations-list {
    display: flex;
    flex-direction: column;
}

/* City Selector - dropdown style */
.city-selector {
    position: relative;
    margin-bottom: 20px;
}

.city-selector-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #0b0e33;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-four);
    font-size: 15px;
    font-weight: 600;
    user-select: none;
    transition: background 0.3s;
}

.city-selector-toggle:hover {
    background: #151a45;
}

.city-selector-toggle i {
    font-size: 12px;
    transition: transform 0.3s;
}

.city-selector.is-open .city-selector-toggle i {
    transform: rotate(180deg);
}

.city-selector-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11,14,51,0.1);
    z-index: 10;
    overflow: hidden;
}

.city-selector.is-open .city-selector-dropdown {
    display: block;
    animation: dropIn 0.25s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.city-selector-dropdown .city-option {
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--font-four);
    font-size: 14px;
    color: var(--color-heading-1);
    transition: background 0.2s;
    border-bottom: 1px solid var(--color-border);
}

.city-selector-dropdown .city-option:last-child {
    border-bottom: none;
}

.city-selector-dropdown .city-option:hover {
    background: #f4f7f9;
}

.city-selector-dropdown .city-option.is-active {
    background: #0b0e33;
    color: #fff;
}

/* Progress bar */
.city-tab-progress {
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}
.city-tab-progress .bar {
    height: 100%;
    width: 0;
    background: #84b0dd;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Clinic Cards */
.clinic-cards-container { min-height: 180px; }
.clinic-card {
    display: none;
    flex-direction: column;
    gap: 10px;
}
.clinic-card.is-visible {
    display: flex;
    animation: fadeInCard 0.35s ease;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.clinic-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--color-bg-1);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
    font-family: var(--font-four);
}
.clinic-item:hover {
    border-color: #84b0dd;
    box-shadow: 0 4px 16px rgba(132,176,221,0.15);
}
.clinic-item .clinic-icon {
    width: 40px; height: 40px;
    background: #0b0e33;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.clinic-item .clinic-icon i { color: #84b0dd; font-size: 15px; }
.clinic-item .clinic-info h6 {
    margin: 0; font-size: 14px; font-weight: 600;
    color: var(--color-heading-1);
    font-family: var(--font-four);
}
.clinic-item .clinic-info p {
    margin: 2px 0 0; font-size: 12px;
    color: var(--color-body-1);
    font-family: var(--font-four);
}

/* Responsive */
@media (max-width: 991px) {
    .uk-map-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }
    .uk-map-visual .map-frame {
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .safari-health-uk-map { padding: 50px 0; }
    .uk-map-visual .map-frame { max-width: 280px; }
    .clinic-item { padding: 12px 14px; }
    .city-selector-toggle { padding: 10px 14px; font-size: 14px; }
}
