/* ============================================
   MODERN FILTER SYSTEM
   ============================================ */

/* Filter Section */
 
.filter-section-modern {
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}
.filter-section-modern:last-child {
    border-bottom: none;
}

/* Section Title with Icon */
.filter-section-modern .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-section-modern .section-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ============================================
   CHIP BUTTONS (Airbnb Style)
   ============================================ */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #222;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}
.chip-btn:hover {
    border-color: #182C63;
}
.chip-btn.active {
    background: rgba(24, 44, 99, 0.06);
    border-color: #182C63;
    color: #182C63;
    font-weight: 600;
}

/* Hide input inside chip */
.chip-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Small chip variant */
.chip-btn.chip-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============================================
   COUNTER BUTTONS (+/- Style)
   ============================================ */
.counter-group-flitre {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.counter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.counter-label {
    font-size: 14px;
    color: #222;
}
.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #717171;
}
.counter-btn:hover:not(:disabled) {
    border-color: #222;
    color: #222;
}
.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.counter-btn svg {
    width: 14px;
    height: 14px;
}
.counter-value {
    min-width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

/* ============================================
   TOGGLE SWITCH (iOS Style)
   ============================================ */
.toggle-switch-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toggle-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.toggle-switch-item:last-child {
    border-bottom: none;
}
.toggle-switch-label {
    font-size: 14px;
    color: #222;
}
.toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    background: #e4e4e4;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.toggle-switch.active {
    background: #222;
}
.toggle-switch.active::after {
    left: 20px;
}

/* ============================================
   EXPAND TOGGLE (Show More)
   ============================================ */
.expand-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    text-decoration: underline;
}
.expand-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.expand-toggle.expanded svg {
    transform: rotate(180deg);
}
.expandable-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.expandable-section.expanded {
    max-height: 2000px;
}

/* Category Title */
.filter-category-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #717171;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebebeb;
}

/* ============================================
   RANGE SLIDER (Price/SQM)
   ============================================ */
/* Histogram: kaydırıcının ölçeğine hizalı eşit çubuklar */
.rf-hist {
    /* space-around: her çubuk kendi aralığının tam ortasında (kaydırıcıyla hizalı) */
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 48px;
    margin: 0 11px -14px;
}
.rf-hist[hidden] {
    display: none;
}
.rf-hist span {
    /* İnce ve sabit: ilan azken kalın blok olmasın, çoğaldıkça sıklaşsın */
    flex: 0 0 auto;
    width: clamp(3px, calc(100% / var(--bins, 16) - 4px), 8px);
    border-radius: 999px 999px 0 0;
    background: #dfe4ee;
    transition: background-color .15s ease;
}
.rf-hist span.is-empty,
.rf-hist span.is-empty.is-in {
    background: #eef1f6;
}
.rf-hist span.is-in {
    background: #182C63;
}
.range-filter .noUi-target {
    height: 4px;
    margin: 14px 11px 18px;
    border: none;
    background: #e6e9f0;
    box-shadow: none;
    border-radius: 2px;
}
.range-filter .noUi-connect {
    background: #182C63;
}
/* noUiSlider 15 teması (vendor CSS sayfada bundan sonra yüklendiği için
   seçiciler .noUi-horizontal ile güçlendirildi) */
.range-filter .noUi-horizontal .noUi-handle {
    top: -8px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #182C63;
    box-shadow: 0 2px 6px rgba(24, 44, 99, 0.18);
    cursor: grab;
}
.range-filter .noUi-horizontal .noUi-handle:active {
    cursor: grabbing;
}
.range-filter .noUi-horizontal .noUi-handle:focus-visible {
    outline: 3px solid rgba(24, 44, 99, 0.25);
    outline-offset: 2px;
}
.range-filter .noUi-handle:before,
.range-filter .noUi-handle:after {
    display: none;
}

