/* Public listing page (paylaşılabilir ilan sayfası) */
:root { --ink: #16212b; --ink-2: #44505a; --muted: #7a766e; --line: #ebe6dd; --bg: #fbfaf7; --brand: #1d4a42; --brand-ink: #0f2e29; --accent: #c39a5b; --accent-soft: #f6eedf; --serif: 'Cormorant Garamond', Georgia, serif; --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
.ic { width: 20px; height: 20px; flex: none; stroke-width: 1.8; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }
.ic.xl { width: 46px; height: 46px; stroke-width: 1.3; }
[hidden] { display: none !important; }
.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.s-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.s-top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.s-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--brand-ink); min-width: 0; }
.s-brand img { max-height: 42px; max-width: 200px; object-fit: contain; }
.s-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, var(--accent), #e2c08a); display: grid; place-items: center; color: var(--brand-ink); flex: none; }
.s-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.s-call:hover { border-color: var(--brand); color: var(--brand); }

.s-gallery { position: relative; display: grid; gap: 8px; margin: 22px 0 0; border-radius: 18px; overflow: hidden; height: min(62vh, 540px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.s-gallery a { position: relative; overflow: hidden; display: block; background: #e9e5dd; }
.s-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.s-gallery a:hover img { transform: scale(1.03); filter: brightness(.95); }
.s-gallery a:first-child { grid-row: span 2; }
.s-gallery a.is-extra { display: none; }
.s-g1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.s-g2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.s-g2 a:first-child, .s-g1 a:first-child { grid-row: auto; }
.s-g3 { grid-template-columns: 2fr 1fr; }
.s-g4 { grid-template-columns: 2fr 1fr 1fr; }
.s-g4 a:nth-child(4) { grid-column: span 2; }
.s-more { position: absolute; inset: 0; background: rgba(12, 22, 26, .5); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 20px; }
.s-all { position: absolute; right: 16px; bottom: 16px; background: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font: 700 13.5px var(--font); display: inline-flex; gap: 7px; align-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); color: var(--ink); }
.s-ribbon { position: absolute; left: 18px; top: 18px; background: var(--brand-ink); color: #fff; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px; border-radius: 10px; font-size: 14px; }

.s-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding: 30px 0 60px; align-items: start; }
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.s-tags > span:not(.s-deal) { padding: 4px 10px; border-radius: 99px; background: #f0ece4; }
.s-deal { background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.s-deal.kiralik { background: var(--accent); color: var(--brand-ink); }
.s-tags .s-opt { background: #fbf0d9; color: #a06a12; }
.s-ref { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
h1 { font: 600 44px/1.08 var(--serif); margin: 14px 0 8px; letter-spacing: -.005em; color: var(--brand-ink); }
.s-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; margin: 0; }
.s-key { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.s-key > div { flex: 1 1 110px; padding: 16px 18px; border-right: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.s-key > div:last-child { border-right: 0; }
.s-key .ic { grid-row: span 2; color: var(--accent); width: 26px; height: 26px; }
.s-key b { font-size: 17px; line-height: 1.2; }
.s-key span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.s-sec { margin-top: 40px; }
.s-sec h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 16px; color: var(--brand-ink); }
.s-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 10px; }
.s-desc { white-space: pre-line; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.s-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.s-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.s-facts dt { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.s-facts dt .ic { color: var(--accent); }
.s-facts dd { margin: 0; font-weight: 700; text-align: right; font-size: 14.5px; }
.s-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; }
.s-feats li { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink-2); }
.s-feats .ic { color: #fff; background: var(--brand); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }

.s-card { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 20px 50px rgba(22, 33, 43, .08); }
.s-price-label { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.s-price { font: 700 40px/1.1 var(--serif); color: var(--brand-ink); margin: 4px 0 2px; }
.s-m2 { color: var(--muted); font-size: 14px; font-weight: 600; }
.s-agent { display: flex; gap: 12px; align-items: center; padding: 18px 0; margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-agent b { display: block; }
.s-agent span { font-size: 13px; color: var(--muted); }
.s-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.s-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 14px 16px; border-radius: 12px; font: 800 15px var(--font); border: 0; cursor: pointer; text-decoration: none; transition: filter .15s, transform .05s; }
.s-btn + .s-btn { margin-top: 10px; }
.s-btn:active { transform: translateY(1px); }
.s-btn-wa { background: #25d366; color: #fff; }
.s-btn-call { background: var(--brand); color: #fff; }
.s-btn-ghost { background: #f3f0ea; color: var(--ink); }
.s-btn:hover { filter: brightness(.94); }
.s-dock { display: none; }

.s-foot { border-top: 1px solid var(--line); background: #fff; padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.s-foot b { color: var(--ink); }
.s-legal { margin-top: 10px; font-size: 12px; }
.s-gone { text-align: center; padding: 90px 20px; max-width: 520px; }
.s-gone .ic { color: var(--accent); margin: 0 auto; }
.s-gone h1 { font-size: 36px; }
.s-gone p { color: var(--muted); margin-bottom: 26px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(8, 12, 14, .95); z-index: 200; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb .lb-x { right: 18px; top: 18px; }
.lb .lb-p { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-c { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 99px; }

@media (max-width: 900px) {
  .s-grid { grid-template-columns: 1fr; gap: 10px; padding-bottom: 110px; }
  .s-card { position: static; }
  .s-gallery { height: 300px; margin: 0 -20px; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .s-gallery a:not(:first-child) { display: none; }
  .s-gallery a:first-child { grid-row: auto; }
  h1 { font-size: 32px; }
  .s-facts { grid-template-columns: 1fr; }
  .s-call span { display: none; }
  .s-dock { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 30; }
  .s-dock .s-btn { margin: 0; }
  .s-key > div { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .lb .lb-p, .lb .lb-n { display: none; }
}
