/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a18;
  background: #ffffff;
}

.page-home {
  font-family: "Rethink Sans", ui-sans-serif, system-ui, -apple-system,
    sans-serif;
  background: #ffffff;
}

.page-country,
.page-city {
  background: #ffffff;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

a {
  color: #2c2c28;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #111;
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

/* --- Typography --- */
h1,
h2,
h3,
.section-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- Layout --- */
.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand__link {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: #111;
}

.brand__link:hover {
  color: #000;
}

.brand__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #5c5c56;
}

.nav-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.nav-primary__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #77776f;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.view-toggle__btn {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-toggle__btn:hover {
  color: #111;
}

.view-toggle__btn.is-active {
  background: #1a1a18;
  color: #fafaf8;
}

.nav-trip {
  align-self: center;
}

.text-link {
  font-size: 0.9375rem;
  text-decoration: none;
  color: #444;
}

.text-link:hover {
  color: #000;
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.main--home-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.site-footer__text {
  margin: 0;
  font-size: 0.8125rem;
  color: #8a8a84;
}

/* --- Home: split layout (Figma 3:3802) --- */
.home-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  background: #ffffff;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 250px;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 30px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 40;
  overflow-y: auto;
}

.sidebar__logo {
  padding: 30px 20px 30px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar__brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
}

.sidebar__brand:hover {
  color: #f45f00;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 20px 30px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.sidebar__footer {
  padding: 0 20px 0 32px;
  margin-top: auto;
}

.sidebar__meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #828282;
  letter-spacing: -0.02em;
}

/* Continent → country groups (Figma node 2:91) */
.sidebar-continent {
  width: 100%;
  max-width: 198px;
}

.sidebar-continent__header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  margin: 0;
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #000;
}

.sidebar-continent__header:hover .sidebar-continent__name {
  color: #f45f00;
}

.sidebar-continent__chev {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s ease;
  line-height: 1;
}

.sidebar-continent.is-open .sidebar-continent__chev {
  transform: rotate(90deg);
}

.sidebar-continent__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-continent__groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.sidebar-continent__groups[hidden] {
  display: none !important;
}

.sidebar-group {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding: 0 0 0 16px;
  margin: 0;
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.sidebar-group:hover .sidebar-group__name {
  color: #f45f00;
}

.sidebar-group__name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #000;
}

.sidebar-group__year {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #575757;
}

.home-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.home-toolbar__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin-left: auto;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  border-color: rgba(0, 0, 0, 0.22);
  color: #f45f00;
}

.sidebar-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.sidebar-backdrop {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 85;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: #111;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: #f45f00;
  color: #f45f00;
}

.back-to-top:focus-visible {
  outline: 2px solid #f45f00;
  outline-offset: 2px;
}

