/* Denizli'den Alıyorum Satıyorum – site stilleri */
:root {
  /* Tema değişkenleri: yönetim panelindeki "Görünüm" ayarları /tema.css ile bunların üzerine yazar */
  --brand: #0b7a75;
  --brand-dark: #075955;
  --brand-50: #e8f5f4;
  --brand-100: #cbe9e6;
  --accent: #c2501c;
  --accent-dark: #a2421a;
  --on-brand: #ffffff;
  --text: #1b2627;
  --text-strong: var(--text-strong);
  --muted: #5b6a6c;
  --border: #e1e7e6;
  --bg: #f5f7f6;
  --card: #ffffff;
  --surface: #ffffff;
  --input-bg: #ffffff;
  --header-bg: #ffffff;
  --header-text: #1b2627;
  --header-border: #e1e7e6;
  --footer-bg: var(--footer-bg);
  --footer-text: var(--footer-text);
  --footer-link: var(--footer-link);
  --footer-border: var(--footer-border);
  --hero-1: #0b7a75;
  --hero-2: #0c827c;
  --hero-3: #118079;
  --hero-text: #ffffff;
  --gallery-bg: var(--gallery-bg);
  --danger: #c0392b;
  --success: #1e8449;
  --success-bg: var(--success-bg); --success-border: var(--success-border); --success-text: var(--success-text);
  --danger-bg: var(--danger-bg); --danger-border: var(--danger-border); --danger-text: var(--danger-text);
  --warn-bg: var(--warn-bg); --warn-border: var(--warn-border); --warn-tag-bg: var(--warn-tag-bg);
  --muted-bg: var(--muted-bg);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 999px;
  --shadow: 0 1px 2px rgba(16, 40, 40, .06), 0 4px 16px rgba(16, 40, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  --head-weight: 800;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-family: var(--font-head); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon.fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 100; }

/* ---------- Üst bölüm ---------- */
.topbar { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); position: sticky; top: 0; z-index: 20; }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.logo img { width: 40px; height: 40px; }
.logo .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.logo .wordmark small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--header-small, var(--brand)); font-weight: 700; }
.logo .wordmark strong { font-size: 1.05rem; font-weight: var(--head-weight); letter-spacing: -.01em; font-family: var(--font-head); color: var(--header-text); }
.header-search { flex: 1; display: flex; max-width: 560px; }
.header-search input { flex: 1; border: 1.5px solid var(--border); border-right: 0; border-radius: var(--radius-btn) 0 0 var(--radius-btn); padding: 10px 16px; font: inherit; min-width: 0; background: var(--bg); color: var(--text); }
.header-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.header-search button { border: 0; background: var(--header-btn, var(--brand)); color: var(--on-brand); padding: 0 18px; border-radius: 0 var(--radius-btn) var(--radius-btn) 0; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.linklike { display: inline-flex; align-items: center; gap: 6px; color: var(--header-text); padding: 8px 10px; border-radius: 8px; font-weight: 500; position: relative; text-decoration: none; }
.nav a:hover, .nav button.linklike:hover { background: var(--header-hover, var(--bg)); text-decoration: none; }
.nav .badge { position: absolute; top: 2px; left: 22px; background: var(--accent); color: var(--on-brand); border-radius: 999px; font-size: .68rem; padding: 0 5px; min-width: 17px; text-align: center; line-height: 17px; font-weight: 700; }
.nav .label { display: inline; }
.menu { position: relative; }
.menu summary { color: var(--header-text); list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--header-hover, var(--bg)); }
.menu .dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 210px; padding: 6px; z-index: 30; }
.menu .dropdown a, .menu .dropdown button { display: flex; width: 100%; padding: 9px 12px; color: var(--text); border-radius: 8px; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.menu .dropdown a:hover, .menu .dropdown button:hover { background: var(--bg); text-decoration: none; }
.menu .dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------- Düğmeler ve formlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: var(--radius-btn); padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--on-brand); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--surface); border-color: var(--danger-border); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; font: inherit; color: var(--brand); cursor: pointer; padding: 0; }

