:root {
  --ink: #1f1f1f;
  --muted: #6d6d6d;
  --line: #dddddd;
  --soft: #f2f7fb;
  --paper: #ffffff;
  --accent: #ff2b27;
  --accent-dark: #c61f1c;
  --yellow: #ffc928;
  --green: #0f5b48;
  --blue: #1f6f9c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1090px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 1.26rem;
  font-weight: 800;
}

.brand__mark {
  width: 27px;
  height: 27px;
  background:
    linear-gradient(90deg, transparent 44%, #fff 44% 56%, transparent 56%),
    radial-gradient(circle at 58% 42%, transparent 0 7px, #fff 8px 9px, transparent 10px),
    var(--accent);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: #111111;
  font-size: 1rem;
}

.site-nav a:hover,
.section-tabs a:hover {
  color: var(--accent-dark);
}

.page-intro {
  padding: 24px 0 46px;
}

.breadcrumb {
  margin: 0 0 24px;
  color: #333333;
  font-size: 0.95rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: clamp(3.1rem, 7vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.trip-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 354px;
  gap: 32px;
  align-items: start;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 270px 178px;
  gap: 12px;
}

.media-card,
.route-map {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  background: #ececec;
  border-radius: 18px;
}

.media-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card__button {
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.media-card::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 58%);
  pointer-events: none;
}

.media-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  pointer-events: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
  background: rgba(4, 18, 30, 0.82);
  border: 0;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0;
}

.lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  background: #07111a;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.lightbox__caption {
  margin-top: 12px;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.media-card--large {
  grid-row: span 2;
  min-height: 460px;
}

.media-card--seoul {
  background:
    linear-gradient(135deg, rgba(31, 31, 31, 0.15), rgba(31, 31, 31, 0.1)),
    linear-gradient(150deg, #121212 0%, #32423f 44%, #f0b44a 44% 48%, #24322f 48% 100%);
}

.media-card--gyeongju {
  background:
    linear-gradient(135deg, rgba(31, 31, 31, 0.12), rgba(31, 31, 31, 0.1)),
    linear-gradient(135deg, #7d332a, #bd6a36 46%, #f4ca6a 46% 50%, #294436 50%);
}

.media-card--busan {
  background:
    linear-gradient(135deg, rgba(31, 31, 31, 0.12), rgba(31, 31, 31, 0.1)),
    linear-gradient(145deg, #11405b 0%, #2d8fbd 52%, #f5d48a 52% 58%, #0e5948 58%);
}

.route-map {
  display: grid;
  grid-column: 1 / -1;
  align-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f2f7fb, #e8f1f8);
  border: 1px solid var(--line);
}

.route-map__title,
.summary-kicker,
.section-kicker,
.stop-type,
.fact-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-map ol {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.route-map ol::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 7px;
  width: 2px;
  content: "";
  background: var(--accent);
}

.route-map li {
  position: relative;
  font-weight: 800;
}

.route-map li::before {
  position: absolute;
  top: 4px;
  left: -24px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--paper);
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.trip-summary {
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.trip-summary h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.summary-copy {
  margin-bottom: 22px;
  color: #3f3f3f;
  line-height: 1.6;
}

.summary-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.summary-facts div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.summary-facts div:nth-child(odd) {
  padding-right: 16px;
}

.summary-facts div:nth-child(even) {
  padding-left: 16px;
}

.summary-facts dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.summary-facts dd {
  margin: 0;
  font-weight: 800;
}

.section-tabs {
  position: sticky;
  top: 64px;
  z-index: 9;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-tabs__inner {
  display: flex;
  gap: 34px;
  overflow-x: auto;
}

.section-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  border-bottom: 4px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.section-tabs a:first-child {
  border-bottom-color: var(--accent);
}

.content-section {
  scroll-margin-top: 126px;
  padding: 72px 0;
}

.content-section--soft {
  background: linear-gradient(180deg, #f2f7fb 0%, #eaf3f9 100%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.love-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.love-list li {
  position: relative;
  padding: 0 0 20px 42px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.love-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  content: "";
  background: var(--yellow);
  clip-path: polygon(50% 0%, 62% 35%, 100% 35%, 69% 57%, 81% 94%, 50% 72%, 19% 94%, 31% 57%, 0% 35%, 38% 35%);
}

.itinerary-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 150px;
}

.section-heading p:last-child {
  color: #4c4c4c;
  line-height: 1.65;
}

.itinerary-list {
  display: grid;
  gap: 16px;
}

.day-panel {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.day-number {
  color: var(--accent);
  font-size: 1.04rem;
  font-weight: 800;
}

.day-date {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.day-content h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.day-location {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.day-media-card {
  min-height: 220px;
  max-height: 320px;
  margin-bottom: 20px;
  cursor: zoom-in;
}

.day-media-card .media-card__button {
  display: block;
  height: 100%;
  min-height: 220px;
}

.stops-title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.stop-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop-item {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
}

.stop-name {
  margin-bottom: 5px;
  font-weight: 800;
}

.stop-description {
  margin: 0;
  color: #555555;
  line-height: 1.58;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  gap: 24px;
}

.notes-grid p {
  color: #4c4c4c;
  line-height: 1.65;
}

.info-panel {
  padding: 24px;
  background: #eef6fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.info-panel h3 {
  font-size: 1.1rem;
}

@media (max-width: 960px) {
  .trip-hero,
  .two-column,
  .itinerary-layout,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

}

@media (max-width: 700px) {
  .container,
  .site-header__inner {
    width: min(100% - 28px, 560px);
  }

  .site-header__inner {
    min-height: 58px;
  }

  .site-nav {
    display: none;
  }

  .page-intro {
    padding-top: 18px;
  }

  .breadcrumb {
    margin-bottom: 18px;
    font-size: 0.82rem;
  }

  h1 {
    margin-bottom: 24px;
  }

  .trip-hero {
    gap: 18px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .media-card,
  .media-card--large,
  .route-map {
    min-height: 220px;
  }

  .summary-facts {
    grid-template-columns: 1fr;
  }

  .summary-facts div:nth-child(odd),
  .summary-facts div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .section-tabs {
    top: 58px;
  }

  .section-tabs__inner {
    gap: 24px;
  }

  .content-section {
    padding: 52px 0;
  }

  .day-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .stop-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
