/* İkonik: shared foundation, tokens, typography, components.
   Destination colours come from themes.css. See DESIGN.md */

:root {
  --bg: #F4EEE4;
  --bg-deep: #EAE1D2;
  --surface: #FBF8F2;
  --surface-raised: #FFFDF9;
  --border: #E6DCCB;
  --ink: #2A251F;
  --ink-muted: #665C4F;
  --ink-faint: #857A6C;

  --font-sans: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(74,52,24,.06), 0 2px 6px rgba(74,52,24,.06);
  --shadow-md: 0 2px 4px rgba(74,52,24,.05), 0 8px 24px rgba(74,52,24,.10);
  --shadow-lg: 0 4px 8px rgba(74,52,24,.06), 0 20px 48px rgba(74,52,24,.16);
  --highlight: inset 0 1px 0 rgba(255,255,255,.8);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms; --t-base: 250ms; --t-slow: 600ms;

  --container: 1280px;
  --gutter: 48px;
}

@media (max-width: 1024px) { :root { --gutter: 24px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

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

.i { font-size: 24px; line-height: 1; flex: none; display: inline-block; }
.i--sm { font-size: 16px; }
.i--lg { font-size: 32px; }

/* ---------- typography ---------- */
.t-display { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
.t-h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
/* long German words (Unternehmensberatung) are hyphenated, other headings are left alone */
:lang(de) :is(.t-display, .t-h1, .t-h2, .t-h3, .dir__name) { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 6 6; }
:is(.t-display, .t-h1, .t-h2, .t-h3, .dir__name) { overflow-wrap: break-word; }
.t-h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.t-h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.t-stat { font-size: clamp(32px, 3.2vw, 40px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.t-body { font-size: 16px; line-height: 1.55; }
.t-small { font-size: 14px; line-height: 1.45; }
.t-caption { font-size: 12px; line-height: 1.35; }
.t-muted { color: var(--ink-muted); }
.t-eyebrow {
  font-size: 11px; font-weight: 800; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}

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

.section { padding-block: var(--s-24); }
@media (max-width: 640px) { .section { padding-block: var(--s-16); } }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-6); margin-bottom: var(--s-8); flex-wrap: wrap;
}
.section-head__text { max-width: 620px; display: grid; gap: var(--s-3); }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), var(--highlight);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6);
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 700; line-height: 1;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-deep); }
.btn--ghost { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm), var(--highlight); border: 1px solid var(--border); }
.btn--ghost:hover { box-shadow: var(--shadow-md), var(--highlight); }
.btn--sm { min-height: 38px; padding: 0 var(--s-4); font-size: 14px; }
.btn--block { width: 100%; }

.link {
  font-size: 14px; font-weight: 700; color: var(--ink-muted);
  transition: color var(--t-fast) var(--ease);
}
.link:hover { color: var(--ink); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-full); color: var(--ink-muted);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-deep); }
.icon-btn .i { font-size: 22px; }
.icon-btn[aria-pressed="true"] { color: var(--primary); }

/* ---------- filter chips ---------- */
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: 0 var(--s-4);
  border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip__count { font-size: 12px; opacity: .75; }

/* ---------- tour ticket ---------- */
.tour-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}

.ticket {
  position: relative;
  display: grid; grid-template-columns: 1fr 112px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), var(--highlight);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--highlight); }

.ticket__main {
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  display: grid; gap: var(--s-4); align-content: start;
  border: 1px solid var(--border); border-right: 0;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.ticket__head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-3); }
.ticket__head .icon-btn { margin: -8px -8px 0 0; }
.ticket__title { display: grid; gap: var(--s-1); margin-top: var(--s-2); }
.ticket__text { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }

.ticket__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-4); }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.stat .i { font-size: 16px; color: var(--ink-muted); grid-row: span 2; align-self: start; margin-top: 1px; }
.stat__value { font-size: 12px; font-weight: 800; line-height: 1.3; }
.stat__label { font-size: 11px; color: var(--ink-muted); grid-column: 2; line-height: 1.3; }

