/* ===== Harita Popup ===== */
#harita-perdesi {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1055;
    backdrop-filter: blur(4px);
}

#ozel-harita-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80vh;
    max-width: 1200px;
    background: #fff;
    z-index: 1056;
    border-radius: 12px;
    overflow: hidden;
}

#custom_leaflet_map {
    width: 100%;
    height: 100%;
}

#popup-kapat-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #333;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

/* ===== Marker Cluster ===== */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: var(--accent);
}

.marker-cluster div {
    background-color: var(--accent);
    color: #fff;
    font-weight: bold;
}

.ozel-pin {
    background: var(--accent);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #fff;
    width: max-content !important;
    height: auto !important;
}

.ozel-pin:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}

/* ===== İlan Kartları ===== */
.listing-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

@media (min-width:769px) {
    .listing-card:hover .card-img-wrapper img {
        transform: scale(1.1);
    }
    .listing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        border-color: #e0a240;
    }
}

.card-img-wrapper {
    position: relative;
    height: auto;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: 0.5s;
}

.gri-yap img {
    filter: grayscale(100%);
    opacity: 0.8;
}

/* ===== Sidebar Filtre ===== */
.sidebar-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
}

#ozellikAccordion .accordion-item {
    border-right: none;
    border-left: none;
    border-radius: 0;
}

#ozellikAccordion .accordion-button {
    border: none;
    font-size: 0.95rem;
    color: #333;
}

#ozellikAccordion .accordion-button:focus {
    box-shadow: none;
    background-color: transparent;
}

#ozellikAccordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #000;
}

.checkbox-container .form-check-label {
    transition: color 0.2s;
}

.checkbox-container .form-check-input:checked + .form-check-label {
    color: #000 !important;
    font-weight: 500;
}

#ozellikAccordion .accordion-button::after {
    margin-left: 10px;
}

/* ===== Sıralama Dropdown ===== */
.custom-sort-dropdown .dropdown-toggle::after {
    display: none;
}

.custom-sort-dropdown .dropdown-item {
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 5px;
    width: calc(100% - 10px);
}

.custom-sort-dropdown .dropdown-item.active,
.custom-sort-dropdown .dropdown-item:active {
    background-color: #f39c12 !important;
    color: white !important;
}

.custom-sort-dropdown .dropdown-item:hover {
    background-color: #fff9f0;
    color: #f39c12;
}

/* ===== Fiyat Span ===== */
.ilan-price-span h5 {
    font-size: 25px;
}

.ilan-price-span h6 {
    font-size: 15px;
    color: #717171;
    font-weight: 600;
}

@media (max-width: 768px) {
    .custom-sort-dropdown .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        right: 10px !important;
        width: auto !important;
        transform: none !important;
        border-radius: 20px !important;
        max-width: fit-content;
    }
    .ilan-price-span h5 {
        font-size: 16px;
    }
    .ilan-price-span h6 {
        font-size: 10px;
        font-weight: 600;
    }

    .btn-sort {
        width: inherit !important;
    }

    .listing-card:active {
        transform: scale(1.05);
    }

    .durum_notu_btn {
        padding: 3px 6px;
    }
}

/* ===== Sıralama Butonu ===== */
.btn-sort {
    background-color: #fff;
    font-weight: bold;
    color: #000;
    border: 1px solid var(--accent);
    width: 200px;
}

.btn-sort:hover {
    background-color: var(--accent);
}

/* ===== Select2 (Bootstrap 5 Theme) ===== */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 12px !important;
    border: 1px solid #dee2e6 !important;
    height: 45px !important;
    display: flex;
    align-items: center;
    align-content: center;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border-radius: 8px;
    margin: 2px 5px;
}

.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 10px 5px;
}

/* ===== İmar Dropdown ===== */
#imarDropdownBtn {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #212529;
    padding: 10px 15px;
    transition: all 0.2s;
}

#imarDropdownBtn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

.custom-modern-dropdown .dropdown-menu {
    padding: 8px;
    margin-top: 5px !important;
}

.custom-modern-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.custom-modern-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}

.custom-modern-dropdown .dropdown-item.active {
    background-color: #e9ecef !important;
    color: #0d6efd !important;
    font-weight: 600;
}

/* ===== Fiyat Format Inputları ===== */
.price-format {
    padding: 10px 15px;
    border-radius: 12px;
}

/* ===== Pagination ===== */
.custom-pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 8px !important;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--accent);
    color: white;
}

.custom-pagination .page-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .custom-pagination .page-link {
        padding: 10px 15px;
        font-size: 14px;
        margin: 0 2px;
    }

    .fiyat_baslik {
        font-size: 12px !important;
    }
}

/* ===== Ekip İlan Butonu ===== */
.btn-ekip-ilan {
    background-color: var(--accent);
    border: none;
    transition: all 0.2s ease;
}

.btn-ekip-ilan:hover,
.btn-ekip-ilan:focus,
.btn-ekip-ilan.show,
.btn-ekip-ilan:active {
    background-color: #dfab1f !important;
    transform: translateY(3px);
    box-shadow: 0 4px 12px rgba(246, 192, 38, 0.35);
}
