/*
Theme Name: N Realty Nizam-Gorgen Özel Tema 
Description: N Realty Kurumsal Mimari ve Mobil Call-Bar Sistemi
Author: Eser Muti
Version: 1.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    background-color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    max-width: 240px;
    height: auto;
}

.site-logo a {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: #000;
}

.header-divider {
    max-width: 900px;
    margin: 20px auto 0 auto;
    border: none;
    border-bottom: 1px solid #333;
}

/* Main Content */
.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Footer Container */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #000;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
}

.footer-col-brand .footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.maps-box {
    border: 1px solid #666;
    padding: 25px 15px;
    text-align: center;
    max-width: 180px;
}

.maps-box a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #222;
    text-decoration: none;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.custom-pages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.company-info {
    margin-top: 20px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

/* Mobil Call Bar Layout */
.mobile-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    z-index: 999;
    padding: 12px 10px;
}

.call-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.call-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Adaptations */
@media (max-width: 768px) {
    .site-footer {
        display: none; /* Mobilde alt footer gizlenir */
    }
    
    .mobile-call-bar {
        display: block; /* Mobilde Call Bar görünür */
    }
    
    body {
        padding-bottom: 60px; /* Call bar altında içerik kalmaması için */
    }
}
/* ==========================================
   MOBİLDE İLANLARI YANA KAYDIRMA (DOM NATIVE)
   ========================================== */
@media (max-width: 768px) {
    /* 1. İlan Liste Kapsayıcısı */
    .nrealty-results-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch; /* iOS için akıcı kaydırma */
        gap: 15px !important;
        padding: 10px 5px 20px 5px !important;
        margin-top: 15px !important;
    }

    /* Kaydırma çubuğunu gizle */
    .nrealty-results-list::-webkit-scrollbar {
        display: none !important;
    }

    /* 2. Tekil İlan Kartları */
    a.nrealty-search-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center !important; /* Kaydırdıkça kart ekrana yapışır */
        display: flex !important;
        flex-direction: column !important; /* Kart içi görsel ve metni üst üste alır */
        text-decoration: none !important;
    }

    /* 3. Kart İçi Görsel Hizalaması */
    .nrealty-search-thumb,
    .nrealty-search-thumb img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }
}
/* ==========================================================================
   GELİŞMİŞ KOYU SAYDAM MOBİL CALL BAR & MENÜ DRAWER
   ========================================================================== */
@media (max-width: 768px) {
    /* Mevcut Call Bar Yapısını Koyu & Yarı Saydam Yapma */
    .mobile-call-bar {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        /* Koyu koyu mavi/siyah yarı saydam arka plan */
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 8px 10px 10px 10px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .call-bar-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }

    .call-bar-inner .call-btn,
    .call-bar-inner .call-drawer-trigger {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 4px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        color: #f1f5f9 !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        cursor: pointer !important;
        gap: 3px !important;
        line-height: 1.2 !important;
    }

    /* Arama Butonuna Mavi Vurgu */
    .call-bar-inner .call-btn.highlight {
        background: rgba(14, 165, 233, 0.2) !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
        color: #38bdf8 !important;
    }

    /* Mobilde içerik çubuğun altında kalmasın */
    body {
        padding-bottom: 75px !important;
    }

    /* ==========================================
       MOBİL SÜRÜKLENEBİLİR / AÇILIR MENÜ (DRAWER)
       ========================================== */
    .mobile-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 100000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-drawer-content {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: #0f172a;
        color: #fff;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 20px 20px 35px 20px;
        z-index: 100001;
        transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 75vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-drawer-content.active {
        bottom: 0;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .drawer-header h3 {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        margin: 0;
    }

    .drawer-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .drawer-menu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .drawer-menu-list li {
        margin-bottom: 8px !important;
    }

    .drawer-menu-list li a {
        color: #e2e8f0 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        display: block !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
}
/* ==========================================================================
   MOBİL CALL BAR & AÇILIR MENÜ (DRAWER)
   ========================================================================== */

/* Masaüstünde mobil menü elemanlarını kesin olarak gizle */
.mobile-call-bar,
.mobile-drawer-overlay,
.mobile-drawer-content {
    display: none !important;
}

@media (max-width: 768px) {
    /* Mobil Call Bar Görünümü */
    .mobile-call-bar {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 8px 10px 10px 10px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .call-bar-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }

    .call-bar-inner .call-btn,
    .call-bar-inner .call-drawer-trigger {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 4px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        color: #f1f5f9 !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        cursor: pointer !important;
        gap: 3px !important;
        line-height: 1.2 !important;
    }

    .call-bar-inner .call-btn.highlight {
        background: rgba(14, 165, 233, 0.2) !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
        color: #38bdf8 !important;
    }

    body {
        padding-bottom: 75px !important;
    }

    /* Mobil Açılır Menü (Drawer) Stilleri */
    .mobile-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 100000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer-overlay.active {
        display: block !important;
        opacity: 1;
    }

    .mobile-drawer-content {
        display: block !important;
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: #0f172a;
        color: #fff;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 20px 20px 35px 20px;
        z-index: 100001;
        transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 75vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-drawer-content.active {
        bottom: 0;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .drawer-header h3 {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        margin: 0;
    }

    .drawer-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .drawer-menu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .drawer-menu-list li {
        margin-bottom: 8px !important;
    }

    .drawer-menu-list li a {
        color: #e2e8f0 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        display: block !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
}