/* Min / max kutuları: etiketli, binlik ayraçlı, birimli */
.rf-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.rf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}
.rf-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.rf-control {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rf-control:focus-within {
    border-color: #182C63;
    box-shadow: 0 0 0 3px rgba(24, 44, 99, 0.1);
}
.rf-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.rf-input::placeholder {
    color: #9ca3af;
}
.rf-unit {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}
.rf-unit:empty {
    display: none;
}

/* Filtre butonları: uzun listenin en altında kaybolmasın diye alt kenara
   yapışık çubuk (masaüstünde sayfa, mobilde panel kaydırılırken görünür) */
.filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 0 16px;
    border-top: 1px solid #ebedf2;
    background: #fff;
    box-shadow: 0 -12px 16px -14px rgba(24, 44, 99, 0.25);
}
.btn-filter-primary {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: #182C63;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}
.btn-filter-primary:hover,
.btn-filter-primary:focus-visible {
    background: #10204a;
}
.btn-filter-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    background: #fff;
    color: #182C63;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease;
}
.btn-filter-secondary[hidden] {
    display: none;
}
.btn-filter-secondary:hover,
.btn-filter-secondary:focus-visible {
    border-color: #182C63;
    color: #182C63;
}

/* Mobil/tablet filtre paneli: style.css de sidebar'ı 1199px altında
   gizleyip "Filtreyi Göster" düğmesini gösteriyor; sınır aynı olmalı. */
@media (max-width: 1199px) {
    .sidebar-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: #222;
        color: #fff;
        border-radius: 8px;
        font-weight: 500;
        cursor: pointer;
        margin-bottom: 16px;
    }
    .inventory-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 1050;
        overflow-y: auto;
        padding: 20px;
    }
    .inventory-sidebar.active,
    .wrap-sidebar-dk .inventory-sidebar.active {
        display: block;
        /* style.css'teki margin-bottom: 30px sabit paneli alttan kısaltıyordu */
        margin: 0;
    }
    /* Panel içinde ikinci çerçeve olmasın; butonlar ekranın en altına otursun
       (sticky, panelin 20px iç boşluğunu hesaba katmıyor) */
    .inventory-sidebar.active .inventroy-widget {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .inventory-sidebar.active .filter-actions {
        bottom: -20px;
        margin: 8px -20px 0;
        padding: 14px 20px 16px;
    }
    .filter-sheet-head {
        position: sticky;
        top: -20px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: -20px -20px 16px;
        padding: 14px 20px;
        border-bottom: 1px solid #ebedf2;
        background: #fff;
    }
    .filter-sheet-title {
        color: #182C63;
        font-size: 17px;
        font-weight: 700;
    }
    .filter-sheet-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #e2e5ec;
        border-radius: 50%;
        background: #fff;
        color: #182C63;
        font-size: 16px;
    }
}
@media (min-width: 1200px) {
    .filter-sheet-head,
    .sidebar-handle {
        display: none;
    }
}

/* ============================================
   HEADER MAIN & AI SEARCH
   ============================================ */
.header-main {
    margin-bottom: 24px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.listing-stats {
    display: flex;
    align-items: center;
}

/* Sonuç sayısı + Aramayı Kaydet: tek satır, eşit yükseklik */
.results-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.results-meta-form {
    display: contents;
}
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(24, 44, 99, 0.06);
    color: #182C63;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.stat-badge--action {
    border-color: #dfe3eb;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease;
}
.stat-badge--action:hover,
.stat-badge--action:focus-visible {
    border-color: #182C63;
    color: #182C63;
}
@media (max-width: 576px) {
    /* Telefonda tek satır: "Aramayı Kaydet" yalnız zil ikonu */
    .sort-bar-left {
        justify-content: flex-start;
    }
    .results-meta {
        flex-wrap: nowrap;
    }
    .stat-badge--action {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
    .stat-badge--action .stat-badge-text {
        display: none;
    }
}
.stat-badge--icon {
    width: 36px;
    padding: 0;
    justify-content: center;
    border-color: #dfe3eb;
    background: #fff;
}
.stat-badge--icon:hover {
    border-color: #182C63;
    color: #182C63;
}

.stat-badge i {
    font-size: 0.8rem;
}

.stat-badge strong {
    font-weight: 700;
}

/* AI Search Container */
.ai-search-container {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #050b20 100%);
    border-radius: 16px;
    padding: 20px;
}

.ai-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 4px 4px 4px 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-search-box:focus-within {
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ai-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    flex-shrink: 0;
}

.ai-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon i {
    font-size: 0.95rem;
    color: #6b7280;
    z-index: 1;
}

.ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1f2937;
    padding: 10px 0;
    min-width: 0;
}

.ai-search-input::placeholder {
    color: #9ca3af;
    font-size: 0.88rem;
}

.ai-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 4px;
}

.ai-search-clear:hover {
    background: #fee2e2;
    color: #ef4444;
}