.field { margin-bottom: 16px; }
.field label, .label-text { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .error, .error-text { color: var(--danger); font-size: .85rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: var(--input-bg); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.segmented { display: inline-flex; background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.segmented label { margin: 0; font-weight: 500; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }

/* ---------- Kutular ---------- */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid; }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.alert-error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-dark); }
main { min-height: 60vh; padding: 24px 0 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; color: var(--brand-100); margin-bottom: 8px; }

/* ---------- Ana sayfa ---------- */
.hero { background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%); color: var(--hero-text); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 520px; height: 320px; background: url('/static/img/terraces.svg') no-repeat center / contain; opacity: .18; pointer-events: none; }
.hero .container { padding-top: 44px; padding-bottom: 52px; position: relative; z-index: 1; }
.hero h1 { font-size: 2.1rem; max-width: 680px; letter-spacing: -.02em; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 580px; margin: 0 0 24px; }
.hero-search { display: flex; gap: 8px; background: var(--surface); border-radius: 16px; padding: 8px; max-width: 760px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.hero-search input, .hero-search select { border: 0; box-shadow: none !important; }
.hero-search input { flex: 2; }
.hero-search select { flex: 1; border-left: 1px solid var(--border); border-radius: 0; }
.hero-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.hero-actions a.light { color: var(--on-brand); text-decoration: underline; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; color: var(--text); transition: transform .15s, box-shadow .15s; text-decoration: none !important; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.cat-tile .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 10px; }
.cat-tile .ic .icon { width: 26px; height: 26px; }
.cat-tile strong { display: block; font-size: .9rem; line-height: 1.25; }
.cat-tile small { color: var(--muted); font-size: .78rem; }
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo .panel { display: flex; gap: 16px; align-items: center; }
.promo .panel .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--warn-tag-bg); color: var(--accent); display: grid; place-items: center; flex: none; }

