/* =====================================================
   AYKAL – FINAL HYBRID THEME (BACK BUTTON + DARK CARDS)
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold: #c9a24d;
    --gold-gradient: linear-gradient(135deg, #c9a24d 0%, #b88a2d 100%);
    --blue-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --green-gradient: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    
    /* Sayfa Geneli (Light) */
    --page-bg: #f9f9f9;
    --box-bg: #ffffff;
    --text-black: #111111;
    --text-grey: #555555;
    --border-color: #e5e5e5;
}

body {
    background-color: var(--page-bg) !important;
    background-image: none !important;
    color: var(--text-grey);
    font-family: 'Outfit', sans-serif;
    margin: 0; line-height: 1.6;
}

.ilan-page { max-width: 1240px; margin: 40px auto 100px; padding: 0 25px; }

/* =====================================================
   0. GERİ DÖN BUTONU
===================================================== */
.ilan-top-nav {
    margin-bottom: 25px;
}
.go-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #333;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    font-size: 15px;
}
.go-back-btn i { font-size: 14px; }

.go-back-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    transform: translateX(-5px); /* Hafif sola kayma efekti */
    box-shadow: 0 10px 20px rgba(201, 162, 77, 0.2);
}

/* =====================================================
   1. MOZAİK GALERİ & BADGE
===================================================== */
.mozaik-gallery {
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px;
    gap: 12px; border-radius: 24px; overflow: hidden; margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.mz-item { position: relative; overflow: hidden; cursor: pointer; }
.mz-item a { display: block; width: 100%; height: 100%; }
.mz-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.mz-item:hover img { transform: scale(1.05); } 
.mz-item.big-img { grid-column: 1 / 2; grid-row: 1 / 3; }
.mz-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); color: #fff; display: flex; justify-content: center; align-items: center;
    font-size: 24px; font-weight: 700; backdrop-filter: blur(2px); pointer-events: none;
}
/* Badge */
.detail-badge {
    position: absolute; top: 25px; left: 25px; z-index: 5;
    padding: 8px 18px; border-radius: 6px; font-weight: 800; color: #fff; text-transform: uppercase;
    font-size: 12px; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.badge-sale { background: var(--gold-gradient); color: #fff; }
.badge-rent { background: var(--blue-gradient); }
.badge-new  { background: var(--green-gradient); }

/* =====================================================
   2. BAŞLIK & FİYAT (LIGHT)
===================================================== */
.ilan-header-section {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 50px; padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color); position: relative;
}
.ilan-header-section::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 150px; height: 3px; background: var(--gold);
}
.header-left h1 {
    font-size: 42px; font-weight: 700; color: var(--text-black) !important;
    margin: 0 0 10px 0; letter-spacing: -1px; text-shadow: none !important;
}
.header-loc { margin: 0; color: #777; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.header-loc i { color: var(--gold); font-size: 18px; }
.ilan-main-price { font-size: 48px; font-weight: 800; color: var(--gold); line-height: 1; }

/* =====================================================
   3. İKON KUTUCUKLARI (LIGHT)
===================================================== */
.ilan-meta-row {
    display: flex; gap: 25px; margin-bottom: 60px; background: transparent; padding: 0; border: none;
}
.meta-box {
    flex: 1; background: var(--box-bg); border: 1px solid var(--border-color);
    padding: 25px 20px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.meta-box:hover {
    transform: translateY(-5px); border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(201, 162, 77, 0.15);
}
.meta-box.highlight-box { border-color: var(--gold); background: #fffdf5; }
.meta-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.meta-value { font-size: 18px; color: var(--text-black); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.meta-box i { color: var(--gold); font-size: 24px; margin-bottom: 5px; }

/* =====================================================
   4. İÇERİK & SIDEBAR (LIGHT)
===================================================== */
.ilan-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.sec-title {
    color: var(--text-black) !important; font-size: 24px; margin: 0 0 25px; font-weight: 700;
    padding-left: 15px; border-left: 4px solid var(--gold);
}
.sec-title.center { text-align: center; border: none; padding: 0; }
.ilan-detail-text { font-size: 17px; line-height: 1.8; color: #444 !important; font-weight: 400; }
.ilan-detail-sidebar {
    position: sticky; top: 120px; background: var(--box-bg); padding: 35px;
    border-radius: 20px; border: 1px solid var(--border-color); height: fit-content;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.agent-box h3 { color: var(--text-black); margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.agent-box p { color: #666; margin-bottom: 25px; font-size: 14px; }
.ilan-whatsapp-full {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
    padding: 16px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: 0.3s;
    margin-bottom: 15px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}
.ilan-whatsapp-full:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }
.ilan-call-btn {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    background: #fff; border: 2px solid var(--gold); color: var(--gold);
    padding: 16px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: 0.3s;
}
.ilan-call-btn:hover { background: var(--gold); color: #fff; }

/* =====================================================
   5. KART TASARIMI (DARK - PREMIUM)
===================================================== */
.other-listings-wrapper { max-width: 1240px; margin: 100px auto; padding-top: 60px; border-top: 1px solid #ddd; }
.aykal-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.aykal-card {
    background: #141414; /* SİYAH KART */
    border: 1px solid #333; 
    border-radius: 16px; overflow: hidden;
    text-decoration: none; transition: 0.4s ease; display: block; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.aykal-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.aykal-card-img { height: 260px; position: relative; overflow: hidden; }
.aykal-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.aykal-card:hover .aykal-card-img img { transform: scale(1.1); }

/* Kart Badge */
.aykal-card-badge {
    position: absolute; top: 15px; left: 15px; z-index: 2; padding: 5px 12px; border-radius: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff;
}
.badge-sale { background: linear-gradient(135deg, #c9a24d 0%, #b88a2d 100%); }
.badge-rent { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }

.aykal-hover-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: bold;
    opacity: 0; transition: 0.3s;
}
.aykal-card:hover .aykal-hover-overlay { opacity: 1; }

/* Kart İçi Yazılar (Siyaha uygun Beyaz/Gri) */
.aykal-card-body { padding: 25px; }
.aykal-card-body h3 { color: #fff !important; font-size: 19px; margin: 0 0 5px; font-weight: 500; }
.aykal-loc { color: #888; font-size: 13px; margin-bottom: 15px; }
.aykal-card-meta {
    display: flex; gap: 15px; padding-top: 15px; margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1); color: #aaa; font-size: 13px;
}
.aykal-card-meta i { color: var(--gold); margin-right: 5px; }
.aykal-card-price { display: block; margin-top: 15px; color: var(--gold); font-weight: 700; font-size: 22px; text-align: right; }

/* =====================================================
   6. LIGHTBOX FIX (ARKA PLANI SİYAH VE GİZLİ)
===================================================== */
.sl-overlay { background: #000 !important; opacity: 1 !important; z-index: 99990 !important; }
.sl-wrapper { z-index: 99995 !important; }
body.sl-open .mz-item img { visibility: hidden; }
.sl-wrapper .sl-navigation button, .sl-wrapper .sl-close { color: var(--gold) !important; }

/* MOBİL */
@media (max-width: 900px) {
    .ilan-header-section { flex-direction: column; align-items: flex-start; gap: 10px; }
    .mozaik-gallery { display: flex; overflow-x: auto; height: 320px; margin: 0 -25px 40px; border-radius: 0; }
    .mz-item { flex: 0 0 90%; margin-left: 25px; border-radius: 12px; }
    .ilan-meta-row { flex-direction: column; gap: 15px; }
    .meta-box { width: 100%; flex: none; padding: 20px; flex-direction: row; justify-content: space-between; }
    .ilan-detail-layout { grid-template-columns: 1fr; gap: 40px; }
    .aykal-grid-container { grid-template-columns: 1fr; }
}