.ai-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.ai-search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ai-search-btn i {
    font-size: 0.85rem;
}

/* ============================================
   SEARCH DROPDOWN (AJAX Results)
   ============================================ */
.search-dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-top: none;
}

.search-dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #6b7280;
    font-size: 0.88rem;
}

.search-dropdown-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.search-dropdown-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #9ca3af;
    font-size: 0.88rem;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #f8fafc;
}

.sdi-image {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sdi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdi-info {
    flex: 1;
    min-width: 0;
}

.sdi-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.sdi-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1px;
}

.sdi-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
}

.sdi-type {
    font-size: 0.7rem;
    background: #eff6ff;
    color: #3b82f6;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.sdi-location {
    font-size: 0.75rem;
    color: #9ca3af;
}

.sdi-location i {
    font-size: 0.7rem;
}

.search-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

.search-dropdown-footer:hover {
    background: #eff6ff;
}

.search-dropdown-footer i {
    margin-left: 4px;
}

/* ============================================
   MINI MAP STRIP
   ============================================ */
.mini-map-strip {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin: 16px 0 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

#miniMap {
    height: 160px;
    width: 100%;
}

.mini-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    z-index: 500;
    backdrop-filter: blur(1px);
}

.mini-map-overlay:hover {
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(2px);
}

.mini-map-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease;
}

.mini-map-overlay:hover .mini-map-overlay-content {
    transform: scale(1.05);
}

.mini-map-overlay-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #1f2937;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.mini-map-overlay:hover .mini-map-overlay-btn {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.mini-map-overlay-btn i {
    font-size: 1.2rem;
}

.mini-map-overlay-count {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ============================================
   MINI MAP - Price Markers (shop-list)
   ============================================ */
.map-price-marker {
    background: none;
    border: none;
}
.map-price-marker span {
    display: inline-block;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
    opacity: 0;
    animation: markerFadeIn 0.4s ease forwards;
}
.map-price-marker.marker-kiralik span {
    background: #2563eb;
}
.map-price-marker.marker-satilik span {
    background: #dc2626;
}
.map-price-marker.marker-gunluk span {
    background: #059669;
}

@keyframes markerFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ============================================
   MODERN MAP HEADER
   ============================================ */
.modern-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 99;
    gap: 16px;
}

.mmh-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mmh-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 18px;
}
.mmh-back:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateX(-2px);
}

.mmh-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mmh-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.mmh-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}
.mmh-count strong {
    color: #1f2937;
    font-weight: 600;
}

/* Modern Filtreler */
.mmh-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    padding: 6px;
    border-radius: 12px;
}

.mmh-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mmh-filter:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mmh-filter.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mmh-filter-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mmh-filter-label {
    font-weight: 500;
}

.mmh-filter-badge {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.mmh-filter.active .mmh-filter-badge {
    background: #1f2937;
    color: #fff;
}

#fullMap {
    height: calc(100vh - 106px);
    width: 100%;
}

/* ============================================
   SUBTYPE FİLTRE ÇUBUĞU
   ============================================ */
.mmh-subtype-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    position: relative;
    z-index: 98;
    scrollbar-width: none;
}
.mmh-subtype-bar::-webkit-scrollbar { display: none; }

