/* ====== Kategori — Harita Önizleme (sidebar) ====== */
.kat-map-box {
    margin-bottom: 16px;
}

.kat-map-preview {
    position: relative;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #dce8f4;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(0, 57, 112, .08) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120M20 0v120M100 0v120M0 20h120M0 100h120' stroke='%23b8cfe0' stroke-width='.5' fill='none'/%3E%3Cpath d='M10 80 Q40 50 70 75 T110 55' stroke='%239ec5db' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: cover, 120px 120px;
    box-shadow: inset 0 0 0 1px rgba(0, 57, 112, .12);
}
.col-12.col-lg-3.col-md-12 {
    display: block;
}
.kat-map-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #015ee1;
    border-radius: 8px;
    background: #fff;
    color: #015ee1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 57, 112, .14);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.kat-map-btn:hover {
    background: #f0f6ff;
    box-shadow: 0 6px 18px rgba(0, 57, 112, .18);
    transform: translate(-50%, -50%) translateY(-1px);
}

.kat-map-btn i {
    font-size: 15px;
}

/* ====== Harita Modal (ortalanmış) ====== */
.kat-harita-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 42, 77, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.kat-harita-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kat-harita-modal {
    display: flex;
    width: min(1280px, 96vw);
    height: min(820px, 90vh);
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 42, 77, .28);
    transform: scale(.96) translateY(10px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
}

.kat-harita-overlay.active .kat-harita-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ---- Sol Panel ---- */
.kat-harita-sidebar {
    flex: 0 0 380px;
    width: 380px;
    max-width: 42vw;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
    background: #fff;
    min-height: 0;
    position: relative;
}

.kat-harita-sidebar-top {
    flex-shrink: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #eef2f6;
    position: relative;
    z-index: 3;
}

.kat-harita-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #d8e2ec;
    border-radius: 10px;
    background: #f7f9fc;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.kat-harita-search-bar:hover {
    border-color: #015ee1;
    box-shadow: 0 0 0 3px rgba(1, 94, 225, .08);
}

.kat-harita-search-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kat-harita-kategori {
    font-size: 14px;
    font-weight: 700;
    color: #0f2a4d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kat-harita-meta {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kat-harita-search-ico {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #003970;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kat-harita-live-search {
    position: relative;
    margin-bottom: 10px;
}

.kat-harita-live-search > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.kat-harita-live-search input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 36px;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #0f2a4d;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.kat-harita-live-search input:focus {
    border-color: #015ee1;
    box-shadow: 0 0 0 3px rgba(1, 94, 225, .1);
}

.kat-harita-q-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.kat-harita-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.kat-harita-tool-btn {
    flex: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: #fff;
    color: #0f2a4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.kat-harita-tool-btn:hover,
.kat-harita-tool-btn.is-open,
.kat-harita-tool-btn.has-active {
    border-color: #015ee1;
    background: #f0f6ff;
    color: #015ee1;
}

.kat-harita-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #015ee1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.kat-harita-count {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.kat-harita-count strong {
    color: #0f2a4d;
}

/* ---- Filtre / Sırala Panelleri ---- */
.kat-harita-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 4px 0 24px rgba(15, 42, 77, .12);
}

.kat-harita-panel[hidden] {
    display: none !important;
}

.kat-harita-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
}

.kat-harita-panel-head strong {
    font-size: 15px;
    color: #0f2a4d;
}

.kat-harita-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.kat-harita-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 0;
}

.kat-harita-panel-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.kat-harita-panel-reset,
.kat-harita-panel-apply {
    flex: 1;
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.kat-harita-panel-reset {
    border: 1px solid #d8e2ec;
    background: #fff;
    color: #0f2a4d;
}

.kat-harita-panel-apply {
    border: none;
    background: #003970;
    color: #fff;
}

.kat-harita-panel-apply:hover {
    background: #002850;
}

.kat-harita-sort-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f2a4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.kat-harita-sort-item:hover,
.kat-harita-sort-item.is-active {
    border-color: #015ee1;
    background: #f0f6ff;
    color: #015ee1;
}

.kat-harita-loading {
    padding: 40px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.kat-harita-loading i {
    margin-right: 8px;
    color: #015ee1;
}

.kat-harita-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 16px;
    min-height: 0;
}

#kat-harita-filterForm .filter-list-wrap {
    margin-bottom: 12px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    overflow: hidden;
}

#kat-harita-filterForm .filter-list-wrap .title,
#kat-harita-filterForm .filter-list-wrap h3 {
    display: block;
    padding: 10px 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f2a4d;
    background: #f8fafc;
    cursor: pointer;
}

#kat-harita-filterForm .scroll {
    padding: 8px 12px 12px;
    max-height: 180px;
    overflow-y: auto;
}

#kat-harita-filterForm .filter-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}

#kat-harita-filterForm .price-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