.ticket__buy {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-top: var(--s-4); border-top: 1px dashed var(--border); flex-wrap: wrap;
}
.price { display: grid; line-height: 1.1; }
.price__value { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.price__note { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }

/* ticket stub */
.ticket__stub {
  position: relative;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: linear-gradient(170deg, var(--stub-from), var(--stub-to));
  overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  border-left: 2px dashed rgba(251, 248, 242, .7);
}
.ticket__stub svg.scene { width: 100%; height: 100%; }
/* tour photo over the drawn scene; if the file is missing the scene stays */
.ticket__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket__stub:has(.ticket__photo)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 12, .45) 0%, transparent 32%, transparent 72%, rgba(20, 16, 12, .35) 100%);
}
.ticket__days, .ticket__barcode { z-index: 1; }
.ticket__stub:has(.ticket__photo) .ticket__days { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.ticket__stub:has(.ticket__photo) .ticket__barcode {
  position: relative; background-color: rgba(255, 253, 249, .9);
  box-shadow: 0 0 0 4px rgba(255, 253, 249, .9);
}
.ticket__barcode {
  height: 34px; margin: 0 14px 14px;
  background: repeating-linear-gradient(90deg,
    #2A251F 0 2px, transparent 2px 4px, #2A251F 4px 5px, transparent 5px 8px,
    #2A251F 8px 11px, transparent 11px 12px, #2A251F 12px 13px, transparent 13px 16px);
  border-radius: 2px; opacity: .85;
}
.ticket__days {
  position: absolute; top: 12px; left: 0; right: 0; text-align: center;
  font-size: 12px; font-weight: 800; color: #FFFDF9;
}
.ticket__days strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
/* perforation cut-outs */
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: 112px; width: 18px; height: 18px;
  background: var(--bg); border-radius: 50%; transform: translateX(50%);
  z-index: 1;
}
.ticket::before { top: -9px; box-shadow: inset 0 -2px 3px rgba(74,52,24,.08); }
.ticket::after { bottom: -9px; box-shadow: inset 0 2px 3px rgba(74,52,24,.08); }

@media (max-width: 420px) {
  .ticket { grid-template-columns: 1fr 84px; }
  .ticket::before, .ticket::after { right: 84px; }
  .ticket__stats { grid-template-columns: repeat(2, auto); }
}

.empty {
  grid-column: 1 / -1;
  padding: var(--s-12) var(--s-6); text-align: center;
  border: 1.5px dashed var(--border); border-radius: var(--r-lg);
  display: grid; gap: var(--s-3); justify-items: center; color: var(--ink-muted);
}

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: var(--s-4);
  background: rgba(42, 37, 31, .42);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--highlight);
  padding: var(--s-8);
  transform: translateY(16px) scale(.98);
  transition: transform var(--t-base) var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-4); margin-bottom: var(--s-6); }
.modal__head .t-small { margin-top: var(--s-1); }
@media (max-width: 640px) {
  .modal { place-items: end center; padding: 0; }
  .modal__panel { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-6) var(--s-5); max-height: 92dvh; }
}

/* ---------- form ---------- */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form__row--3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 480px) { .form__row, .form__row--3 { grid-template-columns: 1fr 1fr; } .form__row--3 .field:first-child { grid-column: 1 / -1; } }

.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 700; }
.field__label span { color: var(--ink-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--accent); }
.field__error { font-size: 12px; font-weight: 700; color: var(--accent); display: none; }
.field.is-invalid .field__error { display: block; }

.check { display: flex; gap: var(--s-3); align-items: start; font-size: 13px; color: var(--ink-muted); }
.check input, .field .check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 1px 0 0; accent-color: var(--primary); flex: none; box-shadow: none; }

.done { text-align: center; display: grid; gap: var(--s-3); justify-items: center; padding: var(--s-6) 0 var(--s-2); }
.done__mark {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-md);
}
.done__mark .i { font-size: 30px; }

/* ---------- footer ---------- */
.footer { padding-block: var(--s-12) var(--s-8); border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; align-items: center; }
.footer__links { display: flex; gap: var(--s-6); flex-wrap: wrap; }

/* ---------- logo ---------- */
.wordmark { display: inline-flex; align-items: center; }
.wordmark__img { height: 44px; width: auto; }
.footer .wordmark__img { height: 40px; }

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

