/* =====================================================================
   Garanti Emlak Tarsus — Tasarım Sistemi (yeşil / beyaz)
   Sahibinden tarzı, modern emlak portalı arayüzü
   ===================================================================== */

/* ---------- Tema değişkenleri ---------- */
:root {
  /* Yeşil paleti */
  --green-900: #0b3d2c;
  --green-800: #0f5132;
  --green-700: #15803d;
  --green-600: #16a34a;   /* Ana marka rengi */
  --green-500: #22c55e;
  --green-300: #86efac;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  /* Nötr renkler */
  --ink:      #0f1f17;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* Vurgu */
  --amber:  #f59e0b;
  --red:    #ef4444;
  --blue:   #2563eb;

  /* Ölçüler */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 23, .06), 0 1px 3px rgba(15, 31, 23, .08);
  --shadow-md: 0 4px 12px rgba(15, 31, 23, .08), 0 2px 4px rgba(15, 31, 23, .06);
  --shadow-lg: 0 16px 40px rgba(15, 31, 23, .12), 0 4px 12px rgba(15, 31, 23, .08);

  --container: 1200px;
  --header-h: 72px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p, h1, h2, h3, h4, h5, h6, li, td, th, span, div, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Tüm flex çocukları min-width:0 ile taşmayı engelle */
.header__inner > * { min-width: 0; }
.header__actions { min-width: 0; }
.searchbox__form > * { min-width: 0; }
.form-row > * { min-width: 0; }
.card { min-width: 0; }
.card__title, .card__price, .card__loc { min-width: 0; }
.detail__main { min-width: 0; }
.detail__aside { min-width: 0; }
.spec-table { min-width: 0; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(22, 163, 74, .25);
}
.btn--primary:hover { background: var(--green-700); }

.btn--ghost {
  background: var(--white);
  color: var(--green-700);
  border: 1.5px solid var(--green-600);
}
.btn--ghost:hover { background: var(--green-50); }

.btn--soft {
  background: var(--green-100);
  color: var(--green-800);
}
.btn--soft:hover { background: var(--green-300); }

.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, .35);
  font-weight: 700;
}
.btn--whatsapp:hover { background: linear-gradient(135deg, #1ebe5d, #0e7a6b); transform: translateY(-1px); }
.btn--whatsapp svg { width: 20px; height: 20px; }

.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Üst ince bar ---------- */
.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar__links { display: flex; align-items: center; gap: 4px; }
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.topbar__links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar__promo { display: inline-flex; align-items: center; gap: 8px; }
.topbar__promo strong { color: var(--green-300); }

/* ---------- Ana başlık ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; order: 1; flex-shrink: 0; }
.logo__picture { display: flex; align-items: center; }
.logo__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.logo__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { font-size: 20px; font-weight: 800; color: var(--green-800); letter-spacing: -.5px; }
.logo__text span { font-size: 11px; color: var(--gray-500); font-weight: 500; letter-spacing: .5px; }

.header__search { order: 2; }
.header__btn-ver { order: 3; flex-shrink: 0; }

/* Başlık arama kutusu */
.header__search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 560px;
  height: 46px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 0 6px 0 18px;
  transition: border .2s, background .2s, box-shadow .2s;
}
.header__search:focus-within {
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
}
.header__search svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
.header__search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 12px;
  font-size: 15px;
  color: var(--gray-800);
}
.header__search button {
  height: 36px;
  padding: 0 18px;
  background: var(--green-600);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.header__search button:hover { background: var(--green-700); }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Mobil menü düğmesi */
.nav__toggle {
  display: none;
  order: 4;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
}
.nav__toggle svg { width: 24px; height: 24px; }

/* ---------- Kategori navigasyonu ---------- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav__link svg { width: 17px; height: 17px; color: var(--green-600); }
.nav__link:hover { background: var(--green-50); color: var(--green-700); }
.nav__link--active { background: var(--green-600); color: #fff; }
.nav__link--active svg { color: #fff; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(160deg, rgba(11, 61, 44, .92), rgba(15, 81, 50, .82)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80");
  background-size: cover;
  background-position: center;
  opacity: .96;
}
.hero__inner {
  position: relative;
  padding: 56px 0 72px;
}
.hero__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 720px;
}
.hero__title span { color: var(--green-300); }
.hero__subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 2vw, 18px);
  margin-top: 14px;
  max-width: 560px;
}

/* Arama kartı */
.searchbox {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.searchbox__tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.tab {
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-600);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--green-700); }
.tab--active {
  background: var(--white);
  color: var(--green-700);
  box-shadow: 0 -2px 0 var(--green-600) inset;
}