.home-hero {
  position: relative;
  height: 311px;
  width: 100%;
  background: linear-gradient(120deg, #ffb347 0%, #f45f00 55%, #ffcc33 100%);
  overflow: hidden;
}

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-intro {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 32px 32px 120px;
}

.home-intro__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.home-intro__title {
  flex: 0 1 419px;
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
}

.home-intro__body {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #575757;
}

.home-intro__body p {
  margin: 0 0 1rem;
}

.home-intro__body p:last-child {
  margin-bottom: 0;
}

.home-contents {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 65px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.home-contents__title {
  flex: 1 1 200px;
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #000;
}

.home-contents__list {
  flex: 1 1 280px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-contents__list a {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
}

.home-contents__list a:hover {
  color: #f45f00;
}

.home-contents__num {
  color: #575757;
  margin-right: 0.15em;
}

.home-region {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 65px 0;
  display: flex;
  flex-direction: column;
  gap: 65px;
  scroll-margin-top: 72px;
  border-radius: 2px;
  transition: box-shadow 0.35s ease;
}

.home-region.is-flash {
  box-shadow: 0 0 0 2px #f45f00;
}

.home-region__head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  margin: 0;
  padding: 0 32px;
}

.home-region__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #000;
}

.home-region__title-num {
  color: #f45f00;
}

.home-region__intro {
  flex: 1 1 260px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #575757;
}

.home-region__sub {
  margin: 2rem 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000;
}

.home-region__sub-num {
  color: #f45f00;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 65px;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

.folder-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  scroll-margin-top: 96px;
  border-radius: 2px;
  transition: box-shadow 0.35s ease;
}

.folder-card.is-flash {
  box-shadow: 0 0 0 2px #f45f00;
}

.folder-card__media {
  position: relative;
  aspect-ratio: 467 / 295;
  overflow: hidden;
  background: #e8e8e4;
  margin-bottom: 12px;
}

.folder-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.folder-card:hover .folder-card__media img {
  transform: scale(1.03);
}

.folder-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.folder-card__link:hover .folder-card__title {
  color: #f45f00;
}

.folder-card__title {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #000;
  transition: color 0.2s ease;
}

.folder-card__desc {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #575757;
}

.folder-card--static .folder-card__title {
  color: #000;
}

.home-footer {
  margin-top: auto;
  padding: 128px 40px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.home-footer__brand {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.home-footer__links {
  margin-bottom: 1.5rem;
}

.home-footer__muted {
  font-size: 15px;
  color: #575757;
}

.home-footer__legal {
  margin: 0;
  font-size: 13px;
  color: #828282;
}

.home-panel[hidden] {
  display: none !important;
}

.timeline-panel {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 65px 32px 24px;
}

.timeline-panel__title {
  margin: 0 0 0.5rem;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.timeline-panel__intro {
  margin: 0 0 2rem;
  font-size: 15px;
  color: #575757;
  max-width: 40em;
}

.page-home .timeline-nav--home {
  padding: 0 32px 65px;
}

.page-home .timeline-year {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-home .timeline-year:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-home .timeline-year__label {
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.timeline-year__meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-year__meta li {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #575757;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.page-home .timeline-trip__link {
  color: #000;
  border-bottom-color: rgba(0, 0, 0, 0.2);
}

.page-home .timeline-trip__link:hover {
  color: #f45f00;
  border-bottom-color: #f45f00;
}

/* --- Timeline --- */
.timeline-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-year {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem 1.5rem;
}

.timeline-year__label {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
}

.timeline-year__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline-trip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.timeline-trip__link {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #1a5f4a;
  border-bottom: 1px solid rgba(26, 95, 74, 0.35);
}

.timeline-trip__link:hover {
  color: #0f3d30;
}

.timeline-trip__meta {
  font-size: 0.875rem;
  color: #6b6b64;
}

/* --- Revisited pill --- */
.pill-revisited {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #6b46c1;
  color: #fff;
  vertical-align: middle;
}

/* --- Generic page error (country + city) --- */
.page-error {
  padding: 4rem 32px;
  text-align: center;
}

.page-error__title {
  margin: 0 0 0.75rem;
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #000;
}

.page-error__text {
  margin: 0;
  font-size: 15px;
  color: #575757;
}

/* =========================================================
 * COUNTRY PAGE  (Figma 2:106)
 * =======================================================*/
.ctry-hero {
  width: 100%;
  height: 394px;
  background: #d9d9d9;
  overflow: hidden;
}

.ctry-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ctry-hero--placeholder {
  background: linear-gradient(120deg, #e5e5e2 0%, #d9d9d9 50%, #ececea 100%);
}

.ctry-main {
  display: flex;
  flex-direction: column;
}

.ctry-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 32px 32px 120px;
}

.ctry-intro__left {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ctry-title {
  margin: 0;
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
}

.ctry-visits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #575757;
}

.ctry-visit {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ctry-visit__ord {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ctry-visit__label {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ctry-intro__right {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #575757;
}

.ctry-intro__right p {
  margin: 0 0 1rem;
}

.ctry-intro__right p:last-child {
  margin-bottom: 0;
}

.ctry-grid {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 65px 32px;
}

.ctry-grid__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 65px;
}

.ctry-city-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ctry-city-card__media {
  position: relative;
  aspect-ratio: 467 / 295;
  overflow: hidden;
  background: #e8e8e4;
}

.ctry-city-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ctry-city-card:hover .ctry-city-card__media img {
  transform: scale(1.03);
}

.ctry-city-card__title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #000;
  transition: color 0.2s ease;
}

.ctry-city-card:hover .ctry-city-card__title {
  color: #f45f00;
}

/* =========================================================
 * CITY PAGE  (Figma 2:3512)
 * =======================================================*/

/* Custom sidebar context block */
.sidebar--city .sidebar__logo {
  /* keep logo */
}

.city-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px 30px 32px;
}

.city-side__back {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #575757;
  text-decoration: none;
}

.city-side__back:hover {
  color: #f45f00;
}

.city-side__divider {
  height: 1px;
  background: #dadfe2;
  width: 100%;
}

.city-side__title-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.city-side__title {
  margin: 0;
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000;
}

.city-side__date {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #575757;
}

.city-side__intro {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #575757;
}

/* Main column */
.city-hero {
  width: 100%;
  height: 394px;
  background: #d9d9d9;
  overflow: hidden;
}

.city-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.city-hero--placeholder {
  background: linear-gradient(120deg, #e5e5e2 0%, #d9d9d9 50%, #ececea 100%);
}

.city-main {
  display: flex;
  flex-direction: column;
}

.city-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 32px 32px 120px;
}

.city-intro__left {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.city-title {
  margin: 0;
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
}

.city-intro__date {
  margin: 0;
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #575757;
}

.city-intro__right {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #575757;
}

.city-intro__right p {
  margin: 0 0 1rem;
}

.city-intro__right p:last-child {
  margin-bottom: 0;
}

.city-visits {
  display: flex;
  flex-direction: column;
}

.city-visit {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.city-visit__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.city-visit__title {
  margin: 0;
  font-family: "Rethink Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000;
}

.city-visit__intro {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #575757;
  max-width: 56em;
}

.city-visit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
}

.city-visit__empty {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #828282;
  font-style: italic;
}

.city-visit__reflection {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #3d3d38;
  max-width: 56em;
}

/* Adjust figure-cap aspect for city grids (full bleed photos) */
.city-visit__grid .figure-cap {
  border-radius: 0;
  background: #e8e8e4;
}

.city-visit__grid .figure-cap__img {
  aspect-ratio: 467 / 295;
}

/* --- Figure + caption overlay --- */
.figure-cap {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e5e5e0;
}

.figure-cap__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.figure-cap:hover .figure-cap__img,
.figure-cap:focus-within .figure-cap__img {
  transform: scale(1.04);
}

.figure-cap__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.figure-cap:hover .figure-cap__overlay,
.figure-cap.is-caption-visible .figure-cap__overlay {
  opacity: 1;
  transform: translateY(0);
}

.figure-cap__caption {
  margin: 0;
}

/* Tap-to-toggle: hide hover zoom conflict on coarse pointers */
@media (hover: none) and (pointer: coarse) {
  .figure-cap:hover .figure-cap__img {
    transform: none;
  }

  .figure-cap.is-caption-visible .figure-cap__img {
    transform: scale(1.02);
  }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .home-shell {
    flex-direction: column;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .home-toolbar {
    justify-content: space-between;
  }

  .home-toolbar__nav {
    margin-left: 0;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  body.sidebar-drawer-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 88vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    z-index: 100;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.12);
  }

  body.sidebar-drawer-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-continent {
    max-width: none;
  }

  body.sidebar-drawer-open {
    overflow: hidden;
  }

  body.sidebar-drawer-open .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .home-intro__grid {
    flex-direction: column;
  }

  .home-contents {
    flex-direction: column;
  }

  .ctry-intro,
  .city-intro {
    flex-direction: column;
    padding-bottom: 80px;
  }

  .ctry-grid__inner,
  .city-visit__grid {
    grid-template-columns: 1fr;
  }

  .ctry-hero,
  .city-hero {
    height: 240px;
  }

  .city-side {
    padding-right: 24px;
  }
}


@media (max-width: 560px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-primary {
    align-items: flex-start;
    width: 100%;
  }

  .view-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .view-toggle__btn {
    flex: 1;
    text-align: center;
  }

  .home-toolbar {
    padding: 0.75rem 1rem;
  }

  .home-hero {
    height: 200px;
  }

  .home-intro {
    padding: 24px 16px 80px;
  }

  .home-contents {
    padding: 48px 16px;
  }

  .home-region {
    padding: 48px 0;
    gap: 48px;
  }

  .home-region__head,
  .folder-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .timeline-panel {
    padding: 48px 16px 20px;
  }

  .page-home .timeline-nav--home {
    padding: 0 16px 48px;
  }

  .home-footer {
    padding: 64px 16px 24px;
  }

  .ctry-intro,
  .city-intro {
    padding: 24px 16px 64px;
    gap: 24px;
  }

  .ctry-grid {
    padding: 48px 16px;
  }

  .ctry-grid__inner {
    row-gap: 48px;
  }

  .ctry-title,
  .city-title {
    font-size: clamp(2.25rem, 9vw, 3.75rem);
  }

  .ctry-visit__label,
  .city-intro__date,
  .city-visit__title {
    font-size: clamp(1.5rem, 6vw, 30px);
  }

  .city-visit {
    padding: 36px 16px;
    gap: 20px;
  }

  .city-visit__grid {
    row-gap: 32px;
  }

  .city-side {
    padding: 16px 20px 24px 24px;
  }
}
