/*
Theme Name: Car Gayrimenkul
Theme URI: https://cargayrimenkul.com
Author: Car Gayrimenkul
Description: Car Gayrimenkul için özel geliştirilmiş profesyonel emlak teması.
Version: 3.0.0
Text Domain: car-gayrimenkul
*/

:root {
  --primary: #0d1b2a;
  --secondary: #c0392b;
  --accent: #d4a017;
  --bg: #f4f7f6;
  --white: #ffffff;
  --text: #1e2d3d;
  --muted: #6c7a89;
  --border: #e0e6ed;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Montserrat',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header { background: #0d1b2a; padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; overflow: hidden; }
.logo-icon { background: var(--secondary); padding: 8px; border-radius: 5px; }
.logo-icon svg { width: 24px; height: 24px; fill: #fff; }
.logo-text { color: #fff; min-width: 0; }
.logo-title { display: block; font-size: 1.2rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-sub { display: block; font-size: 0.6rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }

/* MOBİL MENÜ BUTONU */
.mobile-toggle {
    display: none;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(192,57,43,0.4);
    transition: background 0.2s, transform 0.1s;
}
.mobile-toggle:active { background: #a93226; transform: scale(0.95); }
.mobile-toggle:hover { background: #a93226; }
.hamburger-line {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 3px !important;
    transition: all 0.3s ease;
    transform-origin: center;
}
.mobile-toggle.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; font-weight: 600; margin-left: 25px; transition: 0.3s; }
.main-nav a:hover { color: #fff; }

/* BLOG DETAY AÇILIR SİSTEM */
.blog-content-wrapper { position: relative; max-height: 150px; overflow: hidden; transition: max-height 0.5s ease; }
.blog-content-wrapper.expanded { max-height: 5000px; }
.read-more-trigger { cursor: pointer; color: var(--secondary); font-weight: 700; margin-top: 10px; display: none; }
.blog-content-wrapper.needs-more + .read-more-trigger { display: inline-block; }

/* HERO */
.hero { background: linear-gradient(rgba(13,27,42,0.7), rgba(13,27,42,0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1350&q=80') center/cover; padding: 120px 0; text-align: center; color: #fff; }
.hero-eyebrow { display: inline-block; background: rgba(212,160,23,0.2); border: 1px solid var(--accent); color: var(--accent); padding: 5px 15px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; margin-bottom: 20px; }
.hero h2 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.hero h2 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 40px; }

/* SEARCH FORM */
.property-search-form { background: #fff; padding: 25px; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; max-width: 800px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.property-search-form input, .property-search-form select { padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 0.9rem; width: 100%; }
.property-search-form button { background: var(--secondary); color: #fff; border: none; padding: 12px; border-radius: 5px; font-weight: 700; cursor: pointer; grid-column: span 1; }

/* PROPERTY CARD */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; padding-top: 60px; }
.section-title { font-size: 2rem; font-weight: 800; }
.section-title span { color: var(--secondary); }
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.property-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; border: 1px solid #eee; transition: 0.3s; }
.property-card:hover { transform: translateY(-10px); }
.property-thumb { height: 220px; background: #0d1b2a; position: relative; }
.property-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 15px; left: 15px; background: var(--secondary); color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.property-info { padding: 25px; }
.prop-location { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.property-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.property-price { color: var(--secondary); font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; }
.property-meta { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 15px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* FOOTER */
.site-footer { background: #0d1b2a; color: #fff; padding: 60px 0 30px; border-top: 4px solid var(--secondary); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 50px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; color: #fff; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; }
.contact-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; margin-bottom: 10px; }
.whatsapp-btn { background: #25D366; color: #fff; padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 0.7rem; font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .mobile-toggle { display: flex !important; }
    .site-header { position: sticky; top: 0; z-index: 1000; }
    .header-inner { position: relative; flex-wrap: nowrap; }
    .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        width: 100%;
        background: #0d1b2a;
        padding: 0;
        gap: 0;
        border-top: 3px solid var(--secondary);
        box-shadow: 0 16px 40px rgba(0,0,0,0.5);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        z-index: 999;
    }
    .main-nav.active {
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav a {
        margin: 0;
        padding: 16px 28px;
        font-size: 1.05rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.9) !important;
        display: flex;
        align-items: center;
        transition: background 0.2s, color 0.2s, padding-left 0.2s;
    }
    .main-nav a:hover, .main-nav a:active {
        background: rgba(192,57,43,0.2);
        color: #fff !important;
        padding-left: 36px;
    }
    .main-nav a:first-child { border-top: none; }
    .main-nav a:last-child { border-bottom: none; }
    .main-nav a::after { display: none !important; }
}

@media (max-width: 480px) {
    .site-logo .logo-title { font-size: 1rem; }
    .site-logo .logo-sub { font-size: 0.5rem; letter-spacing: 1px; }
    .logo-icon { padding: 6px; }
    .logo-icon svg { width: 20px; height: 20px; }
    .header-inner { padding: 0 5px; }
}

/* PREMIUM DOKUNUŞLAR */
.property-card { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.property-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
.site-header { transition: all 0.3s ease; }
.main-nav a { position: relative; }

@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .property-search-form { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .contact-item { flex-direction: column; gap: 10px; }
}

/* ── BLOG SAYFA STİLLERİ ── */
.blog-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.blog-cats { display: flex; gap: 5px; overflow-x: auto; padding: 0; scrollbar-width: none; -ms-overflow-style: none; white-space: nowrap; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cat-link { display: inline-block; padding: 12px 18px; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; transition: 0.2s; white-space: nowrap; }
.blog-cat-link:hover, .blog-cat-link.active { color: var(--secondary); border-bottom-color: var(--secondary); }

.blog-article { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.06); border: 1px solid #eee; margin-bottom: 40px; transition: 0.3s; }
.blog-article:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.12); transform: translateY(-4px); }
.blog-article-img-wrap { overflow: hidden; }
.blog-article-img-wrap img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-article:hover .blog-article-img-wrap img { transform: scale(1.03); }
.blog-article-body { padding: 35px; }
.blog-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-cat-badge { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-meta-text { font-size: 0.8rem; color: var(--muted); }
.blog-meta-sep { color: var(--muted); font-size: 0.8rem; }
.blog-article-title { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1.3; }
.blog-article-intro { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-bottom: 15px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.blog-tag { background: #f4f7f6; color: var(--muted); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-widget { background: #0d1b2a; padding: 30px; border-radius: 16px; color: #fff; position: sticky; top: 90px; }
.sidebar-widget-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--secondary); }
.sidebar-cta { background: #fff; border: 1px solid #eee; color: inherit; position: static; }

/* ── TEMİZLİK SAYFASI STİLLERİ ── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 60px; }
.service-card { background: #fff; border-radius: 16px; padding: 35px; border: 1px solid #eee; box-shadow: 0 8px 25px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(0,0,0,0.12); border-color: var(--secondary); }
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.service-card ul { list-style: none; padding: 0; margin-top: 12px; }
.service-card ul li { font-size: 0.85rem; color: var(--muted); padding: 5px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; }
.service-card ul li::before { content: '✓'; color: var(--secondary); font-weight: 800; flex-shrink: 0; }

.price-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 60px; }
.price-card { background: #fff; border-radius: 16px; padding: 30px; text-align: center; border: 2px solid #eee; transition: 0.3s; }
.price-card.featured { border-color: var(--secondary); position: relative; }
.price-card.featured::before { content: 'EN POPÜLER'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; font-size: 0.65rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; letter-spacing: 1px; white-space: nowrap; }
.price-card h4 { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.price-card .price-range { font-size: 1.8rem; font-weight: 800; color: var(--secondary); margin: 15px 0 5px; }
.price-card .price-note { font-size: 0.75rem; color: var(--muted); margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; text-align: left; }
.price-card ul li { font-size: 0.82rem; color: var(--muted); padding: 7px 0; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 8px; }
.price-card ul li::before { content: '✓'; color: #27ae60; font-weight: 800; flex-shrink: 0; }

.faq-item { background: #fff; border-radius: 12px; border: 1px solid #eee; margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 20px 25px; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--primary); }
.faq-q:hover { background: #fafafa; }
.faq-q .faq-icon { flex-shrink: 0; font-size: 1.2rem; color: var(--secondary); transition: transform 0.3s; }
.faq-a { padding: 0 25px 20px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── RESPONSIVE BLOG & SERVİS ── */
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .sidebar-widget { position: static; }
}
@media (max-width: 600px) {
    .blog-article-img-wrap img { height: 200px; }
    .blog-article-body { padding: 22px; }
    .blog-article-title { font-size: 1.2rem; }
    .blog-cats { gap: 0; }
    .blog-cat-link { padding: 12px 12px; font-size: 0.75rem; }
    .service-grid { grid-template-columns: 1fr; }
    .price-table { grid-template-columns: 1fr; }
}