.searchbox__form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  padding: 22px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.field__control {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  font-size: 15px;
  transition: border .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.field__control:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
}
.field--price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field--price .field__control { background-image: none; padding: 0 12px; }
.searchbox__submit { height: 48px; }

/* Popüler aramalar */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}
.hero__tags a {
  padding: 6px 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13.5px;
  transition: background .2s;
}
.hero__tags a:hover { background: rgba(255, 255, 255, .24); }

/* =====================================================================
   Bölüm başlıkları
   ===================================================================== */
.section { padding: 56px 0; }
.section--tint { background: var(--white); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
}
.section__subtitle { color: var(--gray-500); margin-top: 6px; font-size: 15px; }
.section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-700);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.section__link svg { width: 16px; height: 16px; transition: transform .2s; }
.section__link:hover svg { transform: translateX(3px); }

/* ---------- Kategori kartları ---------- */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}
.cat-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--green-600);
  border-radius: 16px;
  transition: background .2s, color .2s;
}
.cat-card:hover .cat-card__icon { background: var(--green-600); color: #fff; }
.cat-card__icon svg { width: 28px; height: 28px; }
.cat-card__title { font-weight: 700; font-size: 15px; color: var(--gray-800); }
.cat-card__count { font-size: 13px; color: var(--gray-500); }

/* =====================================================================
   İlan kartları (grid)
   ===================================================================== */
.grid--listings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  overflow: hidden;
}
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__img { transform: scale(1.06); }

.card__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge--satilik { background: var(--green-600); }
.badge--kiralik { background: var(--blue); }
.badge--featured { background: var(--amber); }
.badge--credit { background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 2px 6px rgba(37,99,235,.3); }

.feature--credit { background: linear-gradient(135deg, #dbeafe, #dcfce7); color: #1e40af; border-color: #93c5fd; font-weight: 600; }

.card__fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
  transition: color .2s, transform .15s, background .2s;
}
.card__fav svg { width: 19px; height: 19px; }
.card__fav:hover { transform: scale(1.1); }
.card__fav.is-active { color: var(--red); }
.card__fav.is-active svg { fill: var(--red); }

.card__photos {
  position: absolute;
  bottom: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  background: rgba(15, 31, 23, .7);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.card__photos svg { width: 13px; height: 13px; }

.card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__price {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -.5px;
}
.card__price small { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--gray-500);
}
.card__loc svg { width: 15px; height: 15px; color: var(--green-600); flex-shrink: 0; }

.card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
}
.feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
}
.feature svg { width: 14px; height: 14px; color: var(--green-600); }

/* =====================================================================
   "Neden biz" bandı
   ===================================================================== */
.why { background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: #fff; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-item { text-align: center; }
.why-item__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  color: var(--green-300);
}
.why-item__icon svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.why-item p { color: rgba(255, 255, 255, .75); font-size: 14.5px; }

/* İstatistik şeridi */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.stat span { color: var(--green-300); font-size: 14px; font-weight: 500; }

