/* YENİ RENK PALETİ: https://colorhunt.co/palette/fffaf3fff2dbffe5bff62440 */
:root {
    --krem-acik: #FFFAF3;
    --krem-orta: #FFF2DB;
    --krem-koyu: #FFE5BF;
    --kirmizi-vurgu: #F62440;
    --koyu-metin: #2b2b2b; /* Okunabilirlik için koyu gri metin rengi */
}

/* ===== APPLE DESIGN GLOBAL DEFAULTS ===== */
a, button, input, select, textarea, .card, .btn {
    touch-action: manipulation; /* Tıklama gecikmesini (300ms tap delay) tamamen kaldırır */
    -webkit-tap-highlight-color: transparent; /* Mobildeki mavi seçimi kaldırır */
}

/* Sitedeki tüm standart butonlar (Bootstrap dahil) için "Kill Latency" ve "Spring" kuralları */
.btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Ekleme/Düzenleme sayfalarında kart ve butonların tıklanıldığında küçülmesini engeller */
.no-spring-animation,
.no-spring-animation:active,
.no-spring-animation .card:active,
.no-spring-animation .btn:active {
    transform: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ===== HERO BANNER & KATEGORİ SHOWCASE ===== */

/* HERO BANNER */
.hero-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--krem-acik) 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    padding: 0 60px;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 55%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    color: var(--koyu-metin);
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.btn-hero {
    background-color: var(--kirmizi-vurgu);
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero:hover {
    background-color: #d91b35;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(246, 36, 64, 0.3);
    color: white;
}

/* KATEGORİ SHOWCASE */
.categories-showcase {
    background-color: #ffffff;
    padding: 40px 0;
    border-radius: 12px;
}

.category-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.category-overlay p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--krem-orta);
    font-weight: 500;
}

.btn-category {
    background-color: var(--kirmizi-vurgu) !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none !important;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.btn-category:hover {
    background-color: #ffffff !important;
    color: var(--kirmizi-vurgu) !important;
    transform: translateY(-2px) scale(1.02);
}

/* Responsive (Razor sayfası dışı olduğu için tek @ işareti kullanıldı) */
@media (max-width: 991px) {
    .hero-banner {
        height: 400px;
        padding: 0 40px;
    }
    
    .hero-image {
        width: 70%;
        opacity: 0.4;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .category-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
        padding: 0 30px;
        justify-content: center;
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
        opacity: 0.2;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .category-card {
        height: 220px;
    }
    
    .category-overlay h3 {
        font-size: 1.4rem;
    }
}

/* ===== HEADER - PROFESYONEL TASARIM ===== */

/* ÜST HEADER - İLETİŞİM BİLGİSİ */
.header-top {
    display: none;
}

/* MAIN NAVBAR */
.navbar-main {
    background-color: #ffffff !important;
    padding: 15px 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom: 2px solid var(--krem-koyu);
}

/* LOGO STİLİ */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 30px !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.08);
}

.logo-img {
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
    display: none;
}

/* ARAMA BÖLÜMÜ */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

/* SAĞ TARAF ARAMA BÖLÜMÜ */
.search-container-right {
    margin-left: auto;
    margin-right: 20px;
    width: 250px;
}

.search-box {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--krem-koyu);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 16px rgba(246, 36, 64, 0.15);
    border-color: var(--kirmizi-vurgu);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    background-color: #ffffff;
    color: var(--koyu-metin);
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: var(--krem-koyu);
    border: none;
    color: var(--koyu-metin);
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.search-btn:hover {
    background-color: var(--krem-orta);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* NAVİGASYON LİNKLERİ */
.navbar-nav .nav-link {
    color: var(--koyu-metin) !important;
    font-weight: 600;
    font-size: 15px;
    margin: 0 8px;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--kirmizi-vurgu) !important;
    background-color: rgba(246, 36, 64, 0.05);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--kirmizi-vurgu);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* DROPDOWN - FARE İLE ÜZERİNE GELİNCE AÇILMA */
