:root {
  --bg: #f4f5f7; --surface: #fff; --text: #1a2233; --muted: #6b7280;
  --primary: #2563eb; --rent: #0ea5e9; --sale: #16a34a;
  --border: #e5e7eb; --radius: 14px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; }

.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20; }
.brand { justify-self: start; font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.topbar nav { justify-self: center; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.topbar nav a:hover { color: var(--primary); }
.nav-sep { width: 1px; align-self: stretch; min-height: 22px; background: var(--border); margin: 0 4px; }
@media (max-width: 760px) { .topbar { grid-template-columns: 1fr; gap: 10px; } .brand, .topbar nav { justify-self: center; } }

/* hover şehir popup'ı (zap Popover) */
.zap-popover { position: relative; display: inline-block; }
.zap-popover > a { text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.zap-popover.is-open > a, .zap-popover > a:hover { color: var(--primary); }
.zap-popover__panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 10px; padding: 14px; width: 360px; max-width: 88vw; z-index: 50;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 16px 48px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.6); }
.zap-popover__panel:before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom-color: rgba(255,255,255,.62); }
.hm-head { display: block; font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.hm-cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.hm-cities a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .88rem;
  padding: 4px 6px; border-radius: 6px; white-space: nowrap; }
.hm-cities a:hover { background: var(--bg); color: var(--primary); }

main { max-width: 1400px; margin: 0 auto; padding: 24px 28px 60px; }
.page-h1 { font-size: 1.5rem; margin: 0 0 16px; color: var(--text); }
footer { text-align: center; color: var(--muted); padding: 30px; font-size: .85rem; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--primary); text-decoration: underline; }
footer .perf { margin-top: 8px; font-size: .78rem; color: var(--muted); opacity: .85; }
footer .perf strong { color: var(--primary); font-weight: 700; }

