/* Bundle Pretendard so text renders identically on any device/kiosk,
   independent of which fonts happen to be installed. */
@font-face {
  font-family: "Pretendard";
  src: url("./assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --kiosk-scale: 1;
  --ink: #10231f;
  --ink-soft: rgba(16, 35, 31, 0.68);
  --ivory: #f7f3eb;
  --ivory-strong: #fffdf8;
  --deep: #12332f;
  --green: #2f6b55;
  --blue: #b7d4dd;
  --gold: #d58a32;
  --line: rgba(18, 51, 47, 0.12);
  --shadow: 0 28px 90px rgba(18, 51, 47, 0.16);
  --soft-shadow: 0 18px 50px rgba(18, 51, 47, 0.12);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--ivory);
  color: var(--ink);
  word-break: keep-all;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  pointer-events: none;
}

.app-shell {
  width: 1920px;
  height: 1080px;
  transform: scale(var(--kiosk-scale));
  transform-origin: top left;
}

/* Touch feedback ripple — expands from the finger on every screen touch so the
   kiosk visibly acknowledges the person (paired with a short tap sound in JS). */
.tap-ripple {
  position: fixed;
  z-index: 99999;
  width: 92px;
  height: 92px;
  margin: 0;
  border-radius: 50%;
  pointer-events: none;
  /* White ring + dark outline/glow so it stays visible on both the light panels
     and the darker photo/season backgrounds. */
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(18, 51, 47, 0.4), 0 0 14px rgba(18, 51, 47, 0.3);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0.8;
  animation: tap-ripple 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes tap-ripple {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 0.75; }
  to   { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Press feedback — silent tactile cue that a control registered the tap. Scoped
   to main action buttons (tabs/cards with layout transforms are left alone). */
.feature-card,
.primary-button,
.plain-back,
.nav-circle {
  transition: transform 0.09s ease;
}
.feature-card:active,
.primary-button:active,
.plain-back:active,
.nav-circle:active {
  transform: scale(0.96);
}

.screen {
  position: relative;
  width: 1920px;
  height: 1080px;
  min-height: 1080px;
  overflow: hidden;
}

.icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-bar {
  position: fixed;
  top: 44px;
  left: 64px;
  right: 64px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.language-bar.home-lang {
  top: 48px;
  left: 94px;
  right: 94px;
}

.language-bar > * {
  pointer-events: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--deep);
}

.brand-mark.image-brand {
  width: 180px;
  height: 72px;
  gap: 0;
}

.home-lang .brand-mark.image-brand {
  width: 142px;
  height: 64px;
}

.home-lang .lang-group {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(18, 51, 47, 0.08);
}

.brand-mark.image-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-mark .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.9;
}

.brand-mark strong,
.brand-mark span {
  display: block;
}

.brand-mark strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark span {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.lang-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 38px rgba(18, 51, 47, 0.09);
  backdrop-filter: blur(18px);
}

.lang-button {
  min-width: 122px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: transparent;
  color: rgba(18, 51, 47, 0.64);
  font-size: 18px;
  font-weight: 750;
}

.lang-button.active {
  color: white;
  background: var(--deep);
}

.nav-circle {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
  box-shadow: 0 12px 32px rgba(18, 51, 47, 0.1);
  backdrop-filter: blur(16px);
}

.top-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.home-circle {
  background: rgba(18, 51, 47, 0.84);
  color: white;
}

.section-kicker,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
}

.plain-back {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 34px rgba(18, 51, 47, 0.08);
  backdrop-filter: blur(16px);
}

.season-topline .plain-back,
.time-selector .plain-back,
.course-detail-shell > .plain-back,
.bird-detail-shell > .plain-back {
  display: none;
}

.primary-button,
.ghost-button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 850;
}

.primary-button {
  color: white;
  background: var(--deep);
  box-shadow: 0 14px 34px rgba(18, 51, 47, 0.22);
}

.ghost-button {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 51, 47, 0.1);
}

/* Home */
.exhibit-home {
  padding: 0;
  background: #173b33;
}

.home-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  background: var(--bg) center / cover no-repeat;
  box-shadow: none;
}

.home-art::before {
  display: none;
}

.home-image {
  display: none;
}

.home-image::after {
  content: none;
}

.home-copy {
  position: absolute;
  left: 104px;
  top: 176px;
  width: 620px;
  z-index: 3;
}

.home-copy h1 {
  margin: 20px 0 0;
  color: var(--deep);
  font-size: 76px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 780;
}

.home-rule {
  width: 70px;
  height: 6px;
  margin: 40px 0 28px;
  border-radius: 999px;
  background: var(--green);
}

.home-copy p:last-child {
  margin: 0;
  color: rgba(18, 51, 47, 0.84);
  font-size: 21px;
  line-height: 1.62;
  white-space: pre-line;
}

