/* ========================================
   EMLAK KARTLARI - YENİ TASARIM
   ======================================== */
.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 35, 77, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.property-card:hover {
    box-shadow: 0 0 5px rgba(0, 35, 77, 0.55);
}

.property-image {
    position: relative;
    aspect-ratio: 4/3; /* Sabit en-boy oranı - tüm fotoğraflar için aynı yükseklik */
    overflow: hidden;
    background: #f1f5f9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fotoğrafın tamamını gösterir, kesmez - dikey fotoğraflar da tam görünür */
    object-position: center;
    transition: all 0.5s ease;
    display: block;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

/* RTL için property card düzenlemeleri */
html[dir="rtl"] .property-badge {
    left: auto;
    right: 15px;
}

html[dir="rtl"] .property-featured {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .property-price-overlay {
    left: auto;
    right: 15px;
}

html[dir="rtl"] .property-card:hover .property-image img {
    transform: scale(1.1);
}

/* Fiyat Etiketi - Görsel Üzerinde */
.property-price-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 35, 77, 0.95);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 5;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-sale {
    background: #22c55e;
    color: #fff;
}

.badge-rent {
    background: #FD5631;
    color: #fff;
}

.badge-daily-rent {
    background: #17a2b8;
    color: #fff;
}

.property-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FD5631 0%, #ff6b4a 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(253, 86, 49, 0.3);
}

/* 360° Sanal Tur Badge */
.property-virtual-tour {
    position: absolute;
    bottom: 65px; /* Aksiyon butonlarına yer aç */
    right: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    z-index: 5;
}

.property-virtual-tour i {
    font-size: 14px;
}

/* Kart Aksiyonları (Favori + Kıyasla) */
.property-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

/* Diğer stiller tarafından ezilse bile yan yana kalsın */
.property-image .property-actions {
    flex-direction: row;
    flex-wrap: nowrap;
}

.property-image .property-actions .favorite-btn,
.property-image .property-actions .compare-checkbox-wrapper {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
}

/* Hover border kesin görünsün (override'a dayanıklı) */
.property-image .property-actions .favorite-btn {
    border: 2px solid #dee2e6 !important;
}

.property-image .property-actions .favorite-btn:hover {
    border-color: var(--secondary) !important;
}

/* Favori + Kıyasla aynı ölçü/çember */
.property-image .property-actions .favorite-btn,
.property-image .property-actions .compare-label {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.property-location {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: var(--secondary);
    font-size: 16px;
}

.property-features {
    display: flex;
    gap: 0;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    position: relative;
}

.property-feature:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}

.property-feature i {
    color: var(--secondary);
    font-size: 16px;
}

/* Favori Butonu */
.favorite-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    tezeldigital: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #64748b;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    background: #fff;
    border-color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ef4444;
}

.favorite-btn.active {
    color: #ef4444;
    background: #fff;
    border-color: #ef4444;
}

.favorite-btn.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Karşılaştırma Checkbox */
.compare-checkbox-wrapper {
    position: relative;
    z-index: 10;
}

.compare-checkbox {
    display: none;
}

