/* ================================================================
   KULE EMLAK — Ana stil dosyası
   Renkleri değiştirmek için sadece :root altındaki değişkenleri
   düzenlemeniz yeterli.
   ================================================================ */

:root {
  /* Marka renkleri — SONRADAN buradan değiştirin */
  --brand:        #143038;   /* koyu arduvaz (ana) */
  --brand-2:      #1f4a56;   /* daha açık arduvaz */
  --brand-ink:    #0e2229;   /* en koyu */
  --accent:       #c19a4b;   /* pirinç / altın vurgu */
  --accent-2:     #a9863a;
  --accent-soft:  #f4ecd9;

  /* Nötr */
  --bg:      #f5f4f1;
  --surface: #ffffff;
  --ink:     #16222a;
  --muted:   #64727c;
  --line:    #e6e8ea;
  --line-2:  #eef0f1;

  --ok:      #2a7d6a;
  --ok-bg:   #e6f2ee;
  --danger:  #c0483f;
  --danger-bg:#fbeceb;
  --warn:    #b07d1a;
  --warn-bg: #fbf3df;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 30px rgba(16,34,41,.08);
  --shadow-sm:0 4px 14px rgba(16,34,41,.07);

  --display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; color: var(--brand-ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.ico { display: inline-block; vertical-align: middle; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { padding: .48rem .85rem; font-size: .85rem; }
.btn--danger { background: var(--danger-bg); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

/* ---------- Eyebrow / bölüm başlığı (imza: pirinç dikey çizgi) ---------- */
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--accent); display:inline-block; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: .3rem 0 0; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-lockup { display:flex; align-items:center; gap:.7rem; }
.brand-lockup .logo { height: 40px; width: auto; }
.brand-lockup .brand-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--brand-ink); line-height: 1; letter-spacing: -.01em; }
.brand-lockup .brand-sub  { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a.navlink { font-weight: 500; font-size: .96rem; color: var(--ink); padding: .3rem 0; position: relative; }
.nav a.navlink::after { content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background: var(--accent); transition: width .2s; }
.nav a.navlink:hover::after, .nav a.navlink.active::after { width:100%; }
.header-cta { display:flex; align-items:center; gap:.8rem; }
.header-phone { display:inline-flex; align-items:center; gap:.45rem; font-weight:600; color: var(--brand); font-family: var(--display); }
.nav-toggle { display:none; background:none; border:1px solid var(--line); border-radius:10px; padding:.4rem; color:var(--brand-ink); cursor:pointer; }

/* ================================================================
   HERO + ARAMA PANELİ (imza öğe)
   ================================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14,34,41,.72) 0%, rgba(14,34,41,.86) 100%),
    radial-gradient(1200px 500px at 80% -10%, #24505c 0%, transparent 60%),
    var(--brand);
}
/* mimari "kule" dikey çizgi dokusu */
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.10;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 74px 120px; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { color:#fff; font-size: clamp(2rem, 5.5vw, 3.4rem); max-width: 15ch; margin-top:.6rem; }
.hero p.lead { color: #d8e2e5; font-size: 1.08rem; max-width: 46ch; }

.search-panel {
  position: relative; z-index: 2; margin: -70px auto 0; max-width: var(--wrap);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 18px;
}
.search-tabs { display:flex; gap:.4rem; margin-bottom: 14px; }
.search-tabs .tab {
  font-family: var(--display); font-weight:600; font-size:.9rem;
  padding:.5rem 1.1rem; border-radius:999px; border:1px solid var(--line);
  color: var(--muted); cursor:pointer; background:#fff;
}
.search-tabs .tab.active { background: var(--brand); color:#fff; border-color: var(--brand); }
.search-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 12px; align-items:end; }
.field { display:flex; flex-direction:column; gap:.35rem; }
.field label { font-size:.75rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color: var(--muted); }
.field select, .field input {
  font-family: var(--body); font-size:.95rem; padding:.7rem .8rem;
  border:1px solid var(--line); border-radius: var(--radius-sm); background:#fff; color:var(--ink);
  width:100%; appearance:none;
}
.field select:focus, .field input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search-grid .btn { height: 46px; }

/* ================================================================
   İLAN KARTLARI
   ================================================================ */
.section { padding-block: 64px; }
.cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s;
  display:flex; flex-direction:column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .media { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg,#e9edee,#dfe5e6); overflow:hidden; }
.card .media img { width:100%; height:100%; object-fit: cover; }
.card .tag {
  position:absolute; top:12px; left:12px; z-index:2;
  font-family: var(--display); font-weight:600; font-size:.72rem; letter-spacing:.04em;
  padding:.32rem .7rem; border-radius:999px; color:#fff; background: var(--accent);
}
.card .tag--kiralik { background: var(--brand-2); }
.card .tag--proje   { background: var(--brand-ink); }
.card .price-badge {
  position:absolute; bottom:12px; left:12px; z-index:2;
  background: rgba(14,34,41,.92); color:#fff; font-family: var(--display); font-weight:700;
  padding:.4rem .8rem; border-radius: 10px; font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.card .body { padding: 16px 16px 18px; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.card .place { display:inline-flex; align-items:center; gap:.35rem; color: var(--muted); font-size:.86rem; }
.card .place .ico { color: var(--accent-2); width:16px; height:16px; }
.card h3 { font-size: 1.08rem; margin: 0; }
.card h3 a:hover { color: var(--accent-2); }
.specs { display:flex; flex-wrap:wrap; gap:.9rem; margin-top: auto; padding-top:.7rem; border-top:1px solid var(--line-2); color: var(--ink); }
.specs .spec { display:inline-flex; align-items:center; gap:.35rem; font-size:.86rem; }
.specs .spec .ico { color: var(--brand-2); width:17px; height:17px; }

/* boş durum */
.empty { text-align:center; padding: 60px 20px; color: var(--muted); border:1px dashed var(--line); border-radius: var(--radius); background:#fff; }

/* ================================================================
   İLAN DETAY
   ================================================================ */
.detail-head { padding-block: 30px 10px; }
.breadcrumb { font-size:.85rem; color:var(--muted); margin-bottom:.6rem; display:flex; gap:.4rem; flex-wrap:wrap; }
.breadcrumb a:hover { color: var(--accent-2); }
.detail-title { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; flex-wrap:wrap; }
.detail-title h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.detail-price { font-family: var(--display); font-weight:700; font-size: 1.7rem; color: var(--brand-ink); white-space:nowrap; font-variant-numeric: tabular-nums; }
.detail-price .type { display:block; font-size:.8rem; color: var(--accent-2); letter-spacing:.06em; text-transform:uppercase; }

.detail-grid { display:grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items:start; padding-bottom: 60px; }

/* galeri */
.gallery .main { border-radius: var(--radius); overflow:hidden; aspect-ratio: 16/10; background:#e9edee; border:1px solid var(--line); }
.gallery .main img { width:100%; height:100%; object-fit: cover; cursor: zoom-in; }
.gallery .thumbs { display:grid; grid-template-columns: repeat(5,1fr); gap:10px; margin-top:10px; }
.gallery .thumbs img { aspect-ratio:1; object-fit:cover; border-radius:10px; cursor:pointer; border:2px solid transparent; }
.gallery .thumbs img.active { border-color: var(--accent); }

.panel { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel .panel-h { padding: 16px 18px; border-bottom:1px solid var(--line-2); font-family:var(--display); font-weight:700; }
.panel .panel-b { padding: 18px; }

.facts { display:grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--line-2); border-radius: var(--radius-sm); overflow:hidden; }
.facts div { background:#fff; padding: 12px 14px; }
.facts dt { font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; color: var(--muted); margin-bottom:2px; }
.facts dd { margin:0; font-weight:600; font-family: var(--display); }

.desc { line-height:1.8; color:#2a3740; white-space: pre-line; }

/* iletişim / bilgi al kutusu */
.contact-card .agent { display:flex; align-items:center; gap:.8rem; padding-bottom:14px; border-bottom:1px solid var(--line-2); margin-bottom:14px; }
.contact-card .agent .badge { width:46px; height:46px; border-radius:12px; background: var(--accent-soft); color: var(--accent-2); display:grid; place-items:center; font-family:var(--display); font-weight:700; }
.contact-card .agent b { font-family:var(--display); display:block; }
.form-row { display:flex; flex-direction:column; gap:.35rem; margin-bottom:12px; }
.form-row label { font-size:.8rem; font-weight:600; color: var(--muted); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--body); font-size:.95rem; padding:.7rem .8rem; border:1px solid var(--line);
  border-radius: var(--radius-sm); background:#fff; color:var(--ink); width:100%;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.btn.block { width:100%; justify-content:center; }
.contact-actions { display:flex; gap:.6rem; margin-top:10px; }
.contact-actions .btn { flex:1; justify-content:center; }

/* ================================================================
   FLASH
   ================================================================ */
.flash { padding:.8rem 1rem; border-radius: var(--radius-sm); margin-bottom:1rem; font-weight:500; }
.flash--ok { background: var(--ok-bg); color: var(--ok); }
.flash--error { background: var(--danger-bg); color: var(--danger); }

/* ================================================================
   FİLTRE ÇUBUĞU (listings.php)
   ================================================================ */
.filter-bar { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding:16px; margin-bottom: 26px; }
.filter-grid { display:grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items:end; }
.result-meta { display:flex; justify-content:space-between; align-items:center; margin-bottom: 16px; flex-wrap:wrap; gap:.6rem; }
.result-meta .count b { font-family: var(--display); }

/* sayfalama */
.pagination { display:flex; gap:.4rem; justify-content:center; margin-top: 40px; flex-wrap:wrap; }
.pagination a, .pagination span {
  min-width: 42px; height:42px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:12px; background:#fff; font-family:var(--display); font-weight:600; color:var(--ink);
}
.pagination a:hover { border-color: var(--brand); }
.pagination .current { background: var(--brand); color:#fff; border-color: var(--brand); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--brand-ink); color: #c7d3d6; margin-top: 60px; }
.site-footer .wrap { padding-block: 54px 26px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color:#fff; font-size:1rem; margin-bottom:1rem; }
.site-footer a:hover { color: var(--accent); }
.footer-brand .brand-name { color:#fff; font-family:var(--display); font-weight:700; font-size:1.15rem; }
.footer-brand .logo { height:40px; margin-bottom:14px; }
.footer-links { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.6rem; font-size:.95rem; }
.footer-contact li { display:flex; gap:.6rem; align-items:flex-start; margin-bottom:.7rem; font-size:.95rem; }
.footer-contact .ico { color: var(--accent); margin-top:2px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:30px; padding-top:20px; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#8ea1a5; }

/* ================================================================
   MOBİL
   ================================================================ */
@media (max-width: 960px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .btn { grid-column: 1 / -1; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 74px 0 auto 0; background:#fff; border-bottom:1px solid var(--line);
         flex-direction: column; align-items: stretch; gap:0; padding: 8px 22px 18px;
         transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: .9rem 0; border-bottom:1px solid var(--line-2); }
  .nav a.navlink::after { display:none; }
  .header-phone span { display:none; }
  .nav-toggle { display:inline-flex; }
  .search-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .gallery .thumbs { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; top:0; right:0; bottom:0; left:0; background: rgba(8,18,22,.94); display:none; align-items:center; justify-content:center; z-index:100; padding: 20px; -webkit-user-select:none; user-select:none; }
.lightbox.open { display:flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; -webkit-touch-callout:none; }
.lightbox .lb-close { position:absolute; top:14px; right:16px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; color:#fff; background:rgba(0,0,0,.4); border:none; border-radius:50%; cursor:pointer; z-index:2; }
.lightbox .lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; display:flex; align-items:center; justify-content:center; color:#fff; background:rgba(0,0,0,.4); border:none; border-radius:50%; cursor:pointer; z-index:2; -webkit-tap-highlight-color:transparent; }
.lightbox .lb-nav:hover { background:rgba(0,0,0,.6); }
.lightbox .lb-prev { left:14px; }
.lightbox .lb-next { right:14px; }
.lightbox .lb-prev svg { transform: scaleX(-1); }
.lightbox .lb-nav svg { width:26px; height:26px; }
.lightbox .lb-count { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); color:#fff; background:rgba(0,0,0,.5); font-size:.85rem; padding:5px 12px; border-radius:20px; z-index:2; }
@media (max-width:520px){
  .lightbox .lb-nav { width:42px; height:42px; }
  .lightbox .lb-prev { left:6px; }
  .lightbox .lb-next { right:6px; }
  .lightbox img { max-width:96vw; max-height:80vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* İlan detay — özellik etiketleri */
.feat-tags { display:flex; flex-wrap:wrap; gap:8px; }
.feat-tag { display:inline-flex; align-items:center; gap:6px; background:var(--accent-soft,#f3ede1); color:var(--brand-ink,#1a2b32); border:1px solid var(--line,#e2e8e9); border-radius:20px; padding:6px 14px; font-size:.88rem; }
.feat-tag::before { content:"✓"; color:var(--accent,#b8894a); font-weight:700; }