/* ---------- weather (IKWeather, assets/js/weather.js) ----------
   Layers: sun, clouds and moon from assets/img/weather plus CSS rain, snow and lightning.
   Each layer runs its own cycle; --wx-phase shifts the phase so neighbouring icons do not move in sync. */
.wx { position: relative; display: inline-block; flex: none; width: var(--wx-size, 48px); aspect-ratio: 1; }
.wx--lg { --wx-size: 76px; }
.wx > * { position: absolute; }
.wx img { display: block; max-width: none; height: auto; pointer-events: none; user-select: none; }

.wx__sun, .wx__moon { inset: 0; width: 100%; }
.wx--cloud .wx__sun, .wx--moon-cloud .wx__moon { inset: 0 0 auto auto; width: 72%; }
.wx__cloud { z-index: 2; left: 0; bottom: 10%; width: 100%; }
.wx__back { left: 18%; top: 8%; width: 86%; opacity: .9; }
.wx--rain .wx__cloud, .wx--storm .wx__cloud, .wx--snow .wx__cloud { top: 2%; bottom: auto; }

.wx__rain, .wx__snow { z-index: 1; left: 14%; right: 14%; top: 46%; bottom: 0; overflow: hidden; }
.wx__rain i, .wx__snow i { position: absolute; top: 0; height: 100%; width: 2px; }
.wx__rain i { left: calc(6% + var(--i) * 17%); }
.wx__snow i { left: calc(4% + var(--i) * 15%); width: 3px; }
.wx__rain i::before, .wx__snow i::before { content: ""; display: block; border-radius: 2px; }
.wx__rain i::before { height: 34%; background: linear-gradient(transparent, rgba(214, 238, 255, .95)); }
.wx__snow i::before { height: 3px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 3px rgba(255, 255, 255, .8); }

