/* ==========================================================================
   Kocaali Karavan Park — Tasarım Sistemi
   Kalıp: karavanpark.istanbul geometrisi (renk paleti kendi markamız)
   Tek :root · WCAG AA kontrast · pill butonlar · mobil menü · reduced-motion
   ========================================================================== */

/* --------------------------------------------------------------- 1. Token */
:root {
  color-scheme: light;

  /* Marka — yeşil palet (referansın renkleri DEĞİL, kendi kimliğimiz) */
  --brand-50:  #eefaf6;
  --brand-100: #d4f2e8;
  --brand-200: #a9e5d2;
  --brand-300: #6fd3b6;
  --brand-400: #40bd9b;
  --brand-500: #27a888;
  --brand-600: #1f8a72;
  --brand-700: #186b5a;
  --brand-800: #125044;
  --brand-900: #0d3b34;

  /* Vurgu (referanstaki zeytin-yeşil CTA rolü) */
  --accent-500: #7aa62c;
  --accent-600: #648a22;
  --accent-100: #eaf3d8;

  /* Nötr — kontrast düzeltmeleri uygulandı */
  --ink-900: #10201c;
  --ink-700: #33453f;
  --ink-500: #5a6c67;   /* beyazda 5.4:1 (eski #6b7d78 4.35:1 idi) */
  --ink-300: #7d8c88;   /* pasif durum, #f3f4f4 üzerinde 3.6:1 */
  --ink-100: #dfe5e3;

  --white: #ffffff;
  --sand-100: #f9f5f0;  /* referanstaki krem bölüm zemini */
  --sand-200: #f1ebe2;
  --line: #e4e9e7;

  --surface:   var(--white);
  --surface-2: var(--sand-100);
  --text:      var(--ink-900);

  --success: #17795f;  --success-bg: #e7f6f1;
  --warning: #8a5800;  --warning-bg: #fdf3e1;   /* 5.5:1 */
  --danger:  #a32020;  --danger-bg:  #fdecec;
  --info:    #1a5f8a;  --info-bg:    #e8f2f9;

  /* Ölçü — referans kalıbı */
  --container: 1536px;          /* referans: max-w-screen-2xl */
  --prose: 768px;               /* hero/metin sütunu */
  --measure: 672px;             /* bölüm alt başlığı */

  --gutter: 1rem;               /* px-4 → sm:px-6 → lg:px-8 */

  /* Boşluk ölçeği (0.25rem tabanlı) */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Yarıçap */
  --r-sm: .25rem; --r-md: .375rem; --r-lg: .5rem;
  --r-xl: .75rem; --r-2xl: 1rem;   --r-3xl: 1.5rem;
  --r-pill: 9999px;

  /* Tipografi */
  --t-xs: .75rem;   --t-sm: .875rem; --t-base: 1rem;  --t-lg: 1.125rem;
  --t-xl: 1.25rem;  --t-2xl: 1.5rem; --t-3xl: 1.875rem;
  --t-4xl: 2.25rem; --t-5xl: 3rem;

  --font: "Mark Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Gölge — referans shadow-lg / shadow-2xl */
  --shadow-sm: 0 1px 2px rgba(16,32,28,.06);
  --shadow-md: 0 4px 6px -1px rgba(16,32,28,.08), 0 2px 4px -2px rgba(16,32,28,.06);
  --shadow-lg: 0 10px 15px -3px rgba(16,32,28,.10), 0 4px 6px -4px rgba(16,32,28,.10);
  --shadow-2xl: 0 25px 50px -12px rgba(16,32,28,.22);

  --header-h: 80px;             /* referans: sabit 80px */
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px){ :root { --gutter: 2rem; } }

/* Koyu tema — kullanıcının sistem tercihi */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #101917; --surface-2: #16211e; --text: #e8efec;
    --white: #101917;
    --line: #2a3835; --ink-900: #e8efec; --ink-700: #c3cfcb;
    --ink-500: #9aa9a4; --ink-300: #7f8d89; --ink-100: #2a3835;
    --sand-100: #16211e; --sand-200: #1d2926;
    --brand-50: #12302a; --brand-100: #16463c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #101917; --surface-2: #16211e; --text: #e8efec; --white: #101917;
  --line: #2a3835; --ink-900: #e8efec; --ink-700: #c3cfcb;
  --ink-500: #9aa9a4; --ink-300: #7f8d89; --ink-100: #2a3835;
  --sand-100: #16211e; --sand-200: #1d2926;
  --brand-50: #12302a; --brand-100: #16463c;
}

/* --------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.15; font-weight: 700; color: var(--text); }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); font-weight: 600; line-height: 1.4; margin-bottom: var(--space-2); }
h4 { font-size: var(--t-lg); font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: var(--t-4xl); }
  h2 { font-size: var(--t-4xl); }
}
@media (min-width: 1280px) {
  h1 { font-size: var(--t-5xl); }
}

p { margin: 0 0 var(--space-4); }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.small { font-size: var(--t-sm); }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ 3. Yerleşim */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Bölüm ritmi — referans: py-12 sm:16 md:20 lg:24 xl:32 */
.section { padding-block: var(--space-12); }
@media (min-width: 640px)  { .section { padding-block: var(--space-16); } }
@media (min-width: 768px)  { .section { padding-block: var(--space-20); } }
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }
@media (min-width: 1280px) { .section { padding-block: var(--space-32); } }

.section--alt { background: var(--surface-2); }

/* Bölüm başlığı — ortalı, mb 64, alt metin max 672 */
.section-head { text-align: center; margin-bottom: var(--space-16); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-intro,
.section-head p {
  font-size: var(--t-lg); line-height: 1.55; color: var(--ink-500);
  max-width: var(--measure); margin-inline: auto; margin-bottom: 0;
}

.grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid { gap: var(--space-8); } }

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px)  { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.amenity-grid, .gallery-grid {
  display: grid; gap: var(--space-6); grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .amenity-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .amenity-grid, .gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-8); } }

.plan-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-10); } }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.divider { height: 1px; background: var(--line); border: 0; margin: var(--space-6) 0; }

