/* İlan AI — tasarım sistemi (açık/koyu tema, mobil öncelikli) */
:root {
  /* Palet: Kum + Siyah (minimal lüks). Açık paletin sabitleri --l-* olarak da
     saklanır; ana sayfa koyu temada bile bunları kullanır (bkz. home.css). */
  --l-bg: #f2ede4;
  --l-surface: #fffefb;
  --l-surface-2: #e8e1d5;
  --l-text: #141414;
  --l-muted: #6b665e;
  --l-border: #ddd5c7;
  --l-primary: #1a1a1a;
  --l-primary-2: #000000;
  --l-accent: #b08d3f;
  --l-deal: #2c8a55;
  --l-over: #b3413a;
  --l-fair: #7a746b;
  --l-shadow: 0 8px 26px rgba(60, 50, 34, 0.09);
  --l-shadow-lg: 0 16px 42px rgba(60, 50, 34, 0.16);

  --bg: var(--l-bg);
  --surface: var(--l-surface);
  --surface-2: var(--l-surface-2);
  --text: var(--l-text);
  --muted: var(--l-muted);
  --border: var(--l-border);
  --primary: var(--l-primary);
  --primary-2: var(--l-primary-2);
  --accent: var(--l-accent);
  --deal: var(--l-deal);
  --over: var(--l-over);
  --fair: var(--l-fair);
  --radius: 14px;
  --shadow: var(--l-shadow);
  --shadow-lg: var(--l-shadow-lg);
}
html[data-theme="dark"] {
  --bg: #14120f;
  --surface: #1d1a15;
  --surface-2: #27231c;
  --text: #f3efe6;
  --muted: #a9a297;
  --border: #39332a;
  --primary: #a5822f;
  --primary-2: #c39a44;
  --accent: #d3b062;
  --deal: #4fa877;
  --over: #d1685f;
  --fair: #9d968b;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.55; min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
label { font-size: 0.86rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
main { flex: 1; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo .ai { color: var(--primary); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a {
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
  padding: 8px 9px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.main-nav a.cta {
  background: var(--primary); color: #fff; margin-left: 6px;
}
.main-nav a.cta:hover { background: var(--primary-2); }
.icon-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem;
}
.fav-count {
  position: absolute; top: -6px; right: -6px; background: var(--over); color: #fff;
  font-size: 0.66rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
}

/* ── Ana sayfa: Google sadeliğinde merkez arama ─────── */
body[data-page="index"] main { display: flex; flex-direction: column; }
.g-hero {
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(24px, 7vh, 64px) 16px clamp(28px, 6vh, 48px);
}
.g-logo { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.g-logo span:not(.logo-mark) { color: var(--accent); }
.logo-mark.big { width: clamp(52px, 9vw, 68px); height: clamp(52px, 9vw, 68px); border-radius: 18px; }
.g-tag { color: var(--muted); margin: 14px 0 24px; font-size: 1.02rem; }
.g-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.g-search {
  display: flex; align-items: center; gap: 6px; width: min(680px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow); padding: 6px 6px 6px 18px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.g-search:hover { box-shadow: var(--shadow-lg); }
.g-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent), var(--shadow-lg); }
.g-search-ico { color: var(--muted); font-size: 1rem; }
.g-search input { border: none; background: transparent; padding: 12px 4px; font-size: 1.05rem; min-width: 0; flex: 1; }
.g-search input::-webkit-search-cancel-button { cursor: pointer; }
.g-search input:focus { outline: none; }
.g-mic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; font-size: 1.15rem; }
.g-mic:hover { background: var(--surface-2); }
.g-mic.on { background: var(--over); animation: g-pulse 1.2s ease-in-out infinite; }
@keyframes g-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--over) 45%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .g-mic.on { animation: none; } }
.g-search .btn { border-radius: 999px; padding: 12px 26px; }
.g-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; max-width: 720px; }
.g-quick .chip { padding: 8px 14px; font-size: 0.88rem; }
.g-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.g-note { color: var(--muted); font-size: 0.82rem; margin-top: 20px; max-width: 480px; }
@media (max-width: 560px) {
  .g-hero { min-height: auto; padding-top: 28px; }
  .g-search { padding-left: 14px; }
  .g-search .btn { padding: 12px 16px; }
  .g-search-ico { display: none; }
  /* Telefonda örnekler tek satır kayar — ilk ekran kalabalık olmasın */
  .g-quick { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .g-quick::-webkit-scrollbar { display: none; }
  .g-quick .chip { flex: 0 0 auto; }
  .g-actions .btn { flex: 1 1 0; }
}

/* ── Düğmeler / sekmeler ────────────────────────────── */
.tab-btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.88rem;
}
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 12px 22px; font-weight: 700; white-space: nowrap;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: var(--primary-2); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.warn { background: var(--accent); color: #241a00; }
.btn.sm { padding: 8px 14px; font-size: 0.9rem; }
.chip {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 11px; font-size: 0.8rem; color: var(--muted); margin: 2px;
}
.chip:hover { color: var(--primary); border-color: var(--primary); }
button.chip { cursor: pointer; font: inherit; font-size: 0.8rem; }

/* ── Bölüm başlıkları ───────────────────────────────── */
.section { padding: 42px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--muted); }

