.city-page {
  --guide-ink: #11243c;
  --guide-blue: #184d8b;
  --guide-line: #dbe4ef;
  --guide-muted: #4d5d71;
  --guide-paper: #f3f6fb;
  color: var(--guide-ink);
  background: var(--guide-paper);
}

.city-page .portal-detail > main { container-type: inline-size; }

.city-page .hero-banner {
  min-height: clamp(15rem, 23vw, 24rem);
  background: #121c2d;
}

.city-page .hero-banner::before {
  background: linear-gradient(90deg, #0b1425ed, #0b1425ac 35%, #0b142528 73%, transparent);
}

.city-page .hero-image { object-position: center 55%; }
.city-page .hero-description { max-width: 27rem; }
.hero-location { margin-bottom: .35rem; color: #d8e7fd; font-size: .875rem; font-weight: 750; }

.city-section { margin-block: clamp(1.7rem, 4vw, 3.15rem); }
.season-grid, .experience-grid, .budget-grid, .trip-note-grid, .guide-summary-grid { display: grid; gap: .8rem; margin-top: .9rem; }
.guide-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.season-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.experience-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.budget-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.trip-note-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@container (max-width: 42rem) {
  .budget-grid { grid-template-columns: minmax(0, 1fr); }
}

.season-card, .experience-card, .month-browser, .budget-card, .trip-note-card, .city-esim, .guide-summary-card {
  border: 1px solid var(--guide-line);
  border-radius: 1.15rem;
  background: var(--white);
}

.guide-summary-card {
  display: grid;
  align-content: start;
  gap: .18rem;
  min-width: 0;
  padding: clamp(.75rem, 2vw, 1.15rem);
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.guide-summary-card:hover { border-color: #83a7d0; background: #f8fbff; }
.guide-summary-label { color: var(--guide-blue); font-size: .875rem; font-weight: 740; }
.guide-summary-card strong { font-size: clamp(1.03rem, 1.85vw, 1.26rem); letter-spacing: -.045em; }
.guide-summary-detail { color: var(--guide-muted); font-size: .875rem; }

.season-card, .experience-copy, .budget-card, .trip-note-card { padding: clamp(1rem, 2.2vw, 1.35rem); }
.season-card { border-top: 3px solid #78a4dd; }
.season-card-rain { border-top-color: #85a9a5; }
.season-card h3, .experience-card h3, .month-detail h3, .budget-card h3, .trip-note-card h3 { font-size: 1.14rem; letter-spacing: -.038em; }
.season-card p, .experience-card p, .trip-note-card p { color: var(--guide-muted); word-break: keep-all; overflow-wrap: anywhere; }
.season-card h3 + p, .experience-card h3 + p, .trip-note-card h3 + p { margin-top: .33rem; }
.season-card .season-months { color: var(--guide-blue); font-size: 1.22rem; font-weight: 800; letter-spacing: -.045em; }
.season-card-rain .season-months { color: #3b685f; }

.month-browser { padding: clamp(.8rem, 2.2vw, 1.45rem); }
.month-picker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .36rem; }
.month-picker button {
  width: 100%;
  min-height: 2.75rem;
  padding: .25rem .1rem;
  border: 1px solid var(--guide-line);
  border-radius: .62rem;
  color: var(--guide-ink);
  background: #f7faff;
  font-weight: 680;
  white-space: nowrap;
}
.month-picker button:hover { background: #e7f0ff; }
.month-picker button[aria-pressed="true"] { border-color: var(--guide-blue); color: white; background: var(--guide-blue); }
.month-detail { margin-top: 1rem; }
.month-detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: .8rem; align-items: stretch; margin-top: .55rem; }
.weather-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: .7rem 0;
  border: 1px solid var(--guide-line);
  border-radius: .82rem;
  background: #f7faff;
}
.weather-stats > div { display: grid; align-content: center; gap: .28rem; padding: .28rem .6rem; text-align: center; }
.weather-stats > div + div { border-left: 1px solid var(--guide-line); }
.weather-stats dt { color: var(--guide-muted); font-size: .875rem; font-weight: 650; }
.weather-stats dd {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.65rem);
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.weather-stats small { font-size: .65em; padding-left: .08em; }
.weather-rain dd > span { display: block; color: var(--guide-muted); font-size: .875rem; font-weight: 540; letter-spacing: -.035em; white-space: normal; }
.weather-rain strong { color: var(--guide-blue); white-space: nowrap; }
.temperature-low { color: #1b5696; }
.temperature-high { color: #9a4525; }
.wear-card { padding: .68rem .9rem; border-radius: .82rem; background: #edf3fa; word-break: keep-all; overflow-wrap: anywhere; }
.wear-card strong { color: var(--guide-blue); margin-right: .25rem; }
.wear-card p + p { margin-top: .24rem; color: var(--guide-muted); font-size: .9375rem; }

.weather-table { margin-top: 1rem; border-top: 1px solid var(--guide-line); }
.weather-table summary { width: fit-content; padding: .72rem .2rem .06rem; color: var(--guide-blue); font-weight: 720; cursor: pointer; }
.weather-table table { margin-top: .65rem; table-layout: fixed; font-variant-numeric: tabular-nums; }
.weather-table :is(th, td) { padding: .45rem .25rem; text-align: center; }
.weather-table thead { background: #edf3fa; }
.weather-table thead small { font-size: inherit; }
.weather-table tbody tr:nth-child(even) { background: #f7faff; }
.exchange-card a, .price-list a, .experience-card a, .trip-note-card a { color: var(--guide-blue); text-underline-offset: .17em; }

.exchange-frame { display: block; width: 100%; max-width: 420px; height: 244px; border: 0; margin-top: .4rem; }
.budget-note, .budget-source { margin-top: .25rem; color: var(--guide-muted); font-size: .875rem; }
.budget-card .budget-source a { color: var(--guide-blue); text-underline-offset: .17em; }
.budget-source { margin-top: .48rem; }
.price-comparison-table { margin: .65rem 0; table-layout: fixed; color: var(--guide-ink); font-variant-numeric: tabular-nums; }
.price-comparison-table :is(th, td) { border-bottom: 1px solid var(--guide-line); padding: .45rem .3rem; text-align: center; }
.price-comparison-table thead { background: #f0f3f9; }
.price-comparison-table thead th:first-child, .price-comparison-table td:first-child { background: #eaf2ff; }
.price-comparison-table th.price-product { padding-inline: .48rem; background: #f8faff; text-align: left; font-size: .9375rem; }
.price-comparison-table td { font-weight: 700; white-space: nowrap; }
.price-comparison-table .price-converted { display: block; color: var(--guide-muted); font-size: .8125rem; font-weight: 500; }
.price-comparison-table td.price-unavailable { color: var(--guide-muted); font-weight: 500; }
.price-comparison-table .price-level {
  display: table;
  margin: .15rem auto 0;
  border-radius: .45rem;
  padding: .1rem .38rem;
  background: #e1eaf7;
  color: #2a4d7c;
  font-size: .875rem;
  font-weight: 750;
  white-space: nowrap;
}
.price-comparison-table .price-level[data-level="low"] { background: #e4f3e9; color: #28573e; }
.price-comparison-table .price-level[data-level="high"] { background: #f8e7e2; color: #883c29; }
.price-comparison-table .price-level[data-level="unknown"] { background: #e9edf2; color: var(--guide-muted); }
.budget-details { margin-bottom: clamp(1.7rem, 4vw, 3.15rem); }
.budget-details h2 { margin-bottom: .9rem; }
.budget-details details + details { margin-top: .65rem; }
.budget-details summary { width: fit-content; color: var(--guide-blue); font-weight: 720; cursor: pointer; }
.guide-source-note :is(p, ul) { margin-top: .6rem; color: var(--guide-muted); font-size: .875rem; }
.guide-source-note a { color: var(--guide-blue); text-underline-offset: .17em; }
.photo-credits { padding-inline-start: 1.2rem; }
.photo-credits li + li { margin-top: .3rem; }
.price-list { list-style: none; padding: 0; margin: .7rem 0 0; }
.price-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; padding: .55rem 0; }
.price-list li + li { border-top: 1px solid var(--guide-line); }
.price-list li > div { min-width: 0; }
.price-list a { font-weight: 670; }
.price-list p { color: var(--guide-muted); font-size: .875rem; }
.price-list strong { flex: none; font-variant-numeric: tabular-nums; }

.experience-card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; }
.experience-grid-5 .experience-card:nth-last-child(-n + 2), .experience-grid-2 .experience-card { grid-column: span 3; }
.experience-photo { display: block; width: 100%; height: clamp(9rem, 16vw, 13rem); object-fit: cover; background: #dee8f3; }
.experience-copy { display: flex; flex: 1; flex-direction: column; }
.experience-card .experience-category { color: var(--guide-blue); font-size: .875rem; font-weight: 780; margin-bottom: .36rem; }
.experience-card h3, .trip-note-card h3 { word-break: keep-all; }
.experience-link, .trip-note-link { align-self: flex-start; margin-top: auto; padding-top: .62rem; font-size: .875rem; font-weight: 690; }
.trip-note-card { display: flex; flex-direction: column; }
.trip-note-card .trip-note-byline { margin-bottom: .36rem; color: var(--guide-blue); font-size: .875rem; font-weight: 690; }
.trip-tips { margin: .65rem 0; padding-inline-start: 1.15rem; color: var(--guide-muted); word-break: keep-all; overflow-wrap: anywhere; }
.trip-tips li + li { margin-top: .38rem; }
.trip-tips li::marker { color: var(--guide-blue); }
.video-chapters { display: flex; flex-wrap: wrap; gap: .35rem .45rem; list-style: none; margin: .65rem 0 0; padding: 0; }
.video-chapters a { display: inline-block; border-radius: .45rem; background: #edf3fa; padding: .25rem .5rem; font-size: .875rem; font-weight: 650; }

.city-esim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.2rem;
  margin-bottom: clamp(1.7rem, 4vw, 3.15rem);
  padding: clamp(.95rem, 3vw, 1.5rem);
  background: #eaf1fb;
}
.city-esim h2 { font-size: clamp(1.25rem, 2.7vw, 1.55rem); }
.city-esim p { color: var(--guide-muted); margin-top: .28rem; }
.city-footer .wrap { flex-wrap: wrap; gap: .55rem 1.1rem; }

@media (max-width: 46rem) {
  .city-page .topbar-inner { gap: .35rem .65rem; }
  .city-page .nav { gap: .22rem .65rem; }
  .city-page .hero-banner { min-height: 0; background: transparent; }
  .city-page .hero-banner::before { background: linear-gradient(0deg, #0b1425f0, #0b142580 49%, transparent); }
  .city-page .hero-image { height: clamp(5.9rem, 23vw, 10.5rem); }
  .hero-location { margin-bottom: .12rem; }
  .guide-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-grid, .month-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .month-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  :is(.weather-table table, .price-comparison-table) { display: table; }
  :is(.weather-table, .price-comparison-table) thead { position: static; display: table-header-group; clip-path: none; width: auto; height: auto; overflow: visible; }
  :is(.weather-table, .price-comparison-table) tbody { display: table-row-group; }
  :is(.weather-table, .price-comparison-table) :is(tbody tr, tbody tr + tr) { display: table-row; border-radius: 0; border-inline: 0; }
  .weather-table thead th { font-size: .8125rem; }
  .budget-grid { grid-template-columns: minmax(0, 1fr); }
  .trip-note-grid { grid-template-columns: minmax(0, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-grid .experience-card { grid-column: span 1; }
  .experience-grid .experience-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .city-esim { align-items: start; flex-direction: column; }
  .city-esim .purchase { width: auto; }
}

@media (max-width: 26rem) {
  .price-comparison-table :is(th, td) { padding-inline: .2rem; }
  .price-comparison-table td { font-size: .875rem; white-space: normal; overflow-wrap: anywhere; }
  .weather-stats > div { padding-inline: .3rem; }
  .experience-grid { grid-template-columns: minmax(0, 1fr); }
  .experience-photo { height: auto; aspect-ratio: 16 / 9; }
}
