/* /luxury-ryokan, "Destination stays". Page styles (lx-*); the gallery is in gallery.css.
   Each stay card sets --lx-tint (a season colour token) for its glow and accents. */

/* ---------- hero ---------- */
.lx-hero { position: relative; min-height: 560px; height: min(86vh, 780px); color: var(--paper); overflow: hidden; background: var(--ink); }
.lx-hero__cover { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.lx-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 28%, transparent 45%, color-mix(in srgb, var(--ink) 88%, transparent) 100%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--accent-ink) 55%, transparent), transparent 70%);
}
.lx-hero__inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--site-w); margin: 0 auto; padding: 0 var(--gutter) 64px;
}
.lx-hero__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; display: flex; align-items: center; gap: 12px; }
.lx-hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.lx-hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 124px); line-height: 0.95; letter-spacing: -0.03em; margin: 18px 0 14px; }
.lx-hero__tagline { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.4vw, 30px); margin: 0; opacity: 0.92; }
.lx-hero__ja {
  position: absolute; right: var(--gutter); bottom: 64px; margin: 0;
  writing-mode: vertical-rl; white-space: nowrap; font-family: var(--jp); font-size: 22px; letter-spacing: 0.32em; opacity: 0.9;
  padding: 16px 10px; border-left: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
}
.lx-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.lx-hero__meta span {
  font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 14%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lx-hero__credit { position: absolute; top: 18px; right: var(--gutter); margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

/* ---------- intro ---------- */
.lx-intro { margin-top: 28px; max-width: 72ch; }
.lx-intro p { color: var(--ink-2); line-height: 1.7; }
.lx-intro__lede { font-family: var(--serif); font-size: 23px; line-height: 1.45 !important; color: var(--ink) !important; font-weight: 300; }
.lx-intro a { color: var(--accent); }

/* ---------- filters ---------- */
.lx-filter { padding: 0 var(--gutter) 8px; }
.lx-filter__inner {
  max-width: var(--site-w); margin: 0 auto; padding: 22px 24px; border-radius: var(--r-feature);
  background: linear-gradient(120deg, var(--paper-2), color-mix(in srgb, var(--accent-soft) 70%, var(--paper-2)));
  border: 1px solid var(--rule);
}
.lx-filter__label { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lx-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-fchip {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink);
  font: 500 14px/1 var(--sans); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.lx-fchip:hover { border-color: var(--ink-3); }
.lx-fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lx-fchip[aria-pressed="true"]::before { content: "✓ "; }
.lx-fchip--reset { background: transparent; border-style: dashed; color: var(--ink-3); }
.lx-filter__count { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); min-height: 1em; }
.lx-filter__count:empty { display: none; }
.lx-off { display: none !important; }
.lx-empty { margin: 0; padding: 28px; border: 1px dashed var(--rule-2); border-radius: var(--r-card); color: var(--ink-3); text-align: center; }

/* ---------- sections ---------- */
.lx-sec { padding: 72px var(--gutter) 24px; }
.lx-sec__inner { max-width: var(--site-w); margin: 0 auto; }
.lx-sec .tb-section-head { margin-bottom: 32px; }
.lx-covers, .lx-cards { display: grid; gap: 44px; }

/* shared bits */
.lx-copy p { margin: 0 0 14px; line-height: 1.7; font-size: 15.5px; }
.lx-copy p:last-child { margin-bottom: 0; }
.lx-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill);
  font-size: 13px; line-height: 1.3; background: var(--surface); border: 1px solid var(--rule);
}
.lx-chip__g {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--jp); font-size: 13px; color: var(--paper);
  background: linear-gradient(135deg, var(--lx-tint, var(--accent)), color-mix(in srgb, var(--lx-tint, var(--accent)) 55%, var(--ink)));
}
.lx-access { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.lx-access__k { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.lx-price__from { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lx-price__num { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.lx-price__note { flex-basis: 100%; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.lx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.lx-book { min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.lx-book:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.lx-alt { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.lx-alt small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lx-alt:hover { text-decoration: underline; }
.lx-cover .lx-alt { color: var(--paper); }
.lx-cover .lx-alt small { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.lx-notes { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 500; }
.lx-notes:hover { text-decoration: underline; }
.lx-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--lx-tint, var(--accent)) 18%, transparent); color: inherit;
}
.lx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lx-tint, var(--accent)); }
.lx-badge--new { background: transparent; border: 1px dashed currentColor; opacity: 0.8; }
.lx-badge--new::before { background: transparent; border: 1px solid currentColor; }
.lx-cover__no { font-family: var(--mono); font-weight: 500; }

/* ---------- the top four: magazine covers ---------- */
.lx-cover {
  border-radius: var(--r-feature-lg); overflow: hidden; color: var(--paper);
  background:
    radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--lx-tint) 55%, transparent), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    linear-gradient(165deg, var(--accent-ink), var(--ink) 60%);
}
.lx-cover__media { position: relative; aspect-ratio: 16 / 8; }
.lx-cover__media .tb-gallery { position: absolute; inset: 0; }
.lx-cover__mast { position: absolute; top: 20px; left: 20px; z-index: 4; pointer-events: none; }
.lx-cover__kanji {
  width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--jp); font-size: 36px; line-height: 1; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ink) 60%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lx-cover__body { position: relative; padding: 40px 48px 48px; }
