/* ---------------------------------------------
   GLOBAL DESIGN SYSTEM
--------------------------------------------- */

:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --text-main: #4a3c34;
  --text-sub: #7d6a5e;
  --accent: #e9c8be;
  --accent-light: #f7e7e1;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Pretendard Variable", sans-serif;
  color: var(--text-main);
  opacity: 0;
  animation: fadeBody 0.8s ease forwards;
}

@keyframes fadeBody {
  to { opacity: 1; }
}

.wrapper {
  max-width: 720px;
  margin: auto;
  padding: 24px 16px 80px;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------------------------------------------
   Header
--------------------------------------------- */

header {
  text-align: center;
  padding: 26px 0 16px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.badge {
  display: inline-flex;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-sub);
  background: var(--accent-light);
  border-radius: 999px;
}

header h1 {
  margin: 14px 0 4px;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
}

header .subtitle {
  font-size: 15px;
  color: var(--text-sub);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */

.hero {
  position: relative;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  height: 420px;
  opacity: 0;
  transform: translateY(18px);
}

.hero.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.hero-text {
  position: absolute;
  bottom: 36px;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero.fade-in .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-text p.main {
  font-family: "Noto Serif KR", serif;
  font-size: 22px;
}

/* ---------------------------------------------
   Section Default
--------------------------------------------- */

section {
  margin-top: 32px;
  padding: 26px 22px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid #f0e4dd;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 22px;
}

/* ---------------------------------------------
   Highlight
--------------------------------------------- */

.highlight {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
}

.highlight img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* ---------------------------------------------
   Info Section
--------------------------------------------- */

.info-row {
  margin-top: 14px;
  display: grid;
  gap: 20px;
}

.label {
  color: var(--text-sub);
  font-size: 14px;
}

.map-button {
  display: inline-flex;
  padding: 12px 20px;
  background: #03c75a;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 18px;
}

/* ---------------------------------------------
   Gallery
--------------------------------------------- */

.gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------
   이미지 저장 방지 + 라이트박스용 구조
--------------------------------------------- */

.img-protect {
  position: relative;
  cursor: pointer;
}

.img-protect::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.img-protect img {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------------------------------------------
   Closing Section
--------------------------------------------- */

.closing-photos {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.closing-photos img {
  border-radius: var(--radius-md);
}

/* ---------------------------------------------
   Lightbox Overlay
--------------------------------------------- */

#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#lightbox-overlay.show {
  display: flex;
}

.lightbox-img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 14px;
}
