/* ==========================================================================
   GeoSites — design system v2
   Per-site identity comes from site.json → theme (colours, fonts, radius,
   display weight, hero style). Logical properties everywhere so RTL works.
   ========================================================================== */

:root {
  --paper: #fbf8f3;
  --sand: #f3ece2;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #6f665d;
  --line: color-mix(in oklab, var(--ink) 11%, var(--paper));
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --sea: #0e4f6b;
  --white: #fff;
  --star: #f5a524;
  --ok: #15803d;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -.022em;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(20 16 12 / .05), 0 3px 10px rgb(20 16 12 / .05);
  --shadow: 0 4px 10px rgb(20 16 12 / .05), 0 18px 44px rgb(20 16 12 / .11);
  --shadow-lg: 0 30px 80px rgb(10 8 6 / .22);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 36px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Generated hero art (only used when no photo is uploaded) */
  --sky-top: color-mix(in oklab, var(--sea) 70%, #0b1b2b);
  --sky-bottom: color-mix(in oklab, var(--accent) 45%, #ffd9b0);
  --sun: color-mix(in oklab, var(--accent) 30%, #fff1c9);
  --land-far: color-mix(in oklab, var(--sea) 55%, #2a2421);
  --land-near: color-mix(in oklab, var(--ink) 85%, var(--accent));
  --water: color-mix(in oklab, var(--sea) 80%, #000);
}

html:lang(ar) { --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif; --font-display: 'IBM Plex Sans Arabic', system-ui, sans-serif; --display-tracking: 0; }
html:lang(ja) { --font-body: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif; --font-display: var(--font-body); --display-tracking: 0; }
html:lang(zh-Hans) { --font-body: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; --font-display: var(--font-body); --display-tracking: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 840px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--star { fill: var(--star); stroke: var(--star); }
[dir="rtl"] .btn .i:last-child, [dir="rtl"] .link-arrow .i, [dir="rtl"] .act__cta .i, [dir="rtl"] .bento__go .i { transform: scaleX(-1); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 1rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--light { color: color-mix(in oklab, var(--accent) 30%, #fff); }
html:lang(ar) .eyebrow, html:lang(ja) .eyebrow, html:lang(zh-Hans) .eyebrow { letter-spacing: 0; }
.h-display, .h-section, .hero__title, .page-hero__title, .bento__title, .guide__title, .type__title, .cta-band h2, .prose h2, .brand, .stats strong, .notfound__code {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
}
.h-display { font-size: clamp(2.1rem, 4.4vw, 3.5rem); text-wrap: balance; }
.h-section { font-size: clamp(1.85rem, 3.4vw, 2.75rem); text-wrap: balance; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .72em 1.3em; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: .97rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px color-mix(in oklab, var(--accent) 32%, transparent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--glass { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgb(255 255 255 / .22); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: color-mix(in oklab, #fff 88%, var(--accent)); }
.btn--sm { min-height: 38px; padding: .5em 1.05em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.03rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h); color: #fff; transition: background .3s, color .3s, box-shadow .3s, height .3s; }
.site-header.is-solid, .is-legal .site-header, .is-404 .site-header {
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.28rem; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: calc(var(--r) * .6);
  background: var(--accent); color: #fff; font-size: 1.15rem; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .14);
}
.brand__mark--img { background: none; box-shadow: 0 2px 8px rgb(0 0 0 / .18); padding: 0; border-radius: 10px; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a { display: block; padding: .5em .9em; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: .95rem; opacity: .9; transition: background .2s, opacity .2s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; background: rgb(127 127 127 / .16); }
.site-header__tools { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(127 127 127 / .16); cursor: pointer; place-items: center; }
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i--close { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: .35em; cursor: pointer; height: 38px; padding: 0 .85em; border-radius: 999px; font-weight: 650; font-size: .84rem; background: rgb(127 127 127 / .16); }
.lang summary::-webkit-details-marker { display: none; }
.lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 200px; list-style: none; padding: 6px; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-height: 70vh; overflow: auto; }
.lang__menu a { display: block; padding: .55em .85em; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.lang__menu a:hover { background: var(--sand); }
.lang__menu a[aria-current] { font-weight: 700; color: var(--accent-dark); }

/* ---------- Hero: full-bleed photo ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero--full { min-height: clamp(640px, 94vh, 940px); display: flex; align-items: flex-end; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--full .hero__bg { animation: heroZoom 18s var(--ease) both; transform-origin: 60% 40%; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__art svg { width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .42) 0%, rgb(0 0 0 / 0) 24%),
    linear-gradient(90deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / .12) 55%, rgb(0 0 0 / 0) 100%),
    linear-gradient(0deg, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / 0) 55%);
}
[dir="rtl"] .hero__shade { background: linear-gradient(180deg, rgb(0 0 0 / .42) 0%, rgb(0 0 0 / 0) 24%), linear-gradient(270deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / .12) 55%, rgb(0 0 0 / 0) 100%), linear-gradient(0deg, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / 0) 55%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: end; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(96px, 12vw, 150px); }
.hero__title { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .98; max-width: 13ch; text-wrap: balance; text-shadow: 0 2px 40px rgb(0 0 0 / .25); }
.hero__sub { margin: 1.3rem 0 0; max-width: 54ch; font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.6; color: rgb(255 255 255 / .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.credit {
  position: absolute; inset-inline-end: 14px; bottom: 10px; z-index: 2;
  font-size: .68rem; color: rgb(255 255 255 / .7); text-decoration: none; text-shadow: 0 1px 4px rgb(0 0 0 / .6);
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.credit:hover { color: #fff; text-decoration: underline; }
.hero--full > .credit { bottom: 82px; }

.facts {
  background: rgb(18 14 10 / .38); border: 1px solid rgb(255 255 255 / .2); border-radius: var(--r);
  padding: 20px 22px 6px; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.facts__title { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .78; margin-bottom: 8px; }
.facts dl { margin: 0; }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgb(255 255 255 / .14); font-size: .92rem; }
.facts dt { opacity: .78; }
.facts dd { margin: 0; font-weight: 650; text-align: end; }

/* ---------- Hero: split (brand panel + framed photo) ---------- */
.hero--split {
  background:
    radial-gradient(60% 80% at 0% 100%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in oklab, var(--sea) 92%, #000), color-mix(in oklab, var(--sea) 65%, #000));
  padding-bottom: 72px;
}
.hero--split .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-bottom: 40px; }
.hero--split .hero__title { font-size: clamp(2.6rem, 5.4vw, 4.9rem); }
.hero__figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; max-height: 680px; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure .hero__art { position: absolute; inset: 0; }
.hero--split .facts { margin-top: 2.2rem; padding: 6px 18px; background: rgb(255 255 255 / .06); }
.hero--split .facts__title { display: none; }
.hero--split .facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.hero--split .facts dl > div { flex-direction: column; gap: 2px; border-top: 0; padding: 12px 0; }
.hero--split .facts dd { text-align: start; }
.hero--split .facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Booking bar (real numbers from the GYG feed) ---------- */
.bookbar {
  position: relative; z-index: 5; margin-top: -58px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 8px;
  padding: 14px 14px 14px 22px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.bookbar__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-width: 0; }
.bookbar__item + .bookbar__item { border-inline-start: 1px solid var(--line); }
.bookbar__item > .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: color-mix(in oklab, var(--accent) 11%, var(--paper)); color: var(--accent-dark); }
.bookbar__item small { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bookbar__item strong { display: block; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookbar__cta { margin-inline-start: 6px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 8vw, 112px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--tint { background: var(--sand); }
.section--dark { background: color-mix(in oklab, var(--sea) 84%, #000); color: #fff; }
.section--dark .section__sub { color: rgb(255 255 255 / .74); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(26px, 4vw, 44px); }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .section__sub { margin-inline: auto; }
.section__sub { margin: .8rem 0 0; color: var(--muted); max-width: 60ch; font-size: 1.06rem; }

.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.intro__text { font-size: 1.13rem; color: var(--ink-2); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.stats li { padding: 26px 24px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.stats li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.stats strong { font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--accent-dark); line-height: 1; }
.stats span { color: var(--muted); font-size: .93rem; }

/* ---------- Real activity cards ---------- */
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.acts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acts--inline { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 2.2rem 0; }
.act {
  position: relative; display: flex; flex-direction: column; background: var(--white); color: var(--ink);
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.act:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.act__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.act__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.act:hover .act__media img { transform: scale(1.06); }
.act__badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: .34em .7em; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .02em; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.badge--hot { background: var(--accent); color: #fff; }
.badge--warn { background: #fff4d6; color: #7a4b00; }
.badge--deal { background: #e7f6ec; color: var(--ok); }
.act__body { display: flex; flex-direction: column; flex: 1; padding: 15px 17px 16px; }
.act__meta { margin: 0 0 .4rem; font-size: .76rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act__title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 680; line-height: 1.35; letter-spacing: -.005em; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act__link { text-decoration: none; }
.act__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.act:hover .act__title { color: var(--accent-dark); }
.act__rating { display: flex; align-items: center; gap: 6px; margin: .55rem 0 0; font-size: .88rem; }
.act__rating span { color: var(--muted); }
.stars { position: relative; font-size: .9rem; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), color-mix(in oklab, var(--ink) 18%, #fff) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.act__perks { list-style: none; display: grid; gap: .25rem; margin-top: .6rem; font-size: .84rem; }
.act__perks li { display: flex; align-items: center; gap: .4em; color: var(--ok); font-weight: 550; }
.act__perks .act__booked { color: var(--accent-dark); }
.act__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.act__price { margin: 0; line-height: 1.2; }
.act__from { display: block; font-size: .74rem; color: var(--muted); }
.act__price s { color: var(--muted); font-size: .85rem; margin-inline-end: 4px; }
.act__price strong { font-size: 1.32rem; letter-spacing: -.01em; }
.act__unit { display: block; font-size: .74rem; color: var(--muted); }
.act__cta { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: color-mix(in oklab, var(--accent) 12%, var(--paper)); color: var(--accent-dark); transition: background .25s, color .25s, transform .25s var(--ease); }
.act:hover .act__cta { background: var(--accent); color: #fff; transform: translateX(3px); }

/* ---------- Tour type cards (editorial) ---------- */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.types--inline { margin: 2rem 0; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.type { display: flex; gap: 16px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .25s, transform .25s var(--ease); }
.type:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.type__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: color-mix(in oklab, var(--accent) 12%, var(--paper)); color: var(--accent-dark); }
.type__icon .i { width: 22px; height: 22px; }
.type__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.type__cat { margin: 0 0 .3rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.type__title { font-size: 1.22rem; line-height: 1.25; }
.type__title a { text-decoration: none; }
.type__title a:hover { color: var(--accent-dark); }
.type__hl { list-style: none; display: grid; gap: .3rem; margin: .8rem 0 0; font-size: .92rem; color: var(--ink-2); }
.type__hl li { display: flex; gap: .45em; align-items: flex-start; }
.type__hl .i { color: var(--accent); margin-top: .25em; }
.type__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: auto 0 0; padding-top: 1rem; font-size: .9rem; }
.type__for { display: inline-flex; align-items: center; gap: .4em; color: var(--muted); }

/* ---------- Bento (places) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.bento__item { position: relative; display: flex; align-items: flex-end; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.bento__item--lead { grid-column: span 2; grid-row: span 2; }
.bento__item:not(.bento__item--lead) { grid-column: span 1; }
.bento__item--lead:nth-last-child(2) ~ .bento__item { grid-column: span 2; grid-row: span 2; }
.bento__item--lead:nth-last-child(3) ~ .bento__item { grid-column: span 2; }
.bento__item--lead:nth-last-child(4) + .bento__item { grid-column: span 2; }
.bento__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.bento__bg.hero__art svg { width: 100%; height: 100%; }
.bento__item:hover .bento__bg { transform: scale(1.06); }
.bento__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .8), rgb(0 0 0 / .1) 60%, rgb(0 0 0 / 0)); }
.bento__copy { display: flex; flex-direction: column; gap: 5px; padding: 22px 24px; }
.bento__eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.bento__title { font-size: 1.5rem; line-height: 1.12; }
.bento__item--lead .bento__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.bento__text { font-size: .92rem; opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.bento__go { position: absolute; top: 16px; inset-inline-end: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.bento__item:hover .bento__go, .bento__item:focus-visible .bento__go { opacity: 1; transform: none; }

/* ---------- Panels, cards, season ---------- */
.panel { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.panel--light { box-shadow: var(--shadow); }
.gyg { min-height: 420px; }
.gyg__fallback { text-align: center; margin: 18px 0 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card--pad { padding: clamp(18px, 3vw, 32px); }
.season__bars { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 230px; }
.season__m { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.season__bar { width: 100%; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--line); }
.season__m--1 .season__bar { background: color-mix(in oklab, var(--sea) 28%, var(--line)); }
.season__m--2 .season__bar { background: color-mix(in oklab, var(--sea) 70%, #fff); }
.season__m--3 .season__bar { background: var(--accent); }
.season__m.is-now .season__label { color: var(--accent-dark); font-weight: 750; }
.season__m.is-now .season__bar { outline: 2px solid var(--ink); outline-offset: 2px; }
.season__label { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.season__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .86rem; color: var(--ink-2); }
.season__legend li { display: inline-flex; align-items: center; gap: .45em; }
.season__dot { width: 12px; height: 12px; border-radius: 4px; }
.season__dot--1 { background: color-mix(in oklab, var(--sea) 28%, var(--line)); }
.season__dot--2 { background: color-mix(in oklab, var(--sea) 70%, #fff); }
.season__dot--3 { background: var(--accent); }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.guide { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.guide:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.guide__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in oklab, var(--accent) 12%, var(--paper)); color: var(--accent-dark); }
.guide__icon .i { width: 22px; height: 22px; }
.guide__title { font-size: 1.34rem; line-height: 1.2; }
.guide__text { color: var(--muted); font-size: .95rem; flex: 1; }
.guide .link-arrow { margin-top: 4px; font-size: .92rem; }

/* ---------- Map ---------- */
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--sand); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--sea) 18%, var(--sand)), var(--sand) 60%), repeating-linear-gradient(0deg, transparent 0 38px, rgb(0 0 0 / .04) 38px 39px), repeating-linear-gradient(90deg, transparent 0 38px, rgb(0 0 0 / .04) 38px 39px); }
.map__icon { width: 54px; height: 54px; color: var(--sea); stroke-width: 1.3; }
.map__ext { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 650; font-size: 1.06rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { transition: transform .25s; color: var(--accent); }
.faq__item[open] .faq__chev { transform: rotate(90deg); }
[dir="rtl"] .faq__chev { transform: scaleX(-1); }
[dir="rtl"] .faq__item[open] .faq__chev { transform: rotate(90deg); }
.faq__a { padding: 0 24px 8px; color: var(--ink-2); }

/* ---------- CTA band (photo) ---------- */
.cta-band { padding-block: clamp(36px, 5vw, 64px); }
.cta-band__inner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(32px, 6vw, 72px); border-radius: var(--r-lg); color: #fff; min-height: 300px;
  background: linear-gradient(120deg, var(--accent-dark), color-mix(in oklab, var(--sea) 80%, #000));
  box-shadow: var(--shadow-lg);
}
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band__inner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in oklab, var(--sea) 85%, #000) 0%, color-mix(in oklab, var(--sea) 55%, transparent) 55%, rgb(0 0 0 / .15) 100%); }
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 18ch; }
.cta-band p { margin: .8rem 0 0; max-width: 52ch; color: rgb(255 255 255 / .9); font-size: 1.06rem; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; }
.page-hero--compact { min-height: 440px; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .3) 55%, rgb(0 0 0 / .45) 100%); }
.page-hero__inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero__title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); max-width: 20ch; text-wrap: balance; line-height: 1.02; }
.page-hero__lead { margin: 1.1rem 0 0; max-width: 62ch; font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: rgb(255 255 255 / .9); }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; margin: 1.3rem 0 0; font-size: .88rem; color: rgb(255 255 255 / .8); }
.page-hero--plain { min-height: 0; color: var(--ink); background: var(--sand); }
.page-hero--plain .page-hero__lead, .page-hero--plain .crumbs ol { color: var(--muted); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.5rem; font-size: .9rem; color: rgb(255 255 255 / .92); }
.trust li { display: inline-flex; align-items: center; gap: .45em; }
.trust .i { color: color-mix(in oklab, var(--accent) 30%, #fff); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: 1.2rem; font-size: .85rem; color: rgb(255 255 255 / .82); }
.crumbs li + li::before { content: '/'; margin-inline-end: .35em; opacity: .55; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); }
.article--single { grid-template-columns: minmax(0, 780px); justify-content: center; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.toc { padding: 20px 22px; }
.toc__title, .book-box__title { display: flex; align-items: center; gap: .5em; margin: 0 0 .8rem; font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: .6em; padding: .4em .55em; border-radius: 8px; text-decoration: none; font-size: .93rem; color: var(--ink-2); }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 750; font-size: .8rem; padding-top: .15em; }
.toc a:hover, .toc a.is-active { background: var(--sand); color: var(--ink); }
.book-box { padding: 20px; }
.book-box__list { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; }
.book-box__list > li > a:not(.mini) { display: block; padding: .6em .7em; margin-inline: -.7em; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px; margin-inline: -8px; border-radius: 12px; text-decoration: none; }
.mini:hover { background: var(--sand); }
.mini img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.mini__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini__title { font-weight: 650; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__meta { display: flex; align-items: center; gap: .3em; font-size: .8rem; color: var(--muted); }
.mini__meta strong { color: var(--ink); }

.prose { font-size: 1.08rem; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.7vw, 2.1rem); color: var(--ink); margin: 2.3em 0 .6em; line-height: 1.15; }
.prose h3 { font-size: 1.24rem; color: var(--ink); margin: 1.8em 0 .5em; font-weight: 700; letter-spacing: -.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: .35em 0; padding-inline-start: .2em; }
.prose li::marker { color: var(--accent); }
.prose a:not(.btn):not(.act__link) { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { margin-top: .6em; font-size: .88rem; color: var(--muted); text-align: center; }
.prose code { background: var(--sand); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.prose a.btn { color: #fff; text-decoration: none; }
.prose .act ul, .prose .type ul { padding: 0; margin-bottom: 0; }
.prose .act li, .prose .type li { margin: 0; padding: 0; }
.prose .act p, .prose .type p { margin-bottom: 0; }
.prose .act__title, .prose .type__title { margin: 0; color: var(--ink); }
.prose .act__title a, .prose .type__title a { color: inherit; text-decoration: none; }
.prose .act__meta { margin-bottom: .4rem; }
.callout { display: flex; gap: 14px; margin: 1.8em 0; padding: 18px 20px; border-radius: var(--r); background: color-mix(in oklab, var(--sea) 7%, var(--paper)); border: 1px solid color-mix(in oklab, var(--sea) 18%, var(--line)); color: var(--ink); font-size: 1rem; }
.callout .i { width: 22px; height: 22px; color: var(--sea); margin-top: .15em; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2em 0; padding: 22px 26px; border-radius: var(--r); background: var(--sand); border: 1px dashed color-mix(in oklab, var(--accent) 45%, var(--line)); }
.inline-cta p { margin: 0; font-weight: 650; color: var(--ink); }

/* ---------- Credits page ---------- */
.credits { display: grid; gap: 18px; }
.credits__item { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.credits__item img { width: 160px; height: 106px; object-fit: cover; border-radius: calc(var(--r) * .6); }
.credits__item figcaption { display: grid; gap: 4px; font-size: .92rem; color: var(--ink-2); }
.credits__item a { color: var(--accent-dark); }

/* ---------- Ads ---------- */
.ad { margin: 36px auto; text-align: center; min-height: 280px; }
.ad__label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad--placeholder { display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted); font-size: .8rem; min-height: 250px; }
.article__aside .ad { min-height: 600px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in oklab, var(--ink) 94%, var(--sea)); color: rgb(255 255 255 / .72); padding-top: clamp(52px, 7vw, 88px); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { margin: 1rem 0 1.5rem; max-width: 42ch; }
.brand--light { color: #fff; }
.site-footer__h { font-family: var(--font-body); font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 5vw, 60px); padding-block: 24px 32px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__disclosure { flex-basis: 100%; color: rgb(255 255 255 / .55); }
.site-footer__langs { display: flex !important; flex-wrap: wrap; gap: 6px 14px !important; }
.mobile-cta { display: none; }

/* ---------- 404 ---------- */
.notfound { padding-block: calc(var(--header-h) + 72px) 96px; text-align: center; }
.notfound .page-hero__title, .notfound .page-hero__lead { margin-inline: auto; }
.notfound__code { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--accent); margin: 0 0 .2em; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .bookbar__item:nth-child(3) { border-inline-start: 0; }
  .bookbar__cta { grid-column: 1 / -1; margin: 6px 0 0; }
}
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero--full .facts { display: none; }
  .hero--split .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { aspect-ratio: 16 / 10; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .article__aside .sticky { position: static; }
  .article__aside .toc { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .site-header__cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 12px var(--gutter) 24px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: .85em .6em; font-size: 1.05rem; border-radius: 10px; }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .site-header { background: var(--paper); color: var(--ink); }
  body.nav-open .nav-toggle .i--open { display: none; }
  body.nav-open .nav-toggle .i--close { display: block; }

  .intro__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .bento .bento__item { grid-column: span 1; grid-row: span 1; }
  .bento .bento__item--lead { grid-column: span 2; }
  .bento .bento__item--lead:nth-last-child(even) ~ .bento__item:last-child { grid-column: span 2; }
  .bento__go { opacity: 1; transform: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }
  .acts--scroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(260px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .acts--scroll::-webkit-scrollbar { display: none; }
  .acts--scroll .act { scroll-snap-align: start; }
  .map { aspect-ratio: 4 / 3; }
  .hero--split .facts dl { grid-template-columns: repeat(2, 1fr); }
  .mobile-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
  .mobile-cta.is-visible { transform: none; }
  body:has(.mobile-cta) .site-footer { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero--full { min-height: min(100svh, 760px); }
  .hero__inner { padding-bottom: 116px; }
  .hero--full > .credit { bottom: 58px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .bookbar { margin-top: -44px; gap: 0; }
  .bookbar__item { padding: 10px 6px; gap: 10px; }
  .bookbar__item > .i { width: 34px; height: 34px; padding: 8px; }
  .bookbar__item strong { font-size: .98rem; }
  .acts, .acts--three { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .bento__item--lead, .bento .bento__item--lead:nth-last-child(even) ~ .bento__item:last-child { grid-column: span 1; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .brand__name { font-size: 1.1rem; }
  .season__bars { grid-template-columns: repeat(6, minmax(0, 1fr)); height: auto; gap: 18px 8px; }
  .season__m { height: 130px; }
  .season__label { font-size: .78rem; }
  .credits__item { grid-template-columns: minmax(0, 1fr); }
  .credits__item img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .credit { max-width: 80%; font-size: .74rem; }
}

/* Long labels (e.g. German) wrap to two lines instead of being cut off. */
.bookbar__item strong { white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* CJK: smaller stat numbers, never break inside a word. */
html:lang(ja) .stats strong, html:lang(zh-Hans) .stats strong { font-size: clamp(1.35rem, 2.3vw, 1.9rem); word-break: keep-all; }
html:lang(ja) .hero__title, html:lang(zh-Hans) .hero__title, html:lang(ja) .page-hero__title, html:lang(zh-Hans) .page-hero__title { word-break: keep-all; line-break: strict; }
/* Phones: long words (German compounds, URLs) wrap instead of widening the page. */
.bookbar__item > span { min-width: 0; }
.bookbar__item small, .stats span { overflow-wrap: break-word; }
.bookbar__item strong, .stats strong { overflow-wrap: anywhere; }
.prose, .prose td, .prose th, .faq summary, .act__title, .type__title, .guide__title { overflow-wrap: break-word; }
@media (max-width: 640px) {
  .hero__title, .page-hero__title, .h-display, .h-section, .prose h2, .prose h3, .cta-band h2, .bookbar__item small { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .stats li { padding-inline-end: 12px; }
  .prose table { font-size: .9rem; }
  .prose th, .prose td { padding: 10px 12px; }
  .table-wrap { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; }
}
@media (max-width: 640px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .prose .btn { display: flex; width: 100%; justify-content: center; }
}
