/* Hytte guest guide — shared styles (no external deps)
   Mobile-first 360px, refined desktop reading column */

:root {
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 40, 35, 0.04), 0 8px 24px rgba(30, 40, 35, 0.06);
  --focus: 0 0 0 3px rgba(78, 99, 85, 0.35);
  --max: 28rem;
  --pad: 1.25rem;
  --nav-h: 3.25rem;
  --cta-h: 3.75rem;
  --tap: 2.75rem;
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif KR", serif;
  color-scheme: light;
}

/* Yangyang — sea / pines / soft sage / ivory */
[data-property="yangyang"] {
  --bg: #f4f1eb;
  --bg-card: #fbfaf6;
  --bg-soft: #efebe1;
  --border: #e0dac9;
  --border-strong: #c9c1ab;
  --text: #2e3a34;
  --text-soft: #5c675f;
  --text-mute: #8a938c;
  --accent: #7a9080;
  --accent-deep: #4e6355;
  --accent-tint: #e6ede7;
  --hero-overlay: linear-gradient(
    180deg,
    rgba(46, 58, 52, 0.15) 0%,
    rgba(46, 58, 52, 0.55) 100%
  );
  --focus: 0 0 0 3px rgba(78, 99, 85, 0.4);
}

/* Jeju — ocean blue / warm ivory / wood */
[data-property="jeju"] {
  --bg: #f1f5f8;
  --bg-card: #ffffff;
  --bg-soft: #e7eef3;
  --border: #d8e2ea;
  --border-strong: #b8c7d3;
  --text: #1a2b3d;
  --text-soft: #4a5f72;
  --text-mute: #8a9bab;
  --accent: #4a7a9c;
  --accent-deep: #2c4c68;
  --accent-tint: #dde8f0;
  --hero-overlay: linear-gradient(
    180deg,
    rgba(26, 43, 61, 0.12) 0%,
    rgba(26, 43, 61, 0.58) 100%
  );
  --focus: 0 0 0 3px rgba(74, 122, 156, 0.4);
}

/* Index chooser */
[data-property="index"] {
  --bg: #f6f4ef;
  --bg-card: #fdfcf9;
  --bg-soft: #eee9df;
  --border: #e2dcd0;
  --border-strong: #c9c2b4;
  --text: #2a322e;
  --text-soft: #5a645e;
  --text-mute: #8c948e;
  --accent: #6b8576;
  --accent-deep: #3f5448;
  --accent-tint: #e4ebe5;
  --focus: 0 0 0 3px rgba(63, 84, 72, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  box-shadow: var(--focus);
}

.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(var(--cta-h) + 1.5rem);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 14rem;
  background: var(--accent-deep);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__body {
  position: relative;
  margin-top: -3.5rem;
  padding: 0 var(--pad) 1.5rem;
  z-index: 1;
}

.hero__kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.4rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero__mood {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  max-width: 22rem;
}

.hero__times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.time-pill {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
}

.time-pill__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.time-pill__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}

/* Sticky section nav */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

[data-property="jeju"] .section-nav {
  background: rgba(255, 255, 255, 0.92);
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav__list {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.5rem;
  min-width: min-content;
}

.section-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mute);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
}

.section-nav a:hover {
  color: var(--accent-deep);
  background: var(--bg-soft);
}

.section-nav a[aria-current="true"] {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  background: var(--accent-tint);
}

main {
  padding: 1.25rem var(--pad) 2rem;
}

/* Notice / safety card */
.notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.notice__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}

.notice ul {
  margin: 0;
  padding-left: 1.1rem;
}

.notice li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--text);
}

.notice li:last-child {
  margin-bottom: 0;
}

.notice--access {
  margin: 0.85rem 0 0;
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-deep);
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
  padding: 0.85rem 1rem;
}

/* Sections */
.section {
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

.section__head {
  margin-bottom: 0.9rem;
}

.section__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}

.section__lead {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 1px 2px rgba(30, 40, 35, 0.03);
}

.card:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}

.card p,
.card li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.card p {
  margin: 0 0 0.5rem;
}

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

.card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.card li {
  margin-bottom: 0.35rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.card--alert {
  background: var(--accent-tint);
  border-color: var(--border-strong);
}

.card--alert h3 {
  color: var(--accent-deep);
}

/* Figures */
.figure {
  margin: 0.75rem 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.figure img {
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

.figure--tall img {
  max-height: 18rem;
  object-fit: cover;
  object-position: top;
}

.figure__cap {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* Checklist */
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.progress__bar {
  flex: 1;
  height: 0.4rem;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: var(--tap);
  padding: 0.85rem 0.95rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.checklist__item:hover {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.checklist__item:focus-visible {
  box-shadow: var(--focus);
}

.checklist__box {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
}

.checklist__item[aria-checked="true"] .checklist__box {
  background: var(--accent);
  border-color: var(--accent);
}

.checklist__item[aria-checked="true"] .checklist__box::after {
  content: "";
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.checklist__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.checklist__item[aria-checked="true"] .checklist__title {
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.checklist__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  min-height: var(--tap);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.faq summary:hover {
  background: var(--bg-soft);
}

.faq summary:focus-visible {
  box-shadow: inset var(--focus);
}

.faq__body {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.faq details[open] .faq__body {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.faq__body p {
  margin: 0 0 0.5rem;
}

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

.faq__body a {
  word-break: break-word;
}

/* Contact */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-block p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: default;
}

.btn--primary {
  background: var(--accent-deep);
  color: #fff;
  width: 100%;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  z-index: 40;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(30, 40, 35, 0.06);
}

[data-property="jeju"] .sticky-cta {
  background: rgba(255, 255, 255, 0.94);
}

.sticky-cta .btn {
  width: 100%;
}

.closing {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--accent-tint);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.closing strong {
  color: var(--accent-deep);
}

.site-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-mute);
  line-height: 1.5;
}

.site-footer a {
  color: var(--text-soft);
}

/* Index */
.index-hero {
  padding: 2.25rem var(--pad) 1.5rem;
  text-align: center;
}

.index-hero__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.index-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.index-hero p {
  margin: 0.65rem auto 0;
  max-width: 18rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.chooser {
  padding: 0 var(--pad) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chooser-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.chooser-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.chooser-card:focus-visible {
  box-shadow: var(--focus);
}

.chooser-card__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}

.chooser-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chooser-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.chooser-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.chooser-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.chooser-card p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.chooser-card__cta {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.index-note {
  margin: 0 var(--pad) 2rem;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  line-height: 1.55;
}

.link-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.link-list li {
  margin-bottom: 0.35rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.25rem 0;
  font-weight: 600;
  font-size: 0.92rem;
}

@media (min-width: 480px) {
  :root {
    --pad: 1.5rem;
    --max: 30rem;
  }

  .hero__media {
    max-height: 16rem;
  }

  .hero__body {
    margin-top: -4rem;
  }
}

@media (min-width: 768px) {
  html[data-property="yangyang"] body,
  html[data-property="index"] body {
    background: #e8e4db;
  }

  html[data-property="jeju"] body {
    background: #dfe6ec;
  }

  .page {
    margin: 1.5rem auto 2rem;
    min-height: calc(100vh - 3.5rem);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30, 40, 35, 0.1);
    border: 1px solid var(--border);
  }

  .sticky-cta {
    border-radius: 0 0 18px 18px;
  }

  .hero__media {
    max-height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .progress__fill,
  .chooser-card,
  .checklist__item,
  .faq summary::after {
    transition: none;
  }
}
