/*
  Üni Evim web sitesi. Renkler ve yazı tipleri Flutter uygulamasıyla aynı
  (lib/core/theme/app_theme.dart → AppColors, AppTheme). Biri değişirse diğeri de güncellenmeli.
*/
:root {
  --primary: #7452D3;
  --primary-soft: rgba(116, 82, 211, .1);
  --ink: #15141A;
  --background: #F6F6F8;
  --surface: #FFFFFF;
  --muted: #6B6A75;
  --border: #ECEBF0;
  --radius: 20px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* Sadece yanlar: üst ve alt boşluğu container ile birlikte kullanılan sınıf verir */
  padding-inline: 24px;
}

/* Başlıklar uygulamadaki AppTheme.display gibi: kalın, sıkı harf aralığı */
.display, h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* ---------- Üst menü ---------- */
.topbar {
  position: sticky;
  top: 0;
  /* Sayfadaki her şeyin (okul seçimi, açılır liste) üstünde kalsın */
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.logo-light { color: #fff; }
.topbar-nav { display: flex; align-items: center; gap: 10px; }
.nav-link {
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- Butonlar (uygulamadaki hap biçimli butonlar) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { filter: brightness(1.25); }
.btn-outline { background: var(--surface); border-color: #E2E1E8; }
.btn-outline:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

.show-mobile { display: none; }

/* ---------- Ana sayfa giriş bölümü ---------- */
/* Halkalar ayrı katmanda kırpılır; bölümün kendisi kırpılmaz, okul listesi alttaki bölümün üstüne taşabilsin */
.hero {
  position: relative;
  background: var(--primary);
  color: #fff;
}
.hero-rings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-rings::before, .hero-rings::after {
  content: "";
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  pointer-events: none;
}
.hero-rings::before { width: 620px; height: 620px; right: -220px; top: -240px; }
.hero-rings::after { width: 380px; height: 380px; left: -170px; bottom: -200px; }
.hero-inner { position: relative; padding-block: 88px 96px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); margin: 0 0 18px; max-width: 12ch; }
.hero p { font-size: 18px; max-width: 46ch; margin: 0 0 32px; opacity: .88; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ana sayfa: solda yazı ve okul seçimi, sağda harita */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 72px 80px;
}
.hero-grid h1 { font-size: clamp(40px, 5.4vw, 72px); }

/* Giriş bölümündeki okul seçimi */
.campus-search { position: relative; z-index: 30; max-width: 600px; }
.campus-search > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; opacity: .9; }
.campus-search-row {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(21, 20, 26, .18);
}
.school-picker { position: static; flex: 1; min-width: 0; display: flex; }
.school-picker select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  cursor: pointer;
}
.school-trigger { display: none; }
.school-picker.enhanced select { display: none; }
.school-picker.enhanced .school-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding: 0 10px 0 14px;
  cursor: pointer;
  text-align: left;
  border-radius: 999px;
}
.school-trigger svg { color: var(--primary); flex-shrink: 0; }
.school-trigger span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-trigger .chevron { color: var(--muted); transition: transform .15s; }
.school-picker.open .chevron { transform: rotate(180deg); }
.school-picker.has-value .school-trigger { color: var(--ink); }
.school-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Açılan panel: arama kutusu, şehir başlıkları ve okul satırları */
.school-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(21, 20, 26, .28);
  padding: 10px;
  text-align: left;
}
.school-filter {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.school-filter:focus { border-color: var(--primary); background: #fff; }
.school-list { max-height: 340px; overflow-y: auto; margin-top: 6px; overscroll-behavior: contain; }
.school-group {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px 6px;
}
.school-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 9px 10px;
  border-radius: 14px;
  cursor: pointer;
}
.school-item[hidden], .school-group[hidden] { display: none; }
.school-item:hover, .school-item.active { background: var(--primary-soft); }
.school-item[aria-selected="true"] { background: var(--primary); color: #fff; }
.school-item[aria-selected="true"] small { color: rgba(255, 255, 255, .8); }
.school-item[aria-selected="true"] .school-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.school-badge {
  min-width: 44px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.school-text { min-width: 0; }
.school-text strong, .school-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-text strong { font-size: 15px; }
.school-text small { color: var(--muted); font-size: 13px; }
.hero .school-empty { margin: 0; padding: 16px 10px; font-size: 14px; color: var(--muted); opacity: 1; }

/* Sağdaki harita: Google statik harita resmi, üstünde fiyat ve kampüs etiketleri. Tıklanınca uygulamadaki harita açılır. */
.hero-map {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  /* Harita resmi yüklenemezse görünen sade zemin */
  background:
    linear-gradient(rgba(116, 82, 211, .08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(116, 82, 211, .08) 1px, transparent 1px) 0 0 / 32px 32px,
    #EFEDF6;
  box-shadow: 0 24px 60px rgba(21, 20, 26, .28), 0 0 0 6px rgba(255, 255, 255, .14);
  text-decoration: none;
  color: var(--ink);
}
.hero-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(21, 20, 26, .22);
  transition: transform .2s;
}
.map-pin-campus { background: var(--primary); color: #fff; }
.hero-map:hover .map-pin { transform: translate(-50%, -50%) scale(1.06); }
.hero-map-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(21, 20, 26, .3);
  transition: background .15s;
}
.hero-map:hover .hero-map-cta { background: var(--primary); }

/* ---------- Ana sayfa bölümleri ---------- */
.home-section { padding-block: 40px 0; }
.home-section:last-child { padding-bottom: 72px; }
.home-section .section-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.see-all { color: var(--primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.home-section .section-title.center { text-align: center; }

/* "Bölgelere göre ilanlar": açık lila bant, üstünde seyrek ince mor çapraz çizgiler */
.district-band {
  margin-top: 48px;
  padding-block: 40px 44px;
  background-color: #E9E2FA;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(116, 82, 211, .13) 0 1.5px,
    transparent 1.5px 20px
  );
  border-block: 1.5px solid rgba(116, 82, 211, .25);
}
.district-band .section-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 18px; }
.district-band + .home-section { padding-top: 48px; }
.city-title { font-size: 16px; margin: 20px 0 10px; }

.campus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.campus-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
}
.campus-card:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.campus-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.campus-text { flex: 1; min-width: 0; }
.campus-text strong, .campus-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campus-text small { color: var(--muted); font-size: 13px; }
.campus-count { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

.owner-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 36px 40px;
}
.owner-band h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.owner-band p { margin: 0; opacity: .78; max-width: 56ch; }

.faq { display: grid; gap: 8px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: #2B2A33; }

/* İlçe bağlantıları: mor hap butonlar */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s, transform .15s;
}
.area-chip:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- Şehir, ilçe ve kampüs sayfaları ---------- */
.area-page { padding-block: 20px 72px; }
.area-page .section-title { font-size: 22px; margin: 36px 0 14px; }
.area-page .section-head .section-title { margin-bottom: 14px; }
.area-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
}
.area-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; max-width: 20ch; }
.area-kicker { margin: 0 0 8px; color: var(--primary); font-weight: 800; font-size: 14px; }
.area-lead { margin: 0; color: var(--muted); max-width: 60ch; }
.area-map-btn { margin-top: 20px; }
.area-stats { display: flex; gap: 10px; flex-shrink: 0; }
.area-stats div { background: var(--background); border-radius: 16px; padding: 14px 18px; min-width: 116px; }
.area-stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.area-stats span { color: var(--muted); font-size: 13px; }
.area-empty { background: var(--surface); border-radius: 20px; padding: 32px; text-align: center; margin-top: 24px; }
.area-empty h2 { margin: 0 0 6px; font-size: 20px; }
.area-empty p { margin: 0 auto 18px; color: var(--muted); max-width: 48ch; }
.area-text { margin-top: 40px; }
.area-text h2 { font-size: 18px; margin: 0 0 8px; }
.area-text p { margin: 0; color: #2B2A33; }
.lcard-body .lcard-note { color: var(--primary); font-weight: 700; font-size: 13px; margin-top: 6px; }

/* ---------- Metin sayfaları (yasal metinler) ---------- */
.page { padding-block: 48px 72px; }
.article {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.article h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.article .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.article h2 { font-size: 20px; margin: 32px 0 8px; }
.article p, .article li { color: #2B2A33; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.article h3 { font-size: 16px; margin: 20px 0 4px; }
.article tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; width: 30%; }
/* Yasal metinlerin başındaki "Kısaca" özeti */
.summary {
  background: var(--primary-soft);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0 0 20px;
}
.summary h2 { margin: 0 0 6px; font-size: 17px; color: var(--primary); }
.summary ul { margin: 0; }
.toc { background: var(--background); border-radius: 14px; padding: 16px 20px; margin: 0 0 8px; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.btn-block { display: flex; width: 100%; }
.section-title { font-size: 19px; margin: 32px 0 12px; }

/* ---------- İlan sayfası ---------- */
.listing { padding-block: 20px 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.notice {
  background: #FFF4E5;
  border: 1px solid #FFE0B2;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* Fotoğraflar: masaüstünde büyük fotoğraf ve yanında ızgara, en fazla 5 tane görünür */
.gallery { position: relative; }
.gallery-track {
  display: grid;
  gap: 8px;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item { display: block; background: var(--border); min-height: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { filter: brightness(.92); }
.gallery-item:nth-child(n + 6) { display: none; }
.gallery-1 .gallery-track { grid-template-columns: 1fr; }
.gallery-2 .gallery-track { grid-template-columns: 1fr 1fr; }
.gallery-3 .gallery-track { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-4 .gallery-track,
.gallery-5 .gallery-track { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-3 .gallery-item:first-child,
.gallery-4 .gallery-item:first-child,
.gallery-5 .gallery-item:first-child { grid-row: 1 / 3; }
.gallery-4 .gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-count { display: none; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; min-height: 40px; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }

.listing-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  margin-top: 28px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.chip-dark { background: var(--ink); color: #fff; }
.listing-title { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 6px; }
.listing-area { color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.stat { background: var(--surface); border-radius: 14px; padding: 14px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 13px; }

.distances { list-style: none; margin: 0; padding: 0 16px; background: var(--surface); border-radius: 16px; }
.distances li + li { border-top: 1px solid var(--border); }
.distances a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; }
.distances a:hover strong { color: var(--primary); }
.distance-name, .distance-value { display: flex; flex-direction: column; }
.distance-value { text-align: right; white-space: nowrap; }
.distances small { color: var(--muted); font-size: 13px; }

.description { white-space: pre-line; margin: 0; }
.facts { margin: 0; background: var(--surface); border-radius: 16px; padding: 4px 16px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.location-box { background: var(--surface); border-radius: 16px; padding: 16px; }
.location-box p { margin: 0 0 4px; }
.location-box .btn { margin-top: 12px; }

.owner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
}
.owner:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.owner strong, .owner small { display: block; }
.owner small { color: var(--muted); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

/* Masaüstünde sağda kayarken sabit kalan fiyat ve Mesaj at kartı */
.listing-side { position: relative; }
.contact-card {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
.price { margin: 0 0 4px; }
.price strong { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 14px; margin-left: 2px; }
.contact-card .btn { margin-top: 16px; }
.safety { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.mobile-cta { display: none; }

/* İlan kartları */
.similar { margin-top: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lcard { display: block; text-decoration: none; background: var(--surface); border-radius: 18px; overflow: hidden; }
.lcard:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.lcard-photo { position: relative; aspect-ratio: 4 / 3; background: var(--border); }
.lcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.lcard-price {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.lcard-body { padding: 12px 14px 14px; }
.lcard-body h3 { font-size: 15px; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-body p { margin: 0; color: var(--muted); font-size: 14px; }
.lcard-body .lcard-meta { font-size: 13px; margin-top: 4px; }

/* Tam ekran fotoğraf görüntüleyici */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 10, 14, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox-close { top: 16px; right: 16px; font-size: 20px !important; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

@media (max-width: 1024px) {
  .listing-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet ve telefonda harita yazıların altına iner */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid h1 { font-size: clamp(40px, 9vw, 64px); }
}

/* ---------- Boş durumlar ve hata sayfaları ---------- */
.empty { text-align: center; padding: 96px 24px; }
.empty h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 12px; }
.empty p { color: var(--muted); margin: 0 auto 28px; max-width: 44ch; }

/* ---------- Alt bilgi ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-brand p { max-width: 36ch; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links h2 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 4px 0 6px;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
/* Masaüstünde: solda telif, ortada yapımcı logosu (246 Yazılım). Telefonda logo sağ altta (aşağıda). */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
  padding-bottom: 24px;
  font-size: 13px;
}
.footer-maker { display: block; flex-shrink: 0; justify-self: center; opacity: .9; transition: opacity .15s; }
.footer-maker:hover { opacity: 1; }
.footer-maker img { height: 48px; width: auto; }

/* ---------- Telefon ---------- */
@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }
  .topbar-inner { height: 60px; }
  .logo { font-size: 22px; }
  .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .hero-inner { padding-block: 56px 64px; }
  .hero p { font-size: 16px; }
  .article { padding: 28px 20px; border-radius: 16px; }
  .page { padding-block: 16px 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-top: 40px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Yasal metinlerdeki çok sütunlu tablolar telefonda alt alta kartlar olur */
  .article table.stack thead { display: none; }
  .article table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .article table.stack td { display: block; padding: 2px 0; border: 0; }
  .article table.stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 6px;
  }

  /* Şehir, ilçe ve kampüs sayfaları */
  .area-page { padding-block: 12px 40px; }
  .area-head { flex-direction: column; align-items: stretch; gap: 20px; padding: 22px 18px; border-radius: 20px; }
  .area-stats { gap: 6px; }
  .area-stats div { flex: 1; min-width: 0; padding: 10px 12px; }
  .area-stats strong { font-size: 19px; }
  .area-map-btn { width: 100%; }
  .area-page .section-title { font-size: 19px; margin-top: 28px; }

  .footer-bottom { display: flex; justify-content: space-between; }

  /* Ana sayfa */
  .hero-grid { padding-block: 44px 52px; gap: 32px; }
  .hero-grid h1 { text-align: center; margin-inline: auto; }
  .mobile-center { text-align: center; }
  .district-band { margin-top: 36px; padding-block: 32px 36px; }
  .district-band .area-chips { justify-content: center; }
  .district-band + .home-section { padding-top: 36px; }
  .campus-search-row { flex-direction: column; border-radius: 20px; padding: 8px; }
  .school-picker select, .school-picker.enhanced .school-trigger { min-height: 48px; padding: 0 8px 0 10px; }
  .campus-search .btn { width: 100%; }
  .school-list { max-height: 50vh; }
  .hero-map { border-radius: 20px; box-shadow: 0 16px 40px rgba(21, 20, 26, .26), 0 0 0 4px rgba(255, 255, 255, .14); }
  .map-pin { font-size: 11px; padding: 4px 8px; }
  .map-pin svg { width: 11px; height: 11px; }
  .hero-map-cta { font-size: 14px; padding: 9px 16px; bottom: 12px; }
  .home-section { padding-top: 32px; }
  .home-section:last-child { padding-bottom: 48px; }
  .campus-grid { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { padding: 18px; }
  .steps h3 { margin: 0 0 4px; font-size: 17px; }
  .owner-band { flex-direction: column; align-items: stretch; padding: 26px 22px; border-radius: 20px; }
  .owner-band .btn { width: 100%; }

  /* İlan sayfası: fotoğraflar kenardan kenara ve yana kaydırılır, fiyat ve Mesaj at altta sabit */
  .listing { padding-block: 12px 32px; }
  .crumbs { font-size: 13px; margin-bottom: 12px; }
  .gallery { margin-inline: -16px; }
  .gallery-track {
    display: flex;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-item, .gallery-item:nth-child(n + 6) { display: block; flex: 0 0 100%; scroll-snap-align: start; }
  .gallery-all { display: none; }
  .gallery-count {
    display: block;
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(21, 20, 26, .7);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
  }
  .listing-body { display: block; margin-top: 18px; }
  .listing-side { display: none; }
  .stats { gap: 6px; margin-top: 18px; }
  .stat { padding: 10px; }
  .stat strong { font-size: 18px; }
  .section-title { margin-top: 26px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lcard-body { padding: 10px 10px 12px; }
  .lcard-price { font-size: 14px; }

  .has-mobile-cta { padding-bottom: 76px; }
  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta .price { margin: 0; }
  .mobile-cta .price strong { font-size: 24px; }
  .mobile-cta .btn { min-height: 48px; padding: 0 28px; font-size: 15px; }
  .lightbox img { max-width: 100vw; border-radius: 0; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}
