/* ==========================================================================
   Talha & Elifsu — Seyahat Günlüğü (K1)
   Editoryal seyahat günlüğü: kâğıt, pasaport damgası, biniş kartı.
   ========================================================================== */

:root {
  --paper: #F4EFE6;
  --paper-2: #EAE3D6;
  --paper-3: #DFD6C4;
  --ink: #1E1B16;
  --ink-2: #4A443B;
  --muted: #8F877A;
  --line: #C9BFAE;
  --talha: #B8432F;
  --elifsu: #1F5F8B;
  --italy: #2E7D4F;
  --gold: #D9A441;
  --gold-ink: #8A5F14;
  --sea: #2F6F73;
  --olive: #6B7A3E;
  --brown: #7A5C3E;
  --shadow: 0 1px 0 rgba(30, 27, 22, .08), 0 8px 24px -12px rgba(30, 27, 22, .35);
  --r: 4px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap-pad: 16px;
  --section-y: 64px;
}

@media (min-width: 768px) {
  :root { --wrap-pad: 32px; --section-y: 112px; }
}

/* ---------- Temel ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 144;
  font-weight: 450;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: var(--sea); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
  min-width: 0;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.h3 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 56px 0 18px;
}

.hairline { border-top: 1px solid var(--line); }

/* ---------- Kart ---------- */

.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, var(--paper) 50%, var(--paper-3) 50%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

button.card {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover { background: #3a342b; }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-2);
}

.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Rozet ve nokta ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: .04em;
  color: var(--ink-2);
  background: transparent;
  white-space: nowrap;
}

.badge--ok {
  color: var(--italy);
  border-color: var(--italy);
}

.badge--warn {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(217, 164, 65, .2);
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin-right: 4px;
}

.dot--talha { background: var(--talha); color: var(--talha); }
.dot--elifsu { background: var(--elifsu); color: var(--elifsu); }
.dot--italy { background: var(--italy); color: var(--italy); }
.dot--gold { background: var(--gold); color: var(--gold); }
.dot--olive { background: var(--olive); color: var(--olive); }
.dot--brown { background: var(--brown); color: var(--brown); }
.dot--sea { background: var(--sea); color: var(--sea); }

/* ---------- Pasaport damgası ---------- */

.stamp {
  display: inline-block;
  position: relative;
  border: 2px double currentColor;
  border-radius: 6px;
  padding: .35em .7em;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--rot, -6deg));
  color: var(--talha);
  opacity: .9;
  background: rgba(244, 239, 230, .6);
  filter: url(#inkbleed);
}

.stamp--talha { color: var(--talha); }
.stamp--elifsu { color: var(--elifsu); }
.stamp--gold { color: var(--gold-ink); }
.stamp--italy { color: var(--italy); }

.stamp.is-in {
  animation: stamp-in 420ms cubic-bezier(.2, .9, .3, 1.2) backwards;
}

/* ---------- Açılış kilidi ---------- */

.lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity .4s ease, transform .4s ease;
}

.lock.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.lock__card {
  width: 100%;
  max-width: 340px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.lock__stamp { margin-bottom: 4px; }

.lock__title {
  font-size: 30px;
  font-style: italic;
}

.lock__dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 8px 0;
}

.lock__dots.is-error { animation: shake 480ms ease; }

.lock__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background .12s ease;
}

.lock__dot.is-filled {
  background: var(--ink);
  animation: dot-fill 160ms ease-out;
}

.lock__pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 14px 18px;
  justify-content: center;
}

.lock__key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 500 26px/1 var(--font-mono);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease;
  padding: 0;
}

.lock__key:active {
  transform: scale(.94);
  background: var(--paper-3);
  transition: transform 90ms ease, background 90ms ease;
}

.lock__key--blank {
  visibility: hidden;
  border: none;
}

.lock__key--del {
  border-color: transparent;
  color: var(--ink-2);
  font-size: 20px;
}

.lock__hint {
  font-size: 15px;
  color: var(--ink-2);
  min-height: 1.5em;
}