.navbar-nav .nav-item:hover .dropdown-menu {
    display: block !important;
    margin-top: 0 !important;
}

/* DROPDOWN MENÜLER */
.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid var(--krem-koyu) !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    margin-top: 8px;
    transform-origin: top center;
    animation: springMenu 0.4s ease forwards;
}

.dropdown-item {
    color: var(--koyu-metin) !important;
    font-weight: 500;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--krem-acik);
    color: var(--kirmizi-vurgu) !important;
    border-left-color: var(--kirmizi-vurgu);
    padding-left: 24px;
}

@keyframes springMenu {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* SAĞ NAVBAR MENÜSÜ */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-actions {
    display: flex;
    gap: 15px;
}

.navbar-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--koyu-metin);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.navbar-action-btn:hover {
    color: var(--kirmizi-vurgu);
    background-color: rgba(246, 36, 64, 0.08);
    border-color: var(--kirmizi-vurgu);
    transform: scale(1.05);
}

.navbar-action-btn span {
    font-size: 24px;
}

.navbar-action-btn.favorites span {
    animation: heartBeat 0.6s ease;
}

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

.navbar-action-btn.cart span {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.navbar-divider {
    width: 1px;
    height: 30px;
    background-color: var(--krem-koyu);
}

/* MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .search-container {
        max-width: 100%;
        margin: 15px 0 !important;
    }

    .navbar-right {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--krem-koyu);
    }

    .header-top-content {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .action-link {
        justify-content: center;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        display: none;
    }

    .header-actions {
        flex-direction: row;
    }

    .navbar-brand {
        margin-right: 10px !important;
    }

    .brand-text {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .search-box {
        border-radius: 6px;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 10px 12px !important;
    }
}

/* 1. Genel Arka Plan ve Metin Rengi */
body {
    background-color: var(--krem-acik);
    color: var(--koyu-metin);
    margin-bottom: 80px; /* Footer çakışmasını engeller */
}

html {
    position: relative;
    min-height: 100%;
}

/* 2. Başlıklar */
h1, h2, h3, h4, h5, h6 {
    color: var(--koyu-metin);
    font-weight: bold;
}

/* 5. Butonlar */
.btn-primary {
    background-color: var(--kirmizi-vurgu) !important;
    border-color: var(--kirmizi-vurgu) !important;
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: #d91b35 !important;
    border-color: #d91b35 !important;
    box-shadow: 0 4px 8px rgba(246, 36, 64, 0.3);
}

/* 6. Kartlar ve Alt Bilgi */
.card {
    background-color: #ffffff;
    border: 1px solid var(--krem-koyu) !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(246, 36, 64, 0.12), 0 4px 8px rgba(0,0,0,0.06);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: var(--krem-orta);
    border-top: 2px solid var(--krem-koyu);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}

/* --- MOD modern SİLLER VE KUTU GÖLGELERI --- */

/* Input ve Form Alanları - Hafif Gölgeler */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--krem-koyu) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02), inset 0 1px 2px rgba(0,0,0,0.01) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--kirmizi-vurgu) !important;
    box-shadow: 0 4px 12px rgba(246, 36, 64, 0.1), inset 0 1px 2px rgba(0,0,0,0.01) !important;
}

/* Buton Genel Stilleri */
.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Sekonder Butonlar */
.btn-secondary {
    background-color: var(--krem-koyu) !important;
    border-color: var(--krem-koyu) !important;
    color: var(--koyu-metin) !important;
}

.btn-secondary:hover {
    background-color: var(--kirmizi-vurgu) !important;
    border-color: var(--kirmizi-vurgu) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(246, 36, 64, 0.25);
}

/* Başarı Butonları */
.btn-success {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
}

.btn-success:hover {
    background-color: #229954 !important;
    border-color: #229954 !important;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.25);
}

/* Uyarı Butonları */
.btn-warning {
    background-color: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #ffffff !important;
}

