/*
Theme Name: Karaburun Emlak
Theme URI: https://karaburunemlak.net
Author: Karaburun Emlak
Description: Karaburun bölgesi için özel geliştirilmiş, emlak odaklı, hızlı ve SEO uyumlu gayrimenkul teması.
Version: 1.0.0
Text Domain: karaburun-emlak
*/

/* --- TEMA RENKLERİ VE DEĞİŞKENLER --- */
:root {
    --primary-purple: #5B2C6F;
    --secondary-purple: #9B59B6;
    --bg-light: #F4F0F5;
    --text-dark: #333333;
    --text-muted: #777777;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* --- GENEL AYARLAR --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--white); color: var(--text-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }

/* --- HEADER --- */
.site-header { background-color: var(--white); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.site-logo a { font-size: 1.8rem; font-weight: 800; color: var(--primary-purple); text-decoration: none; letter-spacing: -0.5px; }
.site-logo .logo-highlight { color: var(--secondary-purple); font-weight: 400; }
.site-navigation { display: flex; }
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 1rem; position: relative; padding: 5px 0; transition: var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-purple); }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary-purple); transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.btn-cta { background-color: var(--primary-purple); color: var(--white); padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: var(--transition); display: inline-block;}
.btn-cta:hover { background-color: var(--secondary-purple); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3); }
.mobile-menu-toggle { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-toggle .bar { width: 25px; height: 3px; background-color: var(--primary-purple); border-radius: 3px; transition: var(--transition); }

/* --- HERO BÖLÜMÜ --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    /* Görsel yolu güncellendi */
    background-image: url('assets/images/arka_plan.webp'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--primary-purple); opacity: 0.65; z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 900px; padding: 20px; }
.hero-title { color: var(--white); font-size: 3rem; font-weight: 700; margin-bottom: 40px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.search-box { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.search-tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.tab-btn { padding: 10px 20px; border: none; background: transparent; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tab-btn.active, .tab-btn:hover { color: var(--primary-purple); border-bottom-color: var(--secondary-purple); }
.search-form { display: flex; gap: 15px; }
.form-group { flex: 1; }
.search-input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; color: var(--text-dark); }
.search-submit { width: 100%; padding: 15px; background-color: var(--secondary-purple); color: var(--white); border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: var(--transition); }
.search-submit:hover { background-color: var(--primary-purple); transform: translateY(-2px); }

/* --- VİTRİN BÖLÜMÜ --- */
.showcase-section { padding: 80px 0; background-color: var(--bg-light); }
.section-title { text-align: center; color: var(--primary-purple); font-size: 2.2rem; margin-bottom: 40px; }
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.property-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition); cursor: pointer; }
.property-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(91, 44, 111, 0.15); }
.card-image-wrapper { position: relative; height: 200px; overflow: hidden; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .card-image { transform: scale(1.05); }
.badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; color: var(--white); font-size: 0.8rem; font-weight: bold; border-radius: 4px; z-index: 2; }
.badge-urgent { background-color: #E74C3C; }
.badge-new { background-color: var(--secondary-purple); }
.card-content { padding: 20px; }
.card-price { color: var(--primary-purple); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.card-title { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-features { list-style: none; display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 15px; font-size: 0.9rem; color: var(--text-muted); }

/* --- İLAN DETAY SAYFASI --- */
.single-property-page { padding: 40px 0 80px; background-color: var(--bg-light); }
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary-purple); text-decoration: none; }
.property-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; gap: 20px; }
.property-title { font-size: 2rem; color: var(--primary-purple); font-weight: 700; line-height: 1.3; flex: 1; }
.property-price { font-size: 2.2rem; color: var(--secondary-purple); font-weight: 800; background: var(--white); padding: 15px 25px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.property-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.property-gallery { background: var(--white); padding: 15px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.main-image { width: 100%; height: 500px; border-radius: 8px; overflow: hidden; margin-bottom: 15px; position: relative; }
.main-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s ease; }
.thumbnail-row { display: flex; gap: 10px; overflow-x: auto; }
.thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; transition: var(--transition); }
.thumb:hover, .thumb.active { opacity: 1; border: 3px solid var(--secondary-purple); }
.property-box { background: var(--white); padding: 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.box-title { color: var(--primary-purple); font-size: 1.4rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-light); }
.box-content { line-height: 1.8; color: var(--text-dark); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; list-style: none; }
.features-grid li { padding: 12px 15px; background: var(--bg-light); border-radius: 6px; display: flex; justify-content: space-between; font-size: 0.95rem; }
.property-sidebar { position: sticky; top: 100px; }
.agent-card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(91, 44, 111, 0.1); border-top: 5px solid var(--primary-purple); }
.agent-title { text-align: center; color: var(--text-dark); margin-bottom: 25px; }
.agent-info { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.agent-avatar { font-size: 3rem; }
.agent-name { font-size: 1.2rem; font-weight: bold; color: var(--primary-purple); }
.agent-role { font-size: 0.9rem; color: var(--text-muted); }
.agent-contact-details { margin-bottom: 25px; font-size: 1.1rem; font-weight: 600; }
.btn-block { display: block; text-align: center; width: 100%; margin-bottom: 10px; }
.btn-whatsapp { background-color: #25D366; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: bold; display: block; text-align: center; transition: var(--transition); }
.btn-whatsapp:hover { background-color: #128C7E; }

/* --- FOOTER --- */
.site-footer { background-color: #3C1A4B; color: var(--white); padding-top: 70px; margin-top: 60px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 50px; }
.footer-title { font-size: 1.3rem; margin-bottom: 25px; color: var(--secondary-purple); font-weight: 700; }
.footer-title .text-light { color: var(--white); font-weight: 400; }
.footer-text { color: #D1C4E9; line-height: 1.7; font-size: 0.95rem; }
.footer-links, .footer-contact { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 15px; color: #D1C4E9; display: flex; align-items: center; gap: 10px; }
.footer-links a { color: #D1C4E9; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 8px; }
.footer-bottom { background-color: #2B1336; text-align: center; padding: 20px 0; color: #A894C5; font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* --- MOBİL UYUM --- */
@media (max-width: 992px) {
    .site-navigation { display: none; position: absolute; top: 80px; left: 0; width: 100%; background-color: var(--white); box-shadow: 0 10px 15px rgba(0,0,0,0.1); padding: 20px 0; }
    .site-navigation.active { display: block; }
    .nav-menu { flex-direction: column; align-items: center; gap: 20px; }
    .btn-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
    .property-layout { grid-template-columns: 1fr; }
    .property-sidebar { position: static; }
    .property-title-row { flex-direction: column; }
    .property-price { align-self: flex-start; }
    .main-image { height: 300px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .search-form { flex-direction: column; }
    .hero-section { height: auto; padding: 100px 0; }
}
/* --- ÖZEL İLAN EKLEME FORMU --- */
.form-group-row {
    margin-bottom: 20px;
}
.form-group-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 0.95rem;
}
.custom-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}
.custom-input:focus {
    outline: none;
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}