﻿/* Turkey '26 — Warm Mediterranean Editorial */

:root {
  --paper: oklch(96% 0.018 75);
  --paper-warm: oklch(94% 0.025 70);
  --paper-deep: oklch(90% 0.03 70);
  --cream: oklch(99% 0.008 75);
  --ink: oklch(18% 0.015 60);
  --ink-soft: oklch(32% 0.02 60);
  --ink-mute: oklch(48% 0.025 60);
  --rule: oklch(82% 0.025 70);
  --rule-soft: oklch(88% 0.02 70);

  --terra: oklch(58% 0.14 38);
  --terra-deep: oklch(46% 0.13 35);
  --terra-soft: oklch(78% 0.08 40);
  --ochre: oklch(72% 0.13 75);
  --ochre-deep: oklch(60% 0.13 70);
  --sea: oklch(45% 0.08 220);
  --sea-deep: oklch(32% 0.07 225);
  --olive: oklch(48% 0.06 110);
  --plum: oklch(38% 0.08 20);

  --shadow-soft: 0 1px 2px oklch(20% 0.02 60 / 0.06), 0 8px 32px oklch(20% 0.02 60 / 0.06);
  --shadow-deep: 0 2px 6px oklch(20% 0.02 60 / 0.10), 0 24px 60px oklch(20% 0.02 60 / 0.16);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

@media (max-width: 820px) { html, body { cursor: auto; } }

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

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: none;
}
@media (max-width: 820px) { button { cursor: pointer; } }

a { color: inherit; text-decoration: none; cursor: none; }
@media (max-width: 820px) { a { cursor: pointer; } }

/* — Custom cursor — */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 220ms cubic-bezier(.2,.7,.2,1), height 220ms cubic-bezier(.2,.7,.2,1), background 220ms;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--terra);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 320ms cubic-bezier(.2,.7,.2,1), height 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms, opacity 320ms;
  opacity: .6;
}
.cursor-dot.hovering { width: 14px; height: 14px; }
.cursor-ring.hovering { width: 64px; height: 64px; opacity: .9; border-color: var(--terra-deep); }
@media (max-width: 820px) { .cursor-dot, .cursor-ring { display: none; } }

/* — Hairline gridlines (decorative) — */
.gridlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, oklch(20% 0.02 60 / .04) 1px, transparent 1px);
  background-size: 8.333% 100%;
  opacity: .8;
}

/* — Top nav — */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: oklch(96% 0.018 75 / 0);
  backdrop-filter: blur(0px);
  transition: background 320ms, backdrop-filter 320ms, border-color 320ms;
  border-bottom: 1px solid transparent;
  color: var(--cream);
}
.nav.scrolled {
  background: oklch(96% 0.018 75 / 0.85);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--rule);
  color: var(--ink);
}
.nav-mark {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 144;
}
.nav-mark em { font-style: normal; font-weight: 400; }
.nav-tabs {
  display: flex;
  gap: 4px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-tab {
  padding: 10px 14px;
  position: relative;
  opacity: 0.72;
  transition: opacity 220ms;
  font-weight: 500;
}
.nav-tab:hover { opacity: 1; }
.nav-tab.active { opacity: 1; }
.nav-tab.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: currentColor;
}
.nav-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* — Page transitions (no opacity-based animation; iframes throttle them) — */
.page {
  opacity: 1;
}

/* — Editorial primitives — */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display em {
  font-style: italic;
  font-weight: 300;
}
.rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* — Imagery treatment — */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.18) saturate(0.82) contrast(0.96) brightness(1.02);
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1), filter 600ms;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(75% 0.08 65 / 0.06), oklch(40% 0.05 30 / 0.10));
  pointer-events: none;
  mix-blend-mode: multiply;
}
.photo:hover img { transform: scale(1.04); }

.photo-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, oklch(85% 0.04 70) 0 14px, oklch(82% 0.04 70) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* — Tags — */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
}
.tag.terra { border-color: var(--terra-soft); color: var(--terra-deep); background: oklch(95% 0.04 40); }
.tag.sea { border-color: oklch(75% 0.05 220); color: var(--sea-deep); background: oklch(94% 0.03 220); }
.tag.ochre { border-color: oklch(85% 0.08 75); color: var(--ochre-deep); background: oklch(95% 0.05 75); }

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  background: transparent;
  transition: background 240ms, color 240ms, transform 240ms;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.solid:hover { background: var(--terra); border-color: var(--terra); }
.btn.terra { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.btn.terra:hover { background: var(--terra-deep); border-color: var(--terra-deep); }

/* — Inputs — */
.input, .select, .textarea {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  outline: none;
  transition: border-color 200ms, background 200ms;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--terra);
  background: oklch(98% 0.012 75);
}
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 6px;
}

/* — Layout helpers — */
.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 36px;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.section-header .lead {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 80;
  max-width: 56ch;
}
@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
}

/* — Scrollbar — */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: oklch(78% 0.04 70); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--terra); }

/* — Reveal on scroll — */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — comprehensive
   ══════════════════════════════════════════════════════ */

/* ── Nav: two-row layout ── */
@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 20px 0;
    gap: 0;
    align-items: center;
  }
  .nav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 2px;
    gap: 0;
    scrollbar-width: none;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 8px 12px; white-space: nowrap; flex-shrink: 0; font-size: 10px; }
  .nav-meta { font-size: 9px; }
}

/* ── Hero ── */
@media (max-width: 820px) {
  /* 100svh = viewport height with browser chrome visible — fixes iOS Safari 100vh bug */
  .hero { height: 100svh !important; min-height: 0 !important; }
  .hero-content-pad { padding-bottom: 28px !important; padding-left: 20px !important; padding-right: 20px !important; }
  .hero-content-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .hero-countdown { display: flex !important; flex-wrap: wrap; gap: 12px !important; padding: 12px 16px !important; }
}

/* ── Overview intro ── */
@media (max-width: 820px) {
  .ov-intro { grid-template-columns: 1fr !important; gap: 40px !important; }
  .ov-city-grid { grid-template-columns: 1fr 1fr !important; }
  .ov-stats { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
  .ov-city-grid { grid-template-columns: 1fr !important; }
  .ov-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Overview decisions ── */
@media (max-width: 820px) {
  .decision-row { grid-template-columns: auto 1fr !important; gap: 12px !important; }
  .decision-row .decision-note { display: none; }
}

/* ── Itinerary timeline strip ── */
@media (max-width: 820px) {
  .timeline-strip { overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; }
  .timeline-strip::-webkit-scrollbar { display: none; }
  .timeline-cell { min-width: 72px !important; flex-shrink: 0; }
}

/* ── Itinerary day cards ── */
@media (max-width: 820px) {
  .day-card { grid-template-columns: 80px 1fr auto !important; gap: 16px !important; padding: 20px 16px !important; }
  .day-card-photo { display: none !important; }
  .day-card-city { display: none !important; }
}

/* ── Day detail overlay ── */
@media (max-width: 820px) {
  .day-detail-inner { margin: 0 !important; min-height: 100vh; }
  .day-detail-body { grid-template-columns: 1fr !important; gap: 24px !important; padding: 28px 20px !important; }
}

/* ── Lodging ── */
@media (max-width: 820px) {
  .lodging-article { grid-template-columns: 1fr !important; gap: 24px !important; }
  .lodging-article .photo { order: 1 !important; aspect-ratio: 16/9 !important; }
  .lodging-article .lodging-text { order: 2 !important; }
  .lodging-compare-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}

/* ── Expenses balances ── */
@media (max-width: 820px) {
  .balances-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
  .balances-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Expenses stat cards ── */
@media (max-width: 640px) {
  .expense-stats { grid-template-columns: 1fr 1fr !important; }
}

/* ── Expense transaction rows → card layout ── */
@media (max-width: 820px) {
  .expense-header-row { display: none !important; }
  .expense-row { grid-template-columns: 1fr auto !important; gap: 8px !important; padding: 14px 16px !important; }
  .expense-row-date { display: none !important; }
  .expense-row-payer { display: none !important; }
  .expense-row-split { display: none !important; }
  .expense-row-amount { font-size: 15px !important; }
}

/* ── Add expense form ── */
@media (max-width: 640px) {
  .iax-row { grid-template-columns: 1fr !important; }
}

/* ── Flights → card layout ── */
@media (max-width: 820px) {
  .flight-header { display: none !important; }
  .flight-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 16px !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .flight-route { justify-content: flex-start !important; }
}

/* ── Spots map height ── */
@media (max-width: 820px) {
  .spots-map-el { height: 360px !important; }
}

/* ── Footer ── */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ── Packing progress bar ── */
@media (max-width: 640px) {
  .packing-header { flex-wrap: wrap !important; gap: 12px !important; }
}