/* ---------- İlan kartları ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card a.cover { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card .thumb { aspect-ratio: 4 / 3; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-100); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .icon { width: 44px; height: 44px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .price { font-weight: 800; font-size: 1.08rem; }
.card .price.free { color: var(--success); }
.card .title { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-dark); }
.tag-wanted { background: var(--warn-tag-bg); color: var(--accent-dark); }
.tag-free { background: var(--success-bg); color: var(--success); }
.tag-muted { background: var(--muted-bg); color: var(--muted); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.card .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }

/* ---------- Arama ---------- */
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; }
.filters h3 { font-size: .95rem; margin-top: 18px; }
.filters h3:first-child { margin-top: 0; }
.filters .cat-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.filters .cat-list li a { display: block; padding: 4px 0; color: var(--text); }
.filters .cat-list li a.active { color: var(--brand); font-weight: 700; }
.filters .cat-list ul { list-style: none; padding-left: 14px; margin: 2px 0 6px; border-left: 2px solid var(--brand-50); }
.price-range { display: flex; gap: 8px; align-items: center; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.result-bar select { width: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; font-size: .85rem; color: var(--text); }
.chip:hover { border-color: var(--danger); color: var(--danger); text-decoration: none; }
.filters-toggle { display: none; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pagination .current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ---------- İlan detayı ---------- */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.gallery .main { aspect-ratio: 4 / 3; background: var(--gallery-bg); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main .icon { width: 72px; height: 72px; color: var(--muted); }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 84px; height: 63px; flex: none; cursor: pointer; background: none; }
.gallery .thumbs button.active { border-color: var(--brand); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-price { font-size: 1.8rem; font-weight: 800; margin: 4px 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 18px 0 0; padding: 0; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 6px 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.description { white-space: pre-line; word-wrap: break-word; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.seller { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex: none; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.safety { background: var(--warn-bg); border-color: var(--warn-border); font-size: .88rem; }
.safety ul { margin: 6px 0 0; padding-left: 18px; }
.fav-btn.on { color: var(--accent); border-color: var(--warn-border); }
.fav-btn.on .icon { fill: currentColor; }
.owner-bar { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- İlan formu ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.form-section { margin-bottom: 8px; }
.form-section h2 { display: flex; align-items: center; gap: 10px; }
.form-section h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: .9rem; }
.dropzone { border: 2px dashed var(--brand-100); border-radius: var(--radius); padding: 24px; text-align: center; background: var(--brand-50); cursor: pointer; display: block; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.previews figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: var(--on-brand); font-size: .75rem; padding: 3px 6px; }
.previews label.remove { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.6); color: var(--on-brand); font-size: .78rem; padding: 4px 6px; display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; cursor: pointer; }
.tips li { margin-bottom: 8px; }

/* ---------- Hesap ve mesajlar ---------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text); display: flex; gap: 10px; align-items: center; }
.side-nav a.active { background: var(--brand-50); color: var(--brand-dark); font-weight: 700; }
.side-nav a:hover { background: var(--surface); text-decoration: none; }
.list-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.list-row .thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-100); }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.list-row .stats { font-size: .82rem; color: var(--muted); display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.conv-list { list-style: none; margin: 0; padding: 0; }
.conv-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.conv-list a:hover { background: var(--bg); text-decoration: none; }
.conv-list .thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--brand-50); }
.conv-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.conv-list .preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-list .unread .who { font-weight: 800; }
.conv-list .dot { background: var(--accent); color: var(--on-brand); border-radius: 999px; font-size: .75rem; padding: 1px 8px; font-weight: 700; }
.chat { display: flex; flex-direction: column; height: min(70vh, 680px); }
.chat-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.chat-head .thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--brand-50); flex: none; }
.chat-head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 75%; padding: 9px 13px; border-radius: 16px; background: var(--bg); white-space: pre-line; word-wrap: break-word; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.mine { background: var(--brand); color: var(--on-brand); align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.chat-form textarea { min-height: 46px; height: 46px; resize: none; }

/* ---------- Yönetim ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat strong { display: block; font-size: 1.8rem; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--bg); font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
table.data form { display: inline; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--brand); border-color: var(--brand); font-weight: 700; }

/* ---------- Metin sayfaları ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-strong); }
.prose .draft-note { background: var(--warn-bg); border: 1px solid var(--warn-border); padding: 12px 16px; border-radius: 10px; font-size: .9rem; }
.auth-box { max-width: 440px; margin: 0 auto; }

/* ---------- Alt bölüm ---------- */
footer.site { background: var(--footer-bg); color: var(--footer-text); padding: 40px 0 24px; font-size: .9rem; }
footer.site a { color: var(--footer-link); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: var(--on-brand); margin: 0 0 10px; font-size: .95rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .bottom { border-top: 1px solid var(--footer-border); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 16px 18px; display: flex; gap: 16px; align-items: center; z-index: 50; font-size: .9rem; }
.cookie-bar[hidden] { display: none; }
.mobile-post { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar .container { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav .label { display: none; }
  .nav .post-btn { display: none; }
  .search-layout, .account-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .promo { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: 0; border-top: 1px solid var(--border); }
  .list-row { grid-template-columns: 90px 1fr; }
  .list-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .mobile-post { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  body.has-cookie-bar .mobile-post { display: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  table.data { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
  .card .body { padding: 10px; }
  .card .price { font-size: .98rem; }
  .logo .wordmark strong { font-size: .92rem; }
}
.icon.xs { width: 14px; height: 14px; }

/* ---------- Reklam alanları ---------- */
.ad { margin: 20px auto; text-align: center; max-width: 100%; overflow: hidden; clear: both; }
.ad[hidden] { display: none; }
.ad-label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ad-image img { margin: 0 auto; border-radius: 10px; width: auto; height: auto; max-width: 100%; }
.ad-code { min-height: 100px; }
.ad-placeholder { border: 2px dashed var(--brand-100); background: repeating-linear-gradient(45deg, var(--brand-50), var(--brand-50) 10px, var(--surface) 10px, var(--surface) 20px); border-radius: var(--radius); padding: 16px; font-size: .88rem; }
.ad-placeholder a { color: var(--brand-dark); display: block; }
.side .ad { margin: 0; }
.grid-ad { grid-column: 1 / -1; }
.grid-ad .ad { margin: 4px 0; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.footer-link { color: var(--footer-link); font-size: inherit; text-align: left; }
.footer-link:hover { text-decoration: underline; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; min-height: 150px; }
.slot-card { scroll-margin-top: 90px; }
.slot-card .slot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.slot-preview { margin-top: 10px; max-width: 360px; }
.slot-preview img { border-radius: 8px; border: 1px solid var(--border); }
pre.sample { background: var(--gallery-bg); color: #d6f0ec; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 820px) { .ad-desktop { display: none !important; } }
@media (min-width: 821px) { .ad-mobile { display: none !important; } }
::placeholder { color: #687679; opacity: 1; }
.ad-listing_side img { width: 100%; max-width: 336px; }
.ad-image img { max-height: 280px; object-fit: contain; }

/* ---------- Duyuru, robot doğrulaması, iletişim ---------- */
.announcement { background: var(--accent); color: var(--on-brand); font-size: .9rem; padding: 8px 0; text-align: center; }
.captcha { margin: 12px 0; min-height: 78px; }
.captcha-note { font-size: .75rem; color: var(--muted); margin: 8px 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.check-list .ok { color: var(--success); font-weight: 700; }
.check-list .warn { color: var(--accent-dark); font-weight: 700; }
.check-list .bad { color: var(--danger); font-weight: 700; }
.badge-count { background: var(--accent); color: var(--on-brand); border-radius: 999px; font-size: .72rem; padding: 0 7px; margin-left: 6px; font-weight: 700; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Paylaşım ---------- */
.share-box strong { display: flex; align-items: center; gap: 8px; }
.share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.share-btn .icon { width: 18px; height: 18px; }
.share-btn .icon .fill, .icon .fill { fill: currentColor; stroke: none; }
.share-whatsapp { background: #0d7339; border-color: #0d7339; color: #fff; }
.share-whatsapp:hover { background: #0a5f2f; }
.share-facebook { background: #1464d6; border-color: #1464d6; color: #fff; }
.share-x { background: #111; border-color: #111; color: #fff; }
.share-telegram { background: #1a73a8; border-color: #1a73a8; color: #fff; }
.share-native { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.share-native[hidden] { display: none; }
.share-copy.copied { border-color: var(--success); color: var(--success); }
.sold-banner { font-size: 1rem; }
.previews label.cover-pick { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,.92); color: var(--text); font-size: .75rem; padding: 2px 8px; border-radius: 999px; display: flex; gap: 4px; align-items: center; margin: 0; font-weight: 600; cursor: pointer; }
.warn-text { color: var(--accent-dark); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding-top: 26px; }
.step + .step { margin-top: 0; }
.step-num { position: absolute; top: -14px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; }
.faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 8px 0 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Erişilebilirlik: klavye odağı ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Güven, öneriler, ilçeler ---------- */
.trust-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-decoration: none !important; }
.trust-0 { background: var(--muted-bg); color: var(--muted); }
.trust-1 { background: var(--brand-50); color: var(--brand-dark); }
.trust-2 { background: var(--brand); color: var(--on-brand); }
.tag-trust { background: var(--brand); color: var(--on-brand); padding: 2px 6px; display: inline-flex; align-items: center; }
.trust-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; }
.trust-list li { display: flex; align-items: center; gap: 6px; }
.trust-list li .icon { color: var(--success); }
.trust-list.mine { flex-direction: column; }
.trust-list li.todo .icon { color: var(--muted); }
.trust-list li.neg { color: var(--danger); }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: -6px 0 18px; font-size: .95rem; opacity: .95; }
.hero-stats strong { font-size: 1.15rem; }
.small-head { font-size: 1rem; color: var(--muted); }
.trending .chips { margin-bottom: 0; }
.district-chips .chip { font-weight: 500; }
.district-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-50), var(--surface)); }
.trusted-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.trusted-card { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none !important; position: relative; }
.trusted-card + .trusted-card { margin-top: 0; }
.trusted-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.trusted-card .rank { position: absolute; top: 8px; right: 12px; font-weight: 800; color: var(--brand-100); font-size: 1.3rem; }

/* ---------- Tema varyasyonları (body sınıfları yönetim panelinden gelir) ---------- */
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.62), rgba(0,0,0,.25)); }
.hero.has-image::after { display: none; }
.logo img.custom-logo { width: auto; height: 42px; max-width: 220px; object-fit: contain; }
/* Kartlar: gölgeli (varsayılan), çerçeveli düz, yükseltilmiş */
.cards-flat .card, .cards-flat .panel, .cards-flat .cat-tile { box-shadow: none; }
.cards-flat .card:hover, .cards-flat .cat-tile:hover { transform: none; box-shadow: none; border-color: var(--brand); }
.cards-raised .card, .cards-raised .cat-tile { border-color: transparent; box-shadow: var(--shadow); }
.cards-raised .card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
/* Ana sayfa üst bölümü: kompakt seçeneği */
.hero-compact .hero .container { padding-top: 26px; padding-bottom: 30px; }
.hero-compact .hero h1 { font-size: 1.6rem; }
/* Koyu temalarda görseller ve gölgeler */
[data-scheme="dark"] .card .thumb, [data-scheme="dark"] .list-row .thumb { background: var(--muted-bg); }
[data-scheme="dark"] .hero-search { background: var(--surface); }
[data-scheme="dark"] img { filter: brightness(.94); }
.theme-preview-bar { position: sticky; top: 0; z-index: 60; background: #111; color: #fff; padding: 8px 0; font-size: .9rem; }
.theme-preview-bar .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.theme-preview-bar form { display: inline; }
.theme-preview-bar .btn { padding: 5px 12px; font-size: .82rem; }
/* Yönetim: tema kartları */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.theme-card { border: 2px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; display: block; margin: 0; font-weight: 400; }
.theme-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.theme-card input { position: absolute; opacity: 0; }
.theme-card .sw { height: 86px; position: relative; }
.theme-card .sw span { position: absolute; bottom: 10px; height: 26px; border-radius: 8px; }
.theme-card .meta { padding: 10px 12px; }
.theme-card .meta strong { display: block; }
.color-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.color-row input[type=color] { width: 100%; height: 42px; padding: 2px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--input-bg); }
.contrast-ok { color: var(--success); font-weight: 700; } .contrast-bad { color: var(--danger); font-weight: 700; }
.social-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--footer-border); border-radius: 999px; padding: 5px 12px; font-size: .85rem; }
.kunye { margin: 0; font-size: .9rem; }
.kunye dt { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.kunye dd { margin: 0; font-weight: 600; }
.setup-box { max-width: 820px; margin: 0 auto; }
.step-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .9rem; margin-right: 6px; vertical-align: middle; }
.page-head { flex-wrap: wrap; }
.category-intro { flex-basis: 100%; order: 3; margin: 2px 0 0; max-width: 820px; font-size: .95rem; }
.district-intro { margin: 6px 0 8px; max-width: 760px; }
.seo-text { max-width: 900px; color: var(--muted); font-size: .95rem; }
.seo-text h2 { color: var(--text); font-size: 1.15rem; }
.footer-links { border-top: 1px solid rgba(127,127,127,.25); margin-top: 18px; padding-top: 12px; font-size: .85rem; line-height: 1.9; }
.footer-links p { margin: 0 0 6px; }
.footer-links a { white-space: nowrap; }

/* ---------- 1.1: Satıcı rütbeleri ---------- */
.rank-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; text-decoration: none !important; border: 1px solid transparent; line-height: 1.4; }
.rank-badge .medal { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; padding-right: 5px; margin-right: 1px; border-right: 1px solid currentColor; opacity: .85; }
.rank-yeni { background: var(--muted-bg); color: var(--muted); }
.rank-bronz { background: #f6e4d3; color: #6b3a12; border-color: #e2b38a; }
.rank-gumus { background: #e7ebef; color: #333f4d; border-color: #b9c2cc; }
.rank-altin { background: #fbf0c7; color: #5f4500; border-color: #e3c25b; }
.rank-elmas { background: #dcf2fa; color: #0a4a66; border-color: #7cc7e2; }
.tag-trust.rank-gumus, .tag-trust.rank-altin, .tag-trust.rank-elmas { border: 1px solid; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.7rem; }
.rank-ring-bronz { box-shadow: 0 0 0 3px #e2b38a; } .rank-ring-gumus { box-shadow: 0 0 0 3px #b9c2cc; }
.rank-ring-altin { box-shadow: 0 0 0 3px #e3c25b; } .rank-ring-elmas { box-shadow: 0 0 0 3px #7cc7e2; }

/* Satıcı profili */
.profile-head .seller { align-items: center; flex-wrap: wrap; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; }
.profile-about { margin: 14px 0 0; white-space: pre-line; color: var(--text-strong); max-width: 760px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 18px 0 12px; }
.profile-stats > * { background: var(--muted-bg); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.profile-stats strong { font-size: 1.15rem; color: var(--text-strong); }
.profile-stats strong small { font-size: .75rem; color: var(--muted); font-weight: 600; }
.profile-stats span { font-size: .78rem; color: var(--muted); }
a.profile-stats > *:hover, .profile-stats a:hover { outline: 2px solid var(--brand-100); }
.score-bar { height: 8px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } .profile-actions { margin-left: 0; width: 100%; } }
.grid-sold .card { opacity: .75; }
.seller-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.follow-btn.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Kategoriye özel ilan detayları */
.attr-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.attr-grid .field { margin-bottom: 10px; }
.attr-grid .attr-bool { align-self: end; }
.attr-note { grid-column: 1 / -1; margin: 0; }
.req-mark { color: var(--danger); font-weight: 700; }
.attr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; }
.attr-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding: 8px 0; font-size: .92rem; }
.attr-list dt { color: var(--muted); }
.attr-list dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 640px) { .attr-list { grid-template-columns: 1fr; } }
.card .spec { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.attr-filters { display: grid; gap: 4px; }
.attr-filters select, .attr-filters .price-range { margin-bottom: 8px; }
.attr-grid[hidden], [data-attr-panel][hidden] { display: none !important; }
.rank-badge { white-space: nowrap; }

/* ---------- 1.1.2: galeri ve tam ekran görüntüleyici ---------- */
.gallery .main { position: relative; isolation: isolate; }
.gallery .main::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--bg) center / cover no-repeat; filter: blur(26px) brightness(.72); opacity: .95; }
.gallery .main img[data-main] { cursor: zoom-in; position: relative; }
.zoom-btn { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; }
.zoom-btn .icon { width: 16px; height: 16px; }
.zoom-btn:hover, .zoom-btn:focus-visible { background: rgba(0,0,0,.8); }
@media (max-width: 700px) { .gallery .main { aspect-ratio: 1 / 1; } }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5,10,10,.94); display: grid; place-items: center; padding: 48px 12px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; border-radius: 999px; display: grid; place-items: center; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.28); outline: 2px solid #fff; }
.lb-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 1.2rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(0,0,0,.4); padding: 3px 12px; border-radius: 999px; }
.gallery .main img[data-main] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox img { width: auto; height: auto; max-width: calc(100vw - 24px); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
.gallery .main .zoom-btn .icon { width: 16px; height: 16px; color: #fff; }