.wx__bolt {
  z-index: 1; left: 36%; top: 40%; width: 28%;
  fill: #EEF8FF; opacity: 0;
  filter: drop-shadow(0 0 2px #A8DCFF) drop-shadow(0 0 7px rgba(140, 205, 255, .85));
}

@media (prefers-reduced-motion: no-preference) {
  .wx__sun { animation: wx-spin 60s linear infinite, wx-glow 4.8s ease-in-out infinite; animation-delay: var(--wx-phase, 0s); }
  .wx__moon { animation: wx-glow 6.5s ease-in-out infinite; animation-delay: var(--wx-phase, 0s); }
  .wx__cloud { animation: wx-drift 7s ease-in-out infinite alternate; animation-delay: var(--wx-phase, 0s); }
  .wx__back { animation: wx-drift 9s ease-in-out infinite alternate-reverse; animation-delay: var(--wx-phase, 0s); }
  .wx__rain i { animation: wx-fall .85s linear infinite; animation-delay: calc(var(--i) * -.31s + var(--wx-phase, 0s)); }
  .wx__snow i { animation: wx-flake 2.6s linear infinite; animation-delay: calc(var(--i) * -.53s + var(--wx-phase, 0s)); }
  .wx__bolt { animation: wx-flash 3.8s linear infinite; animation-delay: var(--wx-phase, 0s); }
  .wx--storm .wx__cloud { animation: wx-drift 7s ease-in-out infinite alternate, wx-lit 3.8s linear infinite; animation-delay: var(--wx-phase, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  .wx__rain i, .wx__snow i { transform: translateY(30%); }
  .wx__bolt { opacity: 1; }
}

@keyframes wx-spin { to { rotate: 360deg; } }
@keyframes wx-glow { 50% { scale: 1.06; filter: brightness(1.12) saturate(1.08); } }
@keyframes wx-drift { from { translate: -4% 0; } to { translate: 5% 0; } }
@keyframes wx-fall { from { transform: translate(0, -40%); opacity: 0; } 15% { opacity: 1; } to { transform: translate(-3px, 100%); opacity: .2; } }
@keyframes wx-flake { from { transform: translate(0, -10%); opacity: 0; } 15% { opacity: 1; } 50% { translate: 3px 0; } to { transform: translate(0, 100%); opacity: 0; } }
@keyframes wx-flash { 0%, 56%, 61%, 66%, 100% { opacity: 0; } 58%, 60%, 64% { opacity: 1; } }
@keyframes wx-lit { 0%, 56%, 67%, 100% { filter: none; } 58%, 64% { filter: brightness(1.45); } }

/* ---------- animated logo (assets/js/logo.js) ---------- */
.lg { --lg-h: 44px; display: inline-flex; align-items: center; gap: calc(var(--lg-h) * .15); }
.lg__mark { position: relative; flex: none; height: var(--lg-h); aspect-ratio: 1.202; }
.lg__word { position: relative; flex: none; height: calc(var(--lg-h) / 1.2); aspect-ratio: 3.3878; }
.lg__p { position: absolute; height: auto; max-width: none; user-select: none; pointer-events: none; }
.lg__p--crescent { z-index: 1; transform-origin: 100% 55%; }
.lg__p--land { z-index: 2; }
.lg__p--waves { z-index: 3; }
.lg__p--balloon, .lg__p--birds { z-index: 4; }
.lg__shine {
  position: absolute; z-index: 1; aspect-ratio: 14.33; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 236, 190, .95) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat;
}

/* destination badge: colour and symbol from the page theme */
.lg__badge {
  position: absolute; z-index: 5; right: -6%; top: -4%;
  width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
  border: 2px solid var(--surface-raised); box-shadow: var(--shadow-sm);
  transform: scale(0); transition: transform 380ms var(--ease), background-color var(--t-slow) var(--ease);
}
.lg .lg__badge .i { font-size: calc(var(--lg-h) * .2); line-height: 1; }
.lg[data-region] .lg__badge { transform: scale(1); }

@media (prefers-reduced-motion: no-preference) {
  /* full assembly on the first view */
  .lg.is-intro .lg__p--crescent { animation: lg-swing 700ms var(--ease) both; }
  .lg.is-intro .lg__p--waves { animation: lg-slide 650ms var(--ease) 220ms both; }
  .lg.is-intro .lg__p--land { animation: lg-rise 700ms var(--ease) 360ms both; }
  .lg.is-intro .lg__p--balloon { animation: lg-lift 900ms var(--ease) 560ms both; }
  .lg.is-intro .lg__p--birds { animation: lg-fly 700ms var(--ease) 900ms both; }
  .lg.is-intro .lg__word .lg__p { animation: lg-letter 450ms var(--ease) calc(700ms + var(--i) * 70ms) both; }
  .lg.is-intro .lg__word .lg__p--tag { animation: lg-fade 500ms var(--ease) 1150ms both; }
  .lg.is-intro .lg__shine { animation: lg-shine 900ms ease-in-out 1450ms both; }
  .lg.is-intro .lg__badge { transition-delay: 1300ms; }

  /* short version on the next pages and the "flight" when the destination changes */
  .lg.is-quick .lg__p--balloon { animation: lg-lift 700ms var(--ease) both; }
  .lg.is-quick .lg__badge { transition-delay: 300ms; }
  .lg.is-travel .lg__p--balloon { animation: lg-travel 900ms var(--ease); }

  /* on hover */
  @media (hover: hover) {
    a:hover > .lg:not(.is-intro) .lg__p--balloon, .lg:not(.is-intro):hover .lg__p--balloon { animation: lg-bob 1.6s ease-in-out; }
    a:hover > .lg:not(.is-intro) .lg__p--waves, .lg:not(.is-intro):hover .lg__p--waves { animation: lg-sway 1.6s ease-in-out; }
    a:hover > .lg:not(.is-intro) .lg__shine, .lg:not(.is-intro):hover .lg__shine { animation: lg-shine 900ms ease-in-out; }
  }
}
@keyframes lg-swing { from { opacity: 0; transform: rotate(-40deg) scale(.85); } }
@keyframes lg-slide { from { opacity: 0; transform: translateX(-14%); } }
@keyframes lg-rise { from { transform: translateY(32%); clip-path: inset(0 0 32% 0); } to { transform: none; clip-path: inset(0); } }
@keyframes lg-lift { from { opacity: 0; transform: translateY(45%) scale(.9); } }
@keyframes lg-fly { from { opacity: 0; transform: translate(-50%, 30%); } }
@keyframes lg-letter { from { opacity: 0; transform: translateY(28%); } }
@keyframes lg-fade { from { opacity: 0; } }
@keyframes lg-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes lg-travel { 0% { transform: none; } 45% { transform: translate(6%, -16%) rotate(4deg); } 100% { transform: none; } }
@keyframes lg-bob { 0%, 100% { transform: none; } 30% { transform: translateY(-9%) rotate(-3deg); } 65% { transform: translateY(-4%) rotate(2deg); } }
@keyframes lg-sway { 0%, 100% { transform: none; } 50% { transform: translateX(3%); } }

/* ---------- field logos (assets/js/fields.js, logo.js) ----------
   Every field: its own emblem, the common İKONİK wordmark and a tagline in the TURİZM gold. */
.lg--field .lg__mark { aspect-ratio: 1; }
.lg__emblem, .lg__alt { position: absolute; inset: -4%; display: grid; place-items: center; }
.lg__emblem img, .lg__alt img, .lgx__emblem img { width: 100%; height: 100%; object-fit: contain; }
.lg__tag {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans); font-weight: 600; font-size: calc(var(--lg-h) * .17); line-height: 1;
  letter-spacing: .3em; color: #AA6427; white-space: nowrap;
}
.lg__tag::before, .lg__tag::after { content: ""; flex: 1; min-width: 6%; height: 1px; background: currentColor; opacity: .75; }
/* start page: the tourism mark and tagline give way to the field under the cursor */
.lg__alt { z-index: 6; opacity: 0; transform: scale(.85); transition: opacity 260ms var(--ease), transform 380ms var(--ease); }
.lg__alt.is-on { opacity: 1; transform: none; }
.lg__tagx { opacity: 0; transition: opacity 260ms var(--ease); }
.lg__tagx.is-on { opacity: 1; }
.lg__mark > .lg__p, .lg__word > .lg__p--tag, .lg__shine { transition: opacity 220ms var(--ease); }
.lg.is-field .lg__mark > .lg__p, .lg.is-field .lg__badge, .lg.is-field .lg__p--tag, .lg.is-field .lg__shine { opacity: 0; }
/* placeholder while a field emblem image is missing: a round badge in the field colour */
.emblem-ph { display: none; }
.no-emblem > .emblem-ph {
  display: grid; place-items: center; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: var(--field); color: #FBF8F2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.lg .emblem-ph { font-size: calc(var(--lg-h) * .42); }
.lgx .emblem-ph { font-size: calc(var(--lgx-h) * .4); }
.emblem-ph .ph { line-height: 1; }

/* static logo: footers, the start page transition and the arrival splash */
.lgx { --lgx-h: 52px; display: inline-flex; align-items: center; gap: calc(var(--lgx-h) * .2); }
.lgx__emblem { position: relative; flex: none; width: var(--lgx-h); height: var(--lgx-h); display: grid; place-items: center; }
.lgx__word { display: grid; gap: calc(var(--lgx-h) * .08); }
.lgx__wordmark { display: block; height: calc(var(--lgx-h) * .54); width: auto; max-width: none; }
.lgx__tag {
  display: flex; align-items: center; gap: .6em;
  font-family: var(--font-sans); font-weight: 600; font-size: calc(var(--lgx-h) * .15); line-height: 1;
  letter-spacing: .38em; color: #AA6427; white-space: nowrap;
}
.lgx__tag::before, .lgx__tag::after { content: ""; flex: 1; min-width: 1em; height: 1px; background: currentColor; opacity: .75; }
.lgx--sm { --lgx-h: 46px; }
.lgx--big { --lgx-h: min(24vmin, 170px); }

/* full-screen logo between the start page and a field site */
.fly {
  position: fixed; inset: 0; z-index: 950; display: grid; place-items: center;
  background: color-mix(in srgb, var(--field) 12%, #F5EDE2);
}
.fly.is-arriving.is-out { opacity: 0; visibility: hidden; transition: opacity 550ms var(--ease), visibility 550ms; }
@media (prefers-reduced-motion: no-preference) {
  .fly.is-leaving { animation: fly-in 380ms var(--ease) both; }
  .fly.is-leaving .lgx { animation: fly-logo 560ms var(--ease) 90ms both; }
  .fly.is-arriving.is-out .lgx { transform: scale(.95); transition: transform 550ms var(--ease); }

  /* field header logo: the emblem pops in, letters rise, the tagline fades in */
  .lg--field.is-pending .lg__mark, .lg--field.is-pending .lg__word { opacity: 0; }
  .lg--field.is-intro .lg__emblem { animation: lg-pop 700ms var(--ease) both; }
  .lg--field.is-intro .lg__word .lg__p { animation: lg-letter 450ms var(--ease) calc(350ms + var(--i) * 70ms) both; }
  .lg--field.is-intro .lg__tag { animation: lg-fade 500ms var(--ease) 820ms both; }
  .lg--field.is-quick .lg__emblem { animation: lg-pop 500ms var(--ease) both; }
  @media (hover: hover) {
    a:hover > .lg--field:not(.is-intro) .lg__emblem { animation: lg-nod 900ms ease-in-out; }
  }
}
@keyframes fly-in { from { opacity: 0; } }
@keyframes fly-logo { from { opacity: 0; transform: scale(.86); } }
@keyframes lg-pop { from { opacity: 0; transform: scale(.7) rotate(-8deg); } }
@keyframes lg-nod { 0%, 100% { transform: none; } 40% { transform: rotate(-5deg) scale(1.04); } 75% { transform: rotate(3deg); } }

/* ---------- bottom bar (phone and tablet) ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  body:has(.tabbar) { padding-bottom: 96px; }
  .tabbar {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
    display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center;
    height: 68px; padding: 0 var(--s-2);
    background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg), var(--highlight);
  }
  .tabbar__item { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-muted); }
  .tabbar__item .i { font-size: 22px; }
  .tabbar__main {
    justify-self: center; width: 64px; height: 64px; margin-top: -30px;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: var(--on-primary);
    border: 4px solid var(--surface-raised);
    box-shadow: var(--shadow-lg);
  }
  .tabbar__main .i { font-size: 28px; }
  .tabbar__item[aria-current="true"] { color: var(--primary); }
}

/* ---------- language switcher (assets/js/i18n.js) ---------- */
.lang { position: relative; flex: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: var(--r-full);
  background: var(--surface-raised); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), var(--highlight);
  font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink);
  transition: box-shadow var(--t-fast) var(--ease);
}
.lang__btn:hover { box-shadow: var(--shadow-md), var(--highlight); }
.lang__btn .i { color: var(--primary); }
.lang__menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.lang__menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; text-align: left;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.lang__menu button b { width: 26px; font-size: 11px; font-weight: 800; color: var(--ink-muted); }
.lang__menu button:hover { background: var(--bg-deep); }
.lang__menu button[aria-checked="true"] { background: var(--primary-soft); color: var(--primary-deep); }
.lang__menu button[aria-checked="true"] b { color: var(--primary-deep); }

/* destination badge next to the greeting (instead of an emoji) */
.hello-badge {
  display: inline-grid; place-items: center; vertical-align: .08em;
  width: 1.05em; height: 1.05em; margin-left: .15em; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hello-badge .i { font-size: .58em; }
@media (prefers-reduced-motion: no-preference) {
  .hello-badge { animation: hello-pop 900ms var(--ease) 500ms both; }
}
@keyframes hello-pop {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.12) rotate(8deg); }
  80% { transform: scale(.96) rotate(-4deg); }
  100% { transform: none; }
}

