/* GolfRoam */

:root {
  --ink: #222222;
  --ink-2: #6a6a6a;
  --ink-3: #929292;
  --line: #dddddd;
  --line-2: #ebebeb;
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --bg-3: #f1f1f1;
  --brand: #0e8a55;
  --brand-2: #0a6f44;
  --btn-ink: #111111;
  --btn-ink-hover: #707072;
  --btn-soft: #f2f2f2;
  --btn-soft-hover: #e6e6e6;
  --focus: #222222;
  --radius: 16px;
  --radius-s: 8px;
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
  --shadow-pop: 0 6px 20px rgba(0, 0, 0, .2);
  --shadow-card: 0 6px 16px rgba(0, 0, 0, .12);
  --hdr-h: 80px;
  --pad: 80px;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.wrap { max-width: 1760px; margin: 0 auto; padding: 0 var(--pad); }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line-2); }
body[data-page="home"] .hdr { border-bottom-color: transparent; }
.hdr-in { height: var(--hdr-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); text-decoration: none; justify-self: start; }
.logo-mark { width: 26px; height: 32px; stroke: none; }
.logo-word { font-weight: 800; font-size: 25px; letter-spacing: -.035em; line-height: 1; padding-bottom: 2px; }
.hdr-search { min-width: 0; width: min(480px, 40vw); }
body[data-page="home"] .hdr-search { visibility: hidden; }
.hdr-right { justify-self: end; position: relative; }
.hdr-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px;
}
.hdr-btn:hover { background: var(--bg-2); }
.hdr-btn svg { width: 18px; height: 18px; stroke-width: 1.6; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 20px; z-index: 40;
}
.menu-h { margin: 0 0 10px; font-weight: 650; font-size: 15px; }
.menu-h:not(:first-child) { margin-top: 20px; }
.menu-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-langs button { text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font-size: 14px; }
.menu-langs button:hover { background: var(--bg-2); }
.menu-langs button[aria-checked="true"] { border-color: var(--ink); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-3); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 9px 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.seg button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }

/* ---------- search pill ---------- */
.pill {
  position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-pill); transition: box-shadow .2s;
}
.pill:hover, .pill.open { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.08); }
.pill-seg { display: flex; flex-direction: column; justify-content: center; min-width: 0; cursor: text; border-radius: 999px; }
.pill-lbl { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.pill input, .pill select {
  border: 0; outline: 0; background: transparent; padding: 0; min-width: 0; width: 100%; font-size: 14px; color: var(--ink);
  text-overflow: ellipsis;
}
.pill input::placeholder { color: var(--ink-2); }
.pill input::-webkit-search-cancel-button { display: none; }
.pill select { appearance: none; cursor: pointer; color: var(--ink-2); }
.pill-div { width: 1px; height: 32px; background: var(--line); flex: none; }
.pill-go {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; border-radius: 50%; padding: 0;
}
.pill-go:hover { background: var(--brand-2); }
.pill-go span { display: none; }
.pill-go svg { width: 16px; height: 16px; stroke-width: 3; }
.pill-compact { height: 48px; padding: 0 7px 0 22px; }
.pill-compact .pill-where { flex: 1 1 auto; }
.pill-compact .pill-lbl { display: none; }
.pill-compact input { font-weight: 600; }
.pill-compact .pill-go { width: 34px; height: 34px; }
.pill-compact .pill-go span { display: none; }
.pill-hero { height: 68px; padding: 0 9px 0 0; max-width: 760px; }
.pill-hero .pill-seg { padding: 0 24px 0 32px; height: 100%; }
.pill-hero .pill-where { flex: 1 1 auto; }
.pill-hero .pill-dist { flex: 0 0 auto; width: 190px; padding-left: 24px; }
.pill-hero .pill-seg:hover { background: var(--bg-3); }
.pill-hero .pill-go { width: 48px; height: 48px; }
.pill-hero input { font-size: 15px; }

.suggest {
  position: absolute; z-index: 50; left: 0; top: calc(100% + 12px); width: min(520px, 100%); max-height: min(520px, 70vh); overflow-y: auto;
  margin: 0; padding: 14px 0; list-style: none; background: #fff; border-radius: 32px; box-shadow: var(--shadow-pop);
}
.pill-compact .suggest { width: max(100%, 420px); }
.suggest.up { top: auto; bottom: calc(100% + 12px); }
.suggest .opt { display: flex; align-items: center; gap: 16px; padding: 8px 28px; cursor: pointer; }
.suggest .opt[aria-selected="true"], .suggest .opt:hover { background: var(--bg-2); }
.opt-ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; overflow: hidden; position: relative; }
.opt-ico svg { width: 20px; height: 20px; stroke-width: 1.6; }
.opt-img .aerial { position: absolute; inset: 0; }
.suggest .t { font-size: 15px; line-height: 1.3; }
.suggest .t b { font-weight: 700; }
.suggest .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.suggest .note { padding: 10px 28px; font-size: 14px; color: var(--ink-2); }