#kat-harita-filterForm .price-input {
    width: 80px;
    height: 34px;
    border: 1px solid #d8e2ec;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 12px;
}

#kat-harita-filterForm .price-search {
    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: #003970;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ---- Liste Kartları ---- */
.kat-harita-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.kat-harita-card:hover,
.kat-harita-card.is-active {
    border-color: #015ee1;
    box-shadow: 0 2px 10px rgba(1, 94, 225, .12);
}

.kat-harita-card-img {
    width: 110px;
    height: 88px;
    border-radius: 6px;
    object-fit: cover;
    background: #e8eef4;
}

.kat-harita-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kat-harita-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f2a4d;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kat-harita-card-loc {
    font-size: 12px;
    color: #64748b;
}

.kat-harita-card-loc i {
    margin-right: 3px;
    color: #94a3b8;
}

.kat-harita-card-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.kat-harita-card-score .score-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    background: #003970;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.kat-harita-card-score .score-txt {
    color: #0f2a4d;
    font-weight: 600;
}

.kat-harita-card-price {
    margin-top: auto;
    font-size: 15px;
    font-weight: 700;
    color: #003970;
}

.kat-harita-card-action {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 10px;
    border: 1px solid #015ee1;
    border-radius: 6px;
    background: #fff;
    color: #015ee1;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.kat-harita-card-action:hover {
    background: #f0f6ff;
}

.kat-harita-empty {
    padding: 24px 12px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ---- Harita Alanı ---- */
.kat-harita-map-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
    min-height: 0;
}

#kat-harita-canvas {
    width: 100%;
    height: 100%;
}

.kat-harita-map-wrap .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    z-index: 1;
}

.kat-harita-pin-wrap,
.kat-harita-cluster-wrap {
    background: transparent !important;
    border: none !important;
}

.kat-harita-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.kat-harita-leaflet-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 260px !important;
}

.kat-harita-leaflet-popup .leaflet-popup-tip {
    background: #fff;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: transparent;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: #003970;
    color: #fff;
    font-weight: 700;
}

.kat-harita-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #0f2a4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    transition: background .15s ease;
}

.kat-harita-close:hover {
    background: #f7f9fc;
}

/* ---- Harita Pinleri ---- */
.kat-harita-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    max-width: 110px;
    padding: 6px 10px;
    border: 2px solid #003970;
    border-radius: 20px;
    background: #fff;
    color: #003970;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    cursor: pointer;
    transform: translateY(-4px);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.kat-harita-pin.is-active,
.kat-harita-pin:hover {
    background: #003970;
    color: #fff;
}

.kat-harita-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #003970;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 57, 112, .35);
    cursor: pointer;
    border: 2px solid #fff;
}

/* ---- Info Window ---- */
.kat-harita-iw {
    width: 260px;
    font-family: 'Source Sans Pro', sans-serif;
}

.kat-harita-iw-media {
    width: 100%;
    height: 150px;
    margin: 0;
    overflow: hidden;
    background: #e8eef5;
}

.kat-harita-iw-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.kat-harita-iw-body {
    padding: 10px 12px 12px;
}

.kat-harita-iw-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #0f2a4d;
    line-height: 1.3;
    cursor: pointer;
}

.kat-harita-iw-title:hover {
    color: #015ee1;
}

.kat-harita-iw-loc {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b7c93;
    line-height: 1.3;
}

.kat-harita-iw-loc i {
    margin-right: 3px;
    font-size: 11px;
}

.kat-harita-iw-btn {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #015ee1;
    border-radius: 6px;
    background: #fff;
    color: #015ee1;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.kat-harita-iw-btn:hover {
    background: #f0f6ff;
}

.kat-harita-iw-link {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #015ee1;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
}

.kat-harita-iw-title.kat-harita-iw-open {
    cursor: pointer;
}

.kat-harita-iw-title.kat-harita-iw-open:hover {
    color: #015ee1;
}

.kat-harita-card-title {
    cursor: pointer;
}

.kat-harita-card-title:hover {
    color: #015ee1;
}

body.kat-harita-open {
    overflow: hidden;
}

/* ---- Mobil ---- */
@media (max-width: 991px) {
    .kat-harita-overlay {
        padding: 0;
        align-items: stretch;
    }

    .kat-harita-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .kat-harita-modal {
        flex-direction: column;
    }

    .kat-harita-sidebar {
        flex: 0 0 45%;
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .kat-harita-map-wrap {
        flex: 1;
        min-height: 50vh;
    }
}

@media (max-width: 575px) {
    .kat-map-preview {
        height: 100px;
    }

    .kat-map-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .kat-harita-sidebar {
        flex: 0 0 50%;
    }

    .kat-harita-card {
        grid-template-columns: 90px 1fr;
    }

    .kat-harita-card-img {
        width: 90px;
        height: 72px;
    }
}