.home-actions {
  position: absolute;
  left: 102px;
  right: 102px;
  bottom: 82px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 52px;
}

.feature-card {
  position: relative;
  min-height: 238px;
  display: block;
  padding: 0;
  border-radius: 20px;
  text-align: left;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.bird-feature {
  color: white;
}

.route-feature {
  color: var(--deep);
}

.feature-icon,
.feature-arrow {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.feature-icon {
  display: none;
}

.feature-icon .icon {
  width: 44px;
  height: 44px;
}

.feature-card > span:nth-of-type(2) {
  position: absolute;
  top: 46%;
  display: block;
  transform: translateY(-50%);
}

.bird-feature > span:nth-of-type(2) {
  left: 206px;
  width: 390px;
}

.route-feature > span:nth-of-type(2) {
  left: 206px;
  width: 510px;
}

.feature-card strong,
.feature-card small {
  display: block;
}

.feature-card strong {
  color: currentColor;
  font-size: 31px;
  line-height: 1.16;
  font-weight: 800;
  white-space: nowrap;
}

.feature-card small {
  margin-top: 16px;
  color: currentColor;
  opacity: 0.78;
  font-size: 17px;
  line-height: 1.36;
  white-space: nowrap;
}

.feature-arrow {
  display: none;
}

.route-feature .feature-arrow {
  background: #1e6694;
}

.touch-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 3px 14px rgba(10, 35, 29, 0.28);
  pointer-events: none;
  /* Slow "breathing" pulse so the idle main screen visibly signals it's alive
     and waiting for a touch. Keyframes keep the translateX(-50%) centering. */
  animation: touch-breathe 2.8s ease-in-out infinite;
}

@keyframes touch-breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.touch-hint::before {
  content: "";
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  background: center / contain no-repeat url("./assets/images/icon-tap-white.png");
  filter:
    drop-shadow(0 2px 2px rgba(9, 31, 26, 0.55))
    drop-shadow(0 0 2px rgba(9, 31, 26, 0.42));
}

/* Seasons */
.season-screen {
  padding: 0;
  isolation: isolate;
  background: var(--bg) center / cover no-repeat;
}

.season-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18));
}

.season-screen::after {
  display: none;
}

.season-spring {
  --season-ink: #2f6b55;
}

.season-summer {
  --season-ink: #3d7d68;
}

.season-autumn {
  --season-ink: #986326;
}

.season-winter {
  --season-ink: #426e9b;
}

.season-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 138px 84px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate;
}

.season-panel::before,
.season-panel::after {
  display: none;
}

.season-topline {
  display: flex;
  justify-content: flex-start;
}

/* Ambient-sound mute toggle on the seasons gallery (icon-only round button,
   matching the nav circles; staff can silence it). Fixed directly under the
   back button (header is fixed at top:44 left:64; back circle is 58px tall). */
.amb-toggle {
  position: fixed;
  left: 67px; /* center under the 58px back circle (64 + (58-52)/2) */
  top: 116px;
  z-index: 41;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
  box-shadow: 0 10px 28px rgba(18, 51, 47, 0.1);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.09s ease, background 0.15s ease, color 0.15s ease;
}
.amb-toggle:active {
  transform: scale(0.94);
}
.amb-toggle .amb-ic {
  width: 24px;
  height: 24px;
  display: block;
}
.amb-toggle .amb-ic svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.amb-toggle.muted {
  background: rgba(255, 255, 255, 0.55);
  color: rgba(18, 51, 47, 0.4);
}

.season-topline,
.season-title,
.season-tabs,
.bird-gallery {
  position: relative;
  z-index: 1;
}

.season-title {
  margin-top: 0;
  text-align: center;
}

.season-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--accent);
}

.season-title-row .icon {
  width: 34px;
  height: 34px;
}

.season-glyph-image {
  display: block;
  object-fit: contain;
}

.season-title-row .season-glyph-image {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 8px 14px rgba(217, 93, 133, 0.16));
}

.season-title-row .glyph-summer {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 8px 14px rgba(76, 134, 91, 0.16));
}

.season-title-row .glyph-autumn {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 8px 14px rgba(219, 132, 40, 0.18));
}

.season-title-row .glyph-winter {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 8px 14px rgba(65, 110, 194, 0.16));
}

.season-title h1 {
  margin: 0;
  color: var(--deep);
  font-size: 64px;
  line-height: 1;
  font-weight: 660;
}

.season-title p {
  margin: 22px 0 0;
  color: rgba(18, 51, 47, 0.7);
  font-size: 22px;
  font-weight: 650;
}

.season-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 48px 0 42px;
}

.season-tab {
  position: relative;
  min-width: 154px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 36px;
  border-radius: 0;
  background: transparent;
  color: rgba(18, 51, 47, 0.54);
  font-size: 24px;
  font-weight: 850;
  box-shadow: none;
}