/* -------------------------------------------------------------- 4. Header */
.topbar {
  background: var(--brand-900); color: rgba(255,255,255,.88);
  font-size: var(--t-sm); padding-block: var(--space-2);
}
.topbar a { color: inherit; }
.topbar .container { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; justify-content: space-between; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4em; min-height: 32px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-900);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; gap: var(--space-6);
}

/* Logo 40px idi; amblem o boyutta okunmuyordu. Referans sitede işaret
   başlık yüksekliğinin ~%70'ini kaplıyor — 80px başlıkta 56px. */
.logo { display: inline-flex; align-items: center; gap: var(--space-3); color: #fff; font-weight: 700; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-img { width: 64px; height: 64px; border-radius: var(--r-md); flex: none; object-fit: contain; }
.logo-text {
  white-space: nowrap;
  font-size: var(--t-xl); letter-spacing: -.015em; line-height: 1.15;
}
/* Logo <picture> ile sarılı (WebP): sarmalayıcı esnek kutuda yer kaplayan
   öğe olduğu için boyut/küçülmeme kuralları ona da uygulanmalı. */
.logo > picture { display: inline-flex; flex: none; line-height: 0; }

/* Çeviriye geçerken satır içi style kalıntıları buraya taşındı */
.cookie-text { flex: 1; min-width: 280px; }
.error-list { margin: var(--space-2) 0 0 var(--space-5); }
.state-icon { color: var(--ink-500); margin-bottom: var(--space-4); }
.container--narrow { max-width: 760px; }
.view-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.fieldset--bare { border: 0; padding: 0; margin: 0; }
.auth-title { font-size: var(--t-2xl); }
.auth-links { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.otp-input { letter-spacing: .4em; font-size: var(--t-xl); text-align: center; }
.error-trace {
  text-align: start; background: var(--surface-2); padding: var(--space-4);
  border-radius: var(--r-lg); overflow: auto; font-size: var(--t-xs);
}
.summary--left, .kv--left { text-align: start; }
.pnr-code { font-size: 1.3rem; letter-spacing: .08em; }
.state-icon--ok  { color: var(--success); }
.state-icon--bad { color: var(--danger); }

.state-actions {
  display: flex; gap: var(--space-3); justify-content: center;
  flex-wrap: wrap; margin-top: var(--space-5);
}

.logo-img--footer { width: 24px; height: 24px; }

@media (max-width: 1279px) {
  /* Menü sıkışmaya başlayınca önce işaret küçülsün, ad kaybolmasın */
  .logo-img { width: 52px; height: 52px; }
  .logo-text { font-size: var(--t-lg); }
}
@media (max-width: 1023px) {
  .logo-img { width: 44px; height: 44px; }
  .logo-text { font-size: var(--t-base); }
}
@media (max-width: 559px) {
  /* Dar ekranda site adı logoyu 3 satıra bölüyordu — işaret yeterli,
     ekran okuyucu için metin görünür kalır. */
  .logo-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .site-header .container { gap: var(--space-3); }
  .header-actions .btn--sm { padding-inline: .75rem; font-size: var(--t-xs); }
}

.nav { display: flex; align-items: center; gap: var(--space-6); margin-inline-start: auto; }
.nav a {
  font-size: var(--t-sm); font-weight: 600; color: var(--brand-200);
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.lang-switch { display: inline-flex; align-items: center; gap: var(--space-1); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  font-size: var(--t-sm); font-weight: 600; color: var(--brand-200);
  border-radius: var(--r-md);
}
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.14); }

/* Mobil menü */
.nav-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-lg); color: #fff; cursor: pointer;
}

@media (max-width: 1023px) {
  .topbar { display: none; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; order: 2; }
  .header-actions { order: 3; }
  /* Dil değiştirici mobilde menünün içine düşer */
  .nav .lang-switch { padding-block: var(--space-2); gap: var(--space-2); }
  .nav {
    display: none;
    position: absolute; inset-inline: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand-900); padding: var(--space-2) var(--gutter) var(--space-4);
    box-shadow: var(--shadow-lg); margin: 0;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.10); font-size: var(--t-base); }
  .header-actions { margin-inline-start: 0; }
  .header-actions .btn--outline { display: none; }
}

.skip-link {
  position: fixed; top: -100px; inset-inline-start: var(--space-4); z-index: 300;
  background: var(--brand-900); color: #fff;
  padding: var(--space-3) var(--space-5); border-radius: var(--r-lg);
}
.skip-link:focus { top: var(--space-4); text-decoration: none; }

/* ---------------------------------------------------------------- 5. Hero */
/* Referans: h-screen, tam kaplama <img>, üstte overlay, içerik dikey ortalı */
.hero {
  position: relative;
  min-height: 24rem;
  height: 100svh;
  max-height: 46rem;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--brand-900);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,59,52,.86) 0%, rgba(13,59,52,.62) 55%, rgba(13,59,52,.42) 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: var(--prose); }
.hero-eyebrow {
  font-size: var(--t-lg); font-weight: 500; color: var(--brand-200);
  margin-bottom: var(--space-4);
}
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero p {
  font-size: var(--t-lg); line-height: 1.625;
  color: rgba(255,255,255,.90); margin-bottom: var(--space-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-10); }