/* ---------- Üst bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 var(--wrap-pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  flex: 0 0 auto;
  font: 600 13px/1 var(--font-mono);
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topbar__nav::-webkit-scrollbar { display: none; }

.topbar__nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  padding-top: 56px;
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .hero { padding-top: 88px; }
}

.hero__stamps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hero__stamp { flex: 0 0 auto; }

.hero__route {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 72px;
}

.hero__route path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: dash-flow 1.2s linear infinite;
}

.hero__title {
  font-size: clamp(46px, 10vw, 104px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 10px 0 14px;
  font-variation-settings: "opsz" 144;
}

.hero__title em {
  font-style: italic;
  color: var(--talha);
}

.hero__sub {
  max-width: 36em;
  font-size: 18px;
  color: var(--ink-2);
}

.hero__sub strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .9em;
  color: var(--ink);
}

.hero__meta { margin-top: 18px; }

/* ---------- Bölümler ---------- */

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  padding-bottom: calc(var(--section-y) * .5);
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding-top: 14px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}

.section__num {
  grid-row: 1 / span 2;
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  letter-spacing: .08em;
  align-self: start;
  padding-top: 8px;
}

.section__head h2 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 144;
}

.section__lead {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 40em;
}

.reveal {
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.is-in .card[style*="--i"],
.reveal.is-in .alt-card[style*="--i"],
.reveal.is-in .season-row[style*="--i"],
.reveal.is-in .window-card[style*="--i"],
.reveal.is-in .result-card[style*="--i"] {
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- Sekmeler ---------- */

.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: none;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover { color: var(--ink); }

.tab.is-active { color: var(--ink); }

.tabs__ink {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: left .24s ease, width .24s ease;
  pointer-events: none;
}

/* ---------- Harita ---------- */

.map {
  position: relative;
  width: 100%;
  height: clamp(320px, 60vh, 640px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper-2);
  overflow: hidden;
  min-width: 0;
}

.map .leaflet-tile-pane { filter: sepia(.28) saturate(.72) contrast(.96); }

.leaflet-container {
  font-family: var(--font-mono);
  background: var(--paper-2);
}

.leaflet-control-attribution {
  font: 10px/1.4 var(--font-mono) !important;
  background: rgba(244, 239, 230, .85) !important;
  color: var(--ink-2) !important;
}

.leaflet-control-attribution a { color: var(--sea) !important; }

.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font: 500 18px var(--font-mono) !important;
  color: var(--ink) !important;
}

.route {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaflet-interactive.route--land {
  animation: dash-flow 6s linear infinite;
}

/* Hareketli ikon (uçak / otobüs / tren) */
.mover {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid currentColor;
  color: var(--talha);
  box-shadow: var(--shadow);
}

.mover--talha { color: var(--talha); }
.mover--elifsu { color: var(--elifsu); }

.mover svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Pinler (başlangıç / varış) */
.pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  color: var(--talha);
  box-shadow: 0 0 0 3px var(--paper);
}

.pin--talha { color: var(--talha); }
.pin--elifsu { color: var(--elifsu); }

.pin i { display: none; }

.pin b {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  padding: 1px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: .06em;
  white-space: nowrap;
}

.pin::after,
.cal__day--today::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid currentColor;
  border-radius: inherit;
  animation: pulse-ring 1.8s ease-out infinite;
  pointer-events: none;
}

.pin::after { color: inherit; }

.cal__day--today::after { color: var(--ink); }

/* Leaflet tooltip'larını kâğıda çevirme */
.leaflet-tooltip.route-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: 500 11px/1.2 var(--font-mono);
  white-space: nowrap;
}

.leaflet-tooltip.route-tag::before { display: none; }

.leaflet-tooltip.route-tag.is-in {
  animation: tooltip-pop 240ms cubic-bezier(.2, .9, .3, 1.2) backwards;
}

.route-tag--talha { border-left: 3px solid var(--talha); }
.route-tag--elifsu { border-left: 3px solid var(--elifsu); }

.route-tag__mode { display: inline-flex; width: 14px; height: 14px; }
.route-tag__mode svg { width: 14px; height: 14px; fill: currentColor; }
.route-tag__time { color: var(--ink); }
.route-tag__cost { color: var(--ink-2); }