.season-tab + .season-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  transform: translateY(-50%);
  background: rgba(18, 51, 47, 0.16);
}

.season-tab .icon,
.season-tab .season-glyph-image {
  display: none;
}

.season-tab.active {
  color: var(--season-ink, var(--deep));
  background: transparent;
}

.season-tab.active::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--season-ink, var(--deep));
}

.bird-gallery {
  display: grid;
  grid-template-columns: repeat(5, 240px);
  justify-content: center;
  gap: 28px;
  padding: 0 36px;
}

.gallery-card {
  position: relative;
  width: 240px;
  height: 340px;
  overflow: hidden;
  padding: 0;
  border-radius: 32px;
  background: transparent;
  border: 1px solid rgba(18, 51, 47, 0.08);
  box-shadow: 0 28px 70px rgba(18, 51, 47, 0.18);
}

.gallery-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.gallery-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 60px;
  padding: 0 18px 24px;
  color: white;
  background: transparent;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Bird detail */
.bird-detail-page {
  padding: 36px;
  background:
    linear-gradient(90deg, rgba(247, 243, 235, 0.92), rgba(247, 243, 235, 0.54)),
    var(--bg) center / cover no-repeat;
}

.bird-detail-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: stretch;
  padding: 124px 76px 104px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.bird-hero-photo {
  position: relative;
  width: 100%;
  min-height: 560px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(18, 51, 47, 0.22);
  background: rgba(247, 243, 235, 0.9);
}

.bird-hero-photo::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: var(--bg) center / cover no-repeat;
  filter: blur(34px) brightness(0.96) saturate(1.05);
  transform: scale(1.08);
}

.bird-hero-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bird-hero-photo.fit-cover img {
  object-fit: cover;
}

.bird-hero-photo.fit-cover::before {
  display: none;
}

.bird-story-card {
  position: relative;
  width: 100%;
  min-height: 560px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 42px 52px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.bird-story-card h1 {
  margin: 20px 0 26px;
  color: var(--deep);
  font-size: 66px;
  line-height: 1.08;
}

.bird-story-card p {
  margin: 0;
  color: rgba(18, 51, 47, 0.76);
  font-size: 22px;
  line-height: 1.62;
}

.soft-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 34px 0;
}

.soft-facts div {
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(247, 243, 235, 0.78);
}

.soft-facts span,
.travel-facts span,
.travel-bird-row > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(18, 51, 47, 0.5);
  font-size: 15px;
  font-weight: 850;
}

.soft-facts strong,
.travel-facts strong {
  color: var(--deep);
  font-size: 22px;
  line-height: 1.34;
}

/* English bird names are longer (often 2 lines) — scale the story card down so
   the content never clips. */
html[lang="en"] .bird-story-card h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 14px 0 18px;
}
html[lang="en"] .bird-story-card .soft-facts {
  margin: 26px 0;
}
html[lang="en"] .bird-story-card .soft-facts strong {
  font-size: 20px;
}

/* Recommended-course CTA — outlined pill with filled signpost icon + chevron */
.bird-story-card .course-cta {
  align-self: stretch;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  padding: 0 32px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--deep);
  box-shadow: 0 14px 32px rgba(18, 51, 47, 0.14);
  font-size: 22px;
}

.course-cta-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.course-cta-svg {
  width: 34px;
  height: 38px;
  fill: currentColor;
}

.course-cta-label {
  flex: 1 1 auto;
  text-align: center;
}

.bird-story-card .course-cta > .icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
}

/* Course recommendation */
.courses-experience,
.course-detail-experience {
  padding: 36px;
  background:
    linear-gradient(115deg, rgba(247, 243, 235, 0.93) 0%, rgba(247, 243, 235, 0.78) 34%, rgba(247, 243, 235, 0.35) 100%),
    var(--bg) center / cover no-repeat;
}

