/* Gezi Defteri — ornek.html düzeni, mobil öncelikli */
:root {
  --paper: #f7f3ec;
  --ink: #1f2328;
  --muted: #6b6f76;
  --line: #e3dccf;
  --card: #ffffff;
  --soft-bg: #ecebe7;
  --primary: #1f4e8c;
  --primary-ink: #ffffff;
  --accent: #b4532a;
  --warn: #d69e00;
  --warn-soft: #fff6dc;
  --ok: #2f7d5b;
  --ok-soft: #e4f1ea;
  --err: #b3261e;
  --err-soft: #fbe7e5;
  --c: var(--ink);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.serif, h1, h2, h3 { font-family: var(--serif); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 34px; }
p { margin: 0 0 .75em; }
a { color: var(--primary); text-underline-offset: 2px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: block; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--muted); font-weight: 600; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.wrap.page { padding-top: 20px; padding-bottom: 60px; }

/* ---------- Üst bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 980px; margin: 0 auto; padding: 12px 20px; padding-top: calc(12px + env(safe-area-inset-top));
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--accent); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a.on { color: var(--ink); background: #fff; border: 1px solid var(--line); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 600 15px/1.1 var(--sans); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--err); border-color: #e7c3bf; background: transparent; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--muted); text-decoration: none; cursor: pointer; font-size: 15px;
}
.link { color: var(--primary); cursor: pointer; font-weight: 600; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 14px; }
.form label, .field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.label { font-size: 14px; font-weight: 600; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; height: 20px; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
}
input[type="checkbox"], input[type="radio"] { min-height: 0; width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 78, 140, .35); outline-offset: 1px; border-color: var(--primary); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 600; padding: 0 6px; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: 1.4fr 1fr 1fr; }
.field-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field-grid .wide { grid-column: 1 / -1; }
.hint { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.geo-results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.geo-results li button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 400 14px/1.35 var(--sans); cursor: pointer;
}
.geo-results li:last-child button { border-bottom: 0; }
.geo-results li button:hover { background: var(--paper); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.slot-chips { margin-top: -6px; }

/* ---------- Kart, mesajlar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stack { display: grid; gap: 16px; }
.flash { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-size: 15px; background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.flash-warn { background: var(--warn-soft); color: #7a5a00; }
.ok-box { padding: 12px; background: var(--ok-soft); color: var(--ok); border-radius: 10px; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; margin: 16px 0; }
.empty.small { padding: 20px 12px; }
.danger-zone { margin-top: 24px; display: flex; justify-content: flex-end; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.page-head h1 { margin: 4px 0 0; }
.page-head .btn { flex-shrink: 0; }
.section-title { margin: 32px 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.city-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.city-list li { display: flex; align-items: center; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.edit-inline { margin-left: auto; text-decoration: none; padding: 4px 8px; }

/* ---------- Giriş ---------- */
body.bare { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; }
body.bare .wrap { width: 100%; }
.auth-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 30px; }
.auth-brand { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 18px; }

/* ---------- Ana sayfa ---------- */
.trip-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.trip-card { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--trip); border-radius: 16px; text-decoration: none; color: var(--ink); padding: 16px 18px; }
.trip-card-band { display: none; }
.trip-card h3 { font-size: 24px; margin: 10px 0 2px; }
.trip-card p { margin: 0 0 4px; }
.trip-dates { font-weight: 600; }
.trip-meta { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft-bg); color: var(--muted); }
.pill-soon { background: #f8ebe3; color: var(--accent); }
.pill-live { background: var(--ok-soft); color: var(--ok); }
.today { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 16px; padding: 18px; margin-bottom: 8px; }
.today-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.today-head h2 { font-size: 26px; margin: 4px 0 0; }
.today-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.today-list li { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; border-top: 1px dashed var(--line); padding-top: 8px; }
.today-list li.done span:not(.time) { text-decoration: line-through; color: var(--muted); }
.time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; color: var(--accent); }
.mini-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   Gezi sayfası — ornek.html
   ========================================================= */
