/* ============================================================
   Referans Haritası (Leaflet)
   Kullanıldığı yerler: /references, ana sayfa, hakkımızda
   ============================================================ */

.crz-ref-map {
    width: 100%;
    background: #f2f2f2;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0; /* Leaflet panelleri site header'ının üstüne çıkmasın */
}

/* Leaflet varsayılan yazı tipi sitenin geri kalanıyla uyumlansın */
.crz-ref-map .leaflet-container {
    font-family: inherit;
    background: #f2f2f2;
}

/* --- İşaretçi --- */
.crz-ref-marker {
    background: transparent;
    border: 0;
}

.crz-ref-marker-pin {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: #dc2626;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crz-ref-marker-pin::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

/* --- Kümeler (cluster) --- */
.crz-ref-cluster {
    background: transparent;
}

.crz-ref-cluster > div {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(220, 38, 38, .9);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 38px;
    text-align: center;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, .2);
}

.crz-ref-cluster-lg > div {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 15px;
}

/* --- Popup --- */
.crz-ref-map .leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 4px 6px;
}

.crz-ref-map .leaflet-popup-content {
    margin: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
}

.crz-ref-popup-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.crz-ref-popup-city {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.crz-ref-popup-desc {
    color: #374151;
}

/* --- Attribution --- */
.crz-ref-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, .75);
}

/* --- RTL (Arapça) --- */
[dir="rtl"] .crz-ref-map .leaflet-popup-content {
    text-align: right;
}

/* --- Mobil --- */
@media (max-width: 768px) {
    .crz-ref-map {
        border-radius: 8px;
        min-height: 320px;
    }
}
