/* ============================================================
   Kale Gayrimenkul — Tasarım sistemi
   Aydınlık travertin zemin · petrol-teal birincil · kurumsal güven
   Spectral (başlık) + Public Sans (gövde)
   ============================================================ */

:root {
  /* Renk (OKLCH) — travertin ışık + petrol-teal */
  --bg:            oklch(0.975 0.006 90);
  --bg-deep:       oklch(0.945 0.008 88);
  --surface:       oklch(1 0 0);
  --surface-2:     oklch(0.982 0.005 90);
  --line:          oklch(0.87 0.008 90);
  --line-strong:   oklch(0.80 0.010 90);

  --ink:           oklch(0.245 0.012 220);
  --ink-soft:      oklch(0.42 0.012 220);
  --muted:         oklch(0.535 0.012 220);

  --accent:        oklch(0.480 0.078 205);   /* petrol-teal */
  --accent-deep:   oklch(0.390 0.075 208);   /* metin/hover */
  --accent-bright: oklch(0.585 0.075 202);
  --accent-tint:   oklch(0.480 0.078 205 / 0.10);
  --on-accent:     oklch(0.99 0 0);

  --brass:         oklch(0.640 0.095 75);    /* "öne çıkan" için sıcak ikincil */
  --brass-tint:    oklch(0.640 0.095 75 / 0.14);

  --sold:          oklch(0.55 0.14 25);      /* kiralık/satılık etiket kırmızısı (nadir) */

  /* Tipografi */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius & gölge */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow:    0 12px 30px -18px oklch(0.3 0.02 220 / 0.35);
  --shadow-lg: 0 30px 70px -34px oklch(0.3 0.03 220 / 0.4);

  --container: 1180px;
  --gutter: clamp(1.2rem, 4vw, 3rem);

  --z-header: 100;
  --z-fab: 200;
  --z-nav-mobile: 300;
  --z-lightbox: 400;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: var(--accent); border-radius: 2px; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__title { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem); margin-block: 0.7rem 0.6rem; }
.section__lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); max-width: 42rem; }

.ico { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.82rem 1.5rem; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -14px var(--accent); }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn--wa { background: #1eb457; color: #fff; box-shadow: 0 12px 26px -14px #0d7a37; }
.btn--wa:hover { background: #17a04d; transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: oklch(0.975 0.006 90 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled { background: oklch(0.985 0.005 90 / 0.92); border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px oklch(0.3 0.02 220 / 0.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  padding: 0.5rem 0.9rem; border-radius: var(--r-sm); font-weight: 500; font-size: 0.96rem;
  color: var(--ink-soft); transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: oklch(0.5 0.01 220 / 0.06); }
.nav a[aria-current="page"] { color: var(--accent-deep); background: var(--accent-tint); }

.header__cta { display: flex; align-items: center; gap: 0.6rem; }
.header__cta .btn { padding: 0.6rem 1.15rem; font-size: 0.92rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, oklch(0.16 0.03 220 / 0.82) 0%, oklch(0.18 0.03 220 / 0.55) 46%, oklch(0.2 0.03 220 / 0.2) 100%);
}
.hero__inner { position: relative; padding-block: clamp(4.5rem, 12vw, 8.5rem); max-width: 42rem; color: oklch(0.99 0.005 90); }
.hero__inner .eyebrow { color: var(--accent-bright); }
.hero__inner .eyebrow::before { background: var(--accent-bright); }
.hero__title { font-size: clamp(2.6rem, 1.9rem + 3.6vw, 4.6rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-top: 1rem; }
.hero__lead { margin-top: 1.2rem; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem); color: oklch(0.92 0.008 90); max-width: 33rem; }

/* Arama/filtre kutusu — hero altında */
.searchbar { position: relative; z-index: 3; margin-top: 2.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.1rem; }
.searchbar__row { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0.7rem; align-items: end; }
.searchbar .field { margin: 0; }
.searchbar .btn { height: 46px; }