/* =====================================================================
   CTA (ilan ver çağrısı)
   ===================================================================== */
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px;
  background: linear-gradient(120deg, var(--green-600), var(--green-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.cta__inner::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 240px; height: 240px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.cta__text { position: relative; z-index: 1; }
.cta__text h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta__text p { color: rgba(255, 255, 255, .85); margin-top: 8px; font-size: 16px; }
.cta__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-shrink: 0; }
.cta .btn--ghost { background: #fff; border-color: #fff; color: var(--green-700); }
.cta .btn--ghost:hover { background: var(--green-50); }
.btn--white { background: #fff; color: var(--green-700); }
.btn--white:hover { background: var(--green-50); }
.btn--outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer__brand .logo__text b { color: #fff; }
.logo--footer { margin-bottom: 14px; gap: 14px; }
.logo__img--footer { height: 48px; width: 48px; }
.logo__text--footer b { color: #fff !important; font-size: 20px; }
.logo__text--footer span { color: rgba(255,255,255,.55) !important; font-size: 11px; letter-spacing: 1px; }
.footer__brand p { margin-top: 16px; font-size: 14px; max-width: 280px; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: rgba(255, 255, 255, .8);
  transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--green-600); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }

.footer__col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; transition: color .2s; }
.footer__col a:hover { color: var(--green-300); }

.footer__contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--green-500); flex-shrink: 0; margin-top: 2px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
}
.footer__bottom a:hover { color: var(--green-300); }

/* =====================================================================
   İLANLAR sayfası (liste + filtre)
   ===================================================================== */
.page-head {
  background: var(--green-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-500); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb svg { width: 14px; height: 14px; }
.page-head h1 { font-size: 26px; font-weight: 800; color: var(--ink); }

.layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  padding: 32px 0 64px;
  align-items: start;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filter__group { padding: 18px 0; border-bottom: 1px solid var(--gray-200); }
.filter__group:first-child { padding-top: 0; }
.filter__group:last-child { border-bottom: none; padding-bottom: 0; }
.filter__title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 14px; }
.filter__control {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  font-size: 14.5px;
  margin-bottom: 10px;
}
.filter__control:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.filter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--gray-700);
  cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--green-600); cursor: pointer; }
.check:hover { color: var(--green-700); }

.results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.results__count { font-size: 15px; color: var(--gray-600); }
.results__count b { color: var(--ink); }
.results__tools { display: flex; align-items: center; gap: 10px; }
.sort {
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  color: var(--gray-700);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.grid--results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty svg { width: 56px; height: 56px; color: var(--gray-300); margin-bottom: 16px; }

/* =====================================================================
   İLAN DETAY sayfası
   ===================================================================== */
.detail { padding: 28px 0 64px; }
.detail__grid {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}
.gallery__main {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery__thumbs img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border .2s, opacity .2s;
  opacity: .8;
}
.gallery__thumbs img:hover, .gallery__thumbs img.is-active { border-color: var(--green-600); opacity: 1; }

.detail__block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 22px;
}
.detail__block h2 { font-size: 19px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.detail__desc p { color: var(--gray-600); margin-bottom: 14px; line-height: 1.8; }

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  font-size: 14.5px;
}
.spec-table span { color: var(--gray-500); }
.spec-table b { color: var(--gray-800); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--green-50);
  color: var(--green-800);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
}
.tags svg { width: 14px; height: 14px; }

/* Detay sağ panel */
.detail__aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 20px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.price-card__label { font-size: 14px; color: var(--gray-500); }
.price-card__value { font-size: 32px; font-weight: 800; color: var(--green-700); letter-spacing: -1px; margin: 4px 0 4px; }
.price-card__sub { font-size: 13.5px; color: var(--gray-500); margin-bottom: 18px; }
.price-card .btn { margin-bottom: 10px; }

