/* =================================
   GENEL STİLLER VE SIFIRLAMALAR
   ================================= */

/* Daha sezgisel kutu modeli */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}   
/* Sosyal medya ikon görsellerini küçültmek için */
.social-icon-img {
    width: 22.4px; /* 1.4rem ile eşleşmesi için */
    height: 22.4px; /* 1.4rem ile eşleşmesi için */
    vertical-align: middle; 
}
html {
    font-size: 16px; /* rem birimi için temel boyut */
    height: 100%; /* Sayfanın tamamını kapla (Footer sabitleme için) */
}

body {
    /* ARKA PLAN LOGO EKLEME VE AYARLARI */
    /* Karartma katmanını ve logo görselini birleştir */
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../images/logo.PNG');
    background-size: cover;             /* Tüm alanı kapla */ 
    background-position: center;        /* Ortala */
    background-attachment: fixed;       /* Kaydırmadan sabit tut */
    background-color: #000;             /* Resim yüklenmezse siyah arka plan */
    background-repeat: no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #fff; /* Varsayılan metin rengi beyaz */

    /* FOOTER SABİTLEME ÇÖZÜMÜ */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img, iframe {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Başlık okunabilirliğini artırır */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Akıcı yazı boyutu */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    border-bottom: 2px solid #FF5C00; /* VIP rengi kullanıldı */
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* =================================
   HEADER & NAVİGASYON
   ================================= */

header {
    background-color: rgba(0, 0, 0, 0.9); /* Yarı saydam siyah */
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Logo yüksekliği */
}

/* Desktop: Nav is a flex container for its ul and social-media */
nav {
    display: flex;
    align-items: center;
    gap: 2rem; /* Space between menu links and social icons */
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #FF5C00;
}

/* Desktop Social Media Icons */
.social-media {
    display: flex;
    gap: 1rem; /* Space between social icons */
}
.social-media a {
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem; /* Font Awesome ikonlarının boyutu */
    transition: opacity 0.3s ease;
    opacity: 0.7;
    
    /* Dikey ortalamanın en iyi yolu: Flexbox */
    display: flex;
    align-items: center; /* İkonları dikeyde ortala */
    justify-content: center; /* İkonları yatayda ortala */
    line-height: 1; /* Ekstra satır boşluğunu kaldır */
    height: 1.4rem; /* Kapsayıcı yüksekliğini ikon boyutuyla eşitle */
}
.social-media a:hover { opacity: 1; }

/* Hide mobile social media item on desktop */
.social-media-mobile-item {
    display: none;
}
.social-media .social-icon-img { 
    height: 1.4rem; /* Font Awesome ikonları ile birebir aynı yüksekliği kullanın */
    width: auto;    /* Yüksekliği 1.4rem olarak ayarladığınız için genişliği otomatik bırakın */
    vertical-align: middle; /* sub yerine middle kullanın */ 
    filter: invert(1) brightness(0.9); 
    opacity: 0.7; 
    transition: opacity 0.3s ease; 
}
.social-media a:hover .social-icon-img { opacity: 1; }

/* =================================
   ANA SAYFA - HERO BÖLÜMÜ
   ================================= */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 4rem 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: #FF5C00;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color:rgb(212, 63, 47)
}

/* =================================
   GENEL SAYFA İÇERİĞİ
   ================================= */

.main-container {
    flex-grow: 1; /* Footer'ı aşağı itmek için */
}

.page-content {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}


/* =================================
   ANA SAYFA EK BÖLÜMLER (Öne Çıkan, Hakkımızda)
   ================================= */

.about-us {
    padding: 3rem 0;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.about-content li {
    padding: 0.3rem 0;
    font-size: 1.1rem;
    color: #ccc;
}

/* =================================
   İLANLAR SAYFASI & KART STİLLERİ
   ================================= */

.ilan-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil için tek sütun */
    gap: 1.5rem;
    margin-top: 2rem;
}

.ilan-karti {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ilan-karti:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.7);
}

.ilan-gorsel {
    height: 200px; 
    background-size: cover;
    background-position: center;
    position: relative;
}

.ilan-tipi {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    z-index: 10;
}

