/* ============================================
   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: #222;
}
.chip-btn.active {
    background: #f0f0f0;
    border-color: #222;
    font-weight: 500;
}

/* 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)
   ============================================ */
.price-filter canvas,
.range-filter canvas {
    width: 100%;
    height: 70px;
    display: block;
    margin-bottom: -10px;
}
.price-filter .noUi-target,
.range-filter .noUi-target {
    height: 4px;
    border: none;
    background: #e4e4e4;
    box-shadow: none;
    border-radius: 2px;
}
.price-filter .noUi-connect,
.range-filter .noUi-connect {
    background: #222;
}
.price-filter .noUi-handle,
.range-filter .noUi-handle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    right: -12px;
}
.price-filter .noUi-handle:before,
.price-filter .noUi-handle:after,
.range-filter .noUi-handle:before,
.range-filter .noUi-handle:after {
    display: none;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #ebebeb;
    margin-top: 8px;
}
.btn-filter-primary {
    flex: 1;
    padding: 12px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-filter-primary:hover {
    background: #000;
}

/* Mobile Sidebar */
@media (max-width: 991px) {
    .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 {
        display: block;
    }
}
@media (min-width: 992px) {
    .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;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.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: 999;
    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: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 99;
    gap: 20px;
}

.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 - 73px);
    width: 100%;
}
/* ============================================
   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;
}

.map-popup-card {
    width: 100%;
    background: #fff;
}

.mpp-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.mpp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mpp-body {
    padding: 14px;
}

.mpp-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpp-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.4;
}

.mpp-stats {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.mpp-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.mpp-stat i {
    font-size: 14px;
    color: #6b7280;
}

.mpp-stat span {
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
}

.mpp-bottom {
    margin-bottom: 12px;
}

.mpp-price {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.mpp-location {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mpp-location i {
    color: #2563eb;
    font-size: 11px;
}

.mpp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mpp-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   PIN MARKERS - Görülmüş İlanlar Gri
   ============================================ */
.mp-marker {
    background: none !important;
    border: none !important;
}
.mp-pin {
    position: relative;
    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: all 0.15s ease;
    transform-origin: center bottom;
    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: 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: 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: translateY(-20px) scale(0.5);
    }
    70% {
        opacity: 1;
        transform: translateY(2px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   PIN MARKERS (tam fiyat göster)
   ============================================ */
.mp-marker {
    background: none !important;
    border: none !important;
}
.mp-pin {
    position: relative;
    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: all 0.15s ease;
    transform-origin: center bottom;
    animation: pinDrop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}
.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: 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: 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: translateY(-20px) scale(0.5);
    }
    70% {
        opacity: 1;
        transform: translateY(2px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   CLUSTER MARKERS (aynı kaldı)
   ============================================ */
.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;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .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 - 110px);
    }
}
/* Leaflet override */
.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;
}
.leaflet-control-zoom a {
    border-radius: 8px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .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 - 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;
}
.lc-type-sale {
    background: rgba(239, 68, 68, 0.88);
    color: #fff;
}
.lc-type-rent {
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
    
}
.lc-type-daily {
    background: rgba(16, 185, 129, 0.88);
    color: #fff;
}

/* 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-list-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* 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);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .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;
    }
}

@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;
    }
}