/* ── İlan kartları ──────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s;
  position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Kart görseli 16:10 kutuya OTURUR: görsel mutlak konumlanır, böylece dikey
   fotoğraf kartı uzatmaz (kutu içinde kırpılır — vitrin görünümü tutarlı). */
.card .thumb { aspect-ratio: 16/10; background: var(--surface-2); position: relative; overflow: hidden; }
.card .thumb svg,
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.card .price small { color: var(--muted); font-weight: 600; }
.card h3 { font-size: 1rem; line-height: 1.35; }
.card .meta { color: var(--muted); font-size: 0.84rem; display: flex; gap: 10px; flex-wrap: wrap; }
.card .loc { color: var(--muted); font-size: 0.84rem; }
.card a.overlay { position: absolute; inset: 0; z-index: 1; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #fff;
}
.badge-deal { background: var(--deal); }
.badge-fair { background: var(--fair); }
.badge-over { background: var(--over); }
.badge-feat { background: var(--accent); color: #241a00; }
.badge-cat { position: absolute; top: 10px; right: 10px; left: auto; background: rgba(13,18,32,0.72); }
.fav-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,0.9); border: none; width: 34px; height: 34px;
  border-radius: 999px; font-size: 1rem; display: grid; place-items: center; color: #d33;
}
html[data-theme="dark"] .fav-btn { background: rgba(21,28,48,0.9); }