/* ============================================================
   FORM ALANLARI (paylaşılan)
   ============================================================ */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.05rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.72rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   İSTATİSTİK / GÜVEN ŞERİDİ
   ============================================================ */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 1.6rem var(--gutter); text-align: center; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--accent-deep); }
.trust__label { font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }

/* ============================================================
   İLAN KARTLARI
   ============================================================ */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.2rem, 2.5vw, 1.7rem); }
.listing {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.listing__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-deep); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.05); }
.badge { position: absolute; top: 0.85rem; left: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.75rem; border-radius: var(--r-pill); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; }
.badge--satilik { background: var(--accent); color: var(--on-accent); }
.badge--kiralik { background: var(--brass); color: oklch(0.2 0.03 75); }
.badge--featured { position: absolute; top: 0.85rem; right: 0.85rem; left: auto; background: oklch(1 0 0 / 0.92); color: var(--accent-deep); box-shadow: var(--shadow); }
.listing__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.listing__loc { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.86rem; color: var(--muted); }
.listing__loc .ico { width: 0.95rem; height: 0.95rem; color: var(--accent); }
.listing__title { font-size: 1.2rem; line-height: 1.25; }
.listing__title a:hover { color: var(--accent-deep); }
.listing__price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent-deep); margin-top: auto; }
.price__cur { font-size: 0.8em; }
.price__per { font-family: var(--font-body); font-size: 0.6em; font-weight: 600; color: var(--muted); margin-left: 0.15rem; }
.listing__specs { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.spec { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.86rem; color: var(--ink-soft); }
.spec .ico { width: 1rem; height: 1rem; color: var(--muted); }

/* ============================================================
   FİLTRE PANELİ (ilanlar.php)
   ============================================================ */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem clamp(1.2rem, 2vw, 1.6rem); box-shadow: var(--shadow); margin-bottom: 2rem; }
.filters__grid { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 0.8rem; align-items: end; }
.filters .field { margin: 0; }
.filters__actions { display: flex; gap: 0.5rem; }
.filters__actions .btn { height: 44px; white-space: nowrap; }
.result-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.result-count b { color: var(--ink); font-weight: 700; }

.empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty .ico { width: 2.4rem; height: 2.4rem; color: var(--muted); margin-inline: auto; }
.empty h3 { margin: 1rem 0 0.4rem; font-size: 1.3rem; }
.empty p { color: var(--muted); }

/* Aktif filtre çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-deep); font-size: 0.85rem; font-weight: 600; }
.chip a { display: inline-flex; opacity: 0.7; }
.chip a:hover { opacity: 1; }

/* ============================================================
   İLAN DETAY (ilan.php)
   ============================================================ */
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--accent-deep); }
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.detail-title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.detail-loc { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); margin-top: 0.5rem; }
.detail-loc .ico { color: var(--accent); }
.detail-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); color: var(--accent-deep); white-space: nowrap; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; gap: 0.7rem; border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.gallery__main { grid-row: span 2; }
.gallery figure { position: relative; overflow: hidden; background: var(--bg-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.6s var(--ease); aspect-ratio: 3/2; }
.gallery__main img { aspect-ratio: auto; min-height: 320px; }
.gallery figure:hover img { transform: scale(1.04); }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; margin-bottom: 2rem; }
.detail-spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.detail-spec .ico { width: 1.3rem; height: 1.3rem; color: var(--accent); }
.detail-spec__k { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.detail-spec__v { font-weight: 600; font-size: 1.05rem; }

.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.prose p { color: var(--ink-soft); }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.6rem 1.2rem; margin-top: 0.6rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--ink-soft); }
.feature-list .ico { width: 1.1rem; height: 1.1rem; color: var(--accent); margin-top: 0.25rem; }

.contact-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.contact-card .btn { width: 100%; margin-bottom: 0.6rem; }

