/* Keremgezer Turizm — Design Tokens & Globals */

:root {
  /* Brand */
  --brand-blue: #0288D1;
  --brand-blue-deep: #01579B;
  --brand-blue-ink: #003C6E;
  --brand-orange: #FF9800;
  --brand-orange-deep: #E65100;
  --brand-orange-warm: #FFB74D;

  /* Surfaces — warm paper */
  --paper: #FBF7F0;
  --paper-2: #F5EEE0;
  --paper-3: #EFE4CE;
  --white: #FFFFFF;

  /* Ink */
  --ink: #0E1A26;
  --ink-2: #2A3845;
  --ink-soft: #556471;
  --ink-mute: #8A95A0;
  --line: #E6DDCC;
  --line-strong: #CFC2A8;

  /* States */
  --success: #2E7D32;
  --danger: #C62828;
  --warn: #ED6C02;

  /* Radii (controlled by tweak via --r-mult) */
  --r-mult: 1;
  --r-xs: calc(4px * var(--r-mult));
  --r-sm: calc(8px * var(--r-mult));
  --r-md: calc(14px * var(--r-mult));
  --r-lg: calc(22px * var(--r-mult));
  --r-xl: calc(32px * var(--r-mult));
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 0 rgba(14,26,38,.04), 0 1px 3px rgba(14,26,38,.06);
  --sh-2: 0 2px 6px rgba(14,26,38,.06), 0 8px 24px rgba(14,26,38,.08);
  --sh-3: 0 12px 40px rgba(14,26,38,.12);

  /* Type */
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-body: 'Raleway', system-ui, -apple-system, sans-serif;
  /* Rakamlar: Raleway'in old-style rakamları satırda dalgalanır;
     fiyat/istatistik gibi sayısal alanlarda Montserrat kullanılır */
  --font-num: 'Montserrat', 'Raleway', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Raleway rakamlarını satır hizasına oturt (old-style yerine lining) */
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

#root { min-height: 100vh; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; font-weight: 800; }
h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 700; }
p { margin: 0; text-wrap: pretty; color: var(--ink-2); }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ── Layout helpers ──────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--brand-orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brand-orange-deep);
}

.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand-blue-ink); }
.btn-accent { background: var(--brand-orange); color: var(--ink); }
.btn-accent:hover { background: var(--brand-orange-deep); color: var(--paper); }
.btn-blue { background: var(--brand-blue); color: var(--white); }
.btn-blue:hover { background: var(--brand-blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 999px; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--sh-2); }

/* ── Placeholder image — striped warm paper with mono label ── */
.ph {
  position: relative;
  display: flex; align-items: flex-end;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,152,0,0.10) 0 12px,
      rgba(2,136,209,0.08) 12px 24px,
      rgba(14,26,38,0.04) 24px 36px);
  background-color: var(--paper-2);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 55%);
  pointer-events: none;
}
.ph-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(251,247,240,.92);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  margin: 12px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  font-weight: 500;
}
.ph-sm .ph-label { font-size: 10px; padding: 4px 7px; margin: 8px; }

/* Footer sosyal medya butonları */
.footer .footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex: 0 0 auto;
  transition: background .15s ease, transform .15s ease;
}
.footer .footer-social svg { display: block; }
.footer-social:hover { background: var(--brand-orange) !important; color: var(--ink) !important; transform: translateY(-2px); }
.footer-social-wa:hover { background: #1EBE5B !important; color: #fff !important; }

/* Gerçek fotoğraf — Placeholder ile aynı yerleşimi kullanır */
.ph.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph.photo::before { display: none; }

/* Variant stripes for variety */
.ph-v1 {
  background:
    repeating-linear-gradient(110deg,
      rgba(2,136,209,0.12) 0 8px,
      rgba(255,152,0,0.10) 8px 16px,
      rgba(14,26,38,0.05) 16px 24px);
  background-color: #E8DBC2;
}
.ph-v2 {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,152,0,0.14) 0 14px,
      rgba(229,221,204,0.6) 14px 28px);
  background-color: #F2E6CC;
}
.ph-v3 {
  background:
    repeating-linear-gradient(160deg,
      rgba(2,136,209,0.16) 0 6px,
      rgba(251,247,240,0.4) 6px 18px);
  background-color: #D9E5EE;
}
.ph-v4 {
  background:
    repeating-linear-gradient(75deg,
      rgba(14,26,38,0.10) 0 18px,
      rgba(255,152,0,0.10) 18px 36px,
      rgba(2,136,209,0.10) 36px 54px);
  background-color: #E8DDC8;
}

