/* ============================================
   Şevval Emlak — Layout
   Sayfa düzeni: navbar alanı, ana içerik, 
   sidebar ve footer alanı.
   ============================================ */

/* ── Sayfa Sarmalayıcı ──
   Minimal wrapper: Mevcut sayfa stillerine müdahale etmez.
   Sadece yapısal bir container olarak görev yapar.        */
.sv-page {
    display: flex;
    flex-direction: column;
}

/* ── Body-Level Layout ──
   body.sv-page kullanıldığında tüm sayfada
   sticky-footer pattern aktif olur.
   Footer, kısa içerikli sayfalarda bile
   viewport'un altında kalır.                */
body.sv-page {
    min-height: 100vh;
    min-height: 100dvh; /* Mobil tarayıcılarda doğru yükseklik */
    margin: 0;
}

/* ── Ana İçerik ── */
.sv-main {
    flex: 1 0 auto; /* Boşluğu doldur, küçülme */
    width: 100%;
}

/* Navbar sonrası boşluk (sticky navbar kullanıldığında) */
.sv-main-padded {
    padding-top: var(--sv-navbar-h);
}

/* ── Section (Bölüm) ── */
.sv-section {
    padding: var(--sv-space-2xl) 0;
}

.sv-section-sm {
    padding: var(--sv-space-lg) 0;
}

.sv-section-lg {
    padding: var(--sv-space-3xl) 0;
}

/* Mavi arka planlı bölüm */
.sv-section-blue {
    background: var(--sv-bg-blue);
    color: var(--sv-text-white);
}

/* Açık arka planlı bölüm */
.sv-section-light {
    background: var(--sv-bg-light);
}

/* Beyaz arka planlı bölüm */
.sv-section-white {
    background: var(--sv-bg);
}

/* ── İki Sütun Layout (Ana İçerik + Sidebar) ── */
.sv-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sv-sidebar-w);
    gap: var(--sv-space-lg);
    align-items: start;
}

/* Sidebar solda */
.sv-layout-sidebar-left {
    grid-template-columns: var(--sv-sidebar-w) 1fr;
}

@media (max-width: 992px) {
    .sv-layout-sidebar,
    .sv-layout-sidebar-left {
        grid-template-columns: 1fr;
    }
}

/* ── Sidebar ── */
.sv-sidebar {
    position: sticky;
    top: calc(var(--sv-navbar-h) + var(--sv-space));
}

@media (max-width: 992px) {
    .sv-sidebar {
        position: static;
    }
}

/* ── Navbar ──
   Yapısal Kural: Navbar flex container.
   Görsel stiller navbar.css'teki .navbaar class'ında tanımlı. */
.sv-navbar {
    flex-shrink: 0; /* Sticky footer: navbar asla sıkıştırılmaz */
    width: 100%;
    z-index: var(--sv-z-navbar);
}
.sv-navbar-container {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sv-space);
}
.sv-navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--sv-space-lg);
    margin: 0;
    padding: 0;
}
.sv-navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--sv-space);
    flex-shrink: 0;
}

/* ── Footer ── 
   Tüm footer stilleri burada yönetilir.
   footer.css deprekated — stiller buraya taşındı. */
.sv-footer {
    flex-shrink: 0; /* Sticky footer: footer asla sıkıştırılmaz */
    background: linear-gradient(90deg, #009cfb, #0056b3);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.sv-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Footer bölümleri */
.sv-footer .footer-content,
.sv-footer .footer-section {
    flex: 1;
    margin: 20px;
    min-width: 200px;
    text-align: left;
}

/* Bizi Takip Edin bölümü ortalama */
.sv-footer .footer-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sv-footer .footer-section .footer-title {
    text-align: center;
}

.sv-footer .footer-contact {
    text-align: left;
}

/* Footer başlıklar */
.sv-footer .footer-title {
    font-size: 28px;
    margin-bottom: 17px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer bilgi satırları */
.sv-footer .footer-info {
    position: relative;
    margin: .5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer linkler */
.sv-footer .footer-link {
    text-decoration: none;
    color: white;
    transition: text-decoration 0.3s;
}

.sv-footer .footer-link:hover {
    text-decoration: underline;
}

/* Sosyal ikonlar */
.sv-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.sv-footer .social-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.sv-footer .social-icon:hover {
    transform: scale(1.1);
}

.sv-footer .social-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
}

/* ETBIS */
.sv-footer #ETBIS {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer alt çizgi */
.sv-footer-bottom {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 15px;
    text-align: center;
}

.sv-footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

/* Footer Responsive — 768px */
@media (max-width: 768px) {
    .sv-footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .sv-footer .footer-content,
    .sv-footer .footer-section {
        min-width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .sv-footer .footer-contact {
        text-align: center;
    }
}

/* Footer Responsive — 480px */
@media (max-width: 480px) {
    .sv-footer {
        padding: 20px 10px;
    }
    .sv-footer .footer-title {
        font-size: 1.2rem;
    }
    .sv-footer .footer-info {
        font-size: 0.7rem;
    }
    .sv-footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ── Hero Bölümü ── */
.sv-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.sv-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sv-hero-content {
    position: relative;
    z-index: 2;
    color: var(--sv-text-white);
    max-width: 800px;
    padding: var(--sv-space-xl);
}

.sv-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Horizontal Scroll (Yatay Kaydırma) ── */
.sv-scroll-x {
    display: flex;
    overflow-x: auto;
    gap: var(--sv-space);
    padding-bottom: var(--sv-space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.sv-scroll-x::-webkit-scrollbar {
    height: 6px;
}

.sv-scroll-x::-webkit-scrollbar-track {
    background: transparent;
}

.sv-scroll-x::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* ── Responsive Breakpoint'ler ──
   Mobile:  < 640px
   Tablet:  641px - 992px
   Desktop: > 992px
   Wide:    > 1200px
   ================================ */

/* ── Floating Icons (Talep, WhatsApp vb.) ──
   Tüm sayfalarda tutarlı pozisyon.
   Talep ikonu sol alt, WhatsApp ile aynı hizada.
   !important: Sayfa-bazlı CSS override'larını ezmek için. */
.floating-icon {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 1000 !important;
    display: block !important;
}

.floating-icon img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease-in-out !important;
    display: block !important;
}

.floating-icon img:hover {
    transform: scale(1.1) !important;
}

@media (max-width: 768px) {
    .floating-icon {
        left: 15px !important;
    }
    .floating-icon img {
        width: 65px !important;
        height: 65px !important;
    }
}

@media (max-width: 480px) {
    .floating-icon {
        left: 10px !important;
    }
    .floating-icon img {
        width: 55px !important;
        height: 55px !important;
    }
}