.leaflet-tooltip.arrive-stamp {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.leaflet-tooltip.arrive-stamp::before { display: none; }

.leaflet-tooltip.arrive-stamp.stamp {
  background: var(--paper);
  color: var(--talha);
  padding: .3em .55em;
}

.leaflet-tooltip.arrive-stamp.stamp--elifsu { color: var(--elifsu); }

/* ---------- Biniş kartları (bilet) ---------- */

.legs {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  min-width: 0;
}

.legs__group { display: grid; gap: 10px; min-width: 0; }

.legs__who {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}

.legs__alt {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 4px;
}

.legs__alt .eyebrow { margin-right: 6px; }

.ticket {
  position: relative;
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--talha);
  border-radius: var(--r);
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ticket--elifsu { border-left-color: var(--elifsu); }
.ticket--talha { border-left-color: var(--talha); }
.ticket--visa { border-left-color: var(--gold); background: rgba(217, 164, 65, .1); }

.ticket.is-in {
  animation: tear .5s cubic-bezier(.4, 0, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.ticket__main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.ticket__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket__code {
  font: 600 20px/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--ink);
}

.ticket__mode {
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticket__mode svg { width: 14px; height: 14px; fill: currentColor; }

.ticket__row--sub { font-size: 14px; color: var(--ink-2); }

.ticket__city { min-width: 0; }

.ticket__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--ink);
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}

.ticket__note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.ticket__stub {
  position: relative;
  flex: 0 0 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 6px 10px;
  border-left: 2px dashed var(--line);
  background: var(--paper-2);
}

.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.ticket__stub::before { top: -8px; }
.ticket__stub::after { bottom: -8px; }

.ticket__n {
  font: 600 22px/1 var(--font-mono);
  color: var(--ink);
}

.ticket__barcode {
  width: 100%;
  height: 34px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px,
    var(--ink) 4px 5px, transparent 5px 9px);
  opacity: .85;
}

/* ---------- Rota etiketleri / çizgi kenarlar ---------- */

.route-tags-note { font-size: 13px; color: var(--muted); }

/* ---------- Şehirler ---------- */

.cities {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

.city-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.city-card:hover { transform: translateY(-2px); }

.city-card__fig {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--paper-3);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.city-card__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.2) saturate(.8);
}

.city-card__fig.no-img {
  display: grid;
  place-items: center;
}

.city-card__fig.no-img img { display: none; }

.city-card__fig.no-img::after {
  content: attr(data-name);
  font: italic 400 42px/1 var(--font-serif);
  color: var(--ink-2);
  font-variation-settings: "opsz" 144;
}

.city-card__stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(244, 239, 230, .85);
}

.city-card header {
  padding: 16px 18px 0;
  display: grid;
  gap: 4px;
}

.city-card h3 {
  font-size: 30px;
  font-variation-settings: "opsz" 144;
}

.city-card__text {
  padding: 10px 18px 0;
  color: var(--ink-2);
  font-size: 16px;
}

.city-card__places {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}

.city-card__places li::before {
  content: "— ";
  color: var(--muted);
}

.weather-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-left: 18px;
  margin-right: 18px;
}

.weather-strip__m {
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  font-size: 12px;
  min-width: 0;
}

.weather-strip__m + .weather-strip__m { border-left: 1px dashed var(--line); padding-left: 10px; }

.weather-strip__m b {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.weather-strip__m span { font: 500 14px/1.2 var(--font-mono); color: var(--talha); }

.weather-strip__m i {
  font-style: normal;
  color: var(--sea);
  font-size: 12px;
}

.weather-strip__m small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.city-card__credit {
  padding: 12px 18px 16px;
  margin-top: auto;
  font-size: 10px;
}

/* ---------- Alternatif rotalar ---------- */

.alt {
  display: grid;
  gap: 20px;
  min-width: 0;
}

@media (min-width: 900px) {
  .alt { grid-template-columns: 380px 1fr; align-items: start; }
  .alt__list { position: sticky; top: 72px; }
}

.alt__list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.alt-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 14px 16px;
  cursor: pointer;
}

.alt-card.is-active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.alt-card.is-active::after {
  content: "";
  position: absolute;
  left: -1px; top: 16px; bottom: 16px;
  width: 3px;
  background: var(--talha);
}

.alt-card__rank {
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  padding-top: 4px;
}

.alt-card__title {
  font: 500 20px/1.2 var(--font-serif);
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  min-width: 0;
}

.alt-card__title small {
  font: 400 13px/1.2 var(--font-serif);
  font-style: italic;
  color: var(--muted);
  margin-left: 4px;
}