.mmh-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.mmh-sub-btn:hover {
    border-color: var(--sub-color, #6366f1);
    color: var(--sub-color, #6366f1);
    background: rgba(99, 102, 241, 0.05);
}
.mmh-sub-btn.active {
    background: var(--sub-color, #1f2937);
    border-color: var(--sub-color, #1f2937);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mmh-sub-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.mmh-sub-btn:not(.active) .mmh-sub-count {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}
/* ============================================
   MODERN POPUP CARD - Düzenli Tasarım
   ============================================ */
.modern-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modern-map-popup .leaflet-popup-content {
    margin: 0; 
}

.modern-map-popup .leaflet-popup-tip {
    width: 14px;
    height: 14px;
}

/* lc-card stilinde minimal harita popup kartı */
.mpc-card {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.mpc-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.mpc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mpc-card:hover .mpc-img img {
    transform: scale(1.03);
}

.mpc-body {
    padding: 12px 14px 14px;
}

.mpc-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpc-loc {
    font-size: 11.5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    text-transform: capitalize;
}
.mpc-loc i {
    color: #2563eb;
    font-size: 11px;
}

/* lc-grid-stats popup içinde ince border */
.mpc-body .lc-grid-stats {
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}
.mpc-body .lc-stat {
    padding: 6px 4px;
    background: #f8fafc;
}

.mpc-footer {
    margin-top: 2px;
}
.mpc-price {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.mpc-price small {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}

/* ============================================
   PIN MARKERS - Görülmüş İlanlar Gri
   ============================================ */
.mp-marker {
    background: none !important;
    border: none !important;
}

/* Wrapper: 0x0 nokta, koordinata tam oturur */
.mp-pin-wrapper {
    position: relative;
    width: 0;
    height: 0;
    overflow: visible;
}

.mp-pin {
    position: absolute;
    bottom: 6px;       /* ok ucu tam koordinata denk gelir */
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;

    display: inline-flex;
    align-items: center;
    background: var(--pin-color, #2563eb);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    animation: pinDrop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

/* Görülmüş ilanlar için stil */
.mp-pin.mp-viewed {
    opacity: 0.5;
}
.mp-pin.mp-viewed:hover {
    opacity: 0.7;
}

.mp-pin::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--pin-color, #2563eb);
}
.mp-pin:hover {
    transform: translateX(-50%) scale(1.1) translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 999 !important;
}
.mp-pin.mp-active {
    transform: translateX(-50%) scale(1.15) translateY(-3px);
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 6px var(--pin-color, #2563eb),
        0 6px 24px rgba(0, 0, 0, 0.35);
    z-index: 1000 !important;
}
.mp-price {
    letter-spacing: -0.3px;
}

@keyframes pinDrop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.5);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(2px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ============================================
   CLUSTER MARKERS
   ============================================ */
.mc-cluster-wrapper {
    background: none !important;
    border: none !important;
}
.mc-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: clusterPop 0.3s ease;
}
.mc-cluster:hover {
    transform: scale(1.15);
}

.mc-sm {
    width: 38px;
    height: 38px;
    font-size: 13px;
    background: rgba(37, 99, 235, 0.85);
    box-shadow:
        0 0 0 6px rgba(37, 99, 235, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}
.mc-md {
    width: 46px;
    height: 46px;
    font-size: 14px;
    background: rgba(234, 88, 12, 0.85);
    box-shadow:
        0 0 0 7px rgba(234, 88, 12, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.15);
}
.mc-lg {
    width: 54px;
    height: 54px;
    font-size: 15px;
    background: rgba(220, 38, 38, 0.85);
    box-shadow:
        0 0 0 8px rgba(220, 38, 38, 0.2),
        0 3px 12px rgba(0, 0, 0, 0.2);
}

@keyframes clusterPop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   LEAFLET OVERRIDES
   ============================================ */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}
.leaflet-control-layers {
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

/* Uydu Toggle Butonu */
.mmh-sat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.mmh-sat-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}
.mmh-sat-btn.active {
    border-color: #6366f1;
    background: #6366f1;
    color: #fff;
}
.leaflet-control-zoom a {
    border-radius: 8px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Map Header */
    .modern-map-header {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }
    .mmh-title {
        font-size: 16px;
    }
    .mmh-filters {
        width: 100%;
        overflow-x: auto;
        gap: 6px;
    }
    .mmh-filter {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    #fullMap {
        height: calc(100vh - 161px);
    }
    .mmh-subtype-bar {
        padding: 6px 12px;
        gap: 6px;
    }
    .mmh-sub-btn {
        padding: 5px 11px;
        font-size: 12px;
    }

    /* Title & Search */
    .title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .main-title {
        font-size: 1.3rem;
    }
    .ai-search-container {
        padding: 14px;
        border-radius: 12px;
    }
    .ai-search-btn span {
        display: none;
    }
    .ai-search-btn {
        padding: 10px 14px;
    }
    .ai-search-input::placeholder {
        font-size: 0.82rem;
    }
    .search-dropdown {
        left: 14px;
        right: 14px;
    }
    #miniMap {
        height: 120px;
    }
    .mini-map-overlay-content {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    /* Sort Bar */
    .sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }
    .sort-bar-left {
        justify-content: space-between;
    }
    .sort-bar-right {
        justify-content: space-between;
    }
    .sort-select {
        min-width: 0;
        flex: 1;
    }

    /* Liste görünümü mobilde dikey */
    #listingsGrid.list-view .lc-card {
        flex-direction: column;
    }
    #listingsGrid.list-view .lc-card-img {
        flex: unset;
        max-width: 100%;
        min-height: 180px;
        aspect-ratio: 16/9;
        border-radius: 14px 14px 0 0;
    }
    #listingsGrid.list-view .lc-card-body {
        padding: 14px 16px 16px;
    }
    #listingsGrid.list-view .lc-price {
        font-size: 18px;
    }
    .lc-spec-grid {
        gap: 4px;
    }
    .lc-spec {
        padding: 4px 8px;
        font-size: 11px;
    }
    .lc-list-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .lc-detail-btn {
        justify-content: center;
    }
}

/* ============================================
   SORT BAR - Sıralama & Görünüm Barı
   ============================================ */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sort-bar-count {
    font-size: 13px;
    color: #6b7280;
}
.sort-bar-count strong {
    color: #1f2937;
    font-weight: 700;
}

/* Görünüm Toggle Butonları */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}
.view-btn:hover {
    color: #4b5563;
    background: #e5e7eb;
}
.view-btn.active {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Sıralama Dropdown */
.sort-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.sort-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-width: 200px;
    font-family: inherit;
}
.sort-select:hover {
    border-color: #2563eb;
    background: #fff;
}
.sort-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.sort-dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6b7280;
    pointer-events: none;
}

/* ============================================
   LC-CARD: IZGARA GÖRÜNÜMÜ (Varsayılan)
   ============================================ */
.lc-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.lc-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

/* Kart Görseli */
.lc-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.lc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.lc-card:hover .lc-card-img img {
    transform: scale(1.03);
}

/* Tip Etiketi */
.lc-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(6px);
    z-index: 2;
}
/* İlan tip etiketi: SADECE 3 renk — Satılık=yeşil, Kiralık=mavi, Günlük=turuncu */
.lc-type-sale {
    background: rgba(5, 150, 105, 0.92);
    color: #fff;
}
.lc-type-rent {
    background: rgba(37, 99, 235, 0.92);
    color: #fff;
}
.lc-type-daily {
    background: rgba(234, 88, 12, 0.92);
    color: #fff;
}
/* Alt tür sınıfları artık renk için kullanılmıyor; renk her zaman satış türünden gelir.
   Geriye dönük uyumluluk için 3 ana renge eşlendi (başka renk olmasın). */