.hero-stat { color: #fff; }
.hero-stat .value { display: block; font-size: var(--t-3xl); font-weight: 700; line-height: 1.1; }
.hero-stat .label { font-size: var(--t-sm); color: rgba(255,255,255,.78); }

/* ------------------------------------------------------------- 6. Butonlar */
/* Referans: tam hap (pill), ağırlık 500 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75rem 1.5rem;
  min-height: 44px;
  font-family: inherit; font-size: var(--t-base); font-weight: 500; line-height: 1;
  color: #fff; background: var(--brand-700);
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:hover { background: var(--brand-800); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--sm  { padding: .5rem 1rem;   font-size: var(--t-sm); min-height: 40px; }
.btn--lg  { padding: 1rem 2rem;    font-size: var(--t-base); min-height: 52px; }
.btn--block { display: flex; width: 100%; }

.btn--outline { background: transparent; border-color: var(--brand-700); color: var(--brand-800); }
.btn--outline:hover { background: var(--brand-50); border-color: var(--brand-800); color: var(--brand-900); }

/* Koyu zemin (hero) üzerindeki ikincil buton — inline style yerine */
.btn--on-dark { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--on-dark:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

.btn--light { background: #fff; color: var(--brand-800); border-color: #fff; }
.btn--light:hover { background: var(--brand-50); color: var(--brand-900); }

.btn--ghost { background: transparent; color: var(--brand-700); border-color: transparent; }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-900); }

.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #8a1a1a; }

.btn--accent { background: var(--accent-600); }
.btn--accent:hover { background: #55761d; }

/* ---------------------------------------------------------------- 7. Kart */
/* Referans: radius 16, shadow-lg, medya sabit 192px cover, gövde 24px */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
/* WebP için görseller <picture> ile sarıldı; bu kurallar yalnızca
   .card-media'yı dışlıyordu, sarmalayıcı dolgu alıp fotoğrafı kartın
   içine kaydırıyordu (ikon kartlarıyla hizasızdı). */
.card > *:not(.card-media):not(picture) { padding-inline: var(--space-6); }
.card > *:first-child:not(.card-media):not(picture) { padding-top: var(--space-6); }
.card > picture { display: block; }
.card > *:last-child { padding-bottom: var(--space-6); }

.card h3 { font-size: var(--t-xl); font-weight: 600; line-height: 1.4; margin-bottom: var(--space-2); color: var(--brand-900); }
.card p  { color: var(--ink-500); margin-bottom: 0; }

.card--media { padding: 0; }
.card-media { width: 100%; height: 192px; object-fit: cover; display: block; }
.card-body  { padding: var(--space-6); flex: 1; }
.card-body > *:last-child { margin-bottom: 0; }

@media (min-width: 1024px) { .card-media { height: 208px; } }

.card--media:hover { box-shadow: var(--shadow-2xl); }
a.card:hover, .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2xl); }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--space-4);
  background: var(--brand-50); color: var(--brand-700);
  border-radius: var(--r-xl); font-size: var(--t-xl);
}

.card--plan { text-align: center; position: relative; }
.card--plan.popular { border-color: var(--brand-500); box-shadow: var(--shadow-2xl); }
.price { font-size: var(--t-3xl); font-weight: 700; color: var(--brand-800); line-height: 1.1; }
.price small { display: block; font-size: var(--t-sm); font-weight: 400; color: var(--ink-500); }

.feature-list { list-style: none; padding: 0; margin: var(--space-4) 0; text-align: start; }
.feature-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.feature-list li:last-child { border-bottom: 0; }

/* -------------------------------------------------------- 8. Rozet / etiket */
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .25rem .625rem; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; line-height: 1.4;
  background: var(--ink-100); color: var(--ink-700);
}
.badge--muted   { background: var(--ink-100);   color: var(--ink-700); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--info    { background: var(--info-bg);    color: var(--info); }
.badge--popular { background: var(--brand-800); color: #fff; }

.pill {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .5rem 1rem; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-700);
}
a.pill:hover, .pill[aria-current="page"] { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-900); text-decoration: none; }

/* ---------------------------------------------------------------- 9. Form */
.form-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-group > label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-700); }
.required::after { content: " *"; color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%; min-height: 44px;
  padding: .625rem .875rem;
  font-family: inherit; font-size: var(--t-base); color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }

input:hover, select:hover, textarea:hover { border-color: var(--ink-300); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(39,168,136,.28);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163,32,32,.22); }

.form-hint { font-size: var(--t-sm); color: var(--ink-500); }
.field-error { font-size: var(--t-sm); color: var(--danger); font-weight: 500; margin: 0; }

.checkbox, .switch-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.checkbox input[type="checkbox"], .checkbox input[type="radio"] {
  width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--brand-600);
}
.switch-row { justify-content: space-between; align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); gap: var(--space-4); }
.switch-row:last-child { border-bottom: 0; }

.radio-cards { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .radio-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.radio-card {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.radio-card:hover { border-color: var(--brand-400); background: var(--brand-50); }
.radio-card:has(input:checked),
.radio-card.selected { border-color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-600); }

/* Kart içindeki açıklama ve tutar alt alta dursun (eskiden satır içi
   style="display:block" ile yapılıyordu). */
.radio-card .small,
.radio-card .price { display: block; }
.price--lg { font-size: var(--t-xl); }

/* --------------------------------------------------------------- 10. Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.panel-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
  font-size: var(--t-lg); font-weight: 700; color: var(--brand-900);
  margin: 0 0 var(--space-4);
}

.summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: var(--space-6); box-shadow: var(--shadow-sm);
}
.summary-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; font-size: var(--t-sm); }
.summary-row.total {
  border-top: 1px solid var(--line); margin-top: var(--space-2); padding-top: var(--space-3);
  font-size: var(--t-lg); font-weight: 700; color: var(--brand-900);
}
.summary-row .muted { color: var(--ink-500); }

.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: var(--space-2) var(--space-4); font-size: var(--t-sm); }
.kv dt, .kv .label { color: var(--ink-500); }
.kv dd, .kv .value { margin: 0; font-weight: 500; }

.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--space-5);
}
.stat .value { display: block; font-size: var(--t-2xl); font-weight: 700; color: var(--brand-800); line-height: 1.1; }
.stat .label { font-size: var(--t-sm); color: var(--ink-500); }

/* --------------------------------------------------------------- 11. Tablo */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.table-wrap:focus-visible { outline: 3px solid var(--brand-800); outline-offset: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th, .table td { padding: var(--space-3) var(--space-4); text-align: start; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface-2); font-weight: 600; color: var(--ink-700); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--brand-50); }