.alt-card .badge { grid-column: 3; grid-row: 1; justify-self: end; }

.alt-card__tag {
  grid-column: 2 / span 2;
  font-size: 14px;
  color: var(--ink-2);
}

.alt-card__legs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--ink);
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.alt-card__legs .num { font-size: 12px; }

.alt__excluded {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.alt__excluded summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.alt__excluded ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.alt__excluded li span { color: var(--muted); font-size: 13px; }

.alt__map { display: grid; gap: 0; min-width: 0; }

/* ---------- Planlayıcı ---------- */

.planner { min-width: 0; }

.planner__grid {
  display: grid;
  gap: 28px;
  min-width: 0;
}

@media (min-width: 900px) {
  .planner__grid { grid-template-columns: 420px minmax(0, 1fr); align-items: start; }
  .planner__side { position: sticky; top: 72px; }
}

.planner__side { display: grid; gap: 18px; min-width: 0; }

.planner__results { display: grid; gap: 18px; min-width: 0; }

.planner__count { color: var(--ink-2); }

.planner__window {
  font-size: 14px;
  color: var(--ink-2);
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(217, 164, 65, .1);
}

.planner__months {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
}

.chip--priority { border-color: var(--ink-2); color: var(--ink); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip:disabled { opacity: .4; cursor: default; }

/* Takvim */

.cal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  min-width: 0;
}

.cal__head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.cal__title {
  text-align: center;
  font-size: 22px;
  font-variation-settings: "opsz" 144;
}

.cal__title .num {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: middle;
}

.cal__nav {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r);
  color: var(--ink);
  font: 500 20px/1 var(--font-mono);
  cursor: pointer;
}

.cal__nav:disabled { opacity: .3; cursor: default; }

.cal__dows,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.cal__dows { margin-bottom: 4px; }

.cal__dow {
  text-align: center;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}

.cal__dow--weekend { color: #AAA08F; }

.cal__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: 500 14px/1 var(--font-mono);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .12s ease;
}

.cal__day:hover:not(:disabled) { transform: translateY(-1px); background: var(--paper-2); }

.cal__day--weekend { background: rgba(234, 227, 214, .55); color: var(--ink-2); }

.cal__day--other { opacity: .22; cursor: default; }

.cal__day--past { color: var(--muted); opacity: .45; cursor: default; }

.cal__day--today { border-color: var(--ink); }

.cal__day--range { background: rgba(217, 164, 65, .18); }

.cal__day--start,
.cal__day--end {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.cal__day--today::after { border-radius: inherit; }

.cal__num { position: relative; z-index: 1; }

.cal__day--tr .cal__num,
.cal__day--holiday-tr .cal__num { color: var(--talha); font-weight: 600; }

.cal__day--start .cal__num,
.cal__day--end .cal__num { color: var(--paper); }

.cal__marks {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  gap: 2px;
  z-index: 1;
}

.mark {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.mark--tr { background: var(--talha); }
.mark--dini { background: var(--gold); }
.mark--arife { background: transparent; border: 1px solid var(--gold); }
.mark--anma { width: 1px; height: 6px; border-radius: 0; background: var(--ink); }
.mark--kopru { background: transparent; border: 1px solid var(--brown); }
.mark--it { background: var(--italy); }
.mark--yerel { background: transparent; border: 1px solid var(--italy); }
.mark--gelenek,
.mark--ponte { background: var(--brown); }
.mark--etkinlik { background: var(--olive); }
.mark--ulasim { background: var(--sea); }
.mark--more { width: auto; height: auto; background: none; font: 500 8px/1 var(--font-mono); color: var(--ink-2); }

.cal__bands {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  display: flex;
  overflow: hidden;
  border-radius: 0 0 var(--r) var(--r);
  z-index: 1;
}

.band {
  display: block;
  flex: 1 1 auto;
  height: 100%;
}

.band--uni { background: rgba(47, 111, 115, .4); }
.band--sezon { background: rgba(217, 164, 65, .4); }
.band--pencere {
  background: repeating-linear-gradient(90deg, rgba(184, 67, 47, .55) 0 3px, transparent 3px 6px);
}

.cal__today-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font: 600 7px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 1;
  pointer-events: none;
}

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-2);
}

.cal__legend span { display: inline-flex; align-items: center; gap: 4px; }