/* ── İlanlar sayfası: filtre + liste ────────────────── */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; padding: 26px 0 50px; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters:not(.open) { display: none; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
}
.filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 80px; display: grid; gap: 12px;
}
.filters h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 0.92rem; }
.toolbar select { width: auto; }
.ai-note {
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 12px; padding: 10px 14px; font-size: 0.9rem; margin-bottom: 14px;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ── Detay sayfası ──────────────────────────────────── */
.detail-title { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.3; margin-bottom: 14px; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 26px 0 50px; align-items: start; }
@media (max-width: 950px) { .detail-layout { grid-template-columns: 1fr; } }
/* Ana fotoğraf KIRPILMAZ: dikey/yatay fark etmeksizin tamamı görünür
   (object-fit: contain). Boşluk kalan kenarlar yumuşak zeminle doldurulur. */
.gallery {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}
.gallery svg { width: 100%; display: block; }
.gallery img {
  width: 100%; display: block;
  height: clamp(300px, 52vh, 480px);
  object-fit: contain;
}
@media (max-width: 700px) { .gallery img { height: clamp(240px, 46vh, 380px); } }
.photo-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.photo-strip img { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.photo-strip img.sel { border-color: var(--primary); }

/* Türe özel alan ipucu (ör. "Tapunuzun üzerinde yazar") */
.kf-hint { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; line-height: 1.35; font-weight: 500; }

/* ── Adım adım kategori seçici (ilan ver) ───────────────── */
.wz-crumb { color: var(--muted); font-size: .88rem; margin-bottom: 14px; min-height: 20px; }
.wz-crumb b { color: var(--text); }
.pick-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.1fr; gap: 12px; align-items: stretch; }
.pick-col { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.pick-col > b { padding: 10px 12px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.pick-col ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: 300px; min-height: 120px; }
.pick-col li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; line-height: 1.3; }
.pick-col li:hover { background: var(--surface-2); }
.pick-col li[aria-selected="true"] { background: var(--primary); color: var(--surface); font-weight: 700; }
.pick-col li.pick-empty { color: var(--muted); cursor: default; font-size: .84rem; }
.pick-col li.pick-empty:hover { background: transparent; }
.pick-done {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; background: var(--surface);
}
.pick-done.on { display: flex; }
.pick-check { width: 52px; height: 52px; border-radius: 50%; background: var(--deal); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.form-crumb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.form-crumb b { color: var(--text); }
@media (max-width: 900px) {
  .pick-cols { grid-template-columns: 1fr 1fr; }
  .pick-col ul { max-height: 210px; }
  .pick-done { grid-column: 1 / -1; }
  /* Sırası gelmemiş sütunu dar ekranda gösterme */
  .pick-col--bos { display: none; }
}
@media (max-width: 520px) { .pick-cols { grid-template-columns: 1fr; } }

/* Bölge fiyatları / rehber içerik sayfaları */
.prose { max-width: 820px; }
.prose h2 { margin: 30px 0 10px; font-size: 1.35rem; }
.prose h3 { margin: 20px 0 8px; font-size: 1.08rem; }
.prose p, .prose li { color: var(--text); margin-bottom: 10px; }
.prose ul, .prose ol { margin-left: 22px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.price-table th { background: var(--surface-2); font-size: 0.85rem; color: var(--muted); }
.price-table td b { color: var(--primary); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 14px 0 28px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq-item summary { font-weight: 700; cursor: pointer; padding: 12px 0; }
.faq-item p { color: var(--muted); padding-bottom: 14px; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 18px; overflow-x: auto; }
.detail-card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 45%; }
@media (max-width: 600px) { .spec-table td:first-child { width: auto; } }
/* Karşılaştırma tablosu: dar ekranda sıkışmak yerine yatay kaydırır */
#compareTable { min-width: 640px; }
#compareTable td:first-child { width: auto; white-space: nowrap; }
.side-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 80px; display: grid; gap: 12px;
}
.side-card .price { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.stat-line { color: var(--muted); font-size: 0.85rem; }
.seller { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--surface-2); border-radius: 10px; }
.seller .avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.est-box { border: 1px dashed var(--primary); border-radius: 12px; padding: 12px; font-size: 0.9rem; }
.est-box b.mid { font-size: 1.15rem; color: var(--primary); }
.range-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--deal), var(--fair), var(--over)); position: relative; margin: 10px 0 2px; }
.range-bar .dot { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 999px; background: var(--surface); border: 3px solid var(--primary); transform: translateX(-50%); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Formlar / sihirbaz ─────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.check-grid label { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--text); font-size: 0.9rem; margin: 0; }
.check-grid input { width: auto; }
.result-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: var(--radius); padding: 24px; margin-top: 20px;
}
.result-panel .big { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--primary); }
.factor-list { list-style: none; margin-top: 12px; font-size: 0.92rem; }
.factor-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.factor-list li b { color: var(--primary); }
.spark { width: 100%; height: 130px; }