.btn-warning:hover {
    background-color: #e67e22 !important;
    border-color: #e67e22 !important;
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.25);
}

/* Tablo Stilleri */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--krem-orta);
    border-top: 2px solid var(--krem-koyu);
    border-bottom: 2px solid var(--krem-koyu);
    font-weight: 700;
}

.table td {
    border-bottom: 1px solid var(--krem-koyu);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--krem-acik);
}

/* Panel Boxları - Modern Tasarım */
.panel, .alert {
    border-radius: 8px;
    border: 1px solid var(--krem-koyu);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.alert-info {
    background-color: #f0f8ff;
    border-color: var(--krem-koyu);
}

.alert-warning {
    background-color: #fffacd;
    border-color: var(--krem-koyu);
}

.alert-danger {
    background-color: #ffe4e1;
    border-color: var(--kirmizi-vurgu);
}

.alert-success {
    background-color: #f0fff0;
    border-color: var(--krem-koyu);
}
/* --- YENİ YAN PANEL MENÜ STİLLERİ --- */

/* Kapatma Butonu Stili */
.btn-close {
    cursor: pointer;
    color: var(--koyu-metin);
}
.btn-close:hover {
    color: var(--kirmizi-vurgu);
}

/* Yan Panel Temel Stilleri */
.off-canvas {
    position: fixed;
    top: 0;
    right: -350px; /* Panel boyutu kadar ekranın dışında başlar */
    width: 350px;
    height: 100vh;
    background-color: var(--krem-orta);
    z-index: 9999;
    transition: right 0.3s ease; /* Açılma efekti */
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
}

/* Panel Açıkken Uygulanacak Sınıf */
.off-canvas.active {
    right: 0;
}

/* Arka Plan Kapatma Katmanı Stilleri */
.off-canvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

/* Arka Plan Kapatma Katmanı Aktifken Uygulanacak Sınıf */
.off-canvas-backdrop.active {
    display: block;
}

/* Paneldeki Buton Stilleri */
#offCanvas .btn-danger {
    background-color: var(--kirmizi-vurgu) !important;
    border-color: var(--kirmizi-vurgu) !important;
}

#offCanvas .btn-dark {
    background-color: var(--koyu-metin) !important;
    border-color: var(--koyu-metin) !important;
}

/* --- BAĞLANTI VE LİNK STİLLERİ --- */

a {
    color: var(--kirmizi-vurgu);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #d91b35;
    text-decoration: underline;
}