.courses-layout,
.course-detail-shell {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 100px 74px 68px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 78%, rgba(183, 212, 221, 0.34), transparent 30%),
    rgba(255, 253, 248, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.courses-layout {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 60px;
}

.time-selector {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-selector h1 {
  margin: 22px 0 38px;
  color: var(--deep);
  font-size: 54px;
  line-height: 1.13;
}

.time-tabs {
  display: grid;
  gap: 16px;
}

.time-tab {
  min-height: 108px;
  padding: 22px 26px;
  border-radius: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 42px rgba(18, 51, 47, 0.09);
  transition: transform 0.18s ease, background 0.18s ease;
}

.time-tab strong,
.time-tab span {
  display: block;
}

.time-tab strong {
  color: var(--deep);
  font-size: 26px;
  font-weight: 860;
}

.time-tab span {
  margin-top: 10px;
  color: rgba(18, 51, 47, 0.52);
  font-size: 17px;
  font-weight: 800;
}

.time-tab.active {
  color: white;
  background: var(--deep);
  transform: translateX(10px);
}

.time-tab.active strong,
.time-tab.active span {
  color: white;
}

.course-showcase {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.course-dots {
  position: absolute;
  top: 4px;
  right: 8px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.course-dots button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(18, 51, 47, 0.6);
  font-weight: 900;
}

.course-dots button.active {
  color: white;
  background: var(--green);
}

.travel-card {
  position: relative;
  width: 100%;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(480px, 0.95fr) minmax(470px, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 36px 100px rgba(18, 51, 47, 0.2);
  backdrop-filter: blur(18px);
}

.travel-photo {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.travel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.travel-photo .card-map {
  position: absolute;
  inset: 0;
}

.travel-photo .card-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.travel-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 51, 47, 0.03), rgba(18, 51, 47, 0.18));
}

.travel-photo span {
  position: absolute;
  left: 34px;
  top: 34px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: white;
  background: rgba(18, 51, 47, 0.84);
  font-size: 34px;
  font-weight: 900;
}

.travel-info {
  padding: 58px 58px 48px;
}

.travel-info h2 {
  margin: 16px 0 20px;
  color: var(--deep);
  font-size: 62px;
  line-height: 1.08;
}

.travel-info > p {
  margin: 0;
  color: rgba(18, 51, 47, 0.72);
  font-size: 22px;
  line-height: 1.55;
}

.travel-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 28px;
}

.travel-facts div {
  min-height: 104px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(247, 243, 235, 0.82);
}

.travel-bird-row {
  margin-top: 16px;
}

.bird-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bird-pills button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--deep);
  border: 1px solid rgba(18, 51, 47, 0.08);
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(18, 51, 47, 0.07);
}

.bird-pills img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.travel-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.detail-travel-card {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(620px, 1fr) 620px;
}

.detail-travel-card .travel-info {
  display: flex;
  flex-direction: column;
  padding: 46px 48px 30px;
}

.detail-travel-card .travel-info h2 {
  margin: 12px 0 16px;
  font-size: 56px;
}

.detail-travel-card .travel-info > p {
  font-size: 20px;
  line-height: 1.48;
}

.detail-travel-card .travel-facts {
  margin: 24px 0 18px;
}

.detail-travel-card .travel-facts div {
  min-height: 88px;
  padding: 16px 18px;
}

.detail-travel-card .travel-bird-row {
  margin-top: 8px;
}

.detail-travel-card .bird-pills {
  gap: 9px;
}

.detail-travel-card .bird-pills button {
  min-height: 50px;
  font-size: 15px;
}

.detail-travel-card .bird-pills img {
  width: 38px;
  height: 38px;
}

.detail-travel-card .travel-actions {
  margin-top: auto;
  padding-top: 14px;
}

.course-note {
  margin-top: 18px !important;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(47, 107, 85, 0.08);
  color: rgba(18, 51, 47, 0.7) !important;
  font-size: 16px !important;
}

.mini-map {
  position: absolute;
  left: 42px;
  bottom: 42px;
  width: 270px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(18, 51, 47, 0.16);
  backdrop-filter: blur(14px);
}

.floating-map-button {
  position: absolute;
  right: 104px;
  bottom: 86px;
  z-index: 3;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 850;
  box-shadow: var(--soft-shadow);
}

.qr-panel {
  width: 164px;
  padding: 14px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(18, 51, 47, 0.08);
  box-shadow: var(--soft-shadow);
}

.qr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(18, 51, 47, 0.65);
  font-size: 15px;
  font-weight: 900;
}

.qr-title .icon {
  width: 17px;
  height: 17px;
}

.qr-box {
  width: 132px;
  height: 132px;
  background: white;
}

/* Soft map */
.route-map {
  width: 100%;
  aspect-ratio: 1.14;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
}

.route-map svg {
  width: 100%;
  height: 100%;
}

.map-land {
  fill: rgba(47, 107, 85, 0.14);
  stroke: rgba(18, 51, 47, 0.12);
  stroke-width: 0.7;
}

.map-water {
  fill: rgba(183, 212, 221, 0.46);
}

.route-line {
  fill: none;
  stroke: rgba(18, 51, 47, 0.72);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-dot {
  fill: white;
  stroke: var(--deep);
  stroke-width: 0.8;
}

.route-label {
  fill: var(--deep);
  font-size: 3.6px;
  font-weight: 900;
  text-anchor: middle;
}

/* Course detail — guide layout: big route map (how to move) + bird spot map (where to watch) */
.course-guide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  grid-template-rows: minmax(0, 1fr);
  gap: 56px;
  padding: 78px 28px 42px;
  align-items: stretch;
}

.course-route-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.course-observe-panel {
  min-height: 0;
}

.course-route-panel .panel-head {
  flex: 0 0 auto;
}

