/**
 * Ana sayfa — Sana yakın veterinerler (harita + liste)
 */

.yakin-vet-bolum {
    padding: 56px 24px 72px;
}

.yakin-vet-container {
    max-width: 1200px;
    margin: 0 auto;
}

.yakin-vet-bolum-baslik p {
    margin: 0 auto;
    max-width: 36em;
}

.yakin-vet-bolum-baslik .yakin-vet-tumu {
    display: inline-block;
    margin-top: 14px;
}

.yakin-vet-tumu {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600, #c41230);
    text-decoration: none;
    white-space: nowrap;
}

.yakin-vet-tumu:hover {
    text-decoration: underline;
}

.yakin-vet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.yakin-vet-harita-kol {
    position: relative;
    min-height: 380px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--neutral-200, #e2e8f0);
}

.yakin-vet-harita {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: var(--neutral-100, #f1f5f9);
    z-index: 1;
}

.yakin-vet-harita .leaflet-container {
    font-family: 'Quicksand', system-ui, sans-serif;
}

.yakin-vet-fab {
    position: absolute;
    z-index: 500;
    padding: 10px 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.yakin-vet-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.yakin-vet-fab--konum {
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--neutral-800, #1e293b);
}

.yakin-vet-fab--konum::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3123d' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7z'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.yakin-vet-fab--liste {
    bottom: 28px;
    left: 12px;
    background: var(--primary-500, #f3123d);
    color: #fff;
}

.yakin-vet-liste-kol {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.yakin-vet-durum-metin {
    font-size: 14px;
    color: var(--neutral-600, #64748b);
    margin: 0 0 12px;
    line-height: 1.45;
}

.yakin-vet-durum-metin:empty {
    display: none;
    margin: 0;
    min-height: 0;
}

.yakin-vet-durum-metin.is-hata:not(:empty) {
    color: #b91c1c;
}

.yakin-vet-liste {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.yakin-vet-liste::-webkit-scrollbar {
    width: 6px;
}

.yakin-vet-liste::-webkit-scrollbar-thumb {
    background: var(--neutral-300, #cbd5e1);
    border-radius: 999px;
}

.yakin-kart {
    display: flex;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 6px;
    border: 1px solid var(--neutral-200, #e2e8f0);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    align-items: center;
}

.yakin-kart:hover {
    border-color: rgba(243, 18, 61, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.yakin-kart-gorsel {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--neutral-200, #e2e8f0);
}

.yakin-kart-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yakin-kart-gorsel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400, #94a3b8);
    font-size: 1.45rem;
}

.yakin-kart-icerik {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yakin-kart-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.yakin-kart-ust h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--neutral-900, #0f172a);
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yakin-kart-durum-blok {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.yakin-kart-durum-ayrac {
    color: var(--neutral-400, #94a3b8);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    user-select: none;
}

.yakin-kart-mesafe--ust {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-600, #c41230);
    line-height: 1.2;
}

.yakin-kart-rozet {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 6px;
    border-radius: 5px;
    line-height: 1.2;
}

.yakin-kart-rozet.acik {
    background: #e9f8e7;
    color: #166534;
}

.yakin-kart-rozet.kapali {
    background: #fff1f2;
    color: #be123c;
}

.yakin-kart-rozet.nobetci {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.25);
}

.yakin-kart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.yakin-kart-yer {
    margin: 0;
    font-size: 12px;
    color: var(--neutral-600, #64748b);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yakin-kart-meta-sag {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.yakin-kart-puan {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.yakin-kart-puan--inline {
    margin: 0;
}

.yakin-kart-puan i {
    color: #f5a623;
    font-size: 12px;
}

.yakin-kart-puan-deger {
    font-weight: 700;
    color: var(--neutral-900, #0f172a);
}

.yakin-kart-puan-adet {
    color: var(--neutral-500, #94a3b8);
    font-size: 12px;
}

.yakin-kart-mesafe {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-600, #c41230);
}

.yakin-kart-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-500, #f3123d);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.yakin-kart:hover .yakin-kart-cta {
    text-decoration: underline;
}

/* Harita pin — transform yok (Leaflet zoom ile çakışmaz) */
.yakin-map-pin-wrap.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.yakin-map-pin-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 40px;
    height: 48px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.yakin-map-pin-puan {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    background: rgba(15, 23, 42, 0.9);
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 3px;
}

.yakin-map-pin-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-500, #f3123d);
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

@media (max-width: 960px) {
    .yakin-vet-layout {
        grid-template-columns: 1fr;
    }

    .yakin-vet-harita-kol {
        min-height: 320px;
    }

    .yakin-vet-harita {
        min-height: 320px;
    }

    .yakin-vet-liste {
        max-height: none;
    }
}

@media (max-width: 520px) {
    .yakin-vet-bolum {
        padding: 40px 16px 56px;
    }

    .yakin-vet-fab {
        font-size: 12px;
        padding: 8px 11px;
    }
}