/* ---------- aerial imagery ---------- */
.aerial { position: relative; overflow: hidden; background: #d9dfd2; width: 100%; height: 100%; }
.aerial-in { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.aerial img { position: absolute; width: 257px; height: 257px; max-width: none; opacity: 0; transition: opacity .35s; user-select: none; -webkit-user-drag: none; }
.aerial img.in, img.photo.in { opacity: 1; }
img.photo { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; background: #d9dfd2; }

/* ---------- hero (home) ---------- */
.hero { position: relative; z-index: 2; height: min(84vh, 820px); min-height: 560px; color: #fff; background: #0a1a26; }
.hero-img { overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: #0a1a26; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,14,22,.72) 0%, rgba(4,14,22,.35) 45%, rgba(4,14,22,0) 70%), linear-gradient(0deg, rgba(4,14,22,.45) 0%, rgba(4,14,22,0) 40%); }
.hero-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 72px; }
.eyebrow { margin: 0 0 14px; font-weight: 600; font-size: 14px; letter-spacing: .02em; opacity: .9; }
.display {
  margin: 0; font-weight: 850; font-stretch: 68%; text-transform: uppercase; letter-spacing: -.005em;
  font-size: clamp(60px, 9.4vw, 148px); line-height: .86; max-width: 9em;
}
.hero-sub { margin: 20px 0 32px; font-size: 18px; line-height: 1.5; max-width: 34em; opacity: .92; }
.hero-search { max-width: 760px; color: var(--ink); }
.hero-cap {
  position: absolute; right: var(--pad); bottom: 28px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; opacity: .85; text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-cap:hover { opacity: 1; text-decoration: underline; }
.hero-cap svg { width: 13px; height: 13px; }

/* ---------- sections, rows ---------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.sec-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.sec-tools { display: flex; gap: 8px; align-items: center; }
.circle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.circle:hover { box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.circle svg { width: 12px; height: 12px; stroke-width: 3; }
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 24px) / 6); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }

/* ---------- cards ---------- */
.card { position: relative; min-width: 0; }
.card-media { position: relative; aspect-ratio: 20 / 19; border-radius: var(--radius); overflow: hidden; background: #d9dfd2; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; }
.badge {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px;
  padding: 5px 11px; font-size: 13px; font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.15); pointer-events: none;
}
.nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, transform .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.nav svg { width: 12px; height: 12px; stroke-width: 3; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.card:hover .nav { opacity: 1; }
.card.at-start .nav.prev, .card.at-end .nav.next { opacity: 0 !important; pointer-events: none; }
.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots i.on { background: #fff; }
.card-body, .dest { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding-top: 11px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-side { flex: none; font-size: 14px; white-space: nowrap; }
.card-line { font-size: 15px; color: var(--ink-2); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-line.muted { font-size: 14px; }
.card.hl .card-media { box-shadow: 0 0 0 2px var(--ink); }
.dest-img { display: block; position: relative; aspect-ratio: 20 / 19; border-radius: var(--radius); overflow: hidden; margin: -11px 0 11px; background: #d9dfd2; }
.dest:hover .card-name, .card-body:hover .card-name { text-decoration: underline; }

/* ---------- Nike-style tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1; max-height: 760px; width: 100%; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.tile .aerial { position: absolute; inset: 0; transition: transform .6s ease; }
.tile:hover .aerial { transform: scale(1.03); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%); }
.tile-text { position: absolute; left: 48px; right: 48px; bottom: 48px; display: flex; flex-direction: column; align-items: flex-start; }
.tile-title { font-weight: 850; font-stretch: 70%; text-transform: uppercase; font-size: clamp(36px, 4vw, 64px); line-height: .9; }
.tile-sub { margin: 10px 0 22px; font-size: 16px; opacity: .95; }
.btn-white { display: inline-flex; align-items: center; padding: 6px 16px; background: #fff; color: var(--btn-ink); border-radius: 30px; font-weight: 500; font-size: 16px; line-height: 24px; transition: background .15s; }
.tile:hover .btn-white { background: #cacacb; }

/* ---------- countries ---------- */
.countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 24px; }
.countries a { display: flex; flex-direction: column; padding: 10px 0; text-decoration: none; font-size: 14px; }
.countries a span:first-child { font-weight: 600; }
.countries a:hover span:first-child { text-decoration: underline; }

/* ---------- results ---------- */
.results {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 40%, 820px); gap: 24px;
  max-width: 2200px; margin: 0 auto; padding: 0 24px 0 40px;
}
.res-list { padding-top: 20px; min-width: 0; padding-bottom: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 400; position: relative; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--bg-2); padding: 0 13px; }
.chip-select { padding: 0 32px 0 14px; }
.chip-select select { appearance: none; border: 0; background: transparent; cursor: pointer; font-weight: 400; font-size: 13px; outline: 0; height: 100%; padding-right: 0; }
.chip-select svg { position: absolute; right: 13px; width: 11px; height: 11px; transform: rotate(90deg); stroke-width: 3; pointer-events: none; }
.res-title { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.res-sub { margin: 4px 0 24px; color: var(--ink-2); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 24px; }
.cards.one { max-width: 320px; margin-top: 20px; }
#more { display: flex; justify-content: center; margin-top: 40px; }
.credit { margin-top: 40px; font-size: 12px; color: var(--ink-3); }
.res-map { position: sticky; top: calc(var(--hdr-h) + 20px); height: calc(100vh - var(--hdr-h) - 40px); margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: #eef0ea; }
.map-slot { position: relative; width: 100%; height: 100%; }
.map { position: absolute; inset: 0; }
.map-pill {
  position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08); cursor: pointer; font-weight: 500; font-size: 14px;
}
.map-pill:hover { background: var(--bg-2); }
.map-toggle {
  position: fixed; z-index: 25; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: none; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.map-toggle:hover { background: #000; }
.maplibregl-ctrl-attrib { font: 400 11px/1.4 var(--font) !important; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: 0 2px 8px rgba(0,0,0,.15) !important; }
.card-pop .maplibregl-popup-content { padding: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop); width: 280px; }
.card-pop .maplibregl-popup-close-button { z-index: 2; width: 28px; height: 28px; top: 10px; right: 10px; border-radius: 50%; background: rgba(255,255,255,.95); font-size: 18px; line-height: 26px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.card-pop .maplibregl-popup-tip { display: none; }
.pop { display: block; text-decoration: none; color: inherit; font-family: var(--font); }
.pop-img { display: block; height: 180px; position: relative; overflow: hidden; }
.pop-body { display: flex; flex-direction: column; padding: 12px 16px 14px; }
.pop-body .card-name { white-space: normal; }

/* ---------- buttons ---------- */
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--btn-ink); color: #fff; font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s;
}
.btn-dark:hover { background: var(--btn-ink-hover); }
.btn-brand {
  display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; width: 100%; border-radius: 999px;
  background: var(--btn-ink); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s;
}
.btn-brand:hover { background: var(--btn-ink-hover); }
.btn-brand.is-secondary { background: var(--btn-soft); color: var(--ink); }
.btn-brand.is-secondary:hover { background: var(--btn-soft-hover); }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; color: var(--ink);
}
.ghost-btn:hover { background: var(--bg-2); }
.link-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; margin-bottom: 10px; cursor: pointer; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.link-back:hover { color: var(--ink); }
.link-more { border: 0; background: var(--btn-soft); padding: 0 24px; height: 48px; border-radius: 12px; margin-top: 16px; font-weight: 500; cursor: pointer; font-size: 16px; color: var(--ink); }
.link-more:hover { background: var(--btn-soft-hover); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
.spinner.light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; height: 60vh; }
.empty { padding: 24px 0; }
.empty h2 { font-size: 22px; font-weight: 650; margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------- course page ---------- */
.course { max-width: 1280px; padding-top: 24px; }
.c-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.c-head h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.c-alt { margin: 4px 0 0; color: var(--ink-2); }
.c-actions { display: flex; gap: 4px; flex: none; }
.gallery {
  position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  height: min(52vh, 520px); min-height: 360px; border-radius: var(--radius); overflow: hidden;
}
.g-cell { position: relative; overflow: hidden; background: #d9dfd2; }
.g-0 { grid-row: 1 / 3; }
.g-cell .aerial, .g-cell img.photo { position: absolute; inset: 0; transition: filter .2s; }
.g-cell:hover .aerial, .g-cell:hover img.photo { filter: brightness(.92); }
.g-label { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 650; }
.g-map { position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--ink); background: #fff; font-weight: 500; font-size: 14px; cursor: pointer; }
.g-map:hover { background: var(--bg-2); }
.g-credit { display: block; margin-top: 8px; text-align: right; font-size: 11.5px; color: var(--ink-3); }
.g-credit a { color: inherit; }
.c-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; margin-top: 32px; align-items: start; }
.c-main, .c-side { min-width: 0; }
.c-intro { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.c-intro h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.c-intro p { margin: 6px 0 0; font-size: 16px; }
.highlights { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.highlights:empty { display: none; }
.highlights li { display: flex; gap: 22px; align-items: flex-start; padding: 16px 0; }
.highlights svg { width: 26px; height: 26px; stroke-width: 1.5; margin-top: 2px; }
.highlights strong { display: block; font-weight: 600; font-size: 16px; }
.highlights span { color: var(--ink-2); font-size: 14px; }
.c-sec { padding: 40px 0; border-bottom: 1px solid var(--line); }
.c-sec:last-child { border-bottom: 0; }
.c-sec h2 { margin: 0 0 20px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.about-text { font-size: 16px; line-height: 1.6; margin: 0; }
.about-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.src { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.c-addr { margin: -8px 0 16px; color: var(--ink-2); }
.c-map { height: 480px; border-radius: var(--radius); overflow: hidden; background: #eef0ea; }
.plan-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.plan-wrap svg.plan { display: block; width: 100%; height: auto; max-height: 820px; stroke: none; }
.plan-empty { padding: 28px 20px; color: var(--ink-2); text-align: center; display: flex; gap: 10px; justify-content: center; align-items: center; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.plan-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.scorecard-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.scorecard { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.scorecard th, .scorecard td { padding: 9px 4px; text-align: center; border-left: 1px solid var(--line-2); }
.scorecard th:first-child, .scorecard td:first-child { border-left: 0; }
.scorecard thead th { background: var(--bg-2); font-weight: 650; border-bottom: 1px solid var(--line); }
.scorecard tbody tr + tr td, .scorecard tbody tr + tr th { border-top: 1px solid var(--line-2); }
.scorecard th[scope="row"] { text-align: left; padding-left: 14px; font-weight: 600; color: var(--ink-2); width: 64px; }
.scorecard td.sum { font-weight: 700; background: var(--bg-2); }
.c-side { position: sticky; top: calc(var(--hdr-h) + 32px); }
.book-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card); background: #fff; }
.bc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.bc-title { font-size: 22px; font-weight: 650; }
.bc-facts { color: var(--ink-2); font-size: 14px; }
.bc-note { text-align: center; font-size: 14px; color: var(--ink-2); margin: 12px 0 0; line-height: 1.45; }
.bc-note strong { color: var(--ink); }
.bc-private { text-align: left; background: var(--bg-2); padding: 12px 14px; border-radius: 10px; }
.bc-list { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.bc-list a, .bc-static { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; text-decoration: none; color: inherit; min-width: 0; }
.bc-list a:hover .bc-v { text-decoration: underline; }
.bc-list svg { width: 20px; height: 20px; stroke-width: 1.6; margin-top: 1px; }
.bc-list span { display: block; min-width: 0; }
.bc-k { font-size: 14px; font-weight: 600; }
.bc-v { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-near { margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.c-near .row-scroll { grid-auto-columns: calc((100% - 4 * 24px) / 5); }
.edit-note { margin: 32px 0 0; font-size: 13px; color: var(--ink-2); }
.m-bar { display: none; }

/* ---------- footer ---------- */
.ftr { margin-top: 72px; background: var(--bg-2); border-top: 1px solid var(--line-2); }
body[data-page="results"] .ftr { display: none; }
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.ftr-brand { color: var(--brand); }
.ftr-brand svg.logo-mark { vertical-align: middle; }
.ftr-brand .logo-word { font-size: 22px; }
.ftr-brand p { color: var(--ink-2); max-width: 30em; font-size: 14px; margin-top: 14px; }
.ftr-h { font-weight: 650; font-size: 14px; margin: 0 0 12px; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; }
.ftr-col li { padding: 4px 0; }
.ftr-col a { font-size: 14px; text-decoration: none; color: var(--ink-2); }
.ftr-col a:hover { text-decoration: underline; color: var(--ink); }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  .row-scroll { grid-auto-columns: calc((100% - 4 * 24px) / 5); }
  .countries { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1128px) {
  :root { --pad: 40px; }
  .row-scroll { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; }
  .c-near .row-scroll { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .c-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .results { grid-template-columns: minmax(0, 1fr) 42%; padding-left: 24px; }
}
@media (max-width: 950px) {
  .results { display: block; padding: 0 24px; }
  .res-map { display: none; }
  body.show-map .res-map { display: block; position: fixed; inset: var(--hdr-h) 0 0 0; height: auto; margin: 0; border-radius: 0; z-index: 20; }
  body.show-map { overflow: hidden; }
  body[data-page="results"] .map-toggle { display: inline-flex; }
  .row-scroll { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .c-body { grid-template-columns: 1fr; gap: 0; }
  .c-side { position: static; order: -1; margin-bottom: 8px; }
  .book-card { box-shadow: none; }
  .tile-text { left: 28px; right: 28px; bottom: 28px; }
}
@media (max-width: 744px) {
  :root { --pad: 24px; --hdr-h: 72px; }
  body { font-size: 14px; }
  .hdr-in { grid-template-columns: auto 1fr auto; gap: 12px; }
  .logo-word { display: none; }
  .hdr-search { width: auto; }
  body[data-page="home"] .logo-word { display: inline; }
  .hdr-btn span { display: none; }
  .hdr-btn { width: 42px; padding: 0; justify-content: center; }
  .pill-compact { height: 46px; padding-left: 18px; }
  .pill-compact .suggest { position: fixed; left: 12px; right: 12px; top: calc(var(--hdr-h) + 4px); width: auto; }
  .hero { height: 86vh; min-height: 600px; }
  .hero-in { padding-bottom: 40px; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,14,22,.88) 0%, rgba(4,14,22,.55) 45%, rgba(4,14,22,.05) 75%); }
  .display { font-size: clamp(54px, 17vw, 92px); }
  .hero-sub { font-size: 16px; margin: 14px 0 22px; }
  .pill-hero { height: 60px; }
  .pill-hero .pill-dist, .pill-hero .pill-div { display: none; }
  .pill-hero .pill-seg { padding: 0 12px 0 24px; }
  .pill-hero .pill-go { width: 44px; height: 44px; }
  .pill-hero .suggest { width: 100%; }
  .hero-cap { left: var(--pad); right: auto; bottom: 12px; font-size: 12px; }
  .sec { margin-top: 40px; }
  .row-scroll { grid-auto-columns: 72%; }
  .c-near .row-scroll { grid-auto-columns: 72%; }
  .sec-tools .circle { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 5; }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .card-media { aspect-ratio: 4 / 3.4; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 20px; padding: 0 24px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .course { padding-top: 0; }
  .c-head { flex-direction: column; align-items: stretch; gap: 8px; order: 2; padding-top: 20px; }
  .c-head h1 { font-size: 26px; }
  .c-actions { margin-left: -10px; }
  .course { display: flex; flex-direction: column; }
  .gallery { order: 1; margin: 0 -24px; border-radius: 0; height: auto; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
  .gallery::-webkit-scrollbar { display: none; }
  .g-cell { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .g-map { display: none; }
  .g-credit { order: 1; }
  .c-body, .c-near, .edit-note { order: 3; }
  .c-body { width: 100%; }
  .c-body { margin-top: 20px; }
  .c-map { height: 320px; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  body[data-page="course"] { padding-bottom: 84px; }
  .m-bar {
    display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; align-items: center; gap: 16px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .m-bar-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
  .m-bar-t { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-bar-s { font-size: 13px; color: var(--ink-2); }
  .m-bar .btn-brand { width: auto; flex: none; height: 48px; padding: 0 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Japanese and Korean: no synthetic narrow/italic forms for the display face. */
html:is([lang="ja"], [lang="ko"]) .display, html:is([lang="ja"], [lang="ko"]) .tile-title { font-stretch: 100%; text-transform: none; letter-spacing: 0; line-height: 1.1; font-weight: 800; }
html:is([lang="ja"], [lang="ko"]) .display { font-size: clamp(44px, 6.5vw, 96px); }