/* --------------------------------------------------------------- 12. Uyarı */
.alert {
  padding: var(--space-4) var(--space-5); border-radius: var(--r-xl);
  border: 1px solid transparent; margin-bottom: var(--space-4);
  font-size: var(--t-sm);
}
.alert :last-child { margin-bottom: 0; }
.alert--success { background: var(--success-bg); border-color: #bfe5d8; color: #0f5b47; }
.alert--danger  { background: var(--danger-bg);  border-color: #f2c4c4; color: #8a1a1a; }
.alert--warning { background: var(--warning-bg); border-color: #ecd4a4; color: var(--warning); }
.alert--info    { background: var(--info-bg);    border-color: #bcd8ea; color: var(--info); }
.alert ul { margin: 0; padding-inline-start: 1.25rem; }
.alert a { color: inherit; font-weight: 600; }

.empty-state {
  text-align: center; padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--line); border-radius: var(--r-2xl);
  color: var(--ink-500); background: var(--surface-2);
}
.empty-state p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ 13. Sihirbaz */
.steps {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  list-style: none; padding: 0; margin: 0 0 var(--space-8);
}
.steps li {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-500);
}
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--ink-300); color: #fff; font-size: var(--t-xs); font-weight: 700;
}
.steps li.done { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-900); }
.steps li.done .num { background: var(--brand-600); }
.steps li.done .num::after { content: "✓"; }
.steps li.done .num { font-size: 13px; }
.steps li.active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; font-weight: 600; }
.steps li.active .num { background: #fff; color: var(--brand-800); }
.steps li a { color: inherit; }

/* Sihirbaz yerleşimi — inline style yerine (mobilde 2fr 1fr kırılıyordu) */
.wizard-layout {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) {
  .wizard-layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--space-8); }
  .wizard-layout > .summary { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}

/* Aksiyon çubuğu — formun SON çocuğu olarak konur.
   Masaüstünde sağa yaslı normal satır, mobilde ekran altına yapışır. */
.wizard-bar {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: var(--space-8);
}
.wizard-bar .wizard-total { margin-inline-end: auto; font-weight: 700; color: var(--brand-900); white-space: nowrap; }
.wizard-bar .wizard-total small { display: block; font-weight: 400; font-size: var(--t-sm); color: var(--ink-500); }

@media (max-width: 899px) {
  .wizard-bar {
    position: sticky; bottom: 0; z-index: 40;
    margin: var(--space-8) calc(var(--gutter) * -1) 0;
    padding: var(--space-3) var(--gutter);
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(16,32,28,.10);
    flex-wrap: nowrap;
  }
  .wizard-bar .btn--primary-action { flex: 1; }
  /* Geri bağlantısı mobilde çubuğa sığmaz — formun içinde kalır */
  .wizard-bar .wizard-back { display: none; }
}
.wizard-back-mobile { display: none; }
@media (max-width: 899px) { .wizard-back-mobile { display: block; margin-top: var(--space-4); } }

/* ---------------------------------------------------------- 14. Parsel harita */
.parcel-map { overflow-x: auto; }
.map-frame { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface-2); padding: var(--space-4); }

.parcel-svg { width: 100%; min-width: 0; height: auto; }
.parcel-svg .parcel { cursor: pointer; transition: opacity .15s ease; }
.parcel-svg .parcel rect { fill: var(--surface); stroke: var(--brand-500); stroke-width: 1.5; }
.parcel-svg .parcel text { fill: var(--ink-700); }

.parcel-svg .parcel.occupied { cursor: not-allowed; }
.parcel-svg .parcel.occupied rect { fill: #eef0ef; stroke: var(--ink-300); }
.parcel-svg .parcel.occupied text { fill: var(--ink-300); text-decoration: line-through; }

.parcel-svg .parcel.maintenance rect { fill: var(--warning-bg); stroke: var(--warning); }
.parcel-svg .parcel.maintenance text { fill: var(--warning); }

/* Seçim geri bildirimi — önceki sürümde CSS kuralı yoktu, seçim görünmüyordu */
.parcel-svg .parcel.selected rect { fill: var(--brand-700); stroke: var(--brand-900); stroke-width: 2.5; }
.parcel-svg .parcel.selected text { fill: #fff; font-weight: 700; }
.parcel-svg .parcel:focus-visible { outline: none; }
.parcel-svg .parcel:focus-visible rect { stroke: var(--brand-900); stroke-width: 3.5; }

.parcel-grid {
  display: grid; min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-2);
}
.parcel {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: var(--space-2);
  border: 1px solid var(--brand-300); border-radius: var(--r-lg);
  background: var(--surface); font-size: var(--t-sm); font-weight: 600;
  cursor: pointer; text-align: center;
}
.parcel.occupied { background: #f3f4f4; color: var(--ink-300); border-color: var(--ink-100); cursor: not-allowed; text-decoration: line-through; }
.parcel.maintenance { background: var(--warning-bg); color: var(--warning); border-color: #ecd4a4; }
.parcel.selected,
.parcel:has(input:checked) { background: var(--brand-700); color: #fff; border-color: var(--brand-900); }
.parcel:has(input:focus-visible) { outline: 3px solid var(--brand-900); outline-offset: 2px; }
.parcel small { display: block; font-weight: 400; font-size: var(--t-xs); }
.parcel.occupied input, .parcel.maintenance input { cursor: not-allowed; }

.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--t-sm); color: var(--ink-500); margin-top: var(--space-4); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend i { width: 14px; height: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); display: inline-block; }

@media (max-width: 639px) { .map-frame { display: none; } }

/* ------------------------------------------------------------ 15. Çerez CMP */
/* Band VARSAYILAN OLARAK GİZLİDİR; yalnızca .show ile açılır.
   (Kullanıcı henüz karar vermediyse şablon .show sınıfını ekler.) */
.cookie-banner {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(16,32,28,.12);
  padding: var(--space-4) 0;
}
.cookie-banner.show { display: block; }
.cookie-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); justify-content: space-between; }
.cookie-banner > .container > div:first-child { flex: 1; min-width: 280px; }
.cookie-banner p { margin: 0; font-size: var(--t-sm); max-width: 62ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Band açıkken sayfanın altı bandın arkasında kalmasın (içerik ve CTA gizleniyordu) */
body:has(.cookie-banner.show) { padding-bottom: 180px; }
@media (min-width: 768px) { body:has(.cookie-banner.show) { padding-bottom: 120px; } }

/* Markup: dış katman .modal-overlay, iç kutu .modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 95;
  display: none; align-items: center; justify-content: center;
  padding: var(--gutter); background: rgba(10,22,19,.55);
}
.modal-overlay.show { display: flex; }
.modal, .modal-box {
  background: var(--surface); border-radius: var(--r-2xl);
  padding: var(--space-6); max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-2xl);
}
.modal h3 { margin-top: 0; }

/* --------------------------------------------------------------- 16. Footer */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.82); padding-block: var(--space-16) var(--space-8); margin-top: var(--space-20); }
.site-footer h4 { color: #fff; font-size: var(--t-base); margin-bottom: var(--space-4); }
.site-footer a { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 520px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); } }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: var(--space-10); padding-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--t-sm);
}