/* Tipe göre renk belirleme */
.satilik {
    background-color: #FF5C00; /* Kırmızı */
}

.kiralik {
    background-color: #2ecc71; /* Yeşil */
}

.ilan-detay {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ilan-detay h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.ilan-konum {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 1rem;
}

.ilan-ozellikler {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
}

.ilan-ozellikler span {
    background-color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ilan-alt {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ilan-fiyat {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FF5C00;
}

.detay-buton {
    padding: 0.5rem 1rem; 
    font-size: 0.9rem;
}

.loading-placeholder, .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    font-size: 1.5rem;
    color: #aaa;
}

/* =================================
   GÖRÜŞME TALEBİ FORMU STİLLERİ
   ================================= */
.contact-form {
    background-color: #1a1a1a; /* Koyu arka plan */
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); /* Daha belirgin gölge */
    margin-top: 2rem;
    max-width: 600px; /* Formun genişliğini sınırlayarak daha derli toplu görünmesini sağlar */
    margin-left: auto;
    margin-right: auto;
}

.contact-form .form-group {
    margin-bottom: 1.5rem; /* Form grupları arasında daha fazla boşluk */
}

.contact-form label {
    display: block; /* Label'ı input'un üzerine alır */
    margin-bottom: 0.7rem; /* Label ile input arasında boşluk */
    font-size: 1.1rem;
    color: #eee; /* Daha açık bir renk */
    font-weight: 600;
}

.contact-form input[type="text"] {
    width: 100%;
    padding: 0.9rem 1.2rem; /* Daha geniş padding */
    border: 1px solid #444; /* Koyu kenarlık */
    border-radius: 6px;
    background-color: #2a2a2a; /* Input arka planı */
    color: #fff; /* Input metin rengi */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus {
    border-color: #FF5C00; /* Odaklandığında VIP rengi */
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.3); /* Hafif bir parlama efekti */
    outline: none; /* Varsayılan odak çerçevesini kaldır */
}

/* =================================
   İLETİŞİM BİLGİLERİ STİLLERİ
   ================================= */