.course-route-panel .panel-head h1 {
  margin: 10px 0 12px;
  color: var(--deep);
  font-size: 52px;
  line-height: 1.08;
}

.course-route-panel .panel-sub {
  margin: 0;
  max-width: 86%;
  color: rgba(18, 51, 47, 0.66);
  font-size: 21px;
  line-height: 1.5;
}

.course-route-map {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 18px 0 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 24%, rgba(183, 212, 221, 0.28), transparent 46%),
    rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 0 0 1px rgba(18, 51, 47, 0.06);
}

.route-arrow {
  fill: rgba(18, 51, 47, 0.72);
}

/* Course map — big zoomed segment + whole-island locator */
.sat-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 18px 0 16px;
  border-radius: 24px;
  overflow: hidden;
  /* Sea tone so any letterbox band (from "meet" fitting) reads as water,
     matching the VWorld base-map sea colour. */
  background: #b9d5e2;
  box-shadow: inset 0 0 0 1px rgba(18, 51, 47, 0.08);
}

.sat-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sat-locator {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 168px;
  height: 158px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.sat-locator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.loc-box {
  fill: rgba(232, 99, 26, 0.2);
  stroke: #e8631a;
  stroke-width: 14;
}

.sat-route-shadow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sat-route {
  fill: none;
  stroke: #e8631a;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1.5 14;
}

.sat-arrow {
  fill: #e8631a;
  stroke: #fff;
  stroke-width: 1.4;
}

.sat-marker .mk-dot {
  fill: var(--deep);
  stroke: #fff;
  stroke-width: 3;
}

.sat-start .mk-dot {
  fill: var(--green);
}

.sat-obs .mk-dot {
  fill: var(--gold);
}

.sat-via .mk-dot {
  fill: #9aa49e;
  stroke-width: 2.5;
}

.sat-via .mk-chip-text {
  fill: rgba(18, 51, 47, 0.62);
  font-weight: 700;
}

.sat-via .mk-chip {
  filter: none;
  stroke: rgba(18, 51, 47, 0.07);
}

.mk-dot-center {
  fill: #fff;
}

.mk-chip {
  fill: #fff;
  stroke: rgba(18, 51, 47, 0.1);
  stroke-width: 1;
  filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.16));
}

.mk-chip-text {
  fill: var(--deep);
  font-size: 17px;
  font-weight: 750;
  text-anchor: middle;
  letter-spacing: -0.2px;
}

.lm-badge {
  stroke: #fff;
  stroke-width: 3;
}

.lm-museum .lm-badge {
  fill: var(--deep);
}

.lm-peak .lm-badge {
  fill: #8a6a3a;
}

.lm-museum .lm-glyph {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lm-peak .lm-glyph {
  fill: #fff;
  stroke: none;
}

.lm-label {
  fill: var(--deep);
  font-size: 23px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 5;
}

.sat-compass {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.sat-legend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.sat-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep);
  font-size: 16px;
  font-weight: 800;
}

.sat-legend .legend-item i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(18, 51, 47, 0.2);
}

.sat-leg-start i { background: var(--green); }
.sat-leg-via i { background: #f08a24; }
.sat-leg-end i { background: #d64545; }

.sat-scale {
  position: absolute;
  right: 18px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
}

.sat-scale span {
  display: block;
  width: 76px;
  height: 5px;
  border: 1px solid #12332f;
  background: linear-gradient(90deg, #12332f 0 50%, #fff 50% 100%);
}

.sat-scale small {
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.sat-credit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.endpoint-dot {
  stroke: #fff;
  stroke-width: 1.1;
}

.route-start .endpoint-dot {
  fill: var(--green);
}

.route-end .endpoint-dot {
  fill: var(--gold);
}

.endpoint-label {
  fill: var(--deep);
  font-size: 4.4px;
  font-weight: 900;
  text-anchor: middle;
}

.route-legend {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(18, 51, 47, 0.7);
  font-size: 17px;
  font-weight: 800;
}

.legend-item i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--deep);
}

.legend-start i {
  background: var(--green);
  border-color: var(--green);
}

.legend-end i {
  background: var(--gold);
  border-color: var(--gold);
}

.route-facts {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.route-facts div {
  min-height: 92px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(247, 243, 235, 0.82);
}

.route-facts span {
  display: block;
  margin-bottom: 7px;
  color: rgba(18, 51, 47, 0.5);
  font-size: 15px;
  font-weight: 850;
}

.route-facts strong {
  color: var(--deep);
  font-size: 21px;
  line-height: 1.3;
}

.course-observe-panel {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.observe-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.observe-bird-thumb {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(18, 51, 47, 0.18);
}

.observe-head-text h2 {
  margin: 4px 0 0;
  color: var(--deep);
  font-size: 38px;
  line-height: 1.1;
}

.spot-map {
  margin: 22px 0 20px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(213, 138, 50, 0.12), transparent 50%),
    rgba(247, 243, 235, 0.7);
  box-shadow: inset 0 0 0 1px rgba(18, 51, 47, 0.06);
}

.spot-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spot-water {
  fill: rgba(183, 212, 221, 0.5);
}

.spot-land {
  fill: rgba(47, 107, 85, 0.16);
  stroke: rgba(18, 51, 47, 0.1);
  stroke-width: 0.6;
}

.spot-ridge {
  fill: none;
  stroke: rgba(18, 51, 47, 0.22);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.spot-pin-dot {
  fill: var(--accent, var(--green));
  stroke: #fff;
  stroke-width: 1.2;
}

.spot-pin-num {
  fill: #fff;
  font-size: 6px;
  font-weight: 900;
  text-anchor: middle;
}

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

.observe-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(247, 243, 235, 0.78);
}

.observe-text {
  color: var(--deep);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.observe-obs {
  background: rgba(213, 138, 50, 0.12);
  align-items: center;
}

.observe-bullet {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
}

.observe-bullet-obs {
  width: 16px;
  height: 16px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 138, 50, 0.22);
}

.observe-way-block {
  margin-top: 16px;
}

.observe-way-title {
  margin-bottom: 9px;
}

.observe-way {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.observe-way li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(18, 51, 47, 0.66);
  font-size: 18px;
  font-weight: 700;
}

.observe-way-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.5;
}

.observe-birds-row {
  margin: 8px 0 0;
}

.observe-birds-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(18, 51, 47, 0.5);
  font-size: 15px;
  font-weight: 850;
}

.observe-birds-row .bird-pills {
  flex-wrap: wrap;
  gap: 8px;
}

.route-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 7px;
}

