/* =====================================================================
   Reyting Gayrimenkul — Temel tasarım sistemi (site + yönetim paneli ortak)
   Özel yazı tipleri: Reyting Sans (Manrope) · Reyting Display (Fraunces)
   ===================================================================== */
@font-face { font-family: 'Reyting Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/sans/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Reyting Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/sans/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Reyting Display'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/display/fraunces-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Reyting Display'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/display/fraunces-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Reyting Display'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/display/fraunces-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Reyting Display'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/display/fraunces-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0f1a2a;
  --ink-2: #26354b;
  --ink-3: #3b4a61;
  --muted: #687386;
  --muted-2: #939bab;
  --line: #e8e2d8;
  --line-2: #f1ece4;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --sand: #f4eee4;
  --sand-2: #ebe2d3;
  --gold: #b0844a;
  --gold-d: #8c6531;
  --gold-l: #d9bb8a;
  --gold-soft: #f6ecdc;
  --teal: #1d6e63;
  --teal-soft: #e1efeb;
  --green: #1d8558;
  --green-soft: #e3f3ea;
  --amber: #b7791f;
  --amber-soft: #fbf0db;
  --red: #c1413b;
  --red-soft: #fbe7e5;
  --blue: #2d5c9a;
  --blue-soft: #e5edf8;
  --rose: #e2474f;

  --font-sans: 'Reyting Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Reyting Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --sh-xs: 0 1px 2px rgba(15, 26, 42, .06);
  --sh-sm: 0 2px 8px rgba(15, 26, 42, .06), 0 1px 2px rgba(15, 26, 42, .04);
  --sh: 0 10px 30px -12px rgba(15, 26, 42, .18), 0 2px 6px rgba(15, 26, 42, .05);
  --sh-lg: 0 30px 60px -20px rgba(15, 26, 42, .28), 0 8px 20px -8px rgba(15, 26, 42, .1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'ss01', 'cv11'; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 1em; height: 1em; }
.ic-lg { width: 1.6em; height: 1.6em; }
.ic-fill { fill: currentColor; }

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; font-variation-settings: 'opsz' 96, 'SOFT' 30; }
.display em, .display i { font-style: italic; font-weight: 400; color: var(--gold-d); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- Butonlar ------------------------------------------------------- */
.btn { --b: var(--ink); --c: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 999px; background: var(--b); color: var(--c); font-weight: 650; font-size: 14.5px; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-gold { --b: var(--gold); --c: #fff; }
.btn-gold:hover { --b: var(--gold-d); }
.btn-light { --b: #fff; --c: var(--ink); border-color: var(--line); }
.btn-ghost { --b: transparent; --c: var(--ink); }
.btn-ghost:hover { --b: var(--sand); box-shadow: none; }
.btn-outline { --b: transparent; --c: var(--ink); border-color: var(--ink); }
.btn-outline:hover { --b: var(--ink); --c: #fff; }
.btn-green { --b: #1f9d5b; --c: #fff; }
.btn-danger { --b: var(--red); --c: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.btn-icon.btn-sm { width: 36px; height: 36px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* --- Rozetler -------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .01em; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; }
.badge-sale { background: var(--ink); color: #fff; }
.badge-rent { background: var(--teal); color: #fff; }
.badge-gold { background: var(--gold-soft); color: var(--gold-d); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: var(--line-2); color: var(--muted); }
.badge-glass { background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(6px); box-shadow: var(--sh-xs); }

/* --- Form elemanları ------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err, .err-text { font-size: 12.5px; color: var(--red); font-weight: 600; }
.input, .select, .textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  color: var(--ink); font-size: 14.5px; transition: border-color .15s, box-shadow .15s; outline: none; }
/* Açılır listeler koyu bir kutunun içindeyken de okunur kalsın (yazı rengi kapsayıcıdan miras alınmasın) */
select optgroup { color: var(--muted); background-color: #fff; }
select option { color: var(--ink); background-color: #fff; }
select option:disabled { color: var(--muted-2); }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687386' stroke-width='1.8' 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 12px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 132, 74, .14); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(193, 65, 59, .1); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .addon, .input-group .select { width: auto; flex: none; border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 0; }
.input-group .addon { display: grid; place-items: center; padding: 0 14px; background: var(--line-2); border: 1px solid var(--line); border-left: 0; font-weight: 650; color: var(--muted); font-size: 13.5px; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.4; user-select: none; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #c9c2b5; border-radius: 6px; background: #fff; display: grid; place-items: center; transition: .15s; cursor: pointer; }
.check input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
/* Kısmi seçim (bazı satırlar işaretli): kutuda yatay çizgi */
.check input[type=checkbox]:indeterminate { background: var(--ink); border-color: var(--ink); }
.check input[type=checkbox]:indeterminate::after { width: 10px; height: 0; border-left: 0; border-bottom: 2px solid #fff; transform: none; }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.check input[type=radio]:checked::after { transform: scale(1); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 550; user-select: none; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: #d9d3c7; position: relative; margin: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; user-select: none; }
.chip:hover { border-color: var(--ink-3); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ic { width: 15px; height: 15px; }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--line-2); gap: 2px; }
.segmented label, .segmented a, .segmented button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; transition: .15s; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked), .segmented .is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }

/* --- Uyarılar -------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 550; line-height: 1.45; }
.alert .ic { margin-top: 1px; }
.alert-success { background: var(--green-soft); color: #145c3d; }
.alert-error { background: var(--red-soft); color: #8e2a25; }
.alert-info { background: var(--blue-soft); color: #23487a; }
.alert-warn { background: var(--amber-soft); color: #7d5315; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: grid; gap: 10px; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); font-weight: 600; font-size: 14px; animation: toastIn .35s var(--ease); }
.toast .ic { color: var(--gold-l); }
.toast.toast-error .ic { color: #ff9c94; }
.toast button { margin-left: auto; color: rgba(255, 255, 255, .6); }
.toast.is-hiding { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

/* --- Tablolar -------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .empty-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--sand); color: var(--gold-d); }
.empty .empty-ic .ic { width: 28px; height: 28px; }
.empty h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