/* Kapanış çağrısı bandı — home.php'deki satır içi stil yığını yerine */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  background: var(--brand-900); color: #fff;
  border-radius: var(--r-2xl); padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p  { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }

/* ------------------------------------------------------------ 17. Yardımcı */
.auth-wrap { max-width: 460px; margin-inline: auto; }
.legal-body { max-width: var(--prose); }
.legal-body h2 { font-size: var(--t-2xl); margin-top: var(--space-8); }
.legal-body h3 { font-size: var(--t-lg); margin-top: var(--space-6); }

.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-5); }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-500); border: 2px solid var(--surface);
}

.media-preview { display: flex; gap: var(--space-4); align-items: flex-start; }
.media-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }

/* ------------------------------------------------------------- 18. Odak */
/* Eski halka --brand-500 idi: beyazda 2.98:1 (WCAG 1.4.11 eşiği 3:1) — başarısız */
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus-visible {
  outline: 3px solid var(--brand-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255,255,255,.92);
  border-radius: var(--r-sm);
}
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .topbar :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px rgba(13,59,52,.85);
}

/* ------------------------------------------------- 19. Hareket duyarlılığı */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card--media:hover, a.card:hover,
  .parcel:hover, .parcel-svg .parcel:hover { transform: none; }
}

/* ------------------------------------------------------- 20. Dokunma hedefi */
@media (pointer: coarse) {
  .btn--sm, .nav a, .lang-switch a, .site-footer a, .pill { min-height: 44px; }
}

/* --------------------------------------------------------------- 21. Yazdır */
@media print {
  .site-header, .topbar, .site-footer, .cookie-banner, .skip-link, .btn, .steps { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ---------------------------------------------------------------- 22. Font */
/* Mark Pro lisanslıdır. assets/fonts/ altına WOFF2 koyulduğunda devreye girer.
   Dosyalar yoksa bu bloklar 404 üretmesin diye @supports guard yerine
   yalnızca gerçekten koyacağınız ağırlıkları açık bırakın. */
@font-face {
  font-family: "Mark Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/markpro-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20BA;
}
@font-face {
  font-family: "Mark Pro"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/markpro-medium.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20BA;
}
@font-face {
  font-family: "Mark Pro"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/markpro-bold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20BA;
}

/* ==========================================================================
   23. YÖNETİM PANELİ
   Önceki sürümde layouts/admin.php içinde 60 satır satır içi CSS vardı ve
   kaldırılmış token'lara (--radius) bağlıydı; panel bu yüzden bozuk görünüyordu.
   Tümü buraya taşındı, tek tasarım sistemine bağlandı.
   ========================================================================== */

.admin-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface-2);
}

/* ------------------------------------------------------------ Kenar çubuğu */
.admin-side {
  background: var(--brand-900);
  color: var(--brand-200);
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.admin-brand {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-4);
  color: #fff; font-weight: 700; font-size: var(--t-base);
  border-bottom: 1px solid rgba(255,255,255,.10);
  flex: none;
}
.admin-brand:hover { text-decoration: none; color: #fff; }
.admin-brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  background: var(--brand-600); border-radius: var(--r-lg);
}
.admin-brand small { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--brand-300); }

.admin-nav {
  flex: 1; overflow-y: auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.admin-nav::-webkit-scrollbar { width: 8px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: var(--r-pill); }

.admin-nav-group + .admin-nav-group { margin-top: var(--space-5); }
.admin-nav-group > h3 {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-400); margin: 0 0 var(--space-2); padding-inline: var(--space-3);
}

.admin-nav a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  min-height: 40px;
  border-radius: var(--r-lg);
  color: var(--brand-200); font-size: var(--t-sm); font-weight: 500;
  line-height: 1.3;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-nav a[aria-current="page"] { background: var(--brand-600); color: #fff; font-weight: 600; }
.admin-nav a svg { flex: none; width: 18px; height: 18px; opacity: .85; }
.admin-nav a[aria-current="page"] svg { opacity: 1; }

.admin-nav .count {
  margin-inline-start: auto;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: var(--t-xs); font-weight: 700;
  padding: .1rem .45rem; border-radius: var(--r-pill);
}
.admin-nav a[aria-current="page"] .count { background: rgba(0,0,0,.22); }

.admin-side-foot {
  flex: none;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: var(--space-3);
}
.admin-side-foot a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); min-height: 40px;
  border-radius: var(--r-lg); color: var(--brand-200); font-size: var(--t-sm);
}
.admin-side-foot a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-side-foot svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------- Üst çubuk */
.admin-main { min-width: 0; display: flex; flex-direction: column; }

.admin-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.admin-top h1 { font-size: var(--t-xl); margin: 0; line-height: 1.2; }
.admin-top .admin-top-meta { margin-inline-start: auto; display: flex; align-items: center; gap: var(--space-3); }

.admin-user { display: flex; align-items: center; gap: var(--space-2); font-size: var(--t-sm); }
.admin-user .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-800);
  font-weight: 700; font-size: var(--t-sm); flex: none;
}
.admin-user .who { line-height: 1.2; }
.admin-user .who strong { display: block; }
.admin-user .who span { font-size: var(--t-xs); color: var(--ink-500); }

.admin-body { padding: var(--space-6); flex: 1; }
@media (min-width: 1280px) { .admin-body { padding: var(--space-8); } }

/* Panelde kartlar daha sakin: gölge yerine ince çizgi */
.admin-body .panel { box-shadow: none; }
.admin-body .stat { box-shadow: none; }
.admin-body .stat .label {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-500); font-weight: 600;
}
.admin-body .stat .value { font-size: var(--t-2xl); font-weight: 700; color: var(--brand-900); }

/* Kenar çubuğunu açan buton — yalnızca dar ekranda */
.admin-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--ink-700); cursor: pointer;
}

.admin-backdrop { display: none; }