.lx-cover__body::before { /* the photo bleeds into the card */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px;
  background: linear-gradient(90deg, var(--lx-tint), color-mix(in srgb, var(--lx-tint) 20%, var(--accent)), transparent);
}
.lx-cover__eyebrow, .lx-card__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.88;
}
.lx-cover__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.025em;
  margin: 16px 0 0;
}
.lx-cover__name em, .lx-card__name em, .lx-next__name em {
  display: block; font-style: normal; font-family: var(--jp); font-weight: 400; font-size: 0.3em; letter-spacing: 0.12em;
  margin-top: 12px; opacity: 0.75;
}
.lx-quote {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25;
  margin: 26px 0 0; padding-left: 20px; border-left: 2px solid var(--lx-tint);
  color: color-mix(in srgb, var(--paper) 92%, var(--lx-tint));
}
.lx-cover__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; }
.lx-cover .lx-copy p { color: color-mix(in srgb, var(--paper) 86%, transparent); }
.lx-side {
  display: flex; flex-direction: column; gap: 22px; align-self: start;
  padding: 24px; border-radius: var(--r-feature);
  background: color-mix(in srgb, var(--paper) 7%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
}
.lx-cover .lx-chip { background: color-mix(in srgb, var(--paper) 8%, transparent); border-color: color-mix(in srgb, var(--paper) 16%, transparent); color: var(--paper); }
.lx-cover .lx-access, .lx-cover .lx-price__note { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.lx-cover .lx-access__k, .lx-cover .lx-price__from { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.lx-cover .lx-book { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lx-cover .lx-book:hover { background: color-mix(in srgb, var(--paper) 85%, var(--lx-tint)); }
.lx-cover .lx-notes { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- all stays: photo-left cards on a tinted paper gradient ---------- */
.lx-card {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  border-radius: var(--r-feature-lg); overflow: hidden; border: 1px solid var(--rule);
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--lx-tint) 16%, transparent), transparent 70%),
    linear-gradient(160deg, var(--paper), var(--paper-2));
}
.lx-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.lx-card:nth-child(even) .lx-card__media { order: 2; }
.lx-card__media { position: relative; min-height: 560px; }
.lx-card__media .tb-gallery { position: absolute; inset: 0; }
.lx-card__body { padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 18px; }
.lx-card__eyebrow { color: var(--ink-3); opacity: 1; }
.lx-card__eyebrow .lx-cover__no { color: var(--ink); font-size: 13px; }
.lx-card__name, .lx-next__name { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.lx-card .lx-copy p, .lx-next .lx-copy p { color: var(--ink-2); }
.lx-card__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.lx-card__foot .lx-price { flex: 1 1 220px; }

/* ---------- next on my list ---------- */
.lx-sec--next { background: linear-gradient(180deg, var(--paper), var(--paper-2)); padding-bottom: 72px; }
.lx-nexts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lx-next { --lx-tint: var(--winter); display: flex; flex-direction: column; border-radius: var(--r-feature); overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.lx-next__media { position: relative; aspect-ratio: 3 / 2; }
.lx-next__media .tb-gallery { position: absolute; inset: 0; }
.lx-next__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lx-next .lx-card__eyebrow { color: var(--ink-3); }
.lx-next__name { font-size: 32px; }
.lx-next .tb-ps__caption { font-size: 18px; }

/* ---------- compare table ---------- */
.lx-table th a { color: var(--accent); text-decoration: none; }
.lx-table th a:hover { text-decoration: underline; }
@media (min-width: 701px) { .lx-table { font-size: 13.5px; } .lx-table tbody th { min-width: 170px; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .lx-cover__grid { grid-template-columns: 1fr; gap: 28px; }
  .lx-card, .lx-card:nth-child(even) { grid-template-columns: 1fr; }
  .lx-card:nth-child(even) .lx-card__media { order: 0; }
  .lx-card__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .lx-hero { height: min(82vh, 680px); min-height: 520px; }
  .lx-hero__inner { padding: 0 16px 36px; }
  .lx-hero__ja { position: static; writing-mode: horizontal-tb; border: none; padding: 0; margin: 14px 0 0; font-size: 17px; letter-spacing: 0.2em; }
  .lx-hero__credit { right: 16px; top: 12px; }
  .lx-filter { padding: 0 16px 8px; }
  .lx-filter__inner { padding: 18px 16px; }
  .lx-filter__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .lx-filter__chips::-webkit-scrollbar { display: none; }
  .lx-fchip { flex-shrink: 0; }
  .lx-sec { padding: 48px 16px 16px; }
  .lx-sec--next { padding-bottom: 48px; }
  .lx-covers, .lx-cards { gap: 28px; }
  .lx-cover__media { aspect-ratio: 4 / 5; }
  .lx-cover__mast { top: 14px; left: 14px; }
  .lx-cover__kanji { width: 52px; height: 52px; font-size: 28px; border-radius: 14px; }
  .lx-cover__body { padding: 28px 18px 24px; }
  .lx-side { padding: 18px 16px; }
  .lx-card__media { aspect-ratio: 4 / 3; }
  .lx-card__body { padding: 24px 18px 24px; }
  .lx-nexts { grid-template-columns: 1fr; }
  .lx-next__body { padding: 20px 18px 22px; }
  .lx-intro__lede { font-size: 20px; }
}
@media (max-width: 560px) {
  .lx-hero__title { font-size: 58px; }
  .lx-quote { padding-left: 14px; }
  .lx-card__foot { flex-direction: column; align-items: stretch; }
  .lx-actions { flex-direction: column; align-items: stretch; }
  .lx-book { justify-content: center; }
  .lx-notes, .lx-alt { text-align: center; align-items: center; }
}

/* ---------- translations (ja, zh-Hant) ---------- */
/* CJK text has no italic: synthesised slants look broken */
html:lang(ja) .sp-intro__callout p, html:lang(zh) .sp-intro__callout p,
html:lang(ja) .lx-quote, html:lang(zh) .lx-quote { font-style: normal; }
/* two-character region names and short headings stay on one line in the compare table */
@media (min-width: 701px) {
  html:lang(ja) .lx-table th, html:lang(ja) .lx-table td:nth-child(2), html:lang(ja) .lx-table td:last-child,
  html:lang(zh) .lx-table th, html:lang(zh) .lx-table td:nth-child(2), html:lang(zh) .lx-table td:last-child { white-space: nowrap; }
  html:lang(ja) .lx-table tbody th, html:lang(zh) .lx-table tbody th { white-space: normal; }
}
