/* ============================================================
   KONAK Gayrimenkul — Tasarım Sistemi
   Canlı accent + modern grotesk + dolu layout
   ============================================================ */

:root {
  --ink:      #0B0E14;
  --ink-2:    #151A23;
  --ink-3:    #232a37;
  --paper:    #ffffff;
  --surface:  #f5f6f8;
  --surface-2:#eceef2;
  --line:     #e4e7ec;
  --muted:    #6b7280;
  --muted-2:  #9aa1ad;

  --accent:   #ff4d2e;       /* vermillion — satılık / ana vurgu */
  --accent-d: #e23a1c;
  --teal:     #0ea579;       /* kiralık */
  --teal-d:   #0b8a66;
  --gold:     #f5b301;

  --radius:   18px;
  --radius-s: 12px;
  --radius-l: 28px;

  --shadow-sm: 0 1px 2px rgba(11,14,20,.06), 0 2px 6px rgba(11,14,20,.04);
  --shadow-md: 0 6px 16px rgba(11,14,20,.08), 0 18px 40px rgba(11,14,20,.08);
  --shadow-lg: 0 24px 60px rgba(11,14,20,.18);

  --maxw: 1280px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #ff7a52);
  display: grid; place-items: center;
  box-shadow: 0 5px 14px rgba(255,77,46,.3);
}
.brand .logo-mark svg { width: 20px; height: 20px; }
.brand .brand-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; line-height: 1; }
.brand small { color: var(--muted); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; transition: transform .15s ease, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255,77,46,.32); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,77,46,.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; background: var(--surface); }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--teal-d); background: rgba(14,165,121,.1); padding: 7px 14px; border-radius: 100px; margin-bottom: 22px; }
.hero-tag b { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(40px, 5vw, 62px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stats .num { font-family: var(--font-head); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.hero-stats .lbl { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-visual .main-img { border-radius: var(--radius-l); aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--shadow-lg); width: 100%; }
.hero-float {
  position: absolute; left: -28px; bottom: 40px;
  background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 13px;
}
.hero-float .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,77,46,.12); display: grid; place-items: center; }
.hero-float .ico svg { width: 22px; height: 22px; color: var(--accent); }
.hero-float .t { font-weight: 700; font-family: var(--font-head); font-size: 16px; }
.hero-float .s { font-size: 12.5px; color: var(--muted); }

/* ---------- Search bar ---------- */
.search-bar {
  margin-top: 80px;
  background: #fff; border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 8px; align-items: stretch;
}
.search-field { display: flex; flex-direction: column; padding: 8px 16px; border-radius: 12px; transition: background .2s; }
.search-field:hover { background: var(--surface); }
.search-field label { font-size: 11.5px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.search-field input, .search-field select { border: none; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); outline: none; width: 100%; cursor: pointer; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-bar .btn { align-self: center; height: 56px; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 460px; }
.sec-kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 10px; }

/* ---------- Filter chips ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  height: 42px; padding: 0 18px; border-radius: 100px; background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .18s; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--ink); color: #fff; }
.chip .count { font-size: 12px; opacity: .65; }

/* ---------- Listing grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.tag { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 8px; color: #fff; letter-spacing: .01em; }
.tag.sale { background: var(--accent); }
.tag.rent { background: var(--teal); }
.tag.feat { background: var(--ink); }
.fav {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); display: grid; place-items: center; transition: all .18s;
}
.fav svg { width: 19px; height: 19px; color: var(--ink-2); transition: all .18s; }
.fav:hover { background: #fff; transform: scale(1.08); }
.fav.on svg { color: var(--accent); fill: var(--accent); }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.card-price .per { font-size: 14px; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.card-title { font-size: 17px; font-weight: 600; margin: 7px 0 6px; font-family: var(--font-head); letter-spacing: -.01em; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.card-loc svg { width: 15px; height: 15px; }
.card-specs { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.spec { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.spec svg { width: 17px; height: 17px; color: var(--muted-2); }

.empty { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--muted-2); margin: 0 auto 16px; }
.empty h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ---------- Features strip ---------- */
.features { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 64px 56px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.feat-item .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; place-items: center; margin-bottom: 18px; }
.feat-item .ico svg { width: 25px; height: 25px; color: var(--accent); }
.feat-item h3 { font-size: 19px; margin-bottom: 8px; }
.feat-item p { color: #aab0bd; font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #ff7e57);
  border-radius: var(--radius-l); padding: 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-band p { opacity: .92; margin-top: 8px; font-size: 16px; }
.cta-band .btn-dark { background: var(--ink); }
.cta-band .btn-white { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5cad3; padding: 64px 0 32px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .desc { font-size: 14.5px; max-width: 280px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }

/* ---------- Modal (listing detail) ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(11,14,20,.55); backdrop-filter: blur(4px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-back.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-l); max-width: 920px; width: 100%; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-gallery { position: relative; aspect-ratio: 16/8.5; background: var(--surface); }
.modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.modal-close svg { width: 20px; height: 20px; }
.modal-thumbs { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 8px; }
.modal-thumbs img { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; border: 2px solid transparent; cursor: pointer; opacity: .8; }
.modal-thumbs img.active { border-color: #fff; opacity: 1; }
.modal-body { padding: 32px; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.modal-body h2 { font-size: 27px; margin-bottom: 8px; }
.modal-price { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; white-space: nowrap; }
.modal-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.modal-spec { background: var(--surface); border-radius: 14px; padding: 16px; }
.modal-spec .v { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.modal-spec .k { font-size: 13px; color: var(--muted); margin-top: 2px; }
.modal-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 24px; }
.modal-agent { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border-radius: 16px; }
.modal-agent .av { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.modal-agent .nm { font-weight: 600; }
.modal-agent .rl { font-size: 13.5px; color: var(--muted); }
.modal-agent .btn { margin-left: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 500; font-size: 14.5px;
  box-shadow: var(--shadow-lg); z-index: 200; transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 19px; height: 19px; color: var(--teal); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel.sticky { position: sticky; top: 96px; }
.panel h3 { font-size: 20px; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
textarea.field { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; line-height: 1.5; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,77,46,.12); }

.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; transition: all .18s; background: var(--surface);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(255,77,46,.04); }
.dropzone svg { width: 34px; height: 34px; color: var(--muted-2); margin: 0 auto 10px; }
.dropzone p { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.dropzone span { font-size: 12.5px; color: var(--muted); }
.thumbs-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs-preview .tp { position: relative; width: 64px; height: 50px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.thumbs-preview .tp img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-preview .tp button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 6px; background: rgba(11,14,20,.7); color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; }

.seg { display: flex; gap: 8px; }
.seg button { flex: 1; height: 44px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .18s; }
.seg button.on { border-color: var(--accent); background: var(--accent); color: #fff; }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.admin-listings { display: grid; gap: 14px; }
.admin-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.admin-row img { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.admin-row .info { flex: 1; min-width: 0; }
.admin-row .info .t { font-weight: 600; font-family: var(--font-head); }
.admin-row .info .m { font-size: 13.5px; color: var(--muted); display: flex; gap: 12px; margin-top: 3px; flex-wrap: wrap; }
.admin-row .pr { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.admin-row .acts { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; transition: all .18s; }
.icon-btn svg { width: 17px; height: 17px; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.del:hover { background: rgba(255,77,46,.12); }
.icon-btn.del:hover svg { color: var(--accent); }

.admin-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.admin-bar h2 { font-size: 26px; }
.admin-bar .cnt { color: var(--muted); font-size: 14.5px; }

.notice { background: rgba(14,165,121,.08); border: 1px solid rgba(14,165,121,.25); color: var(--teal-d); border-radius: 12px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 22px; display: flex; gap: 10px; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .admin-shell { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; max-width: 480px; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-field + .search-field { border-left: none; }
  .search-bar .btn { grid-column: 1/-1; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .modal-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .features { padding: 40px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .search-bar { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL ANIMASYONLARI — Expo ease-out, kademeli
   ============================================================ */
:root { --ease-expo: cubic-bezier(.16,1,.3,1); --ease-apple: cubic-bezier(.32,.72,0,1); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo); }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo); }
.reveal-scale.in { opacity: 1; transform: none; }