/* ============================================================
   SPLIT (hakkımızda / anasayfa hikâye)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.value__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-tint); color: var(--accent-deep); margin-bottom: 1rem; }
.value__ico .ico { width: 1.4rem; height: 1.4rem; }
.value h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.value p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   İLETİŞİM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.info-list { display: grid; gap: 1.3rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__ico { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); }
.info-row__ico .ico { width: 1.25rem; height: 1.25rem; }
.info-row__k { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.info-row__v { font-weight: 500; color: var(--ink); }
.info-row__v a:hover { color: var(--accent-deep); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: clamp(2.5rem, 5vw, 4rem); }
.map iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; display: block; }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; background: var(--accent-deep); color: oklch(0.98 0.01 200); overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 85% -10%, oklch(0.58 0.08 200 / 0.6), transparent 55%); }
.cta__inner { text-align: center; max-width: 42rem; margin-inline: auto; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta__title { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); color: #fff; }
.cta__lead { color: oklch(0.9 0.02 200); margin-block: 1rem 2rem; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.cta .btn--ghost { background: transparent; border-color: oklch(0.99 0 0 / 0.4); color: #fff; }
.cta .btn--ghost:hover { background: oklch(0.99 0 0 / 0.12); border-color: #fff; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: oklch(0.22 0.015 220); color: oklch(0.82 0.01 220); padding-block: clamp(3rem, 5vw, 4rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 2.5rem; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer__brand img { width: 36px; height: 36px; }
.footer__brand b { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer p { color: oklch(0.7 0.01 220); font-size: 0.94rem; max-width: 32ch; }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.62 0.01 220); margin-bottom: 1rem; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { color: oklch(0.82 0.01 220); font-size: 0.96rem; width: fit-content; }
.footer__links a:hover { color: var(--accent-bright); }
.footer address { font-style: normal; display: grid; gap: 0.5rem; color: oklch(0.82 0.01 220); font-size: 0.96rem; }
.footer address a:hover { color: var(--accent-bright); }
.social { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; color: oklch(0.82 0.01 220); font-size: 0.92rem; }
.social:hover { color: var(--accent-bright); }
.social .ico { width: 1.15rem; height: 1.15rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid oklch(0.4 0.01 220); color: oklch(0.62 0.01 220); font-size: 0.86rem; }
.credit a { color: oklch(0.82 0.01 220); border-bottom: 1px solid oklch(0.5 0.02 220); }
.credit a:hover { color: var(--accent-bright); }

/* ============================================================
   FAB / SCROLL PROGRESS / LIGHTBOX
   ============================================================ */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: var(--z-fab);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1eb457; color: #fff; box-shadow: 0 12px 30px -8px oklch(0.5 0.15 150 / 0.6);
  transition: transform 0.25s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--accent); z-index: calc(var(--z-header) + 1); }

.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: none; place-items: center; padding: 5vw; background: oklch(0.15 0.02 220 / 0.92); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; border-radius: 50%; background: oklch(1 0 0 / 0.12); color: #fff; font-size: 1.8rem; line-height: 1; }
.lightbox__close:hover { background: oklch(1 0 0 / 0.24); }

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .searchbar__row { grid-template-columns: 1fr 1fr; }
  .searchbar__row .btn { grid-column: 1 / -1; }
  .filters__grid { grid-template-columns: 1fr 1fr; }
  .filters__actions { grid-column: 1 / -1; }
  .filters__actions .btn { flex: 1; }
}

@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 16/11; max-height: 440px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__main { grid-row: auto; }
  .gallery figure:nth-child(n+4) { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: var(--z-nav-mobile);
    width: min(78vw, 320px); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0.3rem; padding: 6rem 1.4rem 2rem; background: var(--surface);
    border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: calc(var(--z-nav-mobile) + 1); }
  .header__cta .btn span { display: none; }
  .filters__grid { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; }
}

@media (max-width: 560px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: none; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions { flex-direction: column; }
}