.iletisim-bilgileri {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.iletisim-bilgileri p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.iletisim-bilgileri p strong {
    color: #e74c3c;
    display: inline-block;
    min-width: 80px; 
}

.map-container {
    margin-top: 2rem;
    border: 2px solid #333;
    border-radius: 5px;
    overflow: hidden; /* iframe'in köşelerinin yuvarlak görünmesi için */
}


/* =================================
   FOOTER
   ================================= */

footer {
    background-color: #000;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =================================
   RESPONSIVE - MEDYA SORGULARI
   ================================= */

/* Tablet ve üzeri (769px ve daha geniş) */
@media (min-width: 769px) {
    .ilan-grid {
        /* Tablette 2 sütunlu grid */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Masaüstü (1200px ve daha geniş) */
@media (min-width: 1200px) {
    .ilan-grid {
        /* Masaüstünde 3 sütunlu grid */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobil Navigasyon (Hamburger Menü) */
.menu-toggle {
    display: none; /* Varsayılan olarak gizli */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger ikonunun 'X'e dönüşme animasyonu (Desktop'ta gizli, Mobile'da aktif) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Header container needs relative positioning for absolute children */
    header .container {
        position: relative;
    }
    
    body {
        /* Arka plan görselinin pencereye göre sabitlenme özelliğini kaldırır. */
        background-attachment: scroll !important;

        /* BURASI GÜNCELLENDİ: logo.PNG yerine mobil.png kullanılıyor ve karartma korundu */
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/mobil.png');
        
        /* Görseli %80 oranında küçült */
        background-size: 80%; 
        
        /* Arka plan görselinin kaymasını önlemek için görseli tekrarla */
        background-repeat: no-repeat;
    }
    nav {
        position: absolute;
        top: 100%;
        display: none; /* Başlangıçta gizli */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        border-top: 1px solid #333;
        /* Mobil menü için flex düzeni ve ortalama */
        flex-direction: column; /* Öğeleri dikey olarak yığ */
        align-items: center;   /* Öğeleri yatayda ortala */
        padding-bottom: 1rem;  /* Navigasyonun altına boşluk ekle */
    }

    nav ul {
        flex-direction: column;
        /* text-align: center; kuralı, nav'a eklenen align-items: center; ile
           ul öğesinin kendisini ortalayacağı için, ul içindeki metinleri
           ortalamak için hala faydalı olabilir. Mevcut haliyle bırakılabilir. */
        text-align: center; 
        padding: 0.5rem 7rem;
        gap: 0.5rem; /* Linkler arası dikey boşluk */
    }

    nav.active {
        display: flex; /* JavaScript ile 'active' class'ı eklenince flex konteyner olarak göster */
    }

    .social-media {
        display: flex; /* Mobil menüde görünür yap ve flex konteyner olarak ayarla */
        margin-top: 0.1rem; /* Üstten boşluğu azaltarak yazılar ve ikonlar arasındaki mesafeyi düzelt */
    }

    .menu-toggle {
        display: block; /* Hamburger ikonu göster */
        /* Explicitly position the toggler to ensure visibility and placement */
        position: absolute;
        right: 1rem; /* Adjust as needed for desired spacing from right edge */
        top: 50%;
        transform: translateY(-50%); /* Vertically center */
        z-index: 1002; /* Ensure it's above everything else, including the nav when it opens */
    }
}
.social-media a {
    color: #fff; /* İkon rengini beyaz yaptık */
    font-size: 1.4rem;
    
    transition: opacity 0.3s ease; /* Geçiş efektini opacity'ye verdik */
    opacity: 0.7; /* Normal durumda biraz soluk */
}

.social-media a:hover {
    opacity: 1; /* Üzerine gelince tam görünür */
}

/* Görsel (img) sosyal ikonlarını hover'da site kırmızısı (#e74c3c) yapma */
.social-media a:hover .social-icon-img {
    opacity: 1;
    /* Renk efektini img üzerinde uygulamak için filtre kullanıyoruz - #e74c3c yakın ton */
    filter: invert(21%) sepia(82%) saturate(4700%) hue-rotate(336deg) brightness(96%) contrast(98%);
    transition: filter 0.25s ease, opacity 0.25s ease;
}

/* Font Awesome (i) ikonlarını hover'da site kırmızısı yapma */
.social-media a:hover i {
    color: #e74c3c;
    transition: color 0.25s ease;
}

/* Sahibinden gibi resim olan sosyal medya ikonları için stil */
.social-media .social-icon-img {
    height: 1.4rem; /* Görsel olarak diğer ikonlarla eşitlemek için boyut ayarı */
    vertical-align: sub; /* Dikey hizalamayı iyileştirmek için */
    filter: invert(1) brightness(0.9); /* Resmi beyaz yapar ve parlaklığını ayarlar */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-media a:hover .social-icon-img {
    opacity: 1;
}

/* Ana içerik alanlarındaki metinlere italik stil uygula */
.hero-content h1,
.hero-content h3,
.page-content p {
    font-style: italic;
}

/* =================================
   SCROLL TO TOP/BOTTOM BUTTON
   ================================= */

#scroll-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #FF5C00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

#scroll-btn:hover {
    background-color: rgb(212, 63, 47);
    transform: scale(1.1);
    opacity: 1;
}

/* =================================
   KULLANICI ONAY BANNER
   ================================= */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.95); /* #222 with opacity */
    color: white;
    padding: 15px;
    z-index: 1001; /* Diğer elementlerin üzerinde olması için */
    display: none; /* Varsayılan olarak gizli */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-consent-banner {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
}

.cookie-consent-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-consent-banner a {
    color: #cba135; /* Sitenizin estetiğine uygun altın rengi */
    text-decoration: underline;
}

#cookie-consent-accept {
    background-color: #cba135;
    color: white;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}
main {
    flex: 1 0 auto;
}

.social-media .social-icon-img {
    /* Sahibinden ikonunu temsil eden görseli (img) dikeyde bir miktar daha yukarı kaydır */
    margin-top: -1px; 
    /* Ek olarak, önceki adımda uygulanan vertical-align: sub veya middle kuralını temizlemek için: */
    vertical-align: top;
}