/* ============================================================
   OFİS EMLAK — Tasarım Sistemi
   Marka: Derin Lacivert + Zümrüt Yeşil · Plus Jakarta Sans + Inter
   ============================================================ */

:root {
  /* Marka renkleri */
  --navy-900:#081f33; --navy-800:#0c2a43; --navy-700:#103a5c; --navy-600:#16507e;
  --emerald-700:#0c7a5c; --emerald-600:#0f9070; --emerald-500:#15a37c; --emerald-400:#34c79c; --emerald-300:#8fe3cb;
  --gold-500:#d8a657; --gold-300:#f0d6a8;

  --ink:#0e1b27; --ink-soft:#34475a; --muted:#6b7d8f; --line:#e4e9ee; --line-soft:#eef2f5;
  --bg:#ffffff; --bg-soft:#f6f8fa; --bg-ivory:#f8f6f1; --bg-navy:#0c2a43;
  --white:#ffffff;

  /* Semantik */
  --primary:var(--navy-800); --primary-600:var(--navy-700);
  --accent:var(--emerald-500); --accent-600:var(--emerald-600); --accent-700:var(--emerald-700);
  --danger:#dc2626; --warn:#d97706; --success:#15a37c; --info:#2563eb;

  /* Tipografi */
  --font-head:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif;
  --font-body:"Inter","Segoe UI",system-ui,sans-serif;

  /* Yarıçap & gölge */
  --r-sm:8px; --r:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
  --sh-xs:0 1px 2px rgba(12,42,67,.06);
  --sh-sm:0 2px 8px rgba(12,42,67,.07);
  --sh:0 8px 24px rgba(12,42,67,.09);
  --sh-lg:0 18px 48px rgba(12,42,67,.14);
  --sh-emerald:0 12px 30px rgba(21,163,124,.28);

  --container:1240px;
  --header-h:76px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
body{margin:0;font-family:var(--font-body);font-size:16px;line-height:1.65;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
h1,h2,h3,h4,h5{font-family:var(--font-head);font-weight:700;line-height:1.15;color:var(--navy-800);margin:0 0 .5em;letter-spacing:-.02em}
h1{font-size:clamp(2.1rem,5vw,3.5rem)}
h2{font-size:clamp(1.7rem,3.5vw,2.6rem)}
h3{font-size:clamp(1.25rem,2vw,1.6rem)}
p{margin:0 0 1rem}
a{color:var(--accent-700);text-decoration:none;transition:color .2s var(--ease)}
a:hover{color:var(--accent-600)}
img{max-width:100%;display:block}
ul{margin:0;padding:0;list-style:none}
/* Global ikon boyutu — özel kurallar bunu ezebilir. Boyutsuz inline SVG'lerin devasa görünmesini önler. */
.ico{width:1.2em;height:1.2em;flex:none;display:inline-block;vertical-align:-.15em}
svg:not([width]):not([class]){width:1.2em;height:1.2em}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--emerald-300);outline-offset:2px;border-radius:4px}
::selection{background:var(--emerald-300);color:var(--navy-900)}