/* ------------------------------------------------------------- Mobil */
@media (max-width: 1023px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }

  .admin-side {
    position: fixed; inset-block: 0; inset-inline-start: 0;
    width: min(288px, 86vw); z-index: 90;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: var(--shadow-2xl);
  }
  .admin-side[data-open="true"] { transform: none; }

  .admin-toggle { display: inline-flex; }

  .admin-backdrop {
    display: block; position: fixed; inset: 0; z-index: 85;
    background: rgba(10,22,19,.5);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .admin-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

  .admin-body { padding: var(--space-4); }
  .admin-top { padding: var(--space-3) var(--space-4); }
  .admin-top h1 { font-size: var(--t-lg); }
  .admin-user .who { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-side, .admin-backdrop { transition: none; }
}

/* Panelde tablolar sık kullanılır — okunabilirliği artır */
.admin-body .table th {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .04em;
}
.admin-body .table td { vertical-align: middle; }
.admin-body .table tbody tr:hover { background: var(--brand-50); }

/* Araç çubuğu: filtre + arama satırı */
.admin-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.admin-toolbar form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0; }
.admin-toolbar .form-group { margin: 0; }
.admin-toolbar input, .admin-toolbar select { min-width: 160px; }
.admin-toolbar .spacer { margin-inline-start: auto; }

/* ------------------------------------------------- 24. Panel liste ekranları */

/* Araç çubuğu — filtreler .form-row (2 sütunlu ızgara) içindeydi ve tuhaf
   diziliyordu. Yatay, sarmalayan bir şerit çok daha okunaklı. */
.admin-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--space-4);
}
.admin-toolbar > form { flex: 1; }
.admin-toolbar label {
  display: block; font-size: var(--t-xs); font-weight: 600;
  color: var(--ink-500); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em;
}
.admin-toolbar .field { display: flex; flex-direction: column; }
.admin-toolbar .field--grow { flex: 1; min-width: 200px; }
.admin-toolbar .actions { display: flex; gap: var(--space-2); align-items: flex-end; }

.result-count {
  font-size: var(--t-sm); color: var(--ink-500); font-weight: 500;
  white-space: nowrap;
}

/* Liste başlığı: sol tarafta sayı, sağda birincil eylem */
.list-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.list-head .spacer { margin-inline-start: auto; }

/* Duyarlı tablo: dar ekranda ikincil sütunlar gizlenir.
   Yatay kaydırmada 10 sütun taramak yerine önemli olanlar görünür kalır. */
@media (max-width: 899px) {
  .table .col-optional { display: none; }
}
@media (max-width: 639px) {
  .table .col-optional-sm { display: none; }
  .table th, .table td { padding: var(--space-2) var(--space-3); }
}

/* Tablo içindeki birincil tanımlayıcı (kod, PNR) öne çıksın */
.table .cell-id { font-weight: 700; color: var(--brand-900); white-space: nowrap; }
.table .cell-id a { color: inherit; }
.table .cell-sub { font-size: var(--t-xs); color: var(--ink-500); display: block; margin-top: .1rem; }
.table .cell-num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .cell-actions { text-align: end; white-space: nowrap; }

/* Satır tıklanabilir hissi vermesin diye yalnızca eylem sütunu vurgulanır */
.table tbody tr:hover .cell-actions .btn { border-color: var(--brand-600); }

/* Sayfalama */
.pager {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  justify-content: center; margin-top: var(--space-5);
}
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 var(--space-3);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); font-size: var(--t-sm); color: var(--ink-700);
}
.pager a:hover { border-color: var(--brand-500); color: var(--brand-800); text-decoration: none; }
.pager [aria-current="page"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: transparent; min-width: 0; }

/* Tablo satırındaki eylem grubu — önceki sürümde her form
   style="display:inline" ile hizalanıyordu ve butonlar üst üste biniyordu. */
.row-actions { display: flex; gap: var(--space-2); justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; display: contents; }

/* ==========================================================================
   25. PANEL DETAY EKRANLARI
   Rezervasyon/ödeme detayında kullanılan küçük yapılar. Bunlar daha önce
   satır içi style ile çözülüyordu; buraya taşındı.
   ========================================================================== */

/* Detay sayfasının üst eylem şeridi sola yaslanır — tablo satırındaki
   .row-actions ise sağa yaslı kalmalı, o yüzden yalnızca burada eziyoruz. */
.admin-toolbar .row-actions { justify-content: flex-start; }

/* Tablo dışında da alt bilgi satırı (tanım listesi, zaman çizelgesi) */
.cell-sub { font-size: var(--t-xs); color: var(--ink-500); }
.kv .cell-sub, .timeline .cell-sub { display: block; margin-top: .1rem; font-weight: 400; }

/* Madde imi olmayan basit liste (konaklayanlar, kısa dökümler) */
.plain-list { list-style: none; padding: 0; margin: 0; font-size: var(--t-sm); }
.plain-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

/* Tablo toplam satırı */
.table tfoot td {
  background: var(--surface-2); font-weight: 600; color: var(--ink-700);
  border-bottom: 0; border-top: 2px solid var(--line);
}

/* Teknik tanımlayıcılar (idempotency anahtarı, sağlayıcı referansı) —
   satır kaymasın diye dar ve kırpılabilir. */
.mono-sm {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--t-xs); color: var(--ink-700);
  overflow-wrap: anywhere;
}

/* Panel içinde küçük boş durum — tam sayfalık .empty-state fazla yer kaplıyor */
.empty-state--inline {
  padding: var(--space-4); text-align: start;
  background: var(--surface-2); border-radius: var(--r-lg);
  color: var(--ink-500); font-size: var(--t-sm);
}

/* ==========================================================================
   26. TABLO İÇİ DÜZENLEME (fiyat ekranı)
   Fiyat satırları doğrudan tabloda düzenleniyor. Alanlar eskiden
   style="max-width:130px" ile tutuluyordu; ölçüler buraya taşındı.
   ========================================================================== */

.table--editable td { vertical-align: middle; }