.lc-type-arsa,
.lc-type-proje,
.lc-type-dukkan {
    background: rgba(5, 150, 105, 0.92);
    color: #fff;
}
.lc-type-konut {
    background: rgba(5, 150, 105, 0.92);
    color: #fff;
}
.lc-type-sub {
    font-size: 10px;
    opacity: 0.85;
    margin-left: 2px;
}

/* Favori Butonu */
.lc-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(5px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}
.lc-fav-btn svg {
    position: absolute;
    top: 4px;
    right: 4px;
}
.lc-fav-btn:hover { 
    transform: scale(1.1);
}

/* Öne Çıkan Badge */
.lc-featured-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.92);
    color: #fff;
    z-index: 2;
}
 
/* List modda gizlenecek bölümler (Grid default) */
.lc-list-details {
    display: none;
}
.lc-grid-footer {
    display: block;
}

 
/* ============================================
   LC-CARD: LİSTE GÖRÜNÜMÜ
   ============================================ */
#listingsGrid.list-view .rez-block-four {
    flex: 0 0 100%;
    max-width: 100%;
    padding-bottom: 0;
    margin-bottom: 10px;
}
#listingsGrid.list-view .lc-card {
    flex-direction: row;
    border-radius: 14px;
    min-height: 0;
    margin-bottom: 14px;
}
#listingsGrid.list-view .lc-card:hover {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Liste Görseli */
#listingsGrid.list-view .lc-card-img {
    flex: 0 0 300px;
    max-width: 300px;
    aspect-ratio: unset;
    min-height: 220px;
    border-radius: 14px 0 0 14px;
}

/* Liste Body */
#listingsGrid.list-view .lc-card-body {
    flex: 1;
    padding: 18px 22px;
    justify-content: flex-start;
    gap: 2px;
}
#listingsGrid.list-view .lc-price {
    font-size: 22px;
    margin-bottom: 2px;
}
#listingsGrid.list-view .lc-title {
    font-size: 16px;
    -webkit-line-clamp: 1;
    margin-bottom: 4px;
}
#listingsGrid.list-view .lc-location {
    margin-bottom: 6px;
    font-size: 12.5px;
}