/* ---------- Layout ---------- */
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.section{padding-block:clamp(3.5rem,7vw,6.5rem)}
.section--soft{background:var(--bg-soft)}
.section--ivory{background:var(--bg-ivory)}
.section--navy{background:var(--bg-navy);color:#cfe0ec}
.section--navy h2,.section--navy h3{color:#fff}
.grid{display:grid;gap:1.5rem}
.cols-2{grid-template-columns:repeat(2,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1024px){.cols-4{grid-template-columns:repeat(2,1fr)}.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.cols-2,.cols-3,.cols-4{grid-template-columns:1fr}}

/* ---------- Section heading ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-head);font-weight:600;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-700);margin-bottom:1rem}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--accent);border-radius:2px}
.section--navy .eyebrow{color:var(--emerald-400)}
.sec-head{max-width:680px;margin-bottom:2.75rem}
.sec-head.center{margin-inline:auto;text-align:center}
.sec-head p{color:var(--muted);font-size:1.05rem}
.section--navy .sec-head p{color:#9fb4c6}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;font-family:var(--font-head);font-weight:600;font-size:.97rem;padding:.85rem 1.6rem;border-radius:var(--r-pill);border:1.5px solid transparent;transition:all .25s var(--ease);white-space:nowrap;line-height:1}
.btn .ico{width:1.15em;height:1.15em;flex:none}
.btn-primary{background:var(--accent);color:#fff;box-shadow:var(--sh-emerald)}
.btn-primary:hover{background:var(--accent-600);color:#fff;transform:translateY(-2px);box-shadow:0 16px 36px rgba(21,163,124,.36)}
.btn-navy{background:var(--navy-800);color:#fff}
.btn-navy:hover{background:var(--navy-700);color:#fff;transform:translateY(-2px)}
.btn-outline{background:transparent;color:var(--navy-800);border-color:var(--line)}
.btn-outline:hover{border-color:var(--navy-800);color:var(--navy-800);background:#fff}
.btn-ghost{background:#fff;color:var(--navy-800);border-color:var(--line);box-shadow:var(--sh-xs)}
.btn-ghost:hover{box-shadow:var(--sh-sm);transform:translateY(-1px)}
.btn-light{background:#fff;color:var(--navy-800)}
.btn-light:hover{background:var(--bg-soft);color:var(--navy-800);transform:translateY(-2px)}
.btn-wa{background:#1faf54;color:#fff}
.btn-wa:hover{background:#178f44;color:#fff;transform:translateY(-2px)}
.btn-block{width:100%}
.btn-sm{padding:.55rem 1rem;font-size:.85rem}
.btn-lg{padding:1.05rem 2.1rem;font-size:1.05rem}

/* ---------- Badges / chips ---------- */
.badge{display:inline-flex;align-items:center;gap:.35rem;font-family:var(--font-head);font-weight:600;font-size:.72rem;letter-spacing:.02em;padding:.32rem .7rem;border-radius:var(--r-pill)}
.badge-satilik{background:var(--emerald-500);color:#fff}
.badge-kiralik{background:var(--navy-700);color:#fff}
.badge-gunluk{background:var(--gold-500);color:#3a2a08}
.badge-devren{background:#7c3aed;color:#fff}
.badge-one{background:rgba(255,255,255,.92);color:var(--navy-800);box-shadow:var(--sh-xs)}
.badge-soft{background:var(--line-soft);color:var(--ink-soft)}
.badge-rezerve{background:var(--warn);color:#fff}
.badge-satildi,.badge-kiralandi{background:#64748b;color:#fff}

.chip{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;border:1px solid var(--line);border-radius:var(--r-pill);background:#fff;font-size:.85rem;font-weight:500;color:var(--ink-soft);transition:all .2s var(--ease)}
.chip .ico{width:1.05em;height:1.05em;color:var(--accent)}
.chip:hover{border-color:var(--accent);color:var(--navy-800)}

/* ---------- Cards ---------- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.card:hover{transform:translateY(-5px);box-shadow:var(--sh-lg)}

/* ---------- Listing card ---------- */
.l-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease);height:100%}
.l-card:hover{transform:translateY(-6px);box-shadow:var(--sh-lg)}
.l-card__media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--bg-soft)}
.l-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.l-card:hover .l-card__media img{transform:scale(1.06)}
.l-card__top{position:absolute;inset:.8rem .8rem auto;display:flex;justify-content:space-between;gap:.4rem;pointer-events:none}
.l-card__badges{display:flex;gap:.4rem;flex-wrap:wrap}
.l-card__fav{pointer-events:auto;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);border:none;display:grid;place-items:center;color:var(--navy-700);box-shadow:var(--sh-sm);transition:all .2s var(--ease)}
.l-card__fav .ico{width:19px;height:19px}
.l-card__fav:hover{background:#fff;color:var(--danger);transform:scale(1.1)}
.l-card__fav.is-on{color:#fff;background:var(--danger)}
.l-card__fav.is-on .ico{fill:#fff}
.l-card__price{position:absolute;left:.8rem;bottom:.8rem;background:rgba(8,31,51,.86);backdrop-filter:blur(6px);color:#fff;font-family:var(--font-head);font-weight:700;font-size:1.15rem;padding:.45rem .85rem;border-radius:var(--r-sm)}
.l-card__body{padding:1.1rem 1.15rem 1.25rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.l-card__title{font-family:var(--font-head);font-weight:700;font-size:1.06rem;line-height:1.3;color:var(--navy-800);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.l-card__loc{display:flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.88rem}
.l-card__loc .ico{width:1em;height:1em;color:var(--accent);flex:none}
.l-card__specs{display:flex;gap:1rem;flex-wrap:wrap;margin-top:auto;padding-top:.85rem;border-top:1px solid var(--line-soft)}
.l-card__spec{display:flex;align-items:center;gap:.38rem;font-size:.84rem;color:var(--ink-soft);font-weight:500}
.l-card__spec .ico{width:1.05em;height:1.05em;color:var(--muted)}
.l-card__foot{display:flex;align-items:center;justify-content:space-between;padding:.7rem 1.15rem;border-top:1px solid var(--line-soft);background:var(--bg-soft);font-size:.8rem;color:var(--muted)}

/* ---------- Forms ---------- */
.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.field label{font-family:var(--font-head);font-weight:600;font-size:.85rem;color:var(--navy-800)}
.field .req{color:var(--danger)}
.input,.select,.textarea{width:100%;padding:.8rem 1rem;border:1.5px solid var(--line);border-radius:var(--r);background:#fff;font-family:inherit;font-size:.95rem;color:var(--ink);transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(21,163,124,.12)}
.textarea{resize:vertical;min-height:120px}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7d8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;padding-right:2.5rem}
.field-error{color:var(--danger);font-size:.8rem}
.input.has-error,.select.has-error{border-color:var(--danger)}
.check{display:flex;align-items:flex-start;gap:.6rem;font-size:.9rem;color:var(--ink-soft);cursor:pointer}
.check input{margin-top:.2rem;width:18px;height:18px;accent-color:var(--accent);flex:none}

/* ---------- Alerts ---------- */
.alert{display:flex;align-items:flex-start;gap:.7rem;padding:.9rem 1.1rem;border-radius:var(--r);font-size:.92rem;margin-bottom:1rem;border:1px solid transparent}
.alert .ico{width:1.25em;height:1.25em;flex:none;margin-top:.1em}
.alert-success{background:#e7f7f1;color:#0a6b4f;border-color:#bfe9d9}
.alert-error{background:#fdeaea;color:#a31d1d;border-color:#f5c9c9}
.alert-info{background:#e8f0fd;color:#1d4ea3;border-color:#c9dcf5}
.alert-warn{background:#fdf4e6;color:#92590c;border-color:#f5e2c0}

/* ---------- Stats ---------- */
.stat{display:flex;flex-direction:column;gap:.15rem}
.stat__num{font-family:var(--font-head);font-weight:800;font-size:clamp(2rem,4vw,2.9rem);color:var(--navy-800);line-height:1;letter-spacing:-.03em}
.section--navy .stat__num{color:#fff}
.stat__num .suf{color:var(--accent)}
.stat__label{color:var(--muted);font-size:.92rem;font-weight:500}
.section--navy .stat__label{color:#9fb4c6}

/* ---------- Breadcrumb ---------- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;font-size:.85rem;color:var(--muted)}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--accent-700)}
.crumbs .sep{width:.9em;height:.9em;opacity:.5}
.crumbs .cur{color:var(--navy-800);font-weight:600}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}
.reveal-d1{transition-delay:.08s}.reveal-d2{transition-delay:.16s}.reveal-d3{transition-delay:.24s}.reveal-d4{transition-delay:.32s}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}*{scroll-behavior:auto!important}}

.text-accent{color:var(--accent)}
.text-muted{color:var(--muted)}
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.divider{height:1px;background:var(--line);border:0;margin:0}
.prose h2{margin-top:1.8rem;font-size:1.5rem}
.prose h3{margin-top:1.4rem}
.prose ul{list-style:disc;padding-left:1.3rem;margin:0 0 1rem;color:var(--ink-soft)}
.prose li{margin-bottom:.4rem}
.prose p{color:var(--ink-soft)}