/* kademeli (stagger) — grid çocuklarına gecikme */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* görsel mask-reveal (clip-path soldan açılır) */
.img-mask { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-expo); }
.img-mask.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .img-mask { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* scroll progress bar (en üst) */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), #ff8a5c); z-index: 60; transition: width .1s linear; }

/* header scrolled state */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,14,20,.07); }

/* hero parallax katmanı */
.hero-visual .main-img { transform: translateY(var(--py, 0)); transition: transform .1s linear; }

/* ============================================================
   İLANLAR SAYFASI (ilanlar.html)
   ============================================================ */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,77,46,.28), transparent 70%); }
.page-hero .crumb { font-size: 14px; color: var(--muted-2); margin-bottom: 14px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 14px; }
.page-hero p { color: #aab0bd; font-size: 17px; max-width: 520px; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 34px 0 26px; }
.list-toolbar .res { font-size: 15px; color: var(--muted); }
.list-toolbar .res b { color: var(--ink); font-family: var(--font-head); }
.toolbar-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sortsel { height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; font-weight: 500; cursor: pointer; }

.list-layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.sidebar { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sidebar h4 { font-size: 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.filter-block { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: none; }
.filter-block .lbl { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 11px; }
.seg-v { display: flex; gap: 7px; }
.seg-v button { flex: 1; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .18s; }
.seg-v button.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.roomchips { display: flex; flex-wrap: wrap; gap: 7px; }
.roomchips button { height: 36px; padding: 0 13px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink-2); transition: all .18s; }
.roomchips button.on { border-color: var(--ink); background: var(--ink); color: #fff; }

.list-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .list-grid { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
  .list-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ============================================================
   İLAN DETAY SAYFASI (ilan.html)
   ============================================================ */
.detail-wrap { padding: 30px 0 80px; }
.detail-crumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.detail-crumb a:hover { color: var(--accent); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 460px; margin-bottom: 14px; border-radius: var(--radius-l); overflow: hidden; }
.gallery .g-main { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .5s var(--ease-apple), filter .3s; }
.gallery .g-cell { overflow: hidden; position: relative; }
.gallery .g-cell:hover img { transform: scale(1.05); }
.gallery .more { position: absolute; inset: 0; background: rgba(11,14,20,.55); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; margin-top: 34px; }
.detail-main .d-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.detail-main h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.detail-main .d-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 16px; }
.detail-main .d-loc svg { width: 18px; height: 18px; }

.specrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0; }
.specrow .sp { background: var(--surface); border-radius: 16px; padding: 20px; }
.specrow .sp .ico { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.specrow .sp .ico svg { width: 20px; height: 20px; color: var(--accent); }
.specrow .sp .v { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.specrow .sp .k { font-size: 13px; color: var(--muted); margin-top: 2px; }

.detail-sec { margin: 34px 0; }
.detail-sec h2 { font-size: 23px; margin-bottom: 14px; }
.detail-sec p { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.amenities .am { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.amenities .am svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

.detail-aside { position: sticky; top: 92px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); }
.price-card .pc-price { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; }
.price-card .pc-price .per { font-size: 16px; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.price-card .pc-sub { color: var(--muted); font-size: 14px; margin: 4px 0 20px; }
.price-card .agent { display: flex; align-items: center; gap: 13px; padding: 16px; background: var(--surface); border-radius: 14px; margin-bottom: 16px; }
.price-card .agent .av { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.price-card .agent .nm { font-weight: 600; }
.price-card .agent .rl { font-size: 13px; color: var(--muted); }
.price-card .btn { width: 100%; margin-bottom: 10px; }
.map-embed { margin-top: 16px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: var(--surface); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 260px; height: auto; }
  .gallery .g-main { grid-row: auto; }
  .gallery .g-cell:not(.g-main) { display: none; }
}
@media (max-width: 560px) {
  .specrow { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(11,14,20,.92); z-index: 120; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 12px; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 22px; height: 22px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox .lb-nav svg { width: 24px; height: 24px; }
.lightbox .lb-prev { left: 24px; } .lightbox .lb-next { right: 24px; }