/* ── Sohbet (asistan) ───────────────────────────────── */
.chat-wrap { max-width: 760px; margin: 0 auto; }
.chat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  height: 480px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.94rem; white-space: pre-line; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg .mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-top: 8px; display: block; color: var(--text); }
.msg .mini-card b { color: var(--primary); }
.chat-input { display: flex; gap: 10px; margin-top: 12px; }
.typing { display: inline-block; }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); margin-right: 3px; animation: blink 1.2s infinite; font-style: normal; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Yüzen asistan düğmesi */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border: none; border-radius: 999px; padding: 13px 20px; font-weight: 700;
  box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center;
}
/* Dar ekranda yalnız simge (içerikle çakışmayı azaltır) */
@media (max-width: 600px) {
  .fab { padding: 14px 16px; }
  .fab .fab-txt { display: none; }
}

/* ── Breadcrumb / footer / misc ─────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: 1.7rem; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 720px; }
/* Alt boşluk: sabit FAB sayfa sonundaki içeriği/footer'ı kapatmasın */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 78px; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--muted); padding: 3px 0; }
.site-footer a:hover { color: var(--primary); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 14px; }
.copyright { border-top: 1px solid var(--border); padding-top: 16px; text-align: center; font-size: 0.82rem; }

/* ── Yönetim paneli ─────────────────────────────────── */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-box b { font-size: 1.5rem; color: var(--primary); display: block; }
.stat-box span { color: var(--muted); font-size: 0.86rem; }
.admin-table th { text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.admin-table { min-width: 720px; }
.admin-table td .btn { margin-left: 4px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: none; }
.notice { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; color: var(--muted); }

/* ── Ana sayfa portalı ──────────────────────────────── */
.hero-portal {
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 12%, var(--bg)) 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 28px; text-align: center;
}
.hero-h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; letter-spacing: -0.5px; }
.hero-sub { color: var(--muted); margin: 10px auto 20px; max-width: 620px; font-size: 0.98rem; }
.hero-portal .g-tabs { justify-content: center; }
.hero-search { max-width: 760px; margin-inline: auto; }
.hero-quick { margin-top: 16px; }
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; max-width: 860px; margin: 26px auto 0;
}
.stat-strip .stat-box { padding: 12px; }
.stat-strip .stat-box b { font-size: 1.25rem; }

.portal-layout { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; padding: 28px 0 50px; }
@media (max-width: 900px) {
  /* Mobilde önce ilanlar gelir; kategori ağacı içeriğin ALTINA iner */
  .portal-layout { grid-template-columns: 1fr; }
  .portal-main { order: 1; }
  .cat-tree { order: 2; }
}

