@font-face { font-family: 'Worldscape Title SC'; src: url('/atlas/home-title-sc.woff2?v=product') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Worldscape Title TC'; src: url('/atlas/home-title-tc.woff2?v=product') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Worldscape Title JA'; src: url('/atlas/home-title-ja.woff2?v=product') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Worldscape Title EN'; src: url('/atlas/home-title-en.woff2?v=product') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: var(--worldscape-ink);
  --muted: var(--worldscape-muted);
  --blue: var(--worldscape-accent);
  --line: var(--worldscape-line);
  --quiet-surface: #f2f5fa;
  --search-surface: #203a5c;
  --search-ink: #fcfdff;
  --image-height: clamp(264px, 24.1vw, 352px);
  --body: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --display: 'Worldscape Title SC', var(--body);
  font-family: var(--body);
  color: var(--ink);
  background: var(--worldscape-paper);
}
:root:lang(zh-Hant) { --body: 'Noto Sans CJK TC', 'PingFang TC', sans-serif; --display: 'Worldscape Title TC', var(--body); }
:root:lang(ja) { --body: 'Noto Sans CJK JP', 'Hiragino Kaku Gothic ProN', sans-serif; --display: 'Worldscape Title JA', var(--body); }
:root:is(:lang(en),:lang(fr)) { --body: 'Inter', 'Helvetica Neue', Arial, sans-serif; --display: 'Worldscape Title EN', var(--body); }

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

