/* Tokens. Palette: olive / sage / sand / cream. Flat colors only. */
:root {
  --ground: #F3F0E5; /* cream with a drop of light grey: calmer than the yellower #F8F3E1 it replaced */
  --sand: #E3DBBB;
  --ink: #262718;
  --muted: #77765f;
  --line: #d9d1b3;
  --accent: #41431B;
  --on-accent: #F8F3E1;
  --link: #41431B; /* no blue links anywhere: text links are olive, map links are icons */

  --serif: "Source Serif 4", "Gowun Batang", "Iowan Old Style", Georgia, serif; /* Gowun Batang and Gowun Dodum carry the Korean */
  --sans: "Inter", "Gowun Dodum", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;

  --fs-label: 11px;
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-name: 21px;
  --fs-title: clamp(32px, 6vw, 52px);
  --fs-hero: clamp(44px, 10vw, 104px);
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-strong: 600;

  --radius: 10px;
  --bar-h: 56px;
  color-scheme: light; /* one look only: the cream palette, also when the device is in night mode */
}
/* The tinted section (drinks) sits on sage so the page has one change of colour. */
.tint {
  --ground: #DADDC2;
  --sand: #C8CCAD;
  --muted: #5f604a;
  --line: #c1c5a5;
  background: var(--ground);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--fw-regular) var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
button, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.label {
  font-size: var(--fs-label);
  font-weight: var(--fw-strong);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.link, .textbtn {
  border: 0;
  padding: 0;
  background: none;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover, .textbtn:hover { text-decoration-thickness: 2px; }
/* Map links as icons: the Google Maps pin and the Naver mark, small, no frame */
.maps { display: inline-flex; align-items: center; gap: 2px; }
.mapbtn svg { display: block; width: 18px; height: 18px; }
.mapbtn { display: inline-grid; place-items: center; width: 24px; height: 26px; margin-left: -3px; }
.mapbtn + .mapbtn { margin-left: 0; }
.namelink { border: 0; padding: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }

/* Ribbon: section links stay at the top of the screen while you scroll */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
/* The logo and the Sign in button each sit centred in their own box: the same space on their left and right, and less of it at the page edges. */
.bar-row { display: flex; align-items: center; gap: 0; padding-left: 0; padding-right: 0; }
#acctTop { margin: 0 10px; }
.bar-links {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar-links::-webkit-scrollbar { display: none; }
.bar-links a {
  flex: none;
  padding: 19px 0;
  font-size: var(--fs-label);
  font-weight: var(--fw-strong);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.bar-links a.on { color: var(--ink); }

/* Bullet | Map switch: a two-part control with icons that floats at the bottom centre of the screen */
.views { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 16px; background: #262718; }
.view { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 12px; padding: 10px 18px; background: none; font-size: 14px; font-weight: var(--fw-medium); color: #F8F3E1; cursor: pointer; }
.view svg { width: 17px; height: 17px; }
.view.on { background: #F8F3E1; color: #262718; }
.in-map .hero, .in-map #main, .in-map .foot, .in-favs .hero, .in-favs #main, .in-favs .foot { display: none; }
/* Temporary logo at the left of the ribbon: the taegeuk. It leads back to the top of the guide from any view. */
.logo { flex: none; display: grid; place-items: center; height: 28px; padding: 0 9px; } /* the pin has 7px of air on both sides inside its 28px drawing, so it reads as 16px each side */
.logo svg { width: 28px; height: 28px; }

/* Save (a bookmark): keeps a place in My Favorites. The same button sits beside every place in both views, filled once saved. */
.heart { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: -2px 0 0 5px; border: 0; padding: 0; background: none; color: var(--muted); vertical-align: middle; cursor: pointer; }
.heart svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.heart[aria-pressed="true"] { color: var(--accent); }
.heart[aria-pressed="true"] svg { fill: currentColor; }

/* My Favorites: the saved places, each with a memo and a way into the itinerary */
.favview { min-height: 100svh; padding: 28px 0 120px; }
.favview[hidden] { display: none; }
.favtools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 14px; font-size: var(--fs-small); color: var(--muted); }
.favgroup { padding-top: 28px; }
.favgroup h3 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: var(--fw-regular) 22px/1.2 var(--serif); }
.favrow { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.favrow[data-own] { grid-template-columns: 26px 1fr; gap: 8px; }
.favrow .ph { width: 72px; height: 72px; }
.favrow .ph figcaption { display: none; }
.cta[disabled] { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: default; }
.cta { height: 36px; border: 0; border-radius: 10px; padding: 0 18px; background: var(--accent); color: var(--on-accent); font: var(--fw-medium) 13px var(--sans); cursor: pointer; }
.favrow .text { display: grid; gap: 3px; min-width: 0; }
.favrow .name { font-size: 19px; }
.favrow .links { margin-top: 2px; }
.favrow .x { width: 22px; height: 22px; margin-top: 2px; border: 0; padding: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.memo { font-size: 13px; line-height: 1.4; font-style: italic; }
.memo-in { width: 100%; min-width: 0; border: 0; border-bottom: 1px dashed var(--muted); border-radius: 0; padding: 3px 0; background: none; font: 16px/1.3 var(--sans); color: var(--ink); }
.memo-in:focus { outline: 0; border-bottom: 1px solid var(--ink); }
.favempty { padding-top: 24px; font-size: 15px; color: var(--muted); }
.textbtn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
#favcount { font-weight: var(--fw-regular); color: var(--muted); } /* the count after "My Saved Places": same size, lighter and grey */
.ownform { display: flex; gap: 10px; align-items: center; max-width: 420px; padding-top: 14px; }
.ownform .memo-in { flex: 1; }
/* The category choice is the same text as the field beside it: same font, same size (the field is 16px shown at .8125, so 13px), same grey until something is chosen */
.ownform select { zoom: .8125; min-width: 0; border: 0; border-bottom: 1px dashed var(--muted); border-radius: 0; padding: 3px 0; background: none; font: 16px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.ownform select:has(option[value=""]:checked) { color: #757575; }
/* Small quiet buttons in the Saved view (memo, Add): thin outline, 22px tall, 11px text */
.pillbtn { flex: none; height: 22px; border: 1px solid rgba(65, 67, 27, .3); border-radius: 7px; padding: 0 9px; background: none; color: var(--accent); font: var(--fw-medium) 11px var(--sans); cursor: pointer; }
.pillbtn:hover { border-color: var(--accent); }
.pillbtn.withicon { display: inline-flex; align-items: center; gap: 4px; }
.pillbtn.is-done { display: inline-flex; align-items: center; gap: 5px; border-color: #B7C79C; background: #E3EBD3; color: var(--accent); cursor: default; } /* pale sage fill, so the chosen hotel stands out */
/* A done state's checkmark is green; its text stays grey */
.pillbtn.is-done svg, .cta[disabled] svg { color: #5F8F4E; }
.favrow .links { align-items: center; }
.favrow .links .pillbtn { margin-right: 6px; }
/* Saved view: choosing a day. The words and the round day buttons stay together on one line; if they do not fit beside Memo they drop below it, flush left. */
.favrow .links { gap: 8px 8px; }
.daypick { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
/* The words are set like "Memo" beside them (same sans, size, weight and dark olive), so they read clearly; the circles are sized to that text. */
.daypick .sep { margin-right: 2px; color: var(--accent); font: var(--fw-medium) 11px var(--sans); }
.daybtn { position: relative; flex: none; width: 17px; height: 16px; border: 1px solid rgba(65, 67, 27, .3); border-radius: 4px; /* small squared day tiles, like dates on a calendar, not round bubbles */ padding: 0; background: none; color: var(--accent); font: var(--fw-medium) 10px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.daybtn::after { content: ""; position: absolute; inset: -4px -3px; } /* a finger-sized target around the small circle */
.daybtn:hover { border-color: var(--accent); }
.daybtn[disabled] { border-color: #B7C79C; background: #E3EBD3; cursor: default; }
.ownform select:focus { outline: 0; border-bottom: 1px solid var(--ink); }

/* Hero: title over a banner photo */
.hero {
  position: relative;
  min-height: 46svh;
  display: flex;
  align-items: flex-end;
  padding: 40px 0 40px;
  background: #1a1916;
  color: #fff;
}
.hero > .hero-ph { position: absolute; inset: 0; border-radius: 0; background: #1a1916; }
.hero-ph::after { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 15, .42); }
.hero-ph figcaption { z-index: 1; }
.hero-inner { position: relative; width: 100%; }
.hero h1 {
  margin: 0;
  font: var(--fw-regular) var(--fs-hero)/.95 var(--serif);
  letter-spacing: -.03em;
}
.hero-sub { margin-top: 12px; font-size: 13px; letter-spacing: .02em; }
/* The tagline under the title, in the logo's tagline style. Same line height as the byline it replaced, so the title stays where it was. */
/* The byline: very small at the hero's bottom left, in line with the title's left edge. Out of the flow, so the title and tagline do not move. */
/* The byline sits where the photo credit used to: very small, bottom right of the hero. The photo's credit moved to the footer. */
.hero-by { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: 8px; color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, .6); }
/* The tagline starts where the ink of the title's S starts: the S sits .04em in from its box, the D under 1px. */
.hero-tag { position: relative; top: -5px; margin-left: calc(var(--fs-hero) * .04 - .9px); font: var(--fw-medium) 11px/20.8px var(--sans); letter-spacing: .18em; text-transform: uppercase; } /* lifted 5px toward the title without moving anything else */

/* Getting around */
.around { display: grid; gap: 8px; padding-top: 36px; padding-bottom: 4px; }
.around-text { max-width: 60ch; font: var(--fw-regular) 15px/1.35 var(--serif); color: #3F4031; }
.around .link { display: inline-block; margin-top: 10px; }
.around .keylabel { margin-top: 14px; } /* the key for the Won star, set apart from the lines above */
@media (min-width: 800px) { .around .keytext { margin-top: 14px; } }
@media (min-width: 800px) { .around { grid-template-columns: 1fr 3fr; } }

/* Sections */
.section { padding: 56px 0 16px; scroll-margin-top: var(--bar-h); }
#sections > .section:first-child { padding-top: 28px; }
.section.tint { margin-top: 56px; padding-bottom: 64px; }
.section.tint + .section { padding-top: 64px; }
.head { display: grid; gap: 8px; }
.head h2 { margin: 0; font: 500 var(--fs-title)/1.05 var(--serif); letter-spacing: -.02em; }
.head .intro { max-width: 60ch; font: var(--fw-regular) 15px/1.35 var(--serif); color: #3F4031; }
@media (min-width: 800px) {
  .head.split { grid-template-columns: 2fr 1fr; align-items: end; }
  .head.split .label { grid-column: 1 / -1; }
}
/* The jump links under a title: small outlined pills in the label style */
.fromhotel { font-weight: var(--fw-regular); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subnav .link { padding: 7px 13px; border: 1px solid rgba(65, 67, 27, .3); border-radius: 9px; font-size: var(--fs-label); font-weight: var(--fw-strong); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--accent); }
.subnav .link:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.group { padding-top: 32px; scroll-margin-top: var(--bar-h); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-head h3 { margin: 0; font: var(--fw-regular) 24px/1.2 var(--serif); }
.group-head span { font-size: var(--fs-small); color: var(--muted); }
.group-note { max-width: 70ch; padding-top: 12px; font-size: 13px; line-height: 1.33; color: var(--muted); }

/* Shared item parts */
.item { scroll-margin-top: calc(var(--bar-h) + 16px); }
.item[hidden] { display: none; }
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease-out; }
.ph img.in { opacity: 1; }
.ph figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 8px; color: rgba(255, 255, 255, .6); text-shadow: 0 0 4px rgba(0, 0, 0, .6); }
.ph figcaption a { text-decoration: none; }
.nophoto > .ph { display: none; }
.where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.where .fav { margin-left: -7px; font-size: 9.5px; color: var(--muted); } /* the Won star sits 5px after the area name (the name ends with 2px of letter spacing) */
.where .fav svg { vertical-align: -3px !important; } /* centred on the capital letters beside it */
/* The Won star beside a name (cards with no area label) */
.namefav { margin-left: 6px; }
.namefav svg { margin-right: 0 !important; vertical-align: 1px !important; }
.name { margin: 0; font: var(--fw-regular) var(--fs-name)/1.2 var(--serif); }
.ko { margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.facts { font-size: 13px; line-height: 1.4; color: var(--muted); }
.facts b { font-weight: var(--fw-medium); color: var(--ink); }
.desc { font: var(--fw-regular) 15px/1.25 var(--serif); color: #3F4031; } /* a touch softer than the ink */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; }
.sep { font-size: var(--fs-small); color: var(--muted); }
.num { font: var(--fw-light) 15px var(--serif); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Layout 1: feature (cities, neighborhoods). One compact row that scrolls sideways. */
.feature {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 24px 20px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.feature > .item { flex: 0 0 min(64vw, 260px); display: grid; gap: 10px; align-content: start; }
.feature > .item > .ph { aspect-ratio: 3 / 2; }
.feature > .item > .text { display: grid; gap: 6px; }
.feature > .item > .text .name { font-size: 22px; }
.feature > .item > .text .num { font-size: 18px; line-height: 1; }
/* In a sideways row a long description is cut to five lines, so every card ends at the same height. "More" opens the rest. */
.feature .desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.feature .desc, .tiles .desc { position: relative; }
.feature .desc.open, .tiles .desc.open { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
/* "More" is plain grey underlined text at the end of the fifth line, over the last words; once open, "Less" follows the text. */
.morelink { position: absolute; right: 0; bottom: 0; border: 0; padding: 0 var(--in, 0px) 0 26px; background: linear-gradient(to right, transparent, var(--ground) 20px); font: inherit; font-size: .93em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.desc.open .morelink { position: static; margin-left: 6px; padding: 0; background: none; }

/* Layout 2: tiles (restaurants, cafes, bars, shopping, Busan). Photo with text under it. */
.tiles { display: grid; gap: 28px 20px; padding-top: 20px; grid-template-columns: 1fr; }
.tiles .item { display: grid; gap: 10px; align-content: start; }
.tiles .ph { aspect-ratio: 3 / 2; }
.tiles .text { display: grid; gap: 5px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* Layout 3: ledger (hotels). Hairline rows. */
.ledger .item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger .ph { width: 72px; height: 72px; }
.ledger .ph figcaption { display: none; }
.ledger .text { display: grid; gap: 4px; min-width: 0; }
@media (min-width: 800px) {
  .ledger .item { grid-template-columns: 104px 1fr; gap: 24px; padding: 16px 0; }
  .ledger .ph { width: 104px; height: 104px; }
  .ledger .text { grid-template-columns: 5fr 7fr; gap: 4px 32px; align-content: start; }
  .ledger .text > * { grid-column: 1; }
  .ledger .text > .desc { grid-column: 2; grid-row: 1 / span 5; }
}

/* A hotel row whose photo could not load gives its photo column back to the text. */
.ledger .nophoto { grid-template-columns: 1fr; }

/* Footer */
.foot { margin-top: 48px; padding: 44px 0 calc(100px + env(safe-area-inset-bottom)); background: var(--sand); }
.foot .wrap { display: grid; gap: 10px; }
/* Footer: the two-tone nowonder wordmark and its tagline as drawn in the chosen logo; the note under them in the description style */
.foot .foot-brand { font: var(--fw-regular) 30px/1 var(--serif); letter-spacing: -.02em; color: var(--accent); }
.foot-brand span { color: #8C9560; }
.foot-brand svg { width: 34px; height: 34px; margin: -4px 0 0 4px; vertical-align: middle; } /* the pin follows the word */
.foot .foot-tag { font: var(--fw-medium) 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot .foot-note { font: var(--fw-regular) 15px/1.35 var(--serif); color: #3F4031; }
.foot p { max-width: 56ch; font-size: 14px; }
.foot .foot-small { font-size: var(--fs-small); color: var(--muted); }
.foot-small a { color: inherit; text-decoration: none; }
.foot .link { justify-self: start; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* City guide that opens on its own from a city card (Busan). While it is open the Seoul sections are hidden. */
[data-toggle] { cursor: pointer; }
.solo[hidden] { display: none; }
.in-solo .around, .in-solo #sections > .section:not(.solo) { display: none; }
.in-solo #sections > .solo { padding-top: 20px; padding-bottom: 40px; }
.back { display: block; padding: 10px 0; }
.solo .head { margin-top: 10px; }
.solo .group:last-of-type { padding-bottom: 20px; }

/* Phones: tile groups become sideways rows, and links get a full-height tap area. */
@media (max-width: 639px) {
  :root { --bar-h: 50px; }
  .bar-links { gap: 15px; }
  /* Room after the last name, so even the last ones can scroll up to the left edge when their section is open */
  .bar-links::after { content: ""; flex: none; width: calc(100% - 70px); }
  .logo { padding: 0 7px; } /* 14px each side of the pin */
  #acctTop { margin: 0 8px; } /* less room around the logo and Sign in, more for the section names */
  .bar-links a { padding: 16px 0; }
  .hero { min-height: 34svh; padding-bottom: 28px; }
  .section { padding-top: 28px; padding-bottom: 8px; }
  /* A section that ends in a sideways row of cards already has air under its shorter cards, so the next one starts closer. */
  .group:last-child > .feature:last-child, .group:last-child > .tiles:last-child { padding-bottom: 0; }
  .section:has(.group:last-child > .feature:last-child) + .section, .section:has(.group:last-child > .tiles:last-child) + .section { padding-top: 20px; }
  #sections > .section:first-child { padding-top: 20px; }
  .group { padding-top: 26px; }
  .tiles { display: flex; gap: 22px; overflow-x: auto; margin: 0 -20px; padding: 16px 20px 6px; scrollbar-width: none; }
  .tiles::-webkit-scrollbar, .feature::-webkit-scrollbar { display: none; }
  .tiles .item { flex: 0 0 66vw; }
  .tiles .desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
  .feature { scrollbar-width: none; padding-top: 18px; gap: 22px; } /* a little more air between cards, so one card's text never reads into the next */
  .feature > .item { flex-basis: 58vw; }
  .links { gap: 0 5px; }
  .links .link, .links .textbtn { padding: 9px 0; }
  .subnav { gap: 7px; }
}

/* Map view: plan on the left, map on the right. On phones the map stays pinned under the ribbon while the plan scrolls. */
.mapview { display: grid; grid-template-columns: minmax(340px, 430px) 1fr; grid-template-rows: auto 1fr; height: calc(100svh - var(--bar-h) - 1px); }
.mapview[hidden] { display: none; }
.trip-head { grid-column: 1; grid-row: 1; display: grid; gap: 10px; padding: 24px 20px 14px; border-bottom: 1px solid var(--line); }
.trip-head h2 { margin: 0; font: 500 34px/1.05 var(--serif); letter-spacing: -.02em; }
.trip-plan { grid-column: 1; grid-row: 2; overflow-y: auto; padding: 0 20px 100px; }
.mapbox { grid-column: 2; grid-row: 1 / 3; background: var(--sand); }
#gmap { width: 100%; height: 100%; }
.days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: none; font-size: 15px; line-height: 1; cursor: pointer; }
.stepper input { width: 36px; height: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: inherit; font: inherit; font-size: 14px; font-weight: var(--fw-medium); text-align: center; -moz-appearance: textfield; } /* a little smaller and lighter than before, so the number does not shout */
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.trip-note { font-size: 12px; line-height: 1.45; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.key { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 4px 0; background: none; font-size: 13px; color: var(--ink); }
button.key { cursor: pointer; }
.key[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }
.key .dot { margin-right: 0; }
.ring { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; }
.stay { padding: 14px 0 0; font-size: 13px; }
.day { padding-top: 18px; }
.day-head { display: grid; gap: 2px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; background: none; text-align: left; color: inherit; cursor: pointer; }
.day-title { font: var(--fw-regular) 17.5px/1.2 var(--serif); }
.trip-plan.ko .day-title { font-size: 16px; } /* Korean reads larger at the same size, so it is set a step smaller */
.day-title .then { width: 17px; height: 9px; margin: 0 2px; vertical-align: 1px; color: var(--muted); }
.day.on .day-title { font-weight: var(--fw-regular); }
.stops { margin: 0; padding: 0; list-style: none; }
.stop { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: grab; }
.stop.dragging { opacity: .4; }
.stop.over, .stop.picked { background: var(--sand); }
.when { font-size: 13px; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.when small { display: block; font-size: 11px; font-weight: var(--fw-regular); color: var(--muted); }
.what { display: grid; gap: 1px; min-width: 0; }
.what .label { display: flex; align-items: center; letter-spacing: .12em; }
.stop-name { font: var(--fw-regular) 17px/1.25 var(--serif); }
.acts { display: grid; gap: 4px; justify-items: end; }
.acts .textbtn, .stay .textbtn { font-size: 12px; }
/* Pop-up on a map pin. Google draws it on white, so its colors are fixed. */
.pop { display: grid; gap: 4px; max-width: 270px; color: #262718; font: 13px/1.45 var(--sans); }
.pop p { margin: 0; }
.pop-kind { display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #77765f; }
.pop-name { font: 400 18px/1.2 var(--serif); }
.pop-ko, .pop-facts { font-size: 12px; color: #77765f; }
  .pop-links a { color: #262718; }
@media (max-width: 899px) {
  .mapview { display: block; height: auto; }
  .mapview[hidden] { display: none; }
  .trip-head { padding: 18px 20px 12px; }
  .trip-head h2 { font-size: 28px; }
  .mapbox { position: sticky; top: var(--bar-h); z-index: 5; height: 42svh; }
  .trip-plan { overflow: visible; }
}
/* How far a place is from the chosen hotel: its own line under the facts, same type as the facts. */
.fromhotel { display: block; font-style: italic; font-size: 12px; } /* one step under the 13px facts line above it */
.fromhotel:empty { display: none; }
/* Info lists: the hotel button sits after the map links, a little apart from them. */
.links .hotelpick { margin-left: 3px; }
/* The "Your Day 1 dinner" tag: the same sage pill as the chosen hotel, a touch smaller and without the tick. */
.links .planpick { margin-left: 3px; height: 20px; padding: 0 8px; cursor: pointer; }

/* Hero: the photo pushes in toward the palace, only ever inward. Each 7 second push fades out at its end and the next one fades in from the start,
   so the loop never snaps back. No video file, so nothing extra to download. */
@keyframes herozoom { 0% { transform: scale(1); opacity: 0; } 9% { opacity: 1; } 88% { opacity: 1; } 100% { transform: scale(1.42); opacity: 0; } }
.hero-ph img { animation: herozoom 7s linear infinite; transform-origin: 50% 46%; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .hero-ph img { animation: none; } }
/* A small saekdong ribbon above the title: the five colours of Korean palace eaves and festive sleeves, toned down to sit with the palette.
   Out of the flow, so the title and tagline stay where they were. The title itself is warm hanji ivory instead of flat white. */
.hero h1 { position: relative; color: #FBF5E3; }
.hero h1::before { content: ""; position: absolute; left: .045em; top: -15px; width: 62px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3F6E96 0 20%, #C24E3F 20% 40%, #E2B24C 40% 60%, #F4EEDD 60% 80%, #3E8170 80%); }
/* Phones: the first screen ends cleanly after the legend. The banner takes whatever height is left above "Getting around" and the legend,
   and the room under the legend is where the Info / Plan / Saved switch floats, so the next section starts just below the fold. */
@media (max-width: 639px) {
  body:not(.in-solo) .hero { min-height: max(34svh, calc(100svh - var(--bar-h) - 300px)); }
  .around { min-height: 300px; align-content: start; }
  #sections > .section:first-child { padding-top: 12px; }
}
.day-title .sl { margin: 0 .13em; font-style: normal; } /* the slash between two areas, set closer than a full space each side */

/* Every section of the guide sits on its own band of colour, each chosen for what the section is, all kept pale so the text reads the same on every one.
   Placeholder blocks and hairlines are mixed from each band's colour so they always sit on it. */
#sections > .section { margin-top: 0; padding: 52px 0 56px; background: var(--ground); --sand: color-mix(in srgb, var(--ground) 86%, #5E5B50); --line: color-mix(in srgb, var(--ground) 84%, #5E5B50); --muted: #6B6A55; }
#sections > .section:nth-child(1) { --ground: #ECE8D9; } /* cities: cream, the page's own tone a shade deeper */
#sections > .section:nth-child(2) { --ground: #DDE6CF; } /* neighborhoods: fresh sage, streets and parks */
#sections > .section:nth-child(3) { --ground: #DCE4E6; } /* hotels: a calm misty blue-grey */
#sections > .section:nth-child(4) { --ground: #EBDACB; } /* sights: soft clay, palace walls and roof tiles */
#sections > .section:nth-child(5) { --ground: #F6E4BC; } /* food: warm apricot yellow, the appetising one */
#sections > .section:nth-child(6) { --ground: #E7D8C4; } /* cafes: latte */
#sections > .section:nth-child(7) { --ground: #D9D1E2; } /* bars: dusky evening lavender */
#sections > .section:nth-child(8) { --ground: #D6E7E0; } /* shop: pale mint */
#sections > .section:nth-child(9) { --ground: #F4DAD6; } /* beauty: blush pink */
#sections > .section:nth-child(n+10) { --ground: #ECE8D9; }
.foot { margin-top: 0; }
@media (max-width: 639px) {
  #sections > .section { padding: 32px 0 36px; }
  #sections > .section:first-child { padding-top: 28px; }
}