.filterbar { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.filterbar form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
/* yalnızca doğrudan form alanları (zap Select'in iç input/button'larını ETKİLEMESİN) */
.filterbar form > input, .filterbar form > select, .filterbar .field-select, .filterbar .city-select {
  flex: 1; min-width: 130px; }
.filterbar form > input, .filterbar form > select { padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .95rem; background: #fff; }
/* tüm filtre kontrolleri AYNI yükseklik (input + zap Select trigger + arama) */
.filterbar form > input, .filterbar form > select, .zap-ac > input, .zap-sel__trigger {
  box-sizing: border-box; height: 44px; }
.filterbar button.nojs-only { padding: 10px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 600; }
.range-row { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--muted); font-size: .9rem; }

/* featured carousel (zap Carousel) — full-width görsel + başlık */
#featured:empty { display: none; }
#featured { margin-bottom: 18px; }
.zap-carousel { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #0b1020; }
.zap-carousel__track { display: flex; transition: transform .5s ease; }
.zap-carousel__slide { flex: 0 0 100%; }
.feat-slide { display: block; position: relative; text-decoration: none; color: #fff; }
.feat-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.feat-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 30px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.feat-badge { display: inline-block; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.feat-title { margin: 0 0 4px; font-size: 1.7rem; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.feat-sub { font-size: .95rem; opacity: .92; }
.zap-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--text); font-size: 1.4rem;
  line-height: 1; cursor: pointer; }
.zap-carousel__nav.prev { left: 14px; } .zap-carousel__nav.next { right: 14px; }
.zap-carousel__nav:hover { background: #fff; }
.zap-carousel__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.zap-carousel__dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer; }
.zap-carousel__dots .dot.on { background: #fff; }

.home-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: stretch; }
.home-top > * { min-width: 0; }
#listings-map { display: none; height: 440px; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; z-index: 0; }
.js #listings-map { display: block; }
/* JS kapalıyken harita yok → haber paneli tüm satırı alsın */
html:not(.js) .home-top { grid-template-columns: 1fr; }

.news-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; height: 440px; display: flex; flex-direction: column; }
.news-title { margin: 2px 0 12px; font-size: 1.15rem; }
.news-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: block; text-decoration: none; color: inherit; padding: 11px 4px; transition: background .12s; }
.news-list a:hover { background: var(--bg); }
.news-meta { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 3px; }
.news-list strong { display: block; font-size: .96rem; line-height: 1.35; color: var(--text); }
.news-sum { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }

@media (max-width: 760px) { .home-top { grid-template-columns: 1fr; } .news-panel { height: auto; } }
.map-pop { display: block; width: 190px; text-decoration: none; color: var(--text); }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.map-pop strong { display: block; font-size: .95rem; line-height: 1.3; }
.map-pop .mp-price { color: var(--primary); font-weight: 700; }

/* zap Select (kaydırılabilir + aranabilir şehir seçici) */
.city-select { flex: 1; min-width: 130px; }
.zap-sel { position: relative; }
.zap-sel__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  font-size: .95rem; cursor: pointer; }
.zap-sel__val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-sel__val.is-placeholder { color: var(--muted); }
.zap-sel__caret { color: var(--muted); }
.zap-sel__panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  max-height: 300px; overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.zap-sel__search { width: 100%; padding: 8px 10px; margin-bottom: 6px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; position: sticky; top: 0; }
.zap-sel__opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-size: .92rem; }
.zap-sel__opt:hover { background: var(--bg); }
.zap-sel__opt.is-selected { background: var(--primary); color: #fff; }
.zap-sel__mark { width: 1em; text-align: center; }
.zap-sel__empty { padding: 10px; color: var(--muted); }

/* arama autocomplete (zap Autocomplete bileşeni) — geniş panel + thumbnail */
.zap-ac { position: relative; flex: 1; min-width: 130px; display: flex; }
.zap-ac > input { flex: 1; width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .95rem; background: #fff; }
.zap-ac__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 480px; max-width: 92vw; max-height: 460px; overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.20); }
.zap-ac__item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.zap-ac__item:hover { background: var(--bg); }
.ac-thumb { width: 68px; height: 50px; object-fit: cover; border-radius: 8px; display: block;
  background: linear-gradient(135deg,#eef2ff,#e0f2fe); }
.ac-main { display: flex; flex-direction: column; min-width: 0; }
.ac-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-price { color: var(--primary); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.zap-ac__empty { padding: 14px; color: var(--muted); text-align: center; }

.resultcount { color: var(--muted); font-size: .9rem; margin: 4px 2px 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.js .nojs-only { display: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.card a { text-decoration: none; color: inherit; display: block; }
.thumb { height: 190px; background: linear-gradient(135deg,#eef2ff,#e0f2fe); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 14px 16px 18px; position: relative; }
.card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.price { color: var(--primary); font-weight: 700; font-size: 1.15rem; margin: 4px 0; }
.specs { color: var(--muted); font-size: .88rem; margin: 0; }

.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; color: #fff; }
.badge-kiralik { background: var(--rent); }
.badge-satilik { background: var(--sale); }
.badge-tatil { background: #f59e0b; }

.flag-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.92);
  border: 1px solid var(--border); border-radius: 999px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.flag-detail { top: 16px; left: 16px; width: 48px; height: 48px; font-size: 1.6rem; }
.thumb, .hero { position: relative; }

.fav { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.92);
  border: 1px solid var(--border); border-radius: 999px; width: 36px; height: 36px; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: #e11d48; }
.fav.on { background: #fee2e2; border-color: #fca5a5; }

.empty { color: var(--muted); padding: 40px; text-align: center; }

/* detail */
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); }
.hero { height: 420px; background: linear-gradient(135deg,#eef2ff,#e0f2fe); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; padding: 12px 16px; flex-wrap: wrap; background: var(--surface); }
.gthumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  cursor: pointer; width: 96px; height: 70px; background: none; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb.active { border-color: var(--primary); }
.detail-body { padding: 28px 32px 40px; font-size: 1.05rem; }
.detail-body h1 { margin: 10px 0; font-size: 2rem; }
.price.big { font-size: 2rem; }
.rates { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }
.rate { flex: 1; min-width: 120px; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 12px; padding: 12px 16px; text-align: center; }
.rate span { display: block; color: #9a3412; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.rate strong { font-size: 1.5rem; color: #ea580c; }
.section-title { margin: 28px 0 6px; font-size: 1.3rem; }
.desc { font-size: 1.075rem; line-height: 1.8; color: #2b3445; }
.desc h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 26px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.desc p { margin: 0 0 16px; }
.desc ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.desc li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px dashed var(--border); }
.desc li:before { content: "✓"; position: absolute; left: 4px; color: var(--sale); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: var(--bg); border-radius: 10px; padding: 12px; text-align: center; }
.facts span { display: block; color: var(--muted); font-size: .78rem; }
.facts strong { font-size: 1.05rem; }
.desc { color: #374151; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn { padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer;
  font-weight: 600; background: #fff; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.contact-box { margin-top: 14px; padding: 16px; background: var(--bg); border-radius: 10px; }
.loc-text { color: var(--muted); margin: 0 0 12px; }

/* zap Calendar (rezervasyon takvimi) */
.zap-cal { max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; }
.zap-cal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.zap-cal__title { font-weight: 700; }
.zap-cal__nav { width: 34px; height: 34px; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 1.15rem; line-height: 1; }
.zap-cal__nav:hover { background: var(--bg); }
.zap-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.zap-cal__weekday { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 700; padding: 4px 0; }
.zap-cal__day { aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: #fff;
  cursor: pointer; font-size: .9rem; color: var(--text); }
.zap-cal__day:hover:not(.is-disabled):not(:disabled) { background: var(--bg); border-color: var(--border); }
.zap-cal__day.is-muted { color: #cbd5e1; }
.zap-cal__day.is-today { border-color: var(--primary); font-weight: 700; }
.zap-cal__day.is-selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.zap-cal__day.is-in-range { background: #dbeafe; color: var(--text); }
.zap-cal__day.is-disabled { background: #f1f5f9; color: #cbd5e1; cursor: not-allowed; text-decoration: line-through; }
.bk-info { margin: 14px 0 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bk-info .muted { color: var(--muted); }
.bk-summary { display: flex; gap: 22px; flex-wrap: wrap; }
.bk-summary > div span { display: block; color: var(--muted); font-size: .75rem; }
.bk-summary > div strong { font-size: 1.05rem; }
#map { height: 360px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; z-index: 0; }