body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.frame { width: var(--worldscape-frame); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.16em; height: 1.16em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 30; background: #fff; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h2 { font-size: clamp(19px, 2vw, 27px); letter-spacing: -.046em; line-height: 1.25; }

.home-masthead {
  --masthead-trim: clamp(12px, 2.1vw, 40px);
  --water-crop: calc(clamp(13px, 3.7vw, 71px) + var(--masthead-trim));
  position: relative;
  z-index: 2;
  isolation: isolate;
  color: #18243a;
  background: #edf4fc;
}
.home-masthead-art, .home-masthead-art::after { position: absolute; inset: 0; pointer-events: none; }
.home-masthead-art { z-index: -1; display: block; overflow: hidden; }
.home-masthead-art img { position: absolute; inset: auto 0 calc(-1 * var(--water-crop)); display: block; width: 100%; height: auto; mask-image: linear-gradient(to bottom,transparent,#000 27%); }
.home-masthead-art::after {
  content: '';
  bottom: calc(-1 * var(--masthead-trim));
  background: radial-gradient(ellipse 40% 44% at 50% 35%,#f4f8fcd9,#f4f8fc83 48%,transparent 98%);
}
.destination-mast { position: relative; }
.destination-top { display: grid; align-content: center; justify-items: center; gap: clamp(14px,1.4vw,21px); width: min(100%,780px); min-height: calc(clamp(348px,28.5vw,465px) - var(--masthead-trim)); margin-inline: auto; padding-block: 26px calc(clamp(54px,7vw,116px) - var(--masthead-trim)); text-align: center; }
.destination-top h1 { max-width: 100%; font-size: clamp(41px,4.1vw,64px); line-height: 1.13; letter-spacing: -.055em; text-wrap: balance; }
.destination-top h1:is(:lang(en),:lang(fr)) { line-height: 1.04; }
.home-masthead + #main { padding-top: clamp(19px,2.6vw,34px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px 12px; }
.hero-link { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #c4d5e9; border-radius: 7px; color: #244d80; font-size: .89rem; font-weight: 670; line-height: 1.25; }
.hero-link-map { background: #ffffffce; }
.hero-link-build { background: #eaf1faee; }
.hero-link:hover { background: #dbe9fa; color: #1b3c66; }
.hero-link .hero-arrow { margin-inline-start: 3px; }
.destination-control { position: relative; z-index: 4; width: min(100%,620px); min-width: 0; }
#destination-search { display: flex; align-items: center; min-height: 65px; gap: 12px; padding: 5px 5px 5px 18px; border: 1px solid #d9e3ee; border-radius: 11px; background: #fff; color: var(--ink); box-shadow: 0 9px 24px #34475222; }
#destination-search:focus-within { border-color: #a1b9d6; box-shadow: 0 0 0 3px #c1d9f578, 0 7px 22px #14253d44; }
.search-icon { color: #315680; font-size: 20px; }
#destination-query { flex: 1; width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: none; background: transparent; font-size: 16px; }
#destination-query::placeholder { color: var(--muted); opacity: 1; }
#destination-search button { display: inline-flex; flex: none; min-height: 52px; align-items: center; gap: 9px; padding: 0 clamp(13px, 2vw, 29px); border: 0; border-radius: 7px; background: #244d80; color: #fcfdff; font-size: .96rem; font-weight: 700; }
#destination-search button:hover { background: #1b3c66; }
#destination-search button:focus-visible { outline-color: #d9eaff; outline-offset: -4px; }
#destination-results { position: absolute; z-index: 10; inset: calc(100% + 5px) 0 auto; max-height: min(380px, 62vh); overflow: auto; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 10px 29px #17243b25; }
.destination-option, .destination-map-fallback { display: flex; flex-direction: column; width: 100%; min-height: 43px; justify-content: center; align-items: start; gap: 3px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; text-align: start; font-size: .88rem; }
.destination-option:hover, .destination-option:focus-visible, .destination-map-fallback:hover { background: var(--worldscape-accent-soft); }
.destination-option-name { font-weight: 680; }
.destination-option-context, .destination-status { color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.destination-status { padding: 10px; }
.destination-map-fallback { color: var(--blue); font-weight: 650; }
.experience-status { margin-top: 7px; color: #334963; font-size: .8rem; }


.nearby-pane { min-width: 0; border: 1px solid #d9e3ee; border-radius: 15px; background: #fff; }
.experience-view { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 62px; }
.experience-photo { position: relative; height: clamp(319px, 27.5vw, 420px); isolation: isolate; }
.experience-media { position: absolute; inset: 0; display: block; }
.experience-media img {
  position: absolute; inset: 0; display: block; width: auto; height: auto;
  max-width: 100%; max-height: 100%; margin: auto; object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(0deg, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
  transition: opacity .35s ease;
}
.experience-placeholder { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; color: #456778; }
.experience-placeholder .icon { width: 65px; height: 65px; stroke-width: .9; }
.experience-detail { display: flex; justify-content: space-between; min-height: 77px; align-items: center; gap: 10px 15px; padding: 3px 0 0; }
.experience-caption { min-width: 0; display: grid; gap: 4px; }
.experience-caption > span { color: var(--muted); font-size: .76rem; font-weight: 650; }
.experience-caption > h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: clamp(22px, 2.55vw, 36px); letter-spacing: -.04em; line-height: 1.18; }
.experience-medium { position: absolute; z-index: 1; top: 12px; left: 13px; padding: 5px 8px; border-radius: 4px; background: var(--search-surface); color: var(--search-ink); font-size: .7rem; font-weight: 650; pointer-events: none; }
.primary-action { display: inline-flex; flex: none; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #244d80; border-radius: 6px; background: #244d80; color: #fff; font-size: .88rem; font-weight: 700; text-align: center; }
.primary-action:hover { background: #1b3c66; }
.text-link { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; color: var(--blue); font-size: .85rem; font-weight: 690; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.nearby-pane { display: flex; flex-direction: column; height: calc(var(--image-height) + 79px); padding: 17px 16px 10px; background: #fff; }
.nearby-header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: start; gap: 5px 12px; }
.nearby-header p { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.nearby-filters { display: flex; flex: 0 0 auto; gap: 4px; overflow-x: auto; margin: 9px -2px 3px; padding: 2px 2px 5px; scrollbar-width: thin; }
.nearby-filter { flex: none; min-height: 33px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.nearby-filter:hover, .nearby-filter[aria-pressed="true"] { color: var(--blue); border-color: #d8e5fc; background: var(--worldscape-accent-soft); }
.nearby-filter[aria-pressed="true"] { font-weight: 710; }
.nearby-content { overflow: auto; flex: 1; min-height: 0; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #becbdf transparent; }
.nearby-status { margin: 13px 3px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.nearby-row + .nearby-row { border-top: 1px solid var(--line); }
.nearby-toggle { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 54px; padding: 5px 7px 5px 2px; gap: 9px; border: 0; border-radius: 5px; background: transparent; text-align: start; }
.nearby-toggle:focus-visible, .nearby-filter:focus-visible, .destination-option:focus-visible, .destination-map-fallback:focus-visible { outline-offset: -2px; }
.nearby-toggle:hover, .nearby-toggle[aria-expanded="true"] { background: var(--quiet-surface); }
.nearby-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 6px; background: #e8eff3; color: #304e60; }
.nearby-copy { display: grid; min-width: 0; gap: 1px; }
.nearby-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .87rem; font-weight: 680; }
.nearby-copy small { color: var(--muted); font-size: .72rem; }
.nearby-distance { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nearby-distance .icon { width: 13px; height: 13px; }
.nearby-toggle[aria-expanded="true"] .nearby-distance .icon { rotate: 90deg; }
.nearby-details { padding: 8px 9px 11px 42px; border-radius: 5px; background: var(--quiet-surface); color: var(--muted); font-size: .8rem; line-height: 1.55; }
.nearby-details p { margin-bottom: 4px; overflow-wrap: anywhere; }
.nearby-links { display: flex; gap: 5px 12px; flex-wrap: wrap; }
.nearby-links a, .nearby-retry { color: var(--blue); font-weight: 680; }
.nearby-links a:hover, .nearby-retry:hover { text-decoration: underline; }
.nearby-retry { margin: 0 3px 10px; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--worldscape-accent-soft); }

.world-catalogue { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(260px,1fr); align-items: start; gap: clamp(17px, 2.5vw, 37px); margin-top: clamp(31px,4.3vw,62px); padding-top: clamp(15px,2vw,30px); border-top: 1px solid #d9e3ee; }
.catalog-section { min-width: 0; scroll-margin-top: 12px; }
.recent-section { min-width: 0; padding: 15px 16px 12px; border: 1px solid #d9e3ee; border-radius: 12px; background: #f6f8fb; }
.recent-section .catalog-heading { margin-bottom: 11px; }
.home-recent-list { margin: 0; padding: 0; list-style: none; }
.home-recent-list li + li { border-top: 1px solid #d9e3ee; }
.home-recent-list a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-block: 6px; }
.home-recent-list a:hover strong { color: #244d80; text-decoration: underline; }
.home-recent-thumbnail { width: 65px; height: 40px; flex: none; border-radius: 4px; object-fit: cover; background: #eaf1fa; }
.home-recent-list strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.38; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 17px; }
.refresh-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid #ccdbef; border-radius: 6px; background: #fff; color: var(--blue); font-size: .85rem; font-weight: 690; }
.refresh-button:hover { background: var(--worldscape-accent-soft); }
.refresh-button[aria-disabled="true"] { cursor: wait; opacity: .68; }
.catalog-status { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.catalog-status:empty { display: none; }
.home-catalog { margin: 0; padding: 0; list-style: none; }
.home-catalog { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.home-catalog-item { min-width: 0; }
.home-catalog-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.home-catalog-card:hover { border-color: #a7bee6; box-shadow: 0 4px 11px #1d345812; }
.home-catalog-media { display: grid; width: 100%; aspect-ratio: 16/9; place-items: center; overflow: hidden; background: var(--quiet-surface); }
.home-catalog-media img { width: 100%; height: 100%; object-fit: cover; }
.home-catalog-copy { display: grid; min-width: 0; gap: 3px; padding: 11px 11px 12px; }
.home-catalog-title { font-size: .96rem; font-weight: 700; line-height: 1.24; overflow-wrap: anywhere; }
.home-catalog-meta, .home-catalog-coordinates { color: var(--muted); font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.home-catalog-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink); font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }


.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 13px 0 25px; border-top: 1px solid var(--line); }
.site-footer .brand { display: inline-flex; align-items: center; gap: 5px; font: 750 19px/1 'Inter','Helvetica Neue',Arial,sans-serif; letter-spacing: -.06em; }
.site-footer .brand svg { width: 23px; height: 23px; color: var(--blue); }
.site-footer p { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: .72rem; }
.site-footer p a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .experience-detail { flex-wrap: wrap; gap: 7px 12px; }
  .home-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .home-masthead { --masthead-trim: clamp(8px, 2.3vw, 11px); }
  .destination-top { min-height: 0; gap: 12px; padding-block: 20px 13px; }
  .destination-top h1 { max-width: 12em; font-size: clamp(33px,8.5vw,57px); }
  .home-masthead-art::after { background: linear-gradient(180deg,#edf4fc 14%,#edf4fc9e 43%,transparent 71%); }
  #destination-search { min-height: 60px; }
  #destination-search button { min-height: 48px; }
  .hero-link { min-height: 43px; gap: 6px; padding-inline: 10px; font-size: .82rem; }
  #destination-query::placeholder { font-size: .88rem; }
  .experience-detail { min-height: 70px; }
  .nearby-pane { height: 238px; padding: 11px 10px 5px; }
  .world-catalogue { grid-template-columns: minmax(0,1fr); }
  .home-catalog { gap: 8px; }
}
@media (max-width: 440px) {
  .experience-detail { align-items: flex-start; flex-direction: column; }
  .experience-detail .primary-action { align-self: stretch; }
}
@media (max-width: 364px) {
  #destination-search { gap: 7px; padding-left: 9px; }
  #destination-search button { gap: 5px; padding-inline: 9px; }
  #destination-search button .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-masthead-art img{opacity:.55}
.destination-mast{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,58px);padding-block:25px 36px}
.destination-top{justify-items:start;min-height:0;padding:0;text-align:start}
.destination-top h1{max-width:13em}
.hero-actions{justify-content:flex-start}
.destination-experience{min-width:0}
.activity-strip{margin-block:1px 6px}
.activity-tape{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.activity-card{min-width:0;min-height:39px;padding:5px clamp(9px,1vw,17px);border:1px solid transparent;border-radius:7px;
  background:transparent;color:#344b64;text-align:center;font-size:.85rem;line-height:1.25}
.activity-card:hover{background:#f5f9fee6}
.activity-card[aria-pressed=true]{background:#e4edf9;color:#143767;border-color:#bfcee1}
.experience-caption>h2{font-size:clamp(20px,2vw,29px)}
.nearby-pane{height:clamp(235px,27vw,350px)}
@media(max-width:760px){
  .destination-mast{grid-template-columns:minmax(0,1fr);gap:15px;padding-block:17px 23px}
  .destination-top{justify-items:center;text-align:center}
  .hero-actions{justify-content:center}
  .activity-tape{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .activity-card{padding-inline:5px;font-size:clamp(.74rem,3vw,.84rem)}
  .experience-photo{height:clamp(239px,69vw,388px)}
  .experience-detail{min-height:63px}
  .nearby-pane{height:238px}
}

.experience-previous{pointer-events:none}
.experience-previous.is-outgoing{animation:experience-dissolve .19s ease-out forwards}
@keyframes experience-dissolve{from{opacity:1}to{opacity:0}}

.experience-showcase {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.has-live-showcase .experience-showcase { opacity: 1; }
.has-live-showcase img,
.has-live-showcase .experience-placeholder { opacity: 0; }
.experience-photo:has(.has-live-showcase) .experience-medium { display: none; }

@media (prefers-reduced-motion: reduce) {
  .experience-media img, .experience-showcase { transition: none; }
}