.input-inline {
  width: 100%; max-width: 220px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-900);
  font: inherit; font-size: var(--t-sm);
}
.input-inline:focus-visible { border-color: var(--brand-600); }
.input-inline--num  { max-width: 130px; text-align: end; font-variant-numeric: tabular-nums; }
.input-inline--mult { max-width: 88px;  text-align: end; font-variant-numeric: tabular-nums; }
/* Dar ekranda ad sütunu 110px'e düşüp "Çamaşırhane —" gibi kırpılıyordu;
   iki farklı hizmet aynı görünüyordu. Taban alan okunur bir genişliğin
   altına inmesin — tablo gerekirse yatay kayar. */
.input-inline { min-width: 150px; }
.input-inline--num,
.input-inline--mult,
.input-inline--short { min-width: 0; }
.input-inline--short { max-width: 140px; }
.input-inline--mono  { max-width: none; font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: var(--t-xs); }

/* Pasif kural hâlâ okunabilir olmalı ama aktif olanla karışmamalı */
.row-muted > td { opacity: .55; }
.row-muted .input-inline { background: var(--surface-2); }

/* Form ızgarasında tam genişlik isteyen alan */
.form-group--full { grid-column: 1 / -1; }

/* ==========================================================================
   27. RAPOR VE MUTABAKAT
   ========================================================================== */

/* Para değerleri sayaç rakamlarından uzun — küçültülüp hizalanır.
   Eskiden satır içi style="font-size:1.35rem" ile yapılıyordu. */
.stat .value--money { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* Net satırı özet ızgarasında öne çıksın */
.stat--accent { border-color: var(--brand-500); background: var(--brand-50); }
.stat--accent .value { color: var(--brand-800); }

/* Mutabakatsız gün gizlenmemeli */
.row-danger > td { background: var(--danger-bg); }
.text-danger { color: var(--danger); }

/* Tablo satırının altına iliştirilen açıklama satırı */
.row-note > td { border-top: 0; padding-top: 0; }

/* Hesap menüsü — satır içi style ile kuruluyordu */
.profile-nav {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  align-items: center; padding: var(--space-3);
}
.profile-nav__end { margin-inline-start: auto; display: flex; gap: var(--space-2); }
@media (max-width: 640px) {
  .profile-nav__end { margin-inline-start: 0; width: 100%; }
}
.row-actions--start { justify-content: flex-start; }

/* ==========================================================================
   28. PANEL GİRİŞ EKRANI
   Sekiz eşit sayı yerine: önce bugünün durumu, sonra yapılacak işler.
   ========================================================================== */

.dash-section { margin-bottom: var(--space-6); }
.dash-heading {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-3); font-size: var(--t-base); font-weight: 600;
  color: var(--ink-700); text-transform: uppercase; letter-spacing: .04em;
}

.panel-title__sub { font-weight: 400; font-size: var(--t-sm); color: var(--ink-500); }

/* Yapılacak işler — her satır tıklanabilir ve doğrudan ilgili ekrana gider */
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }

.task__link {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--line);
  border-inline-start-width: 4px; border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
}
.task__link:hover { border-color: var(--brand-500); text-decoration: none; }
.task__link:hover .task__go { transform: translateX(3px); }

.task__count {
  flex: none; min-width: 2.5rem; text-align: center;
  font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.task__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: .1rem; }
.task__label { font-size: var(--t-sm); }
.task__note { font-size: var(--t-xs); color: var(--ink-500); }
.task__go { flex: none; color: var(--ink-500); transition: transform .15s ease; }

@media (prefers-reduced-motion: reduce) {
  .task__go { transition: none; }
  .task__link:hover .task__go { transform: none; }
}

/* Aciliyet rengi yalnızca kenarda — satır metni her temada okunur kalsın */
.task--danger  .task__link  { border-inline-start-color: var(--danger); }
.task--danger  .task__count { color: var(--danger); }
.task--warning .task__link  { border-inline-start-color: var(--warning); }
.task--warning .task__count { color: var(--warning); }
.task--info    .task__link  { border-inline-start-color: var(--brand-500); }
.task--info    .task__count { color: var(--brand-800); }

/* Başlıktaki kullanıcı bloğu artık "Hesabım" bağlantısı */
a.admin-user { text-decoration: none; color: inherit; border-radius: var(--r-lg); padding: var(--space-1) var(--space-2); }
a.admin-user:hover { background: var(--surface-2); text-decoration: none; }
a.admin-user:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* ==========================================================================
   29. İÇERİK EKRANLARI
   ========================================================================== */

/* Eksik/boş çeviri satırı — sitede ham anahtar basılacağı için görünür olmalı */
.row-warn > td { background: var(--warning-bg); }

/* Yayından kaldırılmış kayıt: okunur ama aktiften ayırt edilir */
.panel--muted { border-style: dashed; }
.panel--muted > form { opacity: .75; }

/* Uzun metin alanı (çeviri değeri) */
.input-inline--wide { max-width: none; }

/* ==========================================================================
   30. HESAP SAYFALARI
   Profil / şifre / doğrulama sayfaları kapsayıcıyı satır içi style ile
   daraltıyordu (620px, 760px); diğer hesap sayfaları tam genişlikti. Bu yüzden
   hesap menüsü sayfa değiştikçe genişlik değiştiriyordu. Artık kapsayıcı her
   yerde aynı; daralan şey yalnızca form panelinin İÇİ.
   ========================================================================== */

.panel--form { max-width: 760px; }
.panel--form .form-row { max-width: 100%; }

/* Şifre kuralları — form-hint'ten daha okunur bir liste */
.rule-list {
  list-style: none; margin: 0 0 var(--space-4); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  font-size: var(--t-sm); color: var(--ink-500);
}
.rule-list li::before { content: "•"; margin-inline-end: .4rem; color: var(--brand-500); }

/* Yan yana iki form panelinde de aynı genişlik kuralı geçerli olmasın */
.grid--2 .panel--form { max-width: none; }
.stat .value--badge { font-size: 1rem; }

/* ==========================================================================
   31. İÇ SAYFA KALIBI
   İç sayfalar çıplak <h1> ile başlıyordu; anasayfadaki .section-head ritmi
   yoktu, bu yüzden aynı siteye ait görünmüyorlardı. .page-head aynı ölçüleri
   h1 için tekrarlar (ortalanmış, 672px alt metin, aynı alt boşluk).
   ========================================================================== */