.cal__legend .band { width: 12px; height: 4px; flex: none; }

.cal__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.cal__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line);
}

.cal__list time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.cal__list small {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}

/* Form alanları */

.planner__form {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper-2);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  min-width: 0;
}

.field label,
.field > .eyebrow { display: block; }

.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font: 500 16px/1 var(--font-mono);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -moz-appearance: textfield;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

.field output {
  font: 500 14px/1.4 var(--font-mono);
  color: var(--ink);
}

.field__tl {
  font-size: 12px !important;
  color: var(--ink-2) !important;
}

.field--range output {
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.seg button {
  min-height: 44px;
  padding: 0 6px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  color: var(--ink-2);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .04em;
  cursor: pointer;
}

.seg button:first-child { border-left: none; }

.seg button.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* Sonuç kartları */

.result-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.result-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.result-card__rank {
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  padding-top: 8px;
}

.result-card__title {
  font: 500 26px/1.1 var(--font-serif);
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}

.result-card__title small {
  font: italic 400 14px/1 var(--font-serif);
  color: var(--muted);
  margin-left: 4px;
}

.result-card__tag {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.score-stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: .4em .6em;
  background: rgba(244, 239, 230, .85);
  color: var(--gold-ink);
  font-size: 11px;
}

.score-stamp b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.score-stamp small { font-size: 11px; letter-spacing: .04em; }

.result-card__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

@media (max-width: 899px) {
  .result-card__body { display: none; }
  .result-card__body.is-open { display: grid; }
}

.result-card__notes {
  font-size: 14px;
  color: var(--ink-2);
}

.result-card__notes b,
.result-card__window .eyebrow {
  font-weight: 500;
  color: var(--ink);
  margin-right: 4px;
}

.result-card__window {
  font-size: 14px;
  color: var(--ink);
  padding-left: 10px;
  border-left: 2px solid var(--gold);
}

.result-card__window .eyebrow { margin-right: 6px; }

.result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-card__actions .btn { flex: 1 1 140px; }

/* Puan dökümü */

.breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.breakdown li {
  display: grid;
  grid-template-columns: 96px 1fr 36px;
  gap: 10px;
  align-items: center;
  color: var(--ink-2);
}

.breakdown b {
  text-align: right;
  font-size: 13px;
  color: var(--ink);
}

.breakdown__bar {
  position: relative;
  display: block;
  height: 6px;
  background: var(--paper-3);
  border-radius: 1px;
  overflow: hidden;
}

.breakdown__bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--ink);
  animation: band-grow 500ms cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: 120ms;
}

/* Hava */

.weather {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.weather__hi { font-size: 18px; color: var(--talha); font-weight: 500; }
.weather__lo { font-size: 15px; color: var(--sea); }
.weather__rain { color: var(--ink); }
.weather__note { font-style: italic; color: var(--muted); width: 100%; }

/* Isı şeridi */

.heat-wrap { min-width: 0; }

.heat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
}

.heat__cell {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px 0;
  border-radius: 2px;
  background: #EAE3D6;
  color: var(--ink);
  transition: transform .12s ease;
  cursor: default;
  min-width: 0;
}

.heat__cell:hover { transform: translateY(-2px); }

.heat__cell b {
  font: 500 9px/1 var(--font-mono);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-2);
  overflow: hidden;
  max-width: 100%;
}