.ro-stop {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.95);
  color: var(--deep);
  font-size: 16px;
  font-weight: 750;
}

.ro-start {
  background: rgba(47, 107, 85, 0.15);
  color: var(--green);
  font-weight: 800;
}

.ro-obs {
  background: rgba(213, 138, 50, 0.18);
  color: #a5680f;
  font-weight: 800;
}

.ro-arrow {
  color: rgba(18, 51, 47, 0.34);
  font-size: 15px;
  font-weight: 800;
}

.course-observe-panel {
  overflow-y: auto;
}

.observe-head-text h2 {
  font-size: 30px;
}

.observe-why {
  margin: 14px 0 2px;
  color: rgba(18, 51, 47, 0.7);
  font-size: 17px;
  line-height: 1.5;
}

.observe-block {
  margin-top: 10px;
}

.observe-block-title {
  margin: 0 0 8px;
  color: rgba(18, 51, 47, 0.5);
  font-size: 15px;
  font-weight: 850;
}

.observe-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.observe-text-wrap strong {
  color: var(--deep);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.25;
}

.observe-text-wrap small {
  color: rgba(18, 51, 47, 0.6);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.observe-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.observe-facts div {
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(247, 243, 235, 0.82);
}

.observe-facts span {
  display: block;
  margin-bottom: 5px;
  color: rgba(18, 51, 47, 0.5);
  font-size: 14px;
  font-weight: 850;
}

.observe-facts .nowrap {
  display: inline;
  margin: 0;
  white-space: nowrap;
}

/* Time (and season) values are longer, so give them the full width — one clean
   line instead of a wrapped, taller-than-its-neighbours cell. */
.observe-facts .fact-wide {
  grid-column: 1 / -1;
}

.observe-facts strong {
  color: var(--deep);
  word-break: keep-all;
  line-height: 1.28;
  font-size: 18px;
  line-height: 1.25;
}

.observe-notes {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(47, 107, 85, 0.09);
}

.observe-notes span {
  display: block;
  margin-bottom: 6px;
  color: rgba(18, 51, 47, 0.55);
  font-size: 14px;
  font-weight: 850;
}

.observe-notes p {
  margin: 0;
  color: rgba(18, 51, 47, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.observe-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(200, 116, 20, 0.12);
  border: 1px solid rgba(200, 116, 20, 0.32);
}

.observe-warning .warn-ic {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.4;
  color: #c26a12;
}

.observe-warning p {
  margin: 0;
  color: #8a4a08;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-line; /* honor the \n between the two warning sentences */
}

/* Bird call "listen" button — sits beside the bird name */
.bird-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.bird-title-row h1 {
  margin: 0;
}
.bird-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 11px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6b55, #1c8a5f);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(28, 107, 82, 0.26);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bird-call-btn:active { transform: scale(0.97); }
.bird-call-btn.playing { background: linear-gradient(135deg, #1c8a5f, #12735a); }
.bird-call-btn .bcb-ic {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.bird-call-btn .bcb-ic svg { width: 13px; height: 13px; fill: #fff; }
.bird-call-btn .bcb-eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 2px;
}
.bird-call-btn.playing .bcb-eq { display: inline-flex; }
.bird-call-btn .bcb-eq i {
  width: 3px;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transform-origin: bottom;
  animation: bcbEq 0.9s ease-in-out infinite;
}
.bird-call-btn .bcb-eq i:nth-child(1) { animation-delay: 0s; }
.bird-call-btn .bcb-eq i:nth-child(2) { animation-delay: 0.15s; }
.bird-call-btn .bcb-eq i:nth-child(3) { animation-delay: 0.3s; }
.bird-call-btn .bcb-eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bcbEq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.observe-when {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(47, 107, 85, 0.1);
}

.observe-when span {
  display: block;
  margin-bottom: 6px;
  color: rgba(18, 51, 47, 0.55);
  font-size: 15px;
  font-weight: 850;
}

.observe-when strong {
  color: var(--deep);
  font-size: 21px;
}

.observe-map-btn {
  margin-top: auto;
  align-self: stretch;
  min-height: 66px;
  font-size: 20px;
}

.map-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 60px;
  background: rgba(18, 51, 47, 0.5);
  backdrop-filter: blur(10px);
}

.map-sheet {
  width: min(940px, 100%);
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sheet-head h2 {
  margin: 8px 0 0;
  color: var(--deep);
  font-size: 40px;
}

.map-open-button {
  width: 100%;
  margin-top: 20px;
}

.map-sheet-nav {
  width: min(1560px, 100%);
}

.nav-total {
  margin-left: auto;
  margin-right: 18px;
  align-self: center;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: rgba(47, 107, 85, 0.1);
}

.nav-total strong {
  color: var(--deep);
  font-size: 28px;
  font-weight: 900;
}

.nav-total span {
  color: rgba(18, 51, 47, 0.66);
  font-size: 18px;
  font-weight: 750;
}

.nav-body {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 26px;
  align-items: stretch;
}

.nav-map {
  position: relative;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: #dfe8e2;
}

.elev-profile {
  margin-top: 18px;
  padding: 14px 20px 10px;
  border-radius: 18px;
  background: rgba(247, 243, 235, 0.85);
}

.ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ep-head strong {
  color: var(--deep);
  font-size: 20px;
  font-weight: 850;
}

.ep-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(18, 51, 47, 0.62);
  font-size: 14px;
  font-weight: 750;
}

.ep-key {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.ep-key-normal {
  background: #f0a04a;
}

.ep-key-hard {
  background: #d64545;
  margin-left: 10px;
}

.ep-peak {
  color: rgba(18, 51, 47, 0.55);
  font-size: 15px;
  font-weight: 750;
}

.elev-profile svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Common disclaimer under the elevation chart: times/difficulty are averages. */
.ep-note {
  margin: 8px 0 0;
  color: rgba(18, 51, 47, 0.5);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.course-route-panel .ep-note {
  margin-top: 6px;
  font-size: 12px;
}

.ep-normal {
  fill: rgba(240, 160, 74, 0.75);
}

.ep-hard {
  fill: rgba(214, 69, 69, 0.78);
}

.ep-line {
  fill: none;
  stroke: rgba(120, 44, 20, 0.55);
  stroke-width: 2;
}

.ep-base {
  stroke: rgba(18, 51, 47, 0.4);
  stroke-width: 2;
}

.ep-tick {
  stroke: rgba(18, 51, 47, 0.18);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.ep-dot {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 4;
}

.ep-name {
  fill: var(--deep);
  font-size: 15.5px;
  font-weight: 800;
}

.nav-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nav-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 51, 47, 0.6);
  font-size: 12px;
  font-weight: 650;
}

.nav-route-casing {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-route {
  fill: none;
  stroke: #1c6b52;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-connector {
  stroke: #1c6b52;
  opacity: 0.55;
  stroke-linecap: round;
}

.sat-connector {
  fill: none;
  stroke: #1c6b52;
  opacity: 0.6;
  stroke-linecap: round;
}

.nav-steps {
  display: flex;
  flex-direction: column;
  padding: 10px 6px;
  overflow-y: auto;
}

.nav-step-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ns-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 4px solid var(--green);
  background: #fff;
}

.ns-dot.ns-obs {
  border-color: var(--gold);
  width: 20px;
  height: 20px;
}

.ns-dot.ns-via {
  border-color: #9aa49e;
  width: 15px;
  height: 15px;
}

.nav-step-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav-step-name strong {
  color: var(--deep);
  font-size: 22px;
  font-weight: 850;
}

.nav-step-name small {
  color: rgba(18, 51, 47, 0.5);
  font-size: 15px;
  font-weight: 750;
}

.nav-step-name .ns-obs-tag {
  color: #a5680f;
}

.nav-leg {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  margin-left: 8px;
}

.nav-leg-line {
  flex: 0 0 auto;
  width: 3px;
  height: 44px;
  border-radius: 3px;
  background: rgba(28, 107, 82, 0.35);
}

.nav-leg-info {
  color: rgba(18, 51, 47, 0.72);
  font-size: 17px;
  font-weight: 750;
}

.nav-leg-info em {
  font-style: normal;
  color: #a5680f;
}

.nav-steps .map-open-button {
  margin-top: auto;
}

.route-qr {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 51, 47, 0.1);
}

.rq-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: rgba(18, 51, 47, 0.66);
  font-size: 15px;
  font-weight: 750;
}

.rq-caption svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.rq-row {
  display: flex;
  gap: 14px;
}

.rq-item {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(18, 51, 47, 0.08);
}

.rq-item span {
  color: var(--deep);
  font-size: 15px;
  font-weight: 800;
}

.rq-box img,
.rq-box canvas {
  display: block;
}

/* Merged course detail: elevation profile under the map, compact timeline +
   QR handoff in the right panel (old "지도 열기" overlay folded in). */
.course-route-panel .elev-profile {
  flex: 0 0 auto;
  /* Top gap pushes the chart down from the map (the map is flex:1 and absorbs
     it); 30px bottom keeps the block's bottom lined up with the QR block. */
  margin: 26px 0 30px;
  padding: 10px 16px 20px;
}

.course-route-panel .ep-head {
  margin-bottom: 3px;
}

.course-route-panel .ep-head strong {
  font-size: 17px;
}

.course-route-panel .ep-legend,
.course-route-panel .ep-peak {
  font-size: 13px;
}

.course-steps {
  margin-top: 12px;
  /* Grow to absorb leftover panel space, spreading the stops out so the
     itinerary reads roomily and the facts/QR settle at the bottom.
     min-height:auto (the flex default) keeps it from ever shrinking below
     its own content — otherwise long itineraries (course F) crush and overlap. */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.course-steps .nav-step-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.course-steps .nav-leg {
  flex: 1 1 auto;
}

.course-steps .nav-leg-line {
  height: 100%;
  min-height: 18px;
}

.course-steps .nav-step-name strong {
  font-size: 19px;
}

.course-steps .nav-step-name small {
  font-size: 13px;
}

.course-steps .nav-leg {
  padding: 2px 0;
  margin-left: 7px;
}

.course-steps .nav-leg-info {
  font-size: 15px;
}

.course-steps .ns-dot {
  width: 15px;
  height: 15px;
  border-width: 3.5px;
}

.course-steps .ns-dot.ns-obs {
  width: 17px;
  height: 17px;
}

.course-steps .ns-dot.ns-via {
  width: 13px;
  height: 13px;
}

.course-observe-panel .bird-pills {
  gap: 8px;
}

.course-observe-panel .bird-pills button {
  min-height: 42px;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  font-size: 14.5px;
}

.course-observe-panel .bird-pills img {
  width: 32px;
  height: 32px;
}

.course-observe-panel .observe-facts {
  margin-top: 8px;
}

.course-observe-panel .observe-facts > div {
  padding: 4px 13px;
}

.course-observe-panel .observe-notes {
  margin-top: 8px;
  padding: 8px 14px;
}

.course-observe-panel .observe-warning {
  margin-top: 8px;
  padding: 8px 14px;
}

.course-observe-panel .route-qr {
  margin-top: 6px;
  padding-top: 8px;
  flex: 0 0 auto;
}

.course-observe-panel .rq-caption {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.course-observe-panel .rq-item {
  padding: 9px 8px 7px;
  gap: 5px;
}

.course-observe-panel .rq-item span {
  font-size: 13.5px;
}

/* English strings run long — tighten the merged detail panel so nothing wraps
   the panel past its fixed kiosk height. */
html[lang="en"] .course-steps .nav-step-name strong {
  font-size: 15.5px;
}

html[lang="en"] .course-steps .nav-step-name small,
html[lang="en"] .course-steps .ns-obs-tag {
  font-size: 11.5px;
}

html[lang="en"] .course-steps .nav-leg-info {
  font-size: 13px;
}

html[lang="en"] .course-observe-panel .observe-facts strong {
  font-size: 15px;
}

html[lang="en"] .course-observe-panel .observe-notes p {
  font-size: 14px;
  line-height: 1.35;
}

html[lang="en"] .course-observe-panel .rq-caption {
  font-size: 12px;
}

html[lang="en"] .course-observe-panel {
  padding: 26px 30px 30px;
}

html[lang="en"] .course-observe-panel .observe-head-text h2 {
  font-size: 26px;
}

html[lang="en"] .course-steps .nav-leg {
  padding: 1px 0;
}

.oneway-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(47, 107, 85, 0.14);
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  vertical-align: 2px;
}

.loading-screen {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 24px;
}