/* Kilim ornament — simple geometric accents */
.ornament {
  display: inline-block;
  width: 100%;
  max-width: 240px;
  height: 14px;
  background:
    radial-gradient(circle at 12px 7px, var(--brand-orange) 2.5px, transparent 3px),
    radial-gradient(circle at 30px 7px, var(--brand-blue) 2.5px, transparent 3px),
    radial-gradient(circle at 48px 7px, var(--brand-orange) 2.5px, transparent 3px);
  background-size: 60px 14px;
  background-repeat: repeat-x;
  opacity: 0.85;
}
.ornament-line {
  height: 1px;
  background: repeating-linear-gradient(to right,
    var(--ink) 0 6px, transparent 6px 14px);
  width: 100%;
}

/* ── Forms ───────────────────────────────────────────── */
.input, .select, .textarea {
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--ink);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2,136,209,.18);
}
.label-sm {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

/* ── Chips ───────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.chip-blue { background: rgba(2,136,209,.10); border-color: rgba(2,136,209,.25); color: var(--brand-blue-deep); }
.chip-orange { background: rgba(255,152,0,.14); border-color: rgba(255,152,0,.3); color: var(--brand-orange-deep); }
.chip-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Scrollbar polish ────────────────────────────────── */
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

/* ── Animation ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }

/* ── App shell ───────────────────────────────────────── */
.appshell { min-height: 100vh; display: flex; flex-direction: column; }

.floating-whatsapp {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  border: 1px solid rgba(14,26,38,.12);
  box-shadow: 0 12px 34px rgba(14,26,38,.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.floating-whatsapp svg { display: block; }
.floating-whatsapp:hover {
  background: #1DB954;
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(14,26,38,.28);
}
.floating-whatsapp:active { transform: translateY(-1px); }

/* Public nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--ink); color: var(--paper); }

/* Hamburger — sadece mobilde görünür */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-mobile > a:not(.btn) {
  padding: 13px 12px;
  border-radius: var(--r-sm);
  font-size: 16px; font-weight: 500;
  color: var(--ink-2);
}
.nav-mobile > a:not(.btn):hover, .nav-mobile > a.active { background: var(--ink); color: var(--paper); }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  max-width: 100%;
}

/* ── Tour card ───────────────────────────────────────── */
.tour-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  text-align: left;
}
.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.tour-card .ph {
  aspect-ratio: 4 / 3;
}
.tour-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-card.compact .ph { aspect-ratio: 3 / 2; }
.tour-card.compact .tour-card-body { padding: 14px 16px 16px; gap: 8px; }
.tour-card.compact h3 { font-size: 18px; }

.tour-card-meta {
  display: flex; gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  align-items: center;
  flex-wrap: wrap;
}
.tour-card-meta b { color: var(--ink); font-weight: 600; }
.tour-card-meta .sep { width: 3px; height: 3px; background: var(--ink-mute); border-radius: 50%; }

.tour-card-price {
  margin-top: auto;
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}
.tour-card-price .price {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tour-card-price .from {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tour-card-price .early {
  font-size: 11px;
  color: var(--brand-orange-deep);
  font-weight: 600;
}

/* Tag/badge on top-left of tour card image */
.tour-card-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.tour-card-badge .chip {
  background: rgba(255,255,255,.95);
  border-color: transparent;
  font-size: 11px;
  padding: 4px 9px;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
  margin-top: auto;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange-warm);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer a { color: rgba(251,247,240,.7); display: block; padding: 5px 0; font-size: 14px; }
.footer a:hover { color: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(251,247,240,.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(251,247,240,.55);
}

/* ── Section ─────────────────────────────────────────── */
section { padding: 80px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .col { gap: 14px; max-width: 640px; }

/* ── Admin styles ────────────────────────────────────── */
.admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--paper);
}
.admin-side {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 16px;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-side .logo { margin-bottom: 32px; padding: 0 8px; }

.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: transparent; border: 0;
  color: rgba(251,247,240,.7);
  font-size: 14px; font-weight: 500;
  border-radius: var(--r-sm);
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.admin-nav button:hover { background: rgba(251,247,240,.06); color: var(--paper); }
.admin-nav button.active {
  background: var(--brand-blue);
  color: var(--white);
}
.admin-nav-divider {
  height: 1px;
  background: rgba(251,247,240,.12);
  margin: 14px 8px;
}
.admin-nav-section {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,247,240,.4);
  padding: 8px 12px;
  font-weight: 600;
}

.admin-main {
  padding: 32px 40px;
  overflow-x: hidden;
}
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.admin-topbar h1 {
  font-size: 30px;
  letter-spacing: -0.025em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-delta { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 4px;}
.stat-delta.neg { color: var(--danger); }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.panel-head h3 { font-family: var(--font-display); font-size: 20px; }

/* Table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--paper); }
.tbl .tbl-thumb {
  width: 56px; height: 40px; border-radius: var(--r-xs);
  flex-shrink: 0;
}
.tbl .tbl-title { display: flex; align-items: center; gap: 12px; }
.tbl .tbl-title b { font-weight: 600; color: var(--ink); }
.tbl .tbl-title small { display: block; color: var(--ink-mute); font-size: 12px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;}
.status.active { background: rgba(46,125,50,.12); color: var(--success); }
.status.draft { background: rgba(237,108,2,.14); color: var(--warn); }
.status.past { background: rgba(85,100,113,.12); color: var(--ink-soft); }

/* Action row icons */
.icon-btn {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger); border-color: var(--danger); }

/* ── Drag-drop itinerary ─────────────────────────────── */
.day-row {
  display: flex; align-items: stretch; gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.day-row.dragging { opacity: 0.4; }
.day-row.drag-over { border-color: var(--brand-blue); box-shadow: 0 0 0 2px rgba(2,136,209,.15); }
.day-handle {
  width: 24px;
  display: grid; place-items: center;
  cursor: grab;
  color: var(--ink-mute);
}
.day-handle:active { cursor: grabbing; }
.day-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--brand-blue);
  color: var(--white);
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 16px;
}
.day-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* ── Modal/sheet ─────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(14,26,38,.55);
  z-index: 100;
  display: grid; place-items: center;
  padding: 32px;
  animation: fadeUp .2s ease;
}
.modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
}