.heat__cell i {
  font: 600 12px/1 var(--font-mono);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.heat__cell[data-level="0"] { background: #EAE3D6; }
.heat__cell[data-level="1"] { background: #D8CDB4; }
.heat__cell[data-level="2"] { background: #E0B458; }
.heat__cell[data-level="3"] { background: #D17A3A; }
.heat__cell[data-level="4"] { background: #B8432F; }
.heat__cell[data-level="4"] b,
.heat__cell[data-level="4"] i { color: #FBF6EC; }
.heat__cell[data-level="3"] i { color: #1E1B16; }

.heat__cell.is-active {
  box-shadow: 0 0 0 1.5px var(--ink);
}

.heat__cell.is-active b::after {
  content: "";
  display: block;
  width: 10px;
  height: 1.5px;
  margin: 2px auto 0;
  background: var(--ink);
}

.heat--small .heat__cell { min-height: 40px; }
.heat--small .heat__cell b { font-size: 8px; }
.heat--small .heat__cell i { font-size: 11px; }

/* Rozetler satırı */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Bütçe tablosu */

.budget {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.budget th,
.budget td {
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
  vertical-align: baseline;
  overflow-wrap: anywhere;
}

.budget th {
  text-align: left;
  font-weight: 400;
  color: var(--ink-2);
  width: 42%;
}

.budget th .dot { margin-right: 6px; }

.budget td {
  text-align: right;
  font: 500 12px/1.3 var(--font-mono);
  color: var(--ink);
}

.budget td:nth-child(2) { width: 29%; }
.budget td:nth-child(3) { width: 29%; color: var(--ink-2); }

.budget__travel th { color: var(--ink); }

.budget__total th,
.budget__total td {
  border-top: 1px solid var(--ink);
  border-bottom: none;
  padding-top: 10px;
  font-weight: 600;
  color: var(--ink);
}

.budget__fit td { border-bottom: none; padding-top: 10px; text-align: left; }

.budget__vize[hidden] { display: none; }

.fit {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 2px;
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: .04em;
  border: 1px solid currentColor;
}

.fit--ok { color: var(--italy); background: rgba(46, 125, 79, .08); }
.fit--tight { color: var(--gold-ink); background: rgba(217, 164, 65, .15); }
.fit--over { color: var(--talha); background: rgba(184, 67, 47, .08); }

/* ---------- Sezon ızgarası ---------- */

.season {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  min-width: 0;
}

@media (min-width: 768px) {
  .season { grid-template-columns: 1fr 1fr; }
}

.season-row {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.season-row__name {
  font: 500 19px/1.2 var(--font-serif);
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}

.season-row__name small {
  font: italic 400 13px var(--font-serif);
  color: var(--muted);
  margin-left: 4px;
}

.season-row__best {
  font-size: 11px;
  color: var(--ink-2);
}

/* ---------- Ortak pencereler ---------- */

.windows {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  min-width: 0;
}

@media (min-width: 768px) {
  .windows { grid-template-columns: 1fr 1fr; }
}

.window-card {
  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.window-card__days {
  position: absolute;
  top: 14px;
  right: 22px;
  color: var(--gold-ink);
  background: rgba(244, 239, 230, .85);
}

.window-card h4 {
  font: 500 20px/1.2 var(--font-serif);
  font-variation-settings: "opsz" 144;
  padding-right: 90px;
}

.window-card > p.num {
  font-size: 13px;
  color: var(--sea);
}

.window-card__note {
  font-size: 15px;
  color: var(--ink-2);
}

.window-card .btn { justify-self: start; margin-top: 4px; }

/* ---------- Alt bilgi ---------- */

.footer {
  padding-top: 40px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.kur {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 500 14px/1 var(--font-mono);
  color: var(--ink);
  min-height: 44px;
}

.kur input {
  width: 96px;
  min-height: 44px;
  padding: 0 10px;
  font: 500 15px/1 var(--font-mono);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -moz-appearance: textfield;
}

.kur input::-webkit-outer-spin-button,
.kur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.kur small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}

.footer__note {
  font-size: 13px;
  color: var(--muted);
  max-width: 52em;
}

/* ---------- Hareketler ---------- */

@keyframes stamp-in {
  from { transform: scale(1.5) rotate(-14deg); opacity: 0; }
  to   { transform: rotate(var(--rot, -6deg)); opacity: .9; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-10px); }
  80%      { transform: translateX(10px); }
}

@keyframes dot-fill {
  from { transform: scale(.6); }
  to   { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes dash-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -26px; }
}

@keyframes tooltip-pop {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes tear {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes band-grow {
  from { width: 0; }
}

/* Hover ile çakışmayan ve büyüklüğü sınırlı görsel ayarları */

.heat__cell,
.cal__day,
.mover,
.pin {
  -webkit-user-select: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Küçük ekranlar ---------- */

@media (max-width: 360px) {
  body { font-size: 16px; }
  .lock__pad { grid-template-columns: repeat(3, 66px); gap: 12px 14px; }
  .lock__key { width: 66px; height: 66px; }
  .ticket__stub { flex-basis: 64px; }
}

/* OSM tiles tinted to match the paper palette */
.leaflet-tile-pane{filter:sepia(.35) saturate(.7) contrast(.95) brightness(1.04)}