/* Grid stats'ları listede gizle, list-details'i göster */
#listingsGrid.list-view .lc-grid-stats {
    display: none;
}
#listingsGrid.list-view .lc-grid-footer {
    display: none;
}
#listingsGrid.list-view .lc-grid-desc {
    display: none;
}
#listingsGrid.list-view .lc-list-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Mobil liste görünümü — dikey stack */
@media (max-width: 640px) {
    #listingsGrid.list-view .lc-card {
        flex-direction: column;
    }
    #listingsGrid.list-view .lc-card-img {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-height: 200px;
        border-radius: 14px 14px 0 0;
    }
    #listingsGrid.list-view .lc-card-body {
        padding: 14px 16px;
    }
    #listingsGrid.list-view .lc-price {
        font-size: 18px;
    }
}

/* Açıklama */
.lc-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Spec Grid */
.lc-spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}
.lc-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    font-size: 12px;
}
.lc-spec i {
    font-size: 13px;
    color: #6b7280;
}
.lc-spec strong {
    font-weight: 700;
    color: #1f2937;
}
.lc-spec span {
    color: #6b7280;
    font-weight: 400;
}

/* Feature Tags */
.lc-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.lc-ftag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.lc-ftag i {
    font-size: 11px;
}
.lc-ftag-green {
    background: #ecfdf5;
    color: #065f46;
}
.lc-ftag-purple {
    background: #f5f3ff;
    color: #5b21b6;
}

/* Liste Footer */
.lc-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}
.lc-list-meta {
    display: flex;
    gap: 16px;
}
.lc-meta-item {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lc-meta-item i {
    font-size: 13px;
    color: #9ca3af;
}

/* Detay Butonu (liste) */
.lc-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.lc-detail-btn:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 576px) {
    .lc-card-img {
        aspect-ratio: 16/10;
    }
    .lc-price {
        font-size: 16px;
    }
    .lc-title {
        font-size: 13px;
    }
    .lc-feature-tags {
        gap: 4px;
    }
    .lc-ftag {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* ============================================
   EMLAK TÜRÜ SEKMELERİ: satır başına 3 kutu (5 tür → 2 satır).
   Tek satırda 5 sütun Rusça/İngilizce adları kesiyordu ("Земел…").
   ============================================ */
.subtype-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 10px;
}
.subtype-tabs .subtype-tab {
    position: relative;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    background: #fff;
    color: #4b5468;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
    cursor: pointer;
    user-select: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.subtype-tabs .subtype-tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.subtype-tabs .subtype-tab:hover {
    border-color: #c5cbe0;
    color: #182C63;
}
.subtype-tabs .subtype-tab.active {
    border-color: #182C63;
    background: #182C63;
    color: #fff;
    font-weight: 600;
}
.subtype-tabs .subtype-tab:focus-within {
    outline: 2px solid rgba(24, 44, 99, .35);
    outline-offset: 2px;
}

/* İlan Türü / Para Birimi: eşit genişlikte tek satır seçici */
.chip-group.chip-seg {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: #f1f3f8;
}
.chip-group.chip-seg .chip-btn {
    min-width: 0;
    height: 36px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b6477;
    font-size: 13px;
    font-weight: 500;
}
.chip-group.chip-seg .chip-btn:hover {
    color: #182C63;
}
.chip-group.chip-seg .chip-btn.active {
    background: #fff;
    color: #182C63;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(24, 44, 99, .16);
}
.chip-group.chip-seg .chip-btn:focus-within {
    outline: 2px solid rgba(24, 44, 99, .3);
    outline-offset: 1px;
}

/* Oda, kat, bina yaşı, ısıtma…: eşit genişlikte hizalı ızgara (--cols) */
.chip-group.chip-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: 6px;
}
.chip-group.chip-grid .chip-btn {
    min-width: 0;
    height: 38px;
    padding: 0 6px;
    overflow: hidden;
    border-color: #e1e5ed;
    border-radius: 10px;
    font-size: 12.5px;
    text-overflow: ellipsis;
}
.chip-group.chip-grid .chip-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 2 sütunda tek kalan son seçenek tam genişliğe yayılsın */
.chip-group.chip-grid[style*="--cols: 2"] > .chip-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Emsal/TAKS/KAKS, yola cephe, teslim yılı: fiyat kutularıyla aynı görünüm */
#shopFilterForm .filter-section-modern .form-control {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    box-shadow: none;
}
#shopFilterForm .filter-section-modern .form-control::placeholder {
    color: #9ca3af;
}
#shopFilterForm .filter-section-modern .form-control:focus {
    border-color: #182C63;
    box-shadow: 0 0 0 3px rgba(24, 44, 99, 0.1);
}