/* Logo Stili */
.navbar-brand {
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Badge ve Label Stilleri */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-danger {
    background-color: var(--kirmizi-vurgu) !important;
}

.badge-warning {
    background-color: #f39c12 !important;
    color: #ffffff !important;
}

.badge-success {
    background-color: #27ae60 !important;
}



    /* ======================================================= */
    /* TÜM ÜRÜNLER - PROFESYONEL & RESPONSİVE KART DÜZENİ       */
    /* ======================================================= */

    .urun-karti { transition: transform 0.2s ease, box-shadow 0.2s ease; }
    .urun-karti:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important; }

    /* ======================================================= */
    /* MİNİ GALERİ & RESPONSİVE KARE GÖRÜNÜM (FİXED)           */
    /* ======================================================= */
    .mini-galeri { position: relative; width: 100%; height: 100%; overflow: hidden; z-index: 5; }
    .mini-track { display: flex; height: 100%; width: 100%; touch-action: pan-y; }
    
    /* flex: 0 0 100% eklendi, asla yarım gözükmez! */
    .mini-slide { flex: 0 0 100%; width: 100%; height: 100%; }
    
    /* pointer-events: none eklendi, resmin sürüklenip dokunmatiği bozmasını engeller */
    .mini-resim { width: 100%; height: 100%; object-fit: contain; background-color: var(--krem-acik, #f7f1e8); pointer-events: none; }

    .mini-ok { 
        position: absolute; top: 50%; transform: translateY(-50%); 
        background: rgba(0,0,0,0.5); color: white; border: none; 
        border-radius: 50%; width: 34px; height: 34px; 
        display: flex; align-items: center; justify-content: center; 
        cursor: pointer; z-index: 99 !important; /* Görünmez linkin ÜSTÜNE çıkardık */
        padding: 0; transition: background 0.2s; pointer-events: auto;
    }
    .mini-ok:hover { background: rgba(0,0,0,0.8); }
    .mini-ok-sol { left: 8px; }
    .mini-ok-sag { right: 8px; }

    /* Görsel alanı - masaüstünde ferah */
    .urun-gorsel-alani { height: 250px; position: relative; background-color: var(--krem-acik, #f7f1e8); }

    /* Fiyat bandı */
    .urun-fiyat-bandi {
        position: absolute; bottom: 0; right: 0; width: 100%;
        padding: 34px 15px 12px; background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
        text-align: right; pointer-events: none; z-index: 15;
    }
    .urun-fiyat-metni {
        color: #fff; font-weight: 800; font-size: 1.4rem;
        letter-spacing: 0.3px; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .urun-baslik {
        color: var(--koyu-metin, #333); font-size: 1.05rem; line-height: 1.35;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .urun-aciklama {
        color: #6c757d; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.75rem;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

/* ================= MOBİL (≤768px): SATIRDA 2 ÜRÜN ================= */
    @media (max-width: 768px) {
        /* FOTOĞRAF ALANI: Hatalı uzamayı engelleyen KESİN kare çözümü */
        .urun-gorsel-alani { 
            height: 0 !important; 
            padding-bottom: 100% !important; /* Genişliği ne kadarsa yüksekliği de o kadar olur (Tam Kare) */
            position: relative;
        }
        .urun-gorsel-alani .mini-galeri {
            position: absolute !important;
            top: 0; left: 0; right: 0; bottom: 0;
            width: 100%; height: 100%;
        }
        
        /* AÇIKLAMA: Daha küçük font, daha çok satır */
        .urun-aciklama { 
            font-size: 0.72rem; 
            line-height: 1.35; 
            -webkit-line-clamp: 3; 
            margin-bottom: 0.6rem; 
        }

        .urun-fiyat-bandi { padding: 24px 10px 8px; }
        .urun-fiyat-metni { font-size: 1rem; }
        .urun-karti .card-body { padding: 0.85rem !important; }
        .urun-baslik { font-size: 1.05rem; margin-bottom: 0.4rem !important; }
        .urun-rozetler .badge { font-size: 0.6rem; padding: 0.3em 0.55em; }
        .urun-karti .btn { font-size: 0.78rem; padding: 0.45rem 0.4rem; }
        .urun-fav-btn { padding: 0.45rem 0.6rem !important; }
        .mini-ok { width: 28px; height: 28px; }
        .mini-ok i { font-size: 0.8rem; }
    }

    @media (max-width: 360px) {
        .urun-fiyat-metni { font-size: 0.9rem; }
        .urun-baslik { font-size: 0.85rem; }
        .urun-aciklama { font-size: 0.68rem; }
    }


    /* ============================================================ */
    /* EMLAK PORTFÖY - MASAÜSTÜ TASARIMI KORUNUR, MOBİL OPTİMİZE     */
    /* ============================================================ */

    .emlak-kart {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .emlak-kart:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12) !important;
    }

    /* Fiyat bandı - '₺' sembolünün alt satıra kaymasını engeller */
    .emlak-fiyat-metni {
        white-space: nowrap;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    /* ===================== MOBİL (≤767px) ===================== */
    @media (max-width: 767.98px) {

        /* Kart içindeki iki sütunu YAN YANA tut (alt alta yığılmayı engelle) */
        .emlak-kart .emlak-sol,
        .emlak-kart .emlak-sag {
            width: 50%;
            flex: 0 0 auto;
        }
        .emlak-kart .emlak-sol { width: 46%; }
        .emlak-kart .emlak-sag { width: 54%; }

        /* Resmi küçült */
        .emlak-gorsel-alani {
            height: 160px !important;
        }

        /* Fiyat bandını kompaktlaştır */
        .emlak-fiyat-bandi {
            padding: 22px 10px 8px !important;
        }
        .emlak-fiyat-metni {
            font-size: 1rem !important;
        }

        /* Başlık ve açıklama - sol sütun */
        .emlak-sol .p-3 {
            padding: 0.6rem !important;
        }
        .emlak-baslik {
            font-size: 0.85rem !important;
            margin-bottom: 0.35rem !important;
        }
        .emlak-aciklama {
            font-size: 0.72rem !important;
            line-height: 1.35 !important;
        }

        /* Sağ sütun - detaylar ve butonlar */
        .emlak-sag .p-3 {
            padding: 0.6rem !important;
        }

        /* Etiketleri küçült (Konut / Satılık / Daire) ve sola hizala */
        .emlak-rozetler {
            justify-content: flex-start !important;
            gap: 3px !important;
            margin-bottom: 0.5rem !important;
        }
        .emlak-rozetler .badge {
            font-size: 0.58rem !important;
            padding: 0.28em 0.5em !important;
            font-weight: 600;
        }

        /* Oda / Alan / Isıtma listesi kompakt */
        .emlak-detay-liste li {
            font-size: 0.74rem !important;
            margin-bottom: 0.3rem !important;
        }
        .emlak-detay-liste li div {
            width: 20px !important;
        }
        .emlak-detay-liste .emlak-adres {
            font-size: 0.68rem !important;
            margin-top: 0.5rem !important;
            padding-top: 0.4rem !important;
        }

        /* Butonlar - dokunma alanı yeterli, yazı kompakt */
        .emlak-butonlar .btn {
            font-size: 0.72rem !important;
            padding: 7px 6px !important;
        }
        .emlak-butonlar .btn-favori {
            padding: 7px 10px !important;
        }

        .mini-ok { width: 28px !important; height: 28px !important; }
        .mini-ok i { font-size: 0.8rem !important; }
    }

    /* Çok dar telefonlarda (≤360px) fiyatı garanti tek satır tut */
    @media (max-width: 360px) {
        .emlak-fiyat-metni { font-size: 0.85rem !important; }
        .emlak-baslik { font-size: 0.8rem !important; }
    }

    /* ======================================================= */
    /* MİNİ GALERİ & ŞIK MODERN OK TASARIMI                    */
    /* ======================================================= */
    .mini-galeri { position: relative; width: 100%; height: 100%; overflow: hidden; z-index: 5; }
    
    /* cursor ve drag engelleri: resmin tıklanabilir olduğunu gösterip metin/resim seçilmesini engeller */
    .mini-track { display: flex; height: 100%; width: 100%; touch-action: pan-y; position: relative; z-index: 10; cursor: pointer; user-select: none; -webkit-user-drag: none; }
    .mini-slide { flex: 0 0 100%; width: 100%; height: 100%; }
    .mini-resim { width: 100%; height: 100%; object-fit: cover; pointer-events: none; background-color: #f8f9fa; }

    /* Siyah kaba oklardan kurtulduk! Beyaz, şık, gölgeli ve zarif oklar: */
    .mini-ok { 
        position: absolute; top: 50%; transform: translateY(-50%); 
        background: rgba(255, 255, 255, 0.9); color: #333; border: none; 
        border-radius: 50%; width: 32px; height: 32px; 
        display: flex; align-items: center; justify-content: center; 
        cursor: pointer; z-index: 20 !important; 
        padding: 0; transition: all 0.2s ease; pointer-events: auto;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    .mini-ok:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
    .mini-ok-sol { left: 8px; }
    .mini-ok-sag { right: 8px; }
    .mini-ok i { font-size: 1rem; margin-top: 1px; }