.page-head { text-align: center; margin-bottom: var(--space-16); }
.page-head h1 { margin-bottom: var(--space-4); }
.page-head p {
  font-size: var(--t-lg); line-height: 1.55; color: var(--ink-500);
  max-width: var(--measure); margin-inline: auto; margin-bottom: 0;
}

/* Yönetilen HTML içerik blokları (statik sayfa gövdesi) */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.prose p { color: var(--ink-700); }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }

/* Sayfa başlığının altına giren yönetilen giriş metni: ayrı bir sola dayalı
   paragraf gibi durmasın, .page-head p ile aynı ritmi izlesin. */
.prose--lead { margin-inline: auto; text-align: center; }
.prose--lead p { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-500); }
.prose--lead > *:last-child { margin-bottom: 0; }

/* Kategori süzgeci — eskiden tıklanamayan <span class="pill"> idi */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: center; margin-bottom: var(--space-8);
}

/* Site tarafındaki arama/süzme çubuğu (panel .admin-toolbar karşılığı) */
.site-filter {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end;
  padding: var(--space-4); margin-bottom: var(--space-8);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
}
.site-filter .field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 200px; }
.site-filter .field--grow { flex: 1 1 260px; }
.site-filter .actions { display: flex; gap: var(--space-2); }

.faq-question { font-size: var(--t-lg); margin: var(--space-3) 0 var(--space-2); }

/* Hakkımızda: metin ve görsel yan yana, görsel kart oranında */
.about-split { align-items: start; }
.about-media {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-xl); object-fit: cover;
}

/* Emoji ikonlar SVG oldu — kutunun içinde ortalansın */
.card-icon svg { width: 28px; height: 28px; }

/* Okuma genişliği — yasal metin ve çerez tercihleri sayfaları satır içi
   style ile daraltılıyordu (900px / 820px). */
.container--reading { max-width: 900px; }

/* Buton grubu (çerez tercihleri) */
.button-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* İletişim sayfasındaki bilgi kartları sütunu */
.contact-aside { display: grid; gap: var(--space-4); align-content: start; }

/* ==========================================================================
   32. İÇERİK YÖNETİMİ EKRANI
   ========================================================================== */

.content-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2);
  font-size: var(--t-lg); margin: 0 0 var(--space-4);
}

.inline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* Olanak kartları — görsel solda, alanlar sağda */
.widget-list { display: grid; gap: var(--space-5); }
.widget-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface);
}
.widget-item--off { border-style: dashed; opacity: .7; }
.widget-thumb {
  flex: none; width: 96px; height: 96px; object-fit: cover;
  border-radius: var(--r-lg); background: var(--surface-2);
}
.widget-fields { flex: 1 1 auto; min-width: 0; }

@media (max-width: 640px) {
  .widget-item { flex-direction: column; }
  .widget-thumb { width: 100%; height: 140px; }
}


/* ==========================================================================
   33. PANEL LİSTE/DETAY EK PARÇALARI
   Galeri, bildirim, yıllık kiralama ve mesaj ekranları satır içi style ile
   kurulmuştu; ölçüler buraya alındı. .admin-thumb hiç tanımlı değildi, bu
   yüzden galeri görselleri doğal boyutta açılıp tabloyu dağıtıyordu.
   ========================================================================== */

.admin-thumb {
  display: block; width: 112px; height: 72px; object-fit: cover;
  border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--line);
}

/* Dosya yolu gibi kırılamayan uzun metinler sütunu esnetmesin */
.cell-path {
  display: block; max-width: 160px;
  overflow-wrap: anywhere; word-break: break-word;
}

/* Gizli dosya seçicisini saran etiket: butona benzesin ve tıklanabilir olsun */
.btn--file { cursor: pointer; }
.btn--file input[type="file"] { position: absolute; }

/* Aynı sayfadaki ikinci/üçüncü liste başlığı */
.list-head--section {
  margin-top: var(--space-10); padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.list-head--section h2 { margin: 0; font-size: var(--t-lg); }

.panel-subtitle {
  margin: 0 0 var(--space-3); font-size: var(--t-sm);
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500);
}

/* Misafir mesajı: satır sonları korunsun, uzun bağlantılar taşmasın */
.message-body {
  white-space: pre-wrap; overflow-wrap: anywhere;
  color: var(--ink-700); line-height: 1.65;
}

/* ------------------------------------------------- 30. Hero slaytları */
/* Slaytlar üst üste durur; yalnızca .is-active görünür. Opaklık geçişi
   layout hesaplamaz, bu yüzden düşük güçlü telefonlarda da akıcıdır. */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide picture { display: block; }

.hero-nav {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: var(--space-6);
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-4);
}
.hero-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(13,59,52,.35);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.hero-arrow:hover { background: rgba(13,59,52,.65); border-color: #fff; }
.hero-dots { display: inline-flex; gap: var(--space-2); }
.hero-dot {
  width: .6rem; height: .6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 640px) {
  .hero-arrow { display: none; }
  .hero-nav { bottom: var(--space-4); }
}

/* Hareketi azalt: slayt geçişi anında olur, otomatik geçiş JS'te kapanır */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ------------------------------------------------- 31. Duyuru (popup) */
.announce {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.announce[hidden] { display: none; }
.announce-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 24, 21, .62);
}
.announce-box {
  position: relative;
  width: min(34rem, 100%);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: announce-in .28s ease-out;
}
@keyframes announce-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .announce-box { animation: none; }
}
.announce-close {
  position: absolute; top: .75rem; right: .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #1a1a1a;
  cursor: pointer;
}
.announce-close:hover { background: #fff; }
.announce-media img {
  display: block; width: 100%; height: 12rem;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}
.announce-body { padding: var(--space-6); }
.announce-body h2 { margin: 0 0 var(--space-3); font-size: var(--t-2xl); }
.announce-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Panel: hero slayt listesi */
.slide-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.slide-card {
  border: 1px solid var(--line);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--surface);
}
.slide-card img {
  display: block; width: 100%; height: 8rem; object-fit: cover;
}
.slide-card-body { padding: var(--space-3); display: grid; gap: var(--space-2); }
.slide-card--inactive { opacity: .55; }