/* ---------- clear glass: weather cards ----------
   The blur shows what is behind the card; a light theme tint keeps the white text readable. */
.glass-water {
  position: relative; isolation: isolate; overflow: hidden;
  --glass-bg: linear-gradient(160deg,
    color-mix(in srgb, var(--climate-bg) 34%, transparent),
    color-mix(in srgb, var(--climate-bg) 52%, transparent));
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
/* glass highlight on top */
.glass-water::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 15% -10%, rgba(255, 255, 255, .38), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 45%);
}
@media (prefers-reduced-transparency: reduce) {
  .glass-water { background: var(--climate-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* local time on the left of the weather card (IKClock, assets/js/live-weather.js) */
.clock {
  display: grid; gap: 4px; align-content: center; flex: none;
  padding-right: var(--s-4); margin-right: var(--s-1);
  border-right: 1px solid rgba(255, 255, 255, .35);
  font-variant-numeric: tabular-nums;
}
.clock span { white-space: nowrap; }

/* ---------- even tour cards: same grid and height ---------- */
.tour-grid { grid-auto-rows: 1fr; }
.ticket__main { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.ticket__head { min-width: 0; }
/* the head is always the same height: label, title up to 2 lines, place */
.ticket__title { flex: 1; min-width: 0; min-height: calc(11px + 2 * 1.2 * 22px + 14px * 1.45 + 2 * var(--s-1)); align-content: start; }
.ticket .ticket__title .t-h2 {
  font-size: 22px; line-height: 1.2;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ticket__title .t-small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* description: exactly 2 lines */
.ticket__text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: 3em;
}
/* stats: three equal columns of the same height */
.ticket__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: start; min-height: calc(2 * 1.3 * 12px + 1.3 * 11px); }
.stat { min-width: 0; }
.stat__value { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.stat__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* price and button always sit at the bottom */
.ticket__buy { margin-top: auto; flex-wrap: nowrap; }
.ticket__buy .btn { flex: none; }

/* phone: stats as a list of three equal rows */
@media (max-width: 560px) {
  .ticket__stats { grid-template-columns: 1fr; gap: 6px; min-height: 0; }
  .stat { grid-template-columns: 16px auto minmax(0, 1fr); column-gap: 6px; align-items: baseline; }
  .stat .i { grid-row: auto; align-self: center; margin: 0; }
  .stat__value { display: block; white-space: nowrap; }
  .stat__label { grid-column: auto; }
  .stat__label::before { content: "· "; }
  .ticket .ticket__title .t-h2 { font-size: 20px; }
  .ticket__title { min-height: calc(11px + 2 * 1.2 * 20px + 14px * 1.45 + 2 * var(--s-1)); }
  .ticket__buy .btn { padding: 0 var(--s-3); }
}
/* wide card: title on one line, no empty space below it */
.ticket__main { container-type: inline-size; container-name: ticket; }
@container ticket (min-width: 420px) {
  .ticket .ticket__title .t-h2 { -webkit-line-clamp: 1; }
  .ticket__title { min-height: 0; }
  .ticket__text { -webkit-line-clamp: 2; }
}

/* ---------- splash with the animated logo (assets/js/intro.js) ---------- */
.ik-intro-lock, .ik-intro-lock body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #F5EDE2; /* background colour of the video itself */
  transition: opacity 650ms var(--ease), visibility 650ms;
}
.intro__video {
  width: min(78vmin, 640px); height: auto; aspect-ratio: 1;
  opacity: 0; transition: opacity 300ms ease;
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.intro.is-playing .intro__video { opacity: 1; }
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro.is-leaving .intro__video { transform: scale(1.04); transition: transform 650ms var(--ease), opacity 300ms ease; }
.intro__skip {
  position: absolute; right: var(--s-6); bottom: var(--s-6);
  min-height: 40px; padding: 0 var(--s-5); border-radius: var(--r-full);
  background: rgba(255, 253, 249, .8); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: #4E4434;
  box-shadow: var(--shadow-sm);
}
.intro__skip:hover { background: #fff; }

/* ---------- footer with company details ---------- */
.footer__inner { display: grid; grid-template-columns: auto 1fr minmax(0, 340px); align-items: start; gap: var(--s-6) var(--s-12); }
.footer__links { padding-top: 10px; }
.footer__company { font-style: normal; display: grid; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.footer__name { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--ink); line-height: 1.4; }
.footer__line { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; line-height: 1.45; transition: color var(--t-fast) var(--ease); }
.footer__line .i { margin-top: 2px; color: var(--primary); }
.footer__line:hover { color: var(--ink); }
.footer__copy { grid-column: 1 / -1; padding-top: var(--s-6); border-top: 1px solid var(--border); }
.footer__credit { text-decoration: underline; text-underline-offset: 2px; }
.footer__credit:hover { color: var(--ink); }
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__links { padding-top: 0; }
}