/* İçeriğin ortasına konan (galeri sonrası) inline fiyat kartı */
.price-card--inline {
  margin: 24px 0;
  border-top: 3px solid var(--green-600);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
}
.price-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--gray-200);
}
.price-card__main { flex: 0 0 auto; min-width: 0; }
.price-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.price-card__credit {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  color: #1e40af;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.agent--compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  max-width: 100%;
  min-width: 0;
}
.agent--compact .agent__avatar {
  width: 40px; height: 40px;
  font-size: 14px;
  flex-shrink: 0;
}
.agent--compact .agent__name {
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.agent--compact .agent__role {
  font-size: 11.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.price-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.price-card__actions .btn {
  margin: 0;
  height: 46px;
  font-size: 13.5px;
  padding: 0 10px;
  gap: 6px;
}
.price-card__actions .btn--whatsapp { padding: 0 12px; }
.price-card__actions .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Sticky sağ sidebar — hızlı aksiyon butonları */
.detail__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 8px;
  box-shadow: var(--shadow-md);
}
.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
  text-align: center;
  line-height: 1.1;
  padding: 6px 4px;
  text-decoration: none;
}
.qa:hover { transform: translateY(-2px); }
.qa svg { width: 22px; height: 22px; flex-shrink: 0; }
.qa__label { font-size: 10px; font-weight: 600; }
.qa--whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.qa--whatsapp:hover { background: linear-gradient(135deg, #1ebe5d, #0e7a6b); }
.qa--call { background: var(--green-600); color: #fff; }
.qa--call:hover { background: var(--green-700); }
.qa--fav { background: #fef2f2; color: #dc2626; }
.qa--fav:hover { background: #fee2e2; }
.qa--fav.is-active { background: #dc2626; color: #fff; }
.qa__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
}
.qa__price-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  font-weight: 700;
}
.qa__price b {
  font-size: 12px;
  color: var(--green-700);
  font-weight: 800;
  margin-top: 2px;
  line-height: 1.1;
}

.agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--gray-200);
}
.agent__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.agent__name { font-weight: 700; color: var(--gray-800); font-size: 15px; }
.agent__role { font-size: 13px; color: var(--gray-500); }

.detail-title h1 { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.detail-title .card__loc { font-size: 15px; margin-top: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* =====================================================================
   Yardımcılar
   ===================================================================== */
.muted { color: var(--gray-500); }
.hide-mobile { }

/* Geri üste çık düğmesi */
.totop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--green-600);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  z-index: 40;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--green-700); }
.totop svg { width: 22px; height: 22px; }

/* =====================================================================
   Duyarlı (responsive) düzen
   Breakpoints: 1100 / 920 / 768 / 560 / 400
   ===================================================================== */
@media (max-width: 1100px) {
  .grid--listings { grid-template-columns: repeat(3, 1fr); }
  .cats__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail__grid { grid-template-columns: 1fr 80px; gap: 18px; }
  .container { padding-inline: 24px; }
}

@media (max-width: 920px) {
  .header__search { display: none; }
  .nav__toggle { display: grid; }
  .searchbox__form { grid-template-columns: 1fr 1fr; }
  .searchbox__submit { grid-column: 1 / -1; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail__grid { grid-template-columns: 1fr; gap: 0; }
  .detail__sidebar { display: none; }
  .detail__main { order: 1; }
  .grid--results { grid-template-columns: repeat(2, 1fr); }
  .detail__gallery { grid-template-columns: 2fr 1fr; }
  .agent { padding: 16px; }
  .section { padding: 48px 0; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header { padding: 10px 0; }
  .header__inner {
    gap: 8px;
    height: 60px;
    min-width: 0;
    justify-content: space-between;
  }
  .logo { min-width: 0; flex-shrink: 0; }
  .logo__img { height: 44px; max-width: 160px; min-width: 0; }
  .header__search { display: none; }
  /* Header layout: logo (left) | ilan ver (center) | toggle (right) */
  .header__btn-ver {
    order: 2;
    flex: 0 0 auto;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    gap: 6px;
    margin: 0 auto;
  }
  .header__btn-ver .header__btn-text { display: inline; }
  .header__btn-ver span[data-icon] { display: inline-flex; width: 16px !important; height: 16px !important; }
  .nav__toggle { order: 3; width: 40px; height: 40px; flex-shrink: 0; }
  .nav { padding: 8px 0; }
  .nav__list { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav__list::-webkit-scrollbar { display: none; }
  .nav__link { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .nav__link svg { width: 16px; height: 16px; }
  .hero { padding: 32px 0; }
  .hero__title { font-size: 24px; line-height: 1.2; }
  .hero__title { font-size: 24px; line-height: 1.2; }
  .hero__subtitle { font-size: 14px; }
  .searchbox__form { padding: 14px; gap: 10px; grid-template-columns: 1fr 1fr; }
  .searchbox__form > * { min-width: 0; }
  .searchbox__field, .field { min-width: 0; }
  .searchbox__field input, .searchbox__field select, .field__control { height: 42px; font-size: 14px; min-width: 0; max-width: 100%; }
  .searchbox__submit { grid-column: 1 / -1; height: 44px; }
  .section { padding: 36px 0; }
  .section__title { font-size: 22px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid--listings, .grid--results { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cats__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card { padding: 16px 10px; }
  .cat-card__icon { width: 44px; height: 44px; }
  .cat-card__title { font-size: 14px; }
  .cat-card__count { font-size: 11px; }
  .why__grid { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 12px; }
  .cta { padding: 24px 0; }
  .cta__inner { padding: 28px 20px; gap: 16px; }
  .cta__title { font-size: 22px; }
  .footer { padding-top: 32px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 20px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; padding: 18px 0; font-size: 12px; }
  .logo--footer { margin-bottom: 10px; }
  .logo__text--footer b { font-size: 18px !important; }
  .logo__text--footer span { font-size: 10px !important; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar__sort { width: 100%; }
  .pagination { flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pagination a, .pagination span { width: 34px; height: 34px; font-size: 13px; }
  .breadcrumbs { font-size: 12px; padding: 10px 0; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-row--2, .form-row--3, .form-row--4 { grid-template-columns: 1fr; }
  .field--price { grid-template-columns: 1fr 1fr; }
  .detail__gallery { grid-template-columns: 1fr; }
  .detail__main-img { aspect-ratio: 4/3; }
  .detail__thumbs { flex-direction: row; overflow-x: auto; }
  .detail__thumbs img { width: 80px; height: 60px; flex-shrink: 0; }
  .detail__title { font-size: 22px; }
  .detail__price { font-size: 26px; }
  .price-card { padding: 18px; position: static; }
  .price-card__head { flex-direction: column; align-items: stretch; gap: 14px; }
  .price-card__side { align-items: flex-start; }
  .price-card__value { font-size: 26px; }
  .price-card__actions { grid-template-columns: 1fr; gap: 8px; }
  .price-card__actions .btn { width: 100%; height: 44px; font-size: 14px; padding: 0 14px; }
  .price-card__actions .btn span { display: inline !important; }
  .agent--compact { padding: 10px 12px; }
  .agent--compact .agent__name { white-space: normal; }
  .agent--compact .agent__role { white-space: normal; }
  .agent { padding: 14px; gap: 12px; }
  .agent__avatar { width: 42px; height: 42px; font-size: 14px; }
  .specs { grid-template-columns: 1fr; }
  .totop { width: 42px; height: 42px; bottom: 16px; right: 16px; }
  .modal-content { padding: 20px; max-width: 95vw; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .card__title { overflow-wrap: anywhere; }
  .detail-title h1 { font-size: 22px; }
  .spec-table {
    grid-template-columns: 1fr;
    border-radius: var(--radius-sm);
  }
  .spec-table div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
  }
  .spec-table div:last-child { border-bottom: none; }
  .spec-table span { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }
  .spec-table b { font-size: 15px; }
  .admin-form-row { grid-template-columns: 1fr !important; }
  input, select, textarea { max-width: 100%; }
  body { padding-bottom: 80px; } /* Mobile action bar için boşluk */
  .mobile-action-bar { display: flex; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .header { padding: 8px 0; }
  .header__inner { height: 56px; gap: 6px; }
  .logo__img { height: 38px; max-width: 130px; }
  .header__btn-ver { height: 38px; padding: 0 10px; font-size: 12px; }
  .nav__toggle { width: 38px; height: 38px; }
  .grid--listings, .grid--results { grid-template-columns: 1fr; }
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { padding: 14px 8px; }
  .cat-card__icon { width: 40px; height: 40px; }
  .hero__title { font-size: 22px; }
  .section__title { font-size: 20px; }
  .section__eyebrow { font-size: 11px; }
  .card { border-radius: 12px; }
  .card__media { aspect-ratio: 4/3; }
  .card__body { padding: 12px; }
  .card__title { font-size: 14px; }
  .card__price { font-size: 17px; }
  .feature { font-size: 11px; padding: 4px 8px; }
  .footer__social a { width: 36px; height: 36px; }
  .empty { padding: 40px 20px; }
  .empty svg { width: 40px; height: 40px; }
  .pagination { gap: 4px; }
  .pagination a, .pagination span { width: 30px; height: 30px; font-size: 12px; }
  .toast { right: 12px; left: 12px; max-width: none; }
  .searchbox__form { grid-template-columns: 1fr; }
  .searchbox__form > * { width: 100%; }
  .hero__tags { gap: 6px; }
  .hero__tags a { font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 400px) {
  .header__btn-ver { padding: 0 8px; font-size: 11px; gap: 4px; }
  .header__btn-ver .header__btn-text { display: none; }
  .header__btn-ver { width: 38px; min-width: 38px; padding: 0; }
  .header__btn-ver span[data-icon] { width: 18px !important; height: 18px !important; }
  .logo__img { height: 34px; max-width: 110px; }
  .header__inner { gap: 4px; }
  .stats { grid-template-columns: 1fr; }
  .stat b { font-size: 24px; }
  .hero__title { font-size: 19px; }
  .hero__subtitle { font-size: 13px; }
  .breadcrumbs { font-size: 11px; }
  .nav__link { padding: 7px 10px; font-size: 12px; }
  .nav__link svg { width: 14px; height: 14px; }
  .section__title { font-size: 18px; }
  .container { padding-inline: 12px; }
  .card__title { font-size: 13px; }
  .card__price { font-size: 16px; }
  .price-card { padding: 14px; }
  .price-card__value { font-size: 22px; }
  .price-card__label { font-size: 12px; }
  .price-card__sub { font-size: 12px; margin-bottom: 14px; }
  .price-card__actions .btn { height: 42px; font-size: 13px; padding: 0 10px; }
  .price-card__actions .btn span { display: inline; }
  .price-card__actions .btn--whatsapp span { display: inline; }
  .feature { font-size: 10px; padding: 3px 6px; }
  .stat b { font-size: 22px; }
  .pagination a, .pagination span { width: 28px; height: 28px; font-size: 11px; }
  .btn { height: 40px; padding: 0 14px; font-size: 13px; }
}

/* Touch device iyileştirmeleri */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav__link { min-height: 38px; }
  input, select, textarea { font-size: 16px !important; } /* iOS zoom engelle */
}

/* Mobil alt sabit aksiyon bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  justify-content: space-between;
}
.mab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 50px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: transform .12s, background .2s;
}
.mab:hover, .mab:active { transform: translateY(-1px); }
.mab svg { width: 20px; height: 20px; }
.mab--whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.mab--call { background: var(--green-600); color: #fff; }
.mab--fav { background: #fef2f2; color: #dc2626; }
.mab--fav.is-active { background: #dc2626; color: #fff; }

/* Landscape telefon */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 20px 0; }
  .hero__title { font-size: 22px; }
  .admin-login { padding: 16px; }
  .admin-login__card { padding: 20px; }
}

/* Mobil açılır menü */
.nav__list.is-open {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  gap: 4px;
  z-index: 100;
  border-top: 1px solid var(--gray-200);
}
.nav__list.is-open .nav__link {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.nav__list.is-open .nav__link:hover {
  background: var(--green-50);
  color: var(--green-700);
}

@media (max-width: 920px) {
  .nav { position: relative; }
}