/* Sekme değişiminde ilanlar arka planda gelirken */
#listingsGrid.is-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* ============================================
   SON ZİYARET EDİLENLER — RV-CARD
   - >= 600px: Yatay (40/60 split)
   - <  600px: Kare (üst görsel / alt içerik)
   ============================================ */
.rv-card {
    display: flex !important;
    flex-direction: row !important;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    height: 230px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid #e5e7eb;
}
.rv-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

/* Sol görsel alanı (yatay modda) */
.rv-card-img {
    position: relative;
    flex: 0 0 42% !important;
    width: 42% !important;
    overflow: hidden;
    background: #f1f5f9;
}
.rv-card-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.rv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.rv-card:hover .rv-card-img img {
    transform: scale(1.05);
}
.rv-card-img .lc-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.rv-card-img .lc-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15,23,42,0.35);
    z-index: 2;
}

/* Sağ içerik alanı */
.rv-card-body {
    flex: 1 1 58% !important;
    padding: 16px 18px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    gap: 6px;
}
.rv-card-top {
    flex: 0 1 auto;
    overflow: hidden;
    min-width: 0;
}
.rv-card-body .lc-title {
    font-size: 15.5px;
    line-height: 1.3;
    margin: 0 0 6px;
    min-height: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.rv-card-body .lc-title a {
    color: #0f172a;
    text-decoration: none;
}
.rv-card-body .lc-grid-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rv-card-body .lc-location {
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rv-card-body .lc-location i {
    color: #2563eb;
    font-size: 13px;
}
.rv-card-body .lc-grid-stats {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin: 6px 0;
    overflow: hidden;
}
.rv-card-body .lc-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    background: #f8fafc;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    font-size: 11px;
    color: #475569;
    text-align: center;
}
.rv-card-body .lc-stat i {
    font-size: 13px;
    color: #2563eb;
}
.rv-card-body .lc-stat span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Footer: fiyat + buton */
.rv-card-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    gap: 10px;
}
.rv-card-price {
    font-size: 15px;
    color: #0f172a;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.rv-card-price strong {
    font-weight: 800;
    color: #0f172a;
    font-size: 15px;
    white-space: nowrap;
}
.rv-card-price small {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.rv-card-footer .lc-detail-btn-sm {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;
    padding: 7px 14px !important;
    font-size: 12px;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.rv-card-footer .lc-detail-btn-sm:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
}

/* Slick slide içinde flex'in ezilmemesi */
.rez-recent-slider .slick-slide > div {
    height: 100%;
}
.rez-recent-slider .slick-slide .rv-card {
    display: flex !important;
    flex-direction: row !important;
}
.rez-recent-slider .slick-list {
    margin: 0 -8px;
    padding: 0 10px !important;  /* kenarlardan nefes alanı */
}
.rez-recent-slider .slick-slide {
    padding: 0 8px;
    height: auto;
}
.rez-recent-slider .slick-track {
    display: flex !important;
}

/* Anasayfa sliderleri — kenar margin'i (10px nefes alanı) */
.rez-slider-three .slick-list {
    padding: 0 10px !important;
}

/* ============================================
   ANASAYFA SLIDER — KART MAX-WIDTH 350PX (sadece <600px kare)
   slick mobilde slide width: viewport boyu kadar veriyor.
   Sadece KARE modda (<600px) ve dikey lc-card için 350px sınırı.
   Yatay rv-card 600px+ tam ekran kullansın.
   ============================================ */
@media (max-width: 599.98px) {
    .rez-slider-three .slick-slide > div,
    .rez-slider-three .slick-slide .rez-towns,
    .rez-slider-three .slick-slide .lc-card,
    .rez-recent-slider .slick-slide > div,
    .rez-recent-slider .slick-slide .rez-block-two,
    .rez-recent-slider .slick-slide .rv-card {
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }
    .rez-slider-three .slick-slide .rez-towns,
    .rez-recent-slider .slick-slide .rez-block-two {
        width: 100%;
    }
}
/* lc-card (dikey kart) tablet boyutunda da 350px ile sınırlı */
@media (min-width: 600px) and (max-width: 767.98px) {
    .rez-slider-three .slick-slide > div,
    .rez-slider-three .slick-slide .rez-towns,
    .rez-slider-three .slick-slide .lc-card {
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }
}
/* Yatay rv-card 600-1099px arası tam ekran */
@media (min-width: 600px) and (max-width: 1099.98px) {
    .rez-recent-slider .slick-slide > div,
    .rez-recent-slider .slick-slide .rv-card,
    .rez-recent-slider .slick-slide .rez-block-two {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .rez-recent-slider .slick-slide .rv-card {
        height: 240px;
    }
}

/* ----------- KARE LAYOUT (< 600px) ----------- */
@media (max-width: 599.98px) {
    .rv-card {
        flex-direction: column !important;
        height: auto;
        border-radius: 14px;
    }
    .rv-card-img {
        flex: 0 0 auto !important;
        width: 100% !important;
        aspect-ratio: 16 / 11;   /* daha az dik — mobilde yer kaplamasın */
    }
    .rv-card-img .lc-type-badge {
        top: 8px; left: 8px;
        padding: 3px 9px;
        font-size: 10.5px;
    }
    .rv-card-body {
        flex: 1 1 auto !important;
        padding: 10px 12px;
        gap: 4px;
    }
    .rv-card-body .lc-title {
        font-size: 13.5px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        margin-bottom: 2px;
    }
    .rv-card-body .lc-grid-desc {
        font-size: 11px;
        line-height: 1.4;
        -webkit-line-clamp: 1;
        margin-bottom: 2px;
    }
    .rv-card-body .lc-location {
        font-size: 11px;
    }
    .rv-card-body .lc-grid-stats {
        margin: 4px 0;
        gap: 4px;
    }
    .rv-card-body .lc-stat {
        padding: 3px 2px;
        font-size: 10px;
    }
    .rv-card-body .lc-stat i { font-size: 11px; }
    .rv-card-body .lc-stat span { font-size: 10px; }
    .rv-card-footer {
        padding-top: 6px;
    }
    .rv-card-price { font-size: 13px; }
    .rv-card-price strong { font-size: 13px; }
    .rv-card-price small { font-size: 10px; }
    .rv-card-footer { gap: 8px; }
    .rv-card-footer .lc-detail-btn-sm {
        padding: 5px 10px !important;
        font-size: 11px;
    }
    .rez-recent-slider .slick-slide .rv-card {
        flex-direction: column !important;
    }
    .rez-recent-slider .slick-list { margin: 0 -6px; }
    .rez-recent-slider .slick-slide { padding: 0 6px; }
}

/* ============================================
   Kart yükseklik düzeltmeleri (2026-09-25)
   ============================================ */

/* Son Ziyaret Edilenler: `.slick-slide > div { height:100% }` kuralı .rv-card'ın
   230px'ini eziyordu; kartlar en uzun içeriğe göre 310-440px'e uzuyordu.
   Masaüstünde sabit ve eşit yükseklik; içerik sığsın diye açıklama 1 satır,
   konum tek satır (taşan kısım "…"). */
@media (min-width: 1100px) {
    .rez-recent-slider .slick-slide .rv-card {
        height: 280px;
    }
    .rez-recent-slider .rv-card-body .lc-grid-desc {
        -webkit-line-clamp: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 1.5em !important;
    }
    .rez-recent-slider .rv-card-body .lc-location {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px !important;
    }
}

/* İlan listesi (liste görünümü): görsel height:100% ama kutusunun sabit
   yüksekliği yoktu; dikey/kare fotoğraf (arsa, uydu) kartı ~400px'e
   uzatıyordu. Görsel artık kartın yüksekliğini belirlemiyor, içeriğe göre
   boylanan kartı kırparak dolduruyor. */
@media (min-width: 641px) {
    #listingsGrid.list-view .lc-card-img {
        align-self: stretch;
    }
    #listingsGrid.list-view .lc-card-img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* Arama gevşetildi uyarısı: kart ızgarasında tam satır kaplasın */
.search-notice { grid-column: 1 / -1; width: 100%; flex: 0 0 100%; }
