/*
Theme Name: İzmir Satılık Arsa
Theme URI: https://izmirsatilikarsa.com
Author: Antigravity AI
Description: Özel Premium Emlak ve Arsa Teması. Hızlı, SEO uyumlu ve sadece portföy sergilemek için tasarlanmıştır.
Version: 1.0.3
Text Domain: izmir-arsa
*/

/* ==========================================================================
   CSS Değişkenleri (Theme Tokens)
   ========================================================================== */
:root {
  /* Renk Paleti - Lacivert ve Altın Sarısı (Premium) */
  --primary-color: #0f172a; /* Koyu Lacivert */
  --secondary-color: #1e293b; /* Açık Lacivert */
  --accent-color: #d97706; /* Altın/Kehribar */
  --accent-hover: #b45309;
  
  --text-dark: #334155;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  --success-color: #10b981;
  --danger-color: #ef4444;

  /* Fontlar */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Geçişler */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease;
  
  /* Yuvarlatma */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ==========================================================================
   Sıfırlama (Reset) & Temel Ayarlar
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Tipografi
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Bileşenler (Components)
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
  color: white;
}

/* ==========================================================================
   Header (Üst Kısım)
   ========================================================================== */
.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.site-logo span {
  color: var(--accent-color);
}

.custom-logo-link img {
  max-height: 60px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  color: var(--primary-color);
  font-weight: 500;
}

.main-navigation a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   Hero Section (Anasayfa Karşılama)
   ========================================================================== */
.hero-section {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('assets/hero-bg.jpg') center/cover;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero-section h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Search Box */
.search-box {
  background: var(--bg-white);
  padding: 1rem; /* Padding biraz azaltıldı */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr; /* Mobilde alt alta */
  gap: 0.75rem;
  max-width: 1100px; /* Biraz daha genişletildi */
  margin: 0 auto;
  width: 95%; /* Kenarlardan çok az boşluk */
}

@media (min-width: 768px) {
  .search-box {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (min-width: 1024px) {
  .search-box {
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto;
    align-items: center;
  }
}

.search-box select, .search-box input {
  width: 100%;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  height: 48px; /* Sabit yükseklik */
}

.search-box button {
  height: 48px;
  white-space: nowrap;
  padding: 0 2rem;
}

/* ==========================================================================
   İlan Kartları (Property Cards)
   ========================================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.property-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.property-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.property-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  word-break: break-word;
}

.property-title a {
  color: var(--primary-color);
}

.property-title a:hover {
  color: var(--accent-color);
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.property-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.property-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-widget h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-widget p {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   Responsive & Mobile Menu (Final Clean Version)
   ========================================================================== */

/* 1. Masaüstünde Mobil Elemanları Kesin Olarak Gizle */
.mobile-menu-toggle, 
.mobile-menu-overlay {
  display: none !important;
}

/* 2. Genel Taşmaları Engelle */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* 3. Mobil Düzenlemeler (Max 768px) */
@media (max-width: 768px) {
  
  /* Header */
  .header-inner {
    height: 70px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }
  
  .main-navigation, 
  .header-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
  }

  /* Hero & Search */
  .hero-section h1 {
    font-size: 1.8rem !important;
  }
  
  .search-box {
    flex-direction: column !important;
    padding: 1rem !important;
  }

  /* Property Grid & Single */
  .property-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .property-single-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .pdg-main-image {
    height: 250px !important;
  }

  /* Anasayfa Hakkımızda (Banner üstte, yazı altta) */
  .home-about-section .about-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .home-about-section .about-image {
    order: 1 !important;
  }
  
  .home-about-section .about-text {
    order: 2 !important;
    text-align: center;
  }

  /* İletişim & Hakkımızda Sayfaları */
  .about-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Mobil Menü Overlay (Sadece mobilde aktifleşir) */
@media (max-width: 768px) {
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: block !important; /* JS ile opacity değişecek */
    visibility: hidden;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-container {
    position: absolute;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100%;
    background: var(--bg-white);
    padding: 4rem 0;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }

  .mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
  }

  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
  }

  .mobile-navigation ul {
    list-style: none;
    padding: 0;
  }

  .mobile-navigation ul li {
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-navigation ul li a {
    display: block;
    padding: 1.25rem 2rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .mobile-menu-actions {
    margin-top: auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
  }
}

/* 5. Anasayfa Hakkımızda Bölümü (Masaüstü) */
.home-about-section {
  background: var(--bg-white);
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.home-about-section .about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-about-section .about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.home-about-section .about-text h2 {
  margin-bottom: 1.5rem;
}

.home-about-section .about-text p {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Orjinal WordPress galeri bloğunu gizle */
.property-content .wp-block-gallery {
  display: none !important;
}

/* ==========================================================================
   Özel Galeri Slaytı (Thumbnail Slider)
   ========================================================================== */
#property-dynamic-gallery {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}
.property-main-info {
  min-width: 0;
}

.pdg-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pdg-thumbnails-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pdg-thumbnails {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.pdg-thumbnails::-webkit-scrollbar {
  display: none;
}

.pdg-arrow {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 36px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pdg-arrow:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.pdg-arrow-prev {
  margin-right: 0.5rem;
}

.pdg-arrow-next {
  margin-left: 0.5rem;
}

.pdg-thumbnail {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  border: 2px solid transparent;
}

.pdg-thumbnail:hover, .pdg-thumbnail.active {
  opacity: 1;
  border-color: var(--accent-color);
}

/* İletişim kartı hover */
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Blog & Haber Stilleri
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em; /* 2 satır yükseklik garantisi */
}

.blog-card-title a {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--text-dark);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
}

.read-more {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: var(--accent-hover);
}
/* ==========================================================================
   Etiket Stilleri (Tags)
   ========================================================================== */
.property-tags, .post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tag-link, .post-tags a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f1f5f9;
    color: var(--text-dark);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.tag-link:hover, .post-tags a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.post-tags i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}