.cat-tree {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 82px; box-shadow: var(--shadow);
}
@media (max-width: 900px) { .cat-tree { position: static; } }
.cat-tree h2 { font-size: 1rem; margin-bottom: 12px; }
.cat-group { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.cat-group:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.cat-group > b { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.cat-tree a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px; font-size: 0.93rem; color: var(--text);
}
.cat-tree a:hover { background: var(--surface-2); color: var(--primary); }
.cat-tree a span { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.cat-cta { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }

.portal-sec { margin-bottom: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.15rem; }
.sec-head a { font-size: 0.9rem; white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-card b { color: var(--text); font-size: 0.96rem; }
.cat-card span { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
/* Mobilde kategori/bölge kartları iki sütun olur ve bölge listesi 6'ya iner */
@media (max-width: 700px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid > :nth-child(n+7) { display: none; }
  .region-card, .cat-card { padding: 12px; }
  .region-card b, .cat-card b { font-size: 0.92rem; }
  .region-card small, .cat-card span { font-size: 0.78rem; }
}
.region-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: block; transition: transform 0.15s, box-shadow 0.15s;
}
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.region-card b { display: block; color: var(--text); }
.region-card small { color: var(--muted); }
.region-card .rc-count { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.15s, box-shadow 0.15s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tool-card b { color: var(--text); }
.tool-card span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ── AI Analizi kutusu (ilan detayı) ─────────────────── */
.ai-analysis .ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
@media (max-width: 620px) { .ai-analysis .ai-cols { grid-template-columns: 1fr; } }
.ai-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-list li { font-size: 0.9rem; line-height: 1.45; }
.ai-list li span { font-weight: 800; margin-right: 4px; }
.ai-notes { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; color: var(--muted); }

/* ── Sayfalama (ilan listesi) ───────────────────────── */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 26px 0 6px; }
.pager .btn { min-width: 40px; }
.pager .btn[disabled] { opacity: 0.45; pointer-events: none; }
.pager-gap { color: var(--muted); padding: 0 2px; }

/* ── Fiyat düştü rozeti (ilan detayı) ───────────────── */
.price-drop {
  background: color-mix(in srgb, var(--deal) 14%, transparent);
  color: var(--deal); border-radius: 10px; padding: 8px 12px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 4px;
}
.price-drop s { opacity: 0.75; font-weight: 500; }

/* ── Düzenleme penceresi (yönetim paneli) ───────────── */
.modal-back {
  position: fixed; inset: 0; background: rgba(8, 12, 22, 0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 14px; overflow-y: auto; z-index: 50;
}
.modal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px; width: min(880px, 100%);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head b { font-size: 1.05rem; }

/* ── Yazdırma: ilan detayı temiz A4 sayfası olur ────── */
@media print {
  .site-header, .site-footer, .fab, .breadcrumb, .photo-strip,
  .side-card .btn, .side-card button, #similarGrid,
  .detail-card:has(#similarGrid) { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .detail-layout { display: block; }
  .side-card { position: static; border: 1px solid #ccc; margin-top: 12px; page-break-inside: avoid; }
  .detail-card { page-break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}

/* ── İlan açıklaması: satır sonları ve "• madde"ler korunur ───────────── */
.desc-text { white-space: pre-line; }

/* ── İlan formu: fotoğraf sırası (ilk kare kapak) ──────────────────────── */
.photo-order { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.po-item { position: relative; margin: 0; width: 112px; }
.po-item img { width: 112px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.po-item.is-cover img { border: 2px solid var(--accent); }
.po-cover { position: absolute; top: 4px; left: 4px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.po-rm { position: absolute; top: -6px; right: -6px; background: var(--over); color: #fff; border: none; border-radius: 999px; width: 22px; height: 22px; font-size: 11px; line-height: 1; cursor: pointer; }
.po-bar { display: flex; justify-content: space-between; gap: 4px; margin-top: 4px; }
.po-bar button { flex: 1; min-height: 30px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; cursor: pointer; font-size: .8rem; }
.po-bar button:disabled { opacity: .35; cursor: default; }

/* ── AI İlan Stüdyosu ──────────────────────────────────────────────────── */
.studio-card { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.studio-head h2 { font-size: 1.25rem; margin: 10px 0 6px; line-height: 1.3; }
.studio-head p { color: var(--muted); max-width: 780px; margin: 0 0 16px; }
.studio-pill { display: inline-block; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.studio-grid label small, .st-result h3 small { font-weight: 500; color: var(--muted); }
.studio-grid textarea { width: 100%; min-height: 200px; }
.st-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); text-align: center; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.st-drop.on, .st-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.st-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-drop span { color: var(--muted); font-size: .88rem; }
.st-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.st-in { position: relative; }
.st-in img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
.st-in button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 999px; border: none; background: var(--over); color: #fff; font-size: 10px; cursor: pointer; }
.st-errs { flex-basis: 100%; margin: 6px 0 0 18px; color: var(--over); font-size: .85rem; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.st-mode { color: var(--muted); font-size: .85rem; }
.st-progress { margin-top: 14px; display: grid; gap: 6px; }
.st-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.st-progress span { font-size: .88rem; color: var(--muted); }
.st-result { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.st-result h3 { font-size: 1.02rem; margin: 20px 0 10px; }
.st-score-row { display: flex; gap: 18px; align-items: flex-start; }
.st-score-row h3 { margin-top: 2px; }
.st-score { --p: 0; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--sc, var(--accent)) calc(var(--p) * 1%), var(--surface-2) 0); }
.st-score b { font-size: 1.7rem; line-height: 1; }
.st-score small { color: var(--muted); }
.st-score.good { --sc: var(--deal); } .st-score.mid { --sc: var(--accent); } .st-score.low { --sc: var(--over); }
.st-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.st-checks li.ok { color: var(--deal); }
.st-checks li.no { color: var(--over); }
.st-checks small { color: var(--muted); }
.st-warn { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); font-size: .9rem; }
.st-warn ul { margin: 6px 0 0 18px; }
.st-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.st-fact { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; }
.st-fact small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.st-fact.miss { background: transparent; border-style: dashed; color: var(--over); font-weight: 500; }
.st-hint { color: var(--muted); font-size: .88rem; margin: -4px 0 10px; }
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.st-ph { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.st-ph.cover { border: 2px solid var(--accent); }
.st-ph.off { opacity: .55; }
.st-ph-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.st-ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-tag { position: absolute; left: 6px; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #fff; }
.st-tag.cover { top: 6px; background: var(--accent); }
.st-tag.fix { bottom: 6px; background: color-mix(in srgb, var(--primary) 80%, transparent); }
.st-q { position: absolute; top: 6px; right: 6px; min-width: 32px; text-align: center; font-size: .75rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; color: #fff; }
.st-q.good { background: var(--deal); } .st-q.mid { background: var(--accent); } .st-q.low { background: var(--over); }
.st-ph figcaption { padding: 8px 10px 4px; display: grid; gap: 2px; font-size: .85rem; }
.st-ph figcaption span { color: var(--text); }
.st-ph figcaption em { font-style: normal; color: var(--over); font-size: .8rem; }
.st-ph figcaption em.ok { color: var(--deal); }
.st-ph-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 8px; margin-top: auto; }
.st-ph-bar button { flex: 1 1 auto; min-height: 32px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 7px; font-size: .78rem; cursor: pointer; padding: 0 6px; }
.st-ph-bar button:disabled { opacity: .35; cursor: default; }
#stTitle { width: 100%; font-weight: 600; margin-bottom: 8px; }
#stDesc { width: 100%; }
@media (max-width: 760px) {
  .studio-grid { grid-template-columns: 1fr; }
  .st-score-row { flex-direction: column; }
  .st-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── AI İlan Stüdyosu: sekmeler + sohbet + kamera ─────────────────────── */
.st-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.st-tabs button { border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; min-height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.st-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.st-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-chat { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overscroll-behavior: contain; }
.st-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; line-height: 1.45; white-space: pre-line; font-size: .95rem; }
.st-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.st-msg.me { align-self: flex-end; background: var(--primary); color: var(--surface); border-bottom-right-radius: 4px; }
.st-chatbar { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.st-chatbar input { flex: 1; min-width: 0; min-height: 46px; }
.st-mic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 1.3rem; cursor: pointer; }
.st-mic.on { background: var(--over); border-color: var(--over); animation: st-pulse 1.2s ease-in-out infinite; }
@keyframes st-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--over) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .st-mic.on { animation: none; } }
.st-chat-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-chat-tools > * { min-height: 44px; }
.st-cam-btn { cursor: pointer; }
.st-cam-inline { margin-top: 10px; width: 100%; justify-content: center; }
.st-voice-note { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
/* Masaüstünde (fare) kamera düğmesi yalnız metin sekmesinde kaba görünür; dokunmatikte öne çıkar */
@media (hover: hover) and (pointer: fine) { .st-cam-inline { display: none; } }
@media (max-width: 760px) {
  .st-chat { height: 46vh; }
  .st-chat-tools .st-cam-btn { flex: 1 1 100%; justify-content: center; font-size: 1.05rem; min-height: 52px; }
  .st-chat-tools > label.btn.ghost, .st-chat-tools #stTts, .st-chat-tools #stMake { flex: 1 1 auto; }
}
/* Telefonda stüdyo ilk ekrana sığsın: uzun tanıtım metinleri gizlenir,
   sohbetin üstüne binen AI Asistan düğmesi bu sayfada kaldırılır. */
@media (max-width: 760px) {
  body[data-page="ilan-ver"] .page-head p, .studio-head p { display: none; }
  body[data-page="ilan-ver"] .page-head h1 { font-size: 1.5rem; margin-bottom: 0; }
  body[data-page="ilan-ver"] .fab { display: none; }
  .studio-card { padding: 16px; }
  .studio-head h2 { font-size: 1.02rem; margin: 8px 0 10px; }
  .st-tabs button { flex: 1; white-space: nowrap; padding: 10px 4px; font-size: .92rem; }
}

/* ── Güven & iletişim: sahibinden karşılığı özellikler ─────────────────── */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--over); color: #fff; font-size: .7rem; font-weight: 700; margin-left: 2px; }
.license-line { color: var(--deal); }
.safety-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); font-size: .86rem; }
.safety-box ul { margin: 6px 0 4px 18px; color: var(--muted); display: grid; gap: 3px; }
.link-btn { background: none; border: none; color: var(--over); font-weight: 600; padding: 6px 0 0; font-size: .86rem; min-height: 32px; }
.report-box { border: 1px solid color-mix(in srgb, var(--over) 40%, var(--border)); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.report-box[hidden] { display: none; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px 40px 12px 14px; font-size: .9rem; }
.toast button { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; background: transparent; color: var(--muted); }
/* Hesabım › Mesajlarım: konuşmalar */
.convo { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 12px; margin-top: 12px; min-height: 420px; }
.convo-list { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow-y: auto; }
.convo-item { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.convo-item.on { border-color: var(--primary); }
.convo-item.unread { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.convo-item .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--over); }
.convo-who { font-size: .8rem; color: var(--muted); }
.convo-title { font-weight: 700; font-size: .92rem; }
.convo-last { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-item small { color: var(--muted); font-size: .74rem; }
.convo-thread { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; min-height: 420px; }
.convo-head { padding: 12px 14px; border-bottom: 1px solid var(--border); display: grid; gap: 2px; }
.convo-msgs { flex: 1; overflow-y: auto; max-height: 460px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.cmsg { max-width: 80%; padding: 8px 12px; border-radius: 14px; white-space: pre-line; display: grid; gap: 2px; }
.cmsg small { font-size: .7rem; opacity: .7; }
.cmsg.me { align-self: flex-end; background: var(--primary); color: var(--surface); border-bottom-right-radius: 4px; }
.cmsg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.convo-reply { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); align-items: flex-end; }
.convo-empty { color: var(--muted); padding: 18px; }
.convo-thread .notice { margin: 12px; }
@media (max-width: 760px) { .convo { grid-template-columns: 1fr; } .convo-list { max-height: 260px; } }

/* ── İlan ver: adımlar + bölümlü form + önizleme (sahibinden akışı) ───────── */
.iv-head { display: flex; flex-direction: column; gap: 14px; }
.iv-steps { list-style: none; display: flex; align-items: flex-start; counter-reset: s; max-width: 640px; margin: 4px 0 0; padding: 0; }
.iv-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--muted); font-size: .82rem; font-weight: 600; text-align: center; }
.iv-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.iv-steps li:first-child::before { display: none; }
.iv-steps li i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--surface); border: 2px solid var(--border); font-weight: 700; }
.iv-steps li.done::before, .iv-steps li.on::before { background: var(--primary); }
.iv-steps li.done i { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.iv-steps li.on { color: var(--text); }
.iv-steps li.on i { border-color: var(--primary); color: var(--primary); }
.iv-card { padding: 22px; }
.fs { border: none; border-top: 1px solid var(--border); padding: 18px 0 6px; margin: 0; min-width: 0; }
.fs:first-of-type { border-top: none; padding-top: 4px; }
.fs legend { font-size: 1.02rem; font-weight: 700; padding: 0 0 12px; color: var(--text); float: left; width: 100%; }
.fs legend + * { clear: both; }
.fs legend small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.fs > * + * { margin-top: 12px; }
.form-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.g4 .kf-wide { grid-column: span 2; }
.req { color: var(--over); font-weight: 700; }
.fs-tapu { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)) !important; padding: 16px 16px 10px; margin-top: 14px; }
.link-ai { display: inline-block; margin-top: 6px; background: none; border: none; padding: 4px 0; color: var(--accent); font-weight: 600; font-size: .84rem; min-height: 32px; }
.link-ai:hover { text-decoration: underline; }
.iv-error { margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; background: color-mix(in srgb, var(--over) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--over) 45%, var(--border)); color: var(--over); font-size: .92rem; font-weight: 600; }
.iv-error[hidden] { display: none; }
.iv-error.iv-ok { background: color-mix(in srgb, var(--deal) 10%, var(--surface)); border-color: color-mix(in srgb, var(--deal) 45%, var(--border)); color: var(--text); font-weight: 500; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--over); outline: 2px solid color-mix(in srgb, var(--over) 25%, transparent); }
.iv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.iv-actions .btn { min-height: 46px; padding-inline: 26px; }
.iv-feat { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); font-size: .95rem; }
.iv-feat input { width: auto; }
.iv-feat[hidden] { display: none; }
.iv-h2 { font-size: 1.2rem; margin: 0 0 14px; }
.iv-prev { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.ivp-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.ivp-nophoto { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: var(--surface-2); }
.ivp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.ivp-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.ivp-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.ivp-info h3 { font-size: 1.05rem; margin: 4px 0 12px; line-height: 1.35; }
.ivp-facts { display: grid; gap: 0; margin: 0 0 14px; }
.ivp-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ivp-facts dt { color: var(--muted); } .ivp-facts dd { font-weight: 600; text-align: right; }
.ivp-desc { font-size: .9rem; color: var(--text); max-height: 220px; overflow-y: auto; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.ivp-check { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); font-size: .9rem; }
.ivp-check ul { list-style: none; margin: 8px 0 6px; display: grid; gap: 6px; padding: 0; }
.ivp-check li.ok { color: var(--deal); } .ivp-check li.warn { color: var(--over); }
.iv-done { text-align: center; padding: 36px 22px; }
.iv-done h2 { margin: 8px 0; }
.iv-done p { color: var(--muted); margin: 6px auto; max-width: 520px; }
.ivd-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--deal); color: #fff; font-size: 2rem; font-weight: 700; }
.iv-tips { max-width: 760px; font-size: .9rem; color: var(--muted); }
.iv-tips summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 6px 0; min-height: 32px; }
.iv-tips ol { margin: 6px 0 0 20px; display: grid; gap: 4px; }
@media (max-width: 1000px) { .form-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .iv-prev { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-grid.g4 { grid-template-columns: 1fr; }
  .form-grid.g4 .kf-wide { grid-column: auto; }
  .iv-card { padding: 16px; }
  .iv-steps li { font-size: .72rem; }
  .iv-actions .btn { flex: 1 1 100%; }
  .iv-actions { position: sticky; bottom: 0; background: var(--surface); padding: 10px 0; margin-inline: -4px; }
}
.kf-hint[hidden] { display: none; }

/* ── Yasal sayfalar + alt bilgi bağlantıları ───────────────────────────── */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 10px 0 4px; font-size: .82rem; }
.footer-legal a { color: var(--muted); }
.legal { max-width: 860px; }
.legal h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.65; font-size: .95rem; }
.legal ul { margin: 6px 0 6px 20px; display: grid; gap: 6px; }
.legal table { margin: 8px 0; }
