/* ═══════════════════════════════════════════════════════
   KFE Map Shortcode — esf-map.css
   ═══════════════════════════════════════════════════════ */

/* ── Wrap ─────────────────────────────────────────────── */
.esf-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    font-family: inherit;
}

/* ── Üst bar ──────────────────────────────────────────── */
.esf-map-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.esf-map-counter {
    font-size: 13px;
    color: #6b7280;
    margin-right: auto;
}
.esf-map-cnt-num {
    font-weight: 700;
    color: #111;
    font-size: 15px;
}

.esf-map-filters {
    display: flex;
    gap: 6px;
}
.esf-map-filter {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
}
.esf-map-filter:hover { border-color: #F97316; color: #F97316; }
.esf-map-filter.active {
    background: #F97316;
    border-color: #F97316;
    color: #fff;
}

.esf-map-list-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.esf-map-list-btn:hover { border-color: #F97316; color: #F97316; }

/* ── Harita container ─────────────────────────────────── */
.esf-map-container {
    width: 100%;
    z-index: 1;
}

/* ── Loading overlay ──────────────────────────────────── */
.esf-map-loading {
    position: absolute;
    inset: 52px 0 0 0; /* topbar yüksekliği kadar aşağı */
    background: rgba(255,255,255,.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 999;
    font-size: 14px;
    color: #6b7280;
}
.esf-map-spinner {
    width: 32px; height: 32px;
    border: 3px solid #f3f4f6;
    border-top-color: #F97316;
    border-radius: 50%;
    animation: esf-spin .7s linear infinite;
}
@keyframes esf-spin { to { transform: rotate(360deg); } }

/* ── Marker pin ───────────────────────────────────────── */
.esf-map-pin { background: transparent !important; border: none !important; }
.esf-pin-inner {
    width: 32px; height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: transform .15s;
}
.esf-pin-inner svg { transform: rotate(45deg); }
.esf-map-pin:hover .esf-pin-inner { transform: rotate(-45deg) scale(1.15); }
.esf-pin-tail {
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #F97316;
    margin: 0 auto;
    margin-top: -1px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}

/* ── Popup ────────────────────────────────────────────── */
.esf-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    border: none;
}
.esf-map-popup .leaflet-popup-content {
    margin: 0;
    width: 220px !important;
}
.esf-map-popup .leaflet-popup-tip-container { display: none; }

.esf-mp-card { width: 220px; }

.esf-mp-thumb {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}
.esf-mp-nothumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.esf-mp-body {
    padding: 12px 14px 14px;
}

.esf-mp-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    margin-bottom: 6px;
}
.esf-type-satilik { background: #fff7ed; color: #ea580c; }
.esf-type-kiralik { background: #eff6ff; color: #2563eb; }

.esf-mp-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.esf-mp-price {
    font-size: 15px;
    font-weight: 700;
    color: #F97316;
    margin-bottom: 6px;
}

.esf-mp-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.esf-mp-btn {
    display: block;
    text-align: center;
    background: #F97316;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}
.esf-mp-btn:hover { background: #ea580c; color: #fff; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
    .esf-map-topbar { padding: 10px 12px; gap: 8px; }
    .esf-map-list-btn span { display: none; }
}