.compare-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    tezeldigital: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compare-label:hover {
    background: #fff;
    border-color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compare-label i {
    font-size: 18px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.compare-checkbox:checked + .compare-label {
    background: var(--secondary);
    border-color: var(--secondary);
}

.compare-checkbox:checked + .compare-label i {
    color: #fff;
}

.compare-checkbox:checked + .compare-label:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* ========================================
   EMLAK DETAY SAYFASI
   ======================================== */
.property-detail-header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.property-gallery {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.property-gallery .main-image {
    width: 100%;
    max-width: 1000px; /* Görsel boyutuna uygun maksimum genişlik (1000x750) */
    margin: 0 auto; /* Ortala */
    box-shadow: 0 2px 8px rgba(0, 35, 77, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3; /* 1000x750 görseller için 4:3 oranı */
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none; /* Görsel seçimini önle */
    touch-action: pan-y; /* Dikey scroll'u koru, yatay swipe'ı etkinleştir */
}

.property-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fotoğrafın tamamını gösterir, kesmez - dikey fotoğraflar da tam görünür */
    object-position: center;
    display: block;
    border-radius: 8px;
    transition: opacity 3s ease; /* Basit fade geçişi */
}

/* Ana görsel tıklanabilir (LightGallery için) */
.property-gallery .main-image img.gallery-main-image-clickable {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.property-gallery .main-image img.gallery-main-image-clickable:hover {
    opacity: 0.95;
    transform: scale(1.01);
}

/* Ok Butonları */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0; /* Varsayılan olarak gizli */
    pointer-events: none;
}

.property-gallery .main-image:hover .gallery-nav-btn {
    opacity: 1; /* Hover'da görünür */
    pointer-events: auto;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav-btn i {
    line-height: 1;
}

/* Görsel sayacı */
.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

/* Mobil için ok butonları her zaman görünür */
@media (max-width: 767px) {
    .gallery-nav-btn {
        opacity: 1;
        pointer-events: auto;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 5px 12px;
    }
}

.property-gallery .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto; /* Yatay kaydırma - çok fotoğraf olduğunda */
    overflow-y: hidden;
    padding-bottom: 10px; /* Scrollbar için alan */
    scrollbar-width: thin; /* Firefox için ince scrollbar */
    scrollbar-color: var(--secondary) #f1f5f9; /* Firefox scrollbar rengi */
    -webkit-overflow-scrolling: touch; /* iOS için smooth scroll */
}

/* Webkit tarayıcılar için scrollbar stilleri */
.property-gallery .thumbnails::-webkit-scrollbar {
    height: 6px;
}

.property-gallery .thumbnails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.property-gallery .thumbnails::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.property-gallery .thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

.property-gallery .thumb {
    width: 100px;
    height: 75px; /* 100x75 thumbnail boyutuna uygun */
    flex-shrink: 0; /* Küçülmeyi önler - sabit boyut */
    border-radius: 8px;
    overflow: hidden; /* Border'ın dışarı taşmasını önler */
    tezeldigital: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Border'ı container içine alır */
    position: relative;
    border: 3px solid transparent; /* Varsayılan transparent border - yer kaplar ama görünmez */
    outline: none; /* Focus outline'ı kaldır */
}

.property-gallery .thumb:hover,
.property-gallery .thumb.active {
    opacity: 1;
    border-color: var(--secondary); /* Border rengi - container içinde kalır */
}

.property-gallery .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Alt boşluk sorununu önler */
    border-radius: 5px; /* Border ile uyumlu iç köşe yuvarlatma */
}

.property-info-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 35, 77, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.property-info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    color: var(--primary);
}

/* Diğer Bilgiler Bölümü */
.property-info-box.diger-bilgiler {
    padding: 0;
    overflow: hidden;
}

.property-info-box.diger-bilgiler .diger-bilgiler-header {
    background: #f8f8f8;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.property-info-box.diger-bilgiler .diger-bilgiler-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.property-info-box.diger-bilgiler .diger-bilgiler-content {
    background: #fff;
    padding: 16px 20px;
    color: #212529;
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
}

.property-info-box > ul {
    padding-left: 0 !important;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    color: #64748b;
}

.info-list .value {
    font-weight: 600;
    color: var(--primary);
}

/* İlan Detay Sayfası Fiyat */
.property-price {
    white-space: nowrap;
    display: inline-block;
}

/* ========================================
   HARİTA VE SOKAK GÖRÜNÜMÜ
   ======================================== */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 20px;
}

.street-view-container {
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.map-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.map-tab {
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    tezeldigital: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--primary);
}

.map-tab:hover,
.map-tab.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* Header Favori Linki */
.favorites-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-link .bi-heart {
    font-size: 1.2rem;
}

.favorites-count {
    position: absolute;
    top: 0;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0 4px;
}

.compare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    background: var(--secondary);
    color: #fff;
}

/* Favori Bildirimi */
.favorite-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #22c55e;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    font-size: 14px;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Detay Sayfası Favori Butonu */
.property-info-box .btn-outline-danger {
    border-width: 2px;
    border-color: #ef4444;
    color: #ef4444;
}

.property-info-box .btn-outline-danger:hover {
    color: #fff;
}

.property-info-box .btn-outline-danger.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.property-info-box .btn-outline-danger.active i {
    animation: heartBeat 0.3s ease;
}

/* Responsive */
@media (max-width: 767px) {
    .property-image {
        aspect-ratio: 4/3; /* Mobilde de aynı oran */
    }
    
    .property-price-overlay {
        font-size: 1rem;
        padding: 8px 14px;
    }
    
    .property-features {
        flex-wrap: wrap;
    }
    
    .property-feature:not(:last-child)::after {
        display: none;
    }
}

/* RTL için aksiyon butonları */
html[dir="rtl"] .property-actions {
    right: auto;
    left: 15px;
}