.trip-page .topbar { border-bottom: 0; }
header.hero { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero-edit { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
header.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 10px 0 14px; }
.lead { color: var(--muted); max-width: 640px; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.facts .status-soon { color: var(--accent); }
.facts .status-live { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.facts .status-muted { color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(var(--n, 8), 1fr); gap: 6px; margin: 30px 0 0; }
.strip a {
  display: block; padding: 10px 4px; border-radius: 10px; text-align: center; font-size: 12px; line-height: 1.3;
  text-decoration: none; color: var(--c); background: #e9eef5; transition: transform .15s;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .strip a { background: color-mix(in srgb, var(--c) 11%, white); }
}
.strip a:hover { transform: translateY(-2px); }
.strip a b { display: block; font-size: 20px; font-weight: 600; margin: 2px 0; }
.strip a.fly { background: #fff; border: 1px dashed var(--line); color: var(--muted); }
.strip a.today { outline: 2px solid var(--c); outline-offset: 1px; }
.strip-legend { display: grid; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.strip-legend span { padding-top: 4px; border-top: 2px solid var(--c); }

nav.tabs { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
nav.tabs .wrap { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
nav.tabs a {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink); background: #fff; white-space: nowrap; min-height: 44px;
}
nav.tabs a span { display: block; font-size: 18px; line-height: 1.1; }
nav.tabs a.on { border-color: var(--ink); }
nav.tabs .days-btn { display: none; }
nav.tabs .count { font-style: normal; font-size: 11px; background: var(--soft-bg); border-radius: 999px; padding: 0 6px; }

section { scroll-margin-top: 70px; }
section.block { padding: 40px 0 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.block-head h2 { font-size: 30px; margin: 0; }
.sub-title { font-size: 22px; margin: 28px 0 4px; }

/* uçuşlar */
.flights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.flight { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden; }
.flight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.flight .date { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-right: 28px; }
.flight .route { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; }
.flight .route div { text-align: center; }
.flight .route b { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; }
.flight .route small { font-size: 12px; color: var(--muted); }
.flight .route .arrow { flex: 1; border-top: 1px dashed var(--line); margin: 0 10px; position: relative; top: -8px; }
.flight .info { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px; }
.flight .info b { color: var(--ink); font-weight: 600; }
.pnr { display: inline-block; background: var(--paper); border-radius: 6px; padding: 1px 6px; color: var(--ink); font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }

.edit { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.edit:hover { background: var(--paper); }
.doc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.doc-links a { font-size: 13px; font-weight: 600; text-decoration: none; background: var(--paper); border-radius: 8px; padding: 6px 10px; color: var(--ink); }

/* konaklama */
.stays { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.stay { position: relative; border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); background: var(--card); border-top: 4px solid var(--c); }
.stay h3 { margin: 0 0 4px; font-size: 18px; padding-right: 28px; }
.stay .sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.stay dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; font-size: 14px; }
.stay dt { color: var(--muted); }
.stay dd { margin: 0; }
.stay .tbd { font-size: 14px; color: var(--muted); font-style: italic; margin: 10px 0 0; }
.maplink { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--c); text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; }

/* şehirler ve günler */
section.city { padding: 52px 0 16px; }
.city-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid currentColor; padding-bottom: 12px; margin-bottom: 26px; color: var(--c); }
.city-head h2 { font-size: 44px; margin: 0; }
.city-head .meta { font-size: 15px; font-weight: 600; }

.day {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px;
  display: grid; grid-template-columns: 84px 1fr; gap: 20px; scroll-margin-top: 76px;
}
.day.is-today { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.day.loose { grid-template-columns: 1fr; }
.daynum { text-align: center; border-radius: 12px; padding: 10px 0; height: max-content; color: var(--c); background: #e9eef5; }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .daynum { background: color-mix(in srgb, var(--c) 11%, white); }
}
.daynum small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.daynum b { display: block; font-size: 30px; line-height: 1.1; font-weight: 600; }
.daynum em { display: block; font-style: normal; font-size: 12px; font-weight: 600; }
.daynum i { display: block; font-style: normal; font-size: 11px; opacity: .75; margin-top: 4px; }
.day h3 { margin: 2px 0 10px; font-size: 22px; }
.today-pill { font: 600 11px/1 var(--sans); padding: 4px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); vertical-align: 4px; }

.slot { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.slot:first-of-type { border-top: 0; }
.slot .when { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; }
.slot-items { display: grid; gap: 8px; }
.entry { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.entry p { margin: 0; }
.entry.done .entry-body > p { color: var(--muted); }
.entry.done strong { text-decoration: line-through; }
.check-btn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; margin-top: 1px; }
.entry.done .check-btn { background: var(--ok); border-color: var(--ok); }
.entry-check { margin: 0; }
.entry-icon { width: 26px; height: 26px; display: grid; place-items: center; color: var(--c); font-size: 15px; }
.entry-notes { color: var(--ink); }
.entry .cat { font-size: 14px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; font-size: 13px; font-weight: 600; }
.entry-links a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.entry-links a:hover { color: var(--c); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: var(--c); background: #e9eef5; margin-right: 4px; vertical-align: 1px; white-space: nowrap; }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .tag { background: color-mix(in srgb, var(--c) 11%, white); }
}
.changed { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.changed::before { content: "↻ "; color: var(--c); font-weight: 700; }
.day-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* notlar */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.note { position: relative; border-radius: 14px; padding: 18px 20px; border-left: 4px solid var(--c); background: var(--soft-bg); }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .note { background: color-mix(in srgb, var(--c) 9%, white); }
}
.note h4 { margin: 0 0 6px; font-size: 15px; padding-right: 26px; }
.note p { margin: 0; font-size: 15px; }
.note.warn { background: var(--warn-soft); border-color: var(--warn); }
.note .edit { top: 8px; right: 8px; }
.free-notes { white-space: normal; }

/* harita */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 14px; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 600 14px/1.2 var(--sans); cursor: pointer; }
.chip.on { background: var(--c, var(--ink)); color: #fff; border-color: var(--c, var(--ink)); }
.map-days { margin-bottom: 12px; }
.map { height: 62vh; min-height: 340px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map-foot { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.gd-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pin, #b4532a); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: grid; place-items: center; }
.gd-pin span { transform: rotate(45deg); color: #fff; font: 700 12px/1 var(--sans); }
.gd-pin.undated { background: #7c8291; }
.gd-pin.done { opacity: .55; }
.gd-pin.stay { border-radius: 8px; transform: none; }
.gd-pin.stay span { transform: none; }
.gd-me { width: 16px; height: 16px; border-radius: 50%; background: #2a7de1; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(42,125,225,.25); }
.leaflet-popup-content { font: 400 14px/1.4 var(--sans); }

/* evraklar */
.upload-card { margin-bottom: 18px; padding: 12px 16px; }
.upload-card summary { list-style: none; cursor: pointer; }
.upload-card summary::-webkit-details-marker { display: none; }
.upload-card[open] summary { margin-bottom: 14px; }
.dropzone { position: relative; display: block !important; border: 2px dashed var(--line); border-radius: 12px; padding: 22px 14px; text-align: center; cursor: pointer; font-weight: 500 !important; }
.dropzone.drag { border-color: var(--primary); background: #eef3fa; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dz-text { pointer-events: none; }
.doc-group { margin-bottom: 18px; scroll-margin-top: 76px; }
.doc-group h3 { font-size: 18px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.doc-main { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; color: var(--ink); padding: 2px; }
.doc-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-ext { font: 700 12px/1 var(--sans); color: var(--accent); letter-spacing: .04em; }
.doc-info { display: grid; gap: 1px; }
.doc-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-notes { font-size: 14px; overflow-wrap: anywhere; }
.doc-actions { display: flex; gap: 6px; }
.doc-actions form { margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .nav a { padding: 8px 8px; font-size: 13px; }
  h1 { font-size: 28px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 label:first-child { grid-column: 1 / -1; }
  .field-grid { grid-template-columns: 1fr; }

  header.hero { padding-top: 12px; }
  .strip { grid-template-columns: repeat(var(--nm, 4), 1fr); }
  .strip-legend { display: none; }

  body.has-tabs { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  nav.tabs {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--line); border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  nav.tabs .wrap { gap: 2px; padding: 6px 6px; }
  nav.tabs a { border: 0; background: transparent; font-size: 11px; padding: 6px 2px; color: var(--muted); min-height: 52px; }
  nav.tabs a.on { color: var(--ink); }
  nav.tabs .city-btn { display: none; }
  nav.tabs .days-btn { display: block; }
  nav.tabs .count { display: none; }

  section, .day { scroll-margin-top: 12px; }
  html { scroll-padding-top: 12px; }
  section.city, section.block { padding-top: 32px; }
  .block-head h2 { font-size: 26px; }
  .city-head h2 { font-size: 34px; }
  .day { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
  .daynum { display: flex; gap: 10px; align-items: baseline; padding: 8px 14px; width: max-content; }
  .daynum b { font-size: 22px; }
  .daynum i { margin: 0; }
  .slot { grid-template-columns: 1fr; gap: 6px; }
  .stay dl { grid-template-columns: 84px 1fr; }
  .map { height: calc(100dvh - 300px); }
  .danger-zone { justify-content: stretch; }
  .danger-zone .btn { width: 100%; }
}
@media (max-width: 380px) {
  .grid2 { grid-template-columns: 1fr; }
  .brand { font-size: 16px; }
}
@media (hover: hover) {
  .btn:hover { background: var(--paper); }
  .btn.primary:hover { background: #000; }
}
@media print {
  nav.tabs, .topbar, .day-actions, .entry-check, .entry-links, .edit, .hero-edit, .block-head .btn { display: none !important; }
  body { background: #fff; }
  .day, .flight, .stay, .note { break-inside: avoid; }
}

/* durak biletleri */
.ticket-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticket-list li { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 10px; padding: 6px 6px 6px 12px; }
.ticket-list li a { font-weight: 600; text-decoration: none; color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-list li .muted { flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tickets-inline { margin-top: 6px; }
.tickets-inline a { color: var(--c); }