/* Lightbox */
.lb-bg {
  position: fixed; inset: 0;
  background: rgba(14,26,38,.92);
  z-index: 100;
  display: grid; place-items: center;
  padding: 40px;
}
.lb-img { width: 100%; height: 80vh; border-radius: var(--r-md); }
.lb-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--paper);
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center;
}

/* Admin mobil kart listesi — masaüstünde gizli */
.admin-card-list { display: none; }
.admin-card-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.admin-card-item:last-of-type { border-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: inline-flex; }

  /* ── Admin mobil: kenar çubuğu üstte yatay menü çubuğuna dönüşür ── */
  .admin { grid-template-columns: 1fr; }
  .admin-side {
    position: sticky; top: 0; z-index: 60;
    height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 4px 12px;
    padding: 10px 14px;
  }
  .admin-side .logo { margin: 0; padding: 0; }
  .admin-side .logo img { height: 30px !important; }
  .admin-nav {
    order: 3; width: 100%;
    flex-direction: row; gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 2px;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav button { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; font-size: 13px; }
  .admin-nav-section, .admin-nav-divider { display: none; }
  .admin-side-foot { order: 2; margin: 0 0 0 auto !important; padding: 0 !important; display: flex; align-items: center; gap: 2px; }
  .admin-side-foot .admin-tip { display: none; }
  .admin-side-foot button { width: auto !important; white-space: nowrap; }

  .admin-main { padding: 18px 14px; }
  .admin-topbar { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .admin-topbar h1 { font-size: 22px; }
  .panel { overflow-x: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  /* Geniş tablolar mobilde gizlenir, yerine kart listesi gösterilir */
  .tbl-m-hide { display: none; }
  .admin-card-list { display: block; }
  /* Admin içindeki çok sütunlu inline gridler tek sütuna insin */
  .admin-main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* 4'lü kart/görsel ızgaraları mobilde 2 sütun yeterli */
  .admin-main [style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Telefon boyutu: çok sütunlu bölümleri tek sütuna indir */
@media (max-width: 860px) {
  section { padding: 52px 0; }
  .container, .container-narrow { padding: 0 20px; }
  /* Inline grid tanımlı tüm bölümler alt alta insin */
  main [style*="grid-template-columns"]:not(.upcoming-row) { grid-template-columns: 1fr !important; }
  /* Tur/blog kartı ızgaraları otomatik genişlikte kalsın */
  main [style*="auto-fill"] { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
  /* Anasayfadaki dekoratif foto kolajı mobilde gizle */
  .hero-collage { display: none !important; }
  /* Sticky panel/başlıklar mobilde normal akışta kalsın (üst üste binme yapar) */
  main aside, main [style*="sticky"] { position: static !important; }
  /* Filtre/yan panel mobilde içerikten SONRA gelsin */
  main .container > aside { order: 2; max-height: none !important; overflow: visible !important; }

  /* Yaklaşan turlar satırı: foto solda, başlık üstte, gece+fiyat altta yan yana */
  .upcoming-row {
    grid-template-columns: 88px 1fr auto !important;
    row-gap: 10px !important;
    column-gap: 14px !important;
    padding: 16px !important;
  }
  .upcoming-row > :nth-child(1) { grid-row: 1 / 3; }
  .upcoming-row > :nth-child(2) { grid-column: 2 / 4; }
  .upcoming-row > :nth-child(3) {
    grid-column: 2;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 6px !important;
    justify-self: start;
  }
  .upcoming-row > :nth-child(4) { grid-column: 3; justify-self: end; }
  .upcoming-row > :nth-child(5) { display: none; } /* İncele butonu — satırın tamamı zaten tıklanabilir */
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
}
