/* =========================================================
   별이 쏟아지는 민박 - Style Sheet
   Concept: Deep navy night sky + gold/white stars + valley freshness
========================================================= */

:root{
  --navy-deepest: #05070f;
  --navy-deep: #0a0f24;
  --navy: #10173a;
  --navy-light: #1b2350;
  --navy-lighter: #29315e;
  --gold: #e8c477;
  --gold-soft: #f3dca0;
  --white: #f8f8f6;
  --white-dim: #cdd2e3;
  --text-muted: #a9afc9;
  --valley-teal: #6fc3c0;
  --shadow-strong: 0 20px 60px rgba(0,0,0,0.45);
  --radius: 16px;
  --transition: 0.4s cubic-bezier(.25,.8,.25,1);
}

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

html{ scroll-behavior: smooth; font-size: 17px; }

body{
  margin:0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy-deepest);
  color: var(--white-dim);
  line-height: 1.7;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: 'Gowun Batang', 'Noto Sans KR', serif; color: var(--white); margin:0; }

/* ---------- 배경 별 캔버스 ---------- */
#star-canvas{
  position: fixed;
  top:0; left:0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.section-inner, .hero-content, .site-header, .site-footer{
  position: relative;
  z-index: 2;
}

/* ---------- 공통 섹션 ---------- */
.section{
  position: relative;
  padding: 88px 20px;
  overflow: hidden;
}
.section-inner{
  max-width: 1100px;
  margin: 0 auto;
}
.section-heading{
  text-align: center;
  margin-bottom: 42px;
}
.section-heading.light h2, .section-heading.light .section-desc{
  color: var(--white);
}
.section-tag{
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.section-tag i{ margin-right: 6px; font-size: 0.7rem; }
.section-heading h2{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
  line-height: 1.4;
}
.section-desc{
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* ---------- 버튼 ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold), #cf9f4d);
  color: #241a05;
  box-shadow: 0 10px 30px rgba(232,196,119,0.35);
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(232,196,119,0.5);
}
.btn-outline{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover{
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.btn.small{ padding: 10px 20px; font-size: 0.85rem; margin-top: 18px; }

/* ---------- 헤더 ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  background: rgba(5,7,15,0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled{
  background: rgba(5,7,15,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  padding: 10px 0;
}
.header-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo{
  font-family: 'Gowun Batang', serif;
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}
.brand-logo span{ color: var(--gold); }
.main-nav ul{
  display: flex;
  gap: 30px;
}
.nav-link{
  font-size: 0.92rem;
  color: var(--white-dim);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-link::after{
  content:'';
  position: absolute;
  left:0; bottom:-2px;
  width:0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover{ color: var(--gold); }
.nav-link:hover::after{ width: 100%; }
.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.menu-toggle span{
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity: 0; }
.menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero-section{
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transform: scale(1);
  filter: brightness(0.5) saturate(1.05);
  transition: opacity 2s ease;
}
.hero-bg-img.active{
  opacity: 1;
  z-index: 1;
  animation: heroKenBurns 7s ease-out forwards;
}
@keyframes heroKenBurns{
  from{ transform: scale(1); }
  to{ transform: scale(1.09); }
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at center, rgba(5,7,15,0.45) 0%, transparent 70%),
    linear-gradient(180deg, rgba(5,7,15,0.8) 0%, rgba(5,7,15,0.6) 42%, rgba(5,7,15,0.92) 100%);
}
.hero-content{
  max-width: 780px;
  padding: 0 24px;
  z-index: 3;
}
.hero-eyebrow{
  color: var(--gold-soft);
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
  text-shadow: -1px -1px 3px rgba(0,0,0,0.9), 1px -1px 3px rgba(0,0,0,0.9), -1px 1px 3px rgba(0,0,0,0.9), 1px 1px 3px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}
.hero-title{
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--white);
  line-height: 1.25;
  text-shadow: -1px -1px 4px rgba(0,0,0,0.95), 1px -1px 4px rgba(0,0,0,0.95), -1px 1px 4px rgba(0,0,0,0.95), 1px 1px 4px rgba(0,0,0,0.95), 0 10px 40px rgba(0,0,0,0.6);
  margin-bottom: 24px;
}
.hero-title span{
  color: var(--gold);
  position: relative;
}
.hero-catch{
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--white-dim);
  margin-bottom: 32px;
  font-weight: 300;
  text-shadow: -1px -1px 3px rgba(0,0,0,0.9), 1px -1px 3px rgba(0,0,0,0.9), -1px 1px 3px rgba(0,0,0,0.9), 1px 1px 3px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.7);
}
.hero-buttons{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-down{
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-dim);
  z-index: 3;
  animation: bounce 2.2s infinite;
}
.scroll-down span{
  width:1px; height: 34px;
  background: linear-gradient(180deg, transparent, var(--white-dim));
}
@keyframes bounce{
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(10px); }
}

/* ---------- 주변(Around) ---------- */
.around-section{ background: var(--navy-deep); }
.portrait-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portrait-item{
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-strong);
}
.portrait-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portrait-item:hover img{ transform: scale(1.06); }
.portrait-item::after{
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset:0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(5,7,15,0);
  opacity: 0;
  font-size: 1.4rem;
  transition: all var(--transition);
}
.portrait-item:hover::after{
  opacity: 1;
  background: rgba(5,7,15,0.4);
}

/* ---------- Rooms (하나의 프레임에서 순환하는 쇼케이스) ---------- */
.rooms-section{ background: var(--navy-deepest); }
.room-showcase-frame{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16/9;
}
.room-showcase-img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.room-showcase-img.active{
  opacity: 1;
  z-index: 1;
}
.room-showcase-prev, .room-showcase-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(5,7,15,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition);
}
.room-showcase-prev:hover, .room-showcase-next:hover{ background: rgba(5,7,15,0.8); }
.room-showcase-prev{ left: 16px; }
.room-showcase-next{ right: 16px; }
.room-showcase-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.room-dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--transition);
}
.room-dot.active{
  background: var(--gold);
  transform: scale(1.25);
}
/* ---------- Reservation ---------- */
.reservation-section{ background: var(--navy-deepest); }
.reservation-box{
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px 36px;
  margin-bottom: 36px;
}
.reservation-row{
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.reservation-row:last-child{ border-bottom: none; }
.reservation-row i{
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232,196,119,0.1);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.reservation-row h4{ color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.reservation-row p{ color: var(--white-dim); font-size: 1rem; }
.reservation-row .account-holder{ color: var(--text-muted); font-size: 0.92rem; }
.reservation-cta{
  text-align: center;
}
.reservation-cta p{
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------- Location ---------- */
.location-section{ background: var(--navy-deep); }
.map-wrap{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
  line-height: 0;
}
.location-info{
  text-align: center;
}
.location-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--white-dim);
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.location-item i{ color: var(--gold); }
.location-buttons{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.location-buttons .btn.small{ margin-top: 0; }
.location-item a:hover{ color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-deepest);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 50px 20px 28px;
  text-align: center;
}
.footer-inner{ max-width: 700px; margin: 0 auto; }
.footer-brand{
  font-family: 'Gowun Batang', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand span{ color: var(--gold); }
.footer-desc{
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.footer-info p{
  color: var(--white-dim);
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.footer-info i{ color: var(--gold); margin-right: 8px; width: 16px; }
.footer-info a:hover{ color: var(--gold); }
.business-info{
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  margin-top: 16px !important;
}
.business-info span{ color: #6b7290; }
.footer-copy{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #6b7290;
  font-size: 0.8rem;
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(5,7,15,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.active{ display: flex; }
.lightbox img{
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close{
  top: 26px; right: 26px;
  width: 44px; height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev, .lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  font-size: 1.2rem;
}
.lightbox-prev{ left: 20px; }
.lightbox-next{ right: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{
  background: rgba(255,255,255,0.25);
}

/* ---------- 오른쪽 하단 플로팅 버튼 (예약문의 + 상단이동) ---------- */
.floating-actions{
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn-float{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #241a05;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.btn-float.visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-float:hover{ transform: translateY(-3px); }
.btn-float.visible:hover{ transform: translateY(-3px); }

/* ---------- 스크롤 애니메이션 ---------- */
[data-animate]{
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fade-up"]{ transform: translateY(40px); }
[data-animate="fade-right"]{ transform: translateX(-40px); }
[data-animate="fade-left"]{ transform: translateX(40px); }
[data-animate].in-view{
  opacity: 1;
  transform: translate(0,0);
}
[data-delay="0"]{ transition-delay: 0s; }
[data-delay="1"]{ transition-delay: 0.12s; }
[data-delay="2"]{ transition-delay: 0.24s; }
[data-delay="3"]{ transition-delay: 0.36s; }
[data-delay="4"]{ transition-delay: 0.48s; }

.mobile-only{ display: none; }

/* =========================================================
   반응형 - 태블릿
========================================================= */
@media (max-width: 1024px){
  .portrait-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   반응형 - 모바일
========================================================= */
@media (max-width: 820px){
  .main-nav{
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: rgba(8,11,26,0.98);
    backdrop-filter: blur(10px);
    padding: 100px 30px 30px;
    transition: right var(--transition);
    z-index: 105;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  .main-nav.open{ right: 0; }
  .main-nav ul{
    flex-direction: column;
    gap: 26px;
  }
  .nav-link{ font-size: 1.05rem; }
  .menu-toggle{ display: flex; }

  .mobile-only{ display: inline; }

  .section-heading{ margin-bottom: 30px; }

  .portrait-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .room-showcase-prev, .room-showcase-next{ width: 38px; height: 38px; font-size: 0.9rem; }
  .room-showcase-prev{ left: 10px; }
  .room-showcase-next{ right: 10px; }

  .section{ padding: 60px 18px; }
  .reservation-box{ padding: 6px 20px; margin-bottom: 26px; }
  .reservation-row{ flex-direction: row; align-items: center; padding: 14px 0; gap: 16px; }
  .reservation-row i{ width: 38px; height: 38px; font-size: 0.95rem; }

  .lightbox-prev, .lightbox-next{ width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 480px){
  .portrait-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-buttons{ flex-direction: column; width: 100%; }
  .hero-buttons .btn{ justify-content: center; width: 100%; }
  .brand-logo{ font-size: 1.05rem; }
}
