/* ==========================================================================
   소백산가는길 펜션 - Renewal 6 Stylesheet (Mobile-first)
   Brand: Forest Green + Gold Accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&family=Nanum+Pen+Script&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #4A7C59;
  --color-accent: #8FB996;
  --color-warm: #C9A96E;
  --color-warm-light: #e8d9b5;
  --color-text: #3a3a3a;
  --color-light: #777777;
  --color-border: #d8d8d8;
  --color-bg: #ffffff;
  --color-bg-alt: #F7F5F0;
  --color-overlay: rgba(0,0,0,0.6);
  --font-body: 'Nanum Gothic', sans-serif;
  --font-accent: 'Nanum Pen Script', cursive;
  --max-width: 1200px;
  --nav-height: 60px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.anim-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.anim-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.anim-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.anim-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.anim-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.anim-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.anim-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .anim-fade,
  .anim-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header__logo {
  height: 45px;
  width: auto;
}

.header__contact {
  text-align: center;
}

.header__phone {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.header__address {
  font-size: 0.8rem;
  color: var(--color-light);
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--nav-height);
}

.nav__logo {
  height: 32px;
  width: auto;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 280px;
  height: 100vh;
  background: var(--color-bg);
  padding: 80px 30px 30px;
  transition: right 0.3s ease;
  box-shadow: -2px 0 15px rgba(0,0,0,0.1);
  z-index: 100;
}

.nav__menu.active {
  right: 0;
}

.nav__menu a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--color-primary);
}

.nav__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

.nav__overlay.active {
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__text {
  color: #fff;
  text-align: center;
  padding: 0 20px;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 600px;
  line-height: 1.8;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-warm);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--color-light);
  margin-bottom: 30px;
  margin-top: 12px;
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  background: var(--color-bg);
}

.intro__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.intro__greeting {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.intro__poem {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  line-height: 2;
  color: var(--color-text);
}

.intro__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.intro__images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

.intro__images img:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Facilities
   ========================================================================== */
.facilities {
  background: var(--color-bg-alt);
}

.facilities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.facility-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  transition: box-shadow 0.2s ease;
}

.facility-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.facility-card__label {
  font-weight: 700;
  color: var(--color-primary);
  min-width: 75px;
  font-size: 0.9rem;
}

.facility-card__value {
  color: var(--color-text);
  font-size: 0.9rem;
}

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

.facilities__images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery__grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery__grid img:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Rooms
   ========================================================================== */
.rooms {
  background: var(--color-bg);
}

.room-card {
  margin-bottom: 35px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  border-radius: 6px;
}

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

.room-card__gallery {
  position: relative;
  overflow: hidden;
}

.room-card__main-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.room-card__prev,
.room-card__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  padding: 12px 10px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
  line-height: 1;
}

.room-card__prev:hover,
.room-card__next:hover {
  background: rgba(0,0,0,0.65);
}

.room-card__prev { left: 0; }
.room-card__next { right: 0; }

.room-card__thumbs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f0f0f0;
}

.room-card__thumbs img {
  flex: 1;
  min-width: 0;
  height: 55px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.room-card__thumbs img:hover,
.room-card__thumbs img.active {
  opacity: 1;
}

.room-card__info {
  padding: 18px;
}

.room-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.room-card__detail {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 5px;
  line-height: 1.7;
}

.room-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-gallery,
.btn-reserve {
  flex: 1;
  padding: 11px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-gallery {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-gallery:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-reserve {
  background: var(--color-warm);
  color: #fff;
  border: 1px solid var(--color-warm);
  display: inline-block;
}

.btn-reserve:hover {
  background: #b8953d;
  border-color: #b8953d;
}

/* ==========================================================================
   Events
   ========================================================================== */
.events {
  background: var(--color-bg-alt);
}

/* Featured Event Card */
.event-featured {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-warm);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.event-featured__badge {
  display: inline-block;
  background: var(--color-warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.event-featured__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.event-featured__desc {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.6;
}

.event-featured__link {
  display: inline-block;
  color: var(--color-warm);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.event-featured__link:hover {
  color: #b8953d;
}

.event-featured__list {
  font-size: 0.85rem;
  color: var(--color-light);
  line-height: 1.8;
  padding-left: 0;
}

.event-featured__list li::before {
  content: '- ';
}

/* Deal Cards Grid */
.event-deals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.event-deal-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-deal-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.event-deal-card__icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.event-deal-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.event-deal-card__price {
  font-size: 0.85rem;
  color: var(--color-text);
}

.event-deal-card__price del {
  color: var(--color-light);
  margin-right: 4px;
}

.event-deal-card__price strong {
  color: var(--color-warm);
}

/* ==========================================================================
   Travel (Carousel)
   ========================================================================== */
.travel {
  background: var(--color-bg);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  padding: 0 4px;
}

.travel-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
}

.travel-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #eee;
}

.travel-card__body {
  padding: 14px 16px;
}

.travel-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.travel-card__desc {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* Carousel Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(74,124,89,0.85);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__arrow:hover {
  background: rgba(74,124,89,1);
}

.carousel__arrow--prev {
  left: 8px;
}

.carousel__arrow--next {
  right: 8px;
}

/* Carousel Dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.carousel__dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact {
  background: var(--color-bg-alt);
}

.contact__form {
  max-width: 600px;
  margin: 0 auto;
}

.contact__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.contact__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s ease;
  border-radius: 4px;
  -webkit-appearance: none;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact__textarea {
  height: 130px;
  resize: vertical;
}

.contact__captcha {
  margin: 12px 0;
}

.contact__captcha img {
  display: inline-block;
}

.contact__submit {
  width: 100%;
  padding: 13px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact__submit:hover {
  background: #3d6a4b;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #2d2d2d;
  color: #ccc;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  background: #000;
}

.modal__image {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.modal__close {
  position: absolute;
  top: -32px;
  right: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  background: none;
  border: none;
}

.modal__close:hover {
  opacity: 0.7;
}

.modal__prev,
.modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  border: none;
  line-height: 1;
  transition: background 0.2s ease;
}

.modal__prev:hover,
.modal__next:hover {
  background: rgba(0,0,0,0.7);
}

.modal__prev { left: 0; }
.modal__next { right: 0; }

.modal__thumbs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #111;
  overflow-x: auto;
}

.modal__thumbs img {
  height: 50px;
  width: auto;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.modal__thumbs img:hover,
.modal__thumbs img.active {
  opacity: 1;
}

/* ==========================================================================
   Tablet (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .header__contact {
    text-align: right;
  }

  .hero {
    height: 75vh;
  }

  .hero__text {
    font-size: 1.5rem;
  }

  .section-inner {
    padding: 60px 30px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .intro__content {
    flex-direction: row;
    gap: 40px;
  }

  .intro__text {
    flex: 1;
  }

  .intro__images {
    flex: 1;
  }

  .intro__poem {
    font-size: 1.4rem;
  }

  .facilities__grid {
    grid-template-columns: 1fr 1fr;
  }

  .room-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .room-card__main-img {
    aspect-ratio: auto;
    height: 100%;
  }

  .room-card__gallery {
    display: flex;
    flex-direction: column;
  }

  .room-card__thumbs {
    margin-top: auto;
  }

  .room-card__thumbs img {
    height: 50px;
  }

  /* Carousel: 2 slides visible */
  .carousel__slide {
    flex: 0 0 50%;
  }

  .travel__grid {
    grid-template-columns: 1fr 1fr;
  }

  .event-deals {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__field {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .contact__label {
    min-width: 100px;
    margin-bottom: 0;
    text-align: right;
  }

  .modal__content {
    max-width: 85vw;
  }

  .modal__image {
    max-width: 85vw;
    max-height: 82vh;
  }

  .modal__thumbs img {
    height: 60px;
  }
}

/* ==========================================================================
   Desktop (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    box-shadow: none;
    display: flex;
    gap: 0;
  }

  .nav__menu a {
    display: inline-block;
    padding: 8px 18px;
    border-bottom: none;
    font-size: 0.9rem;
    position: relative;
  }

  .nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
  }

  .nav__menu a:hover::after,
  .nav__menu a.active::after {
    width: 70%;
  }

  .nav__overlay {
    display: none !important;
  }

  .hero {
    height: 100vh;
    max-height: 800px;
  }

  .hero__text {
    font-size: 1.8rem;
  }

  .section-inner {
    padding: 80px 40px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .intro__poem {
    font-size: 1.5rem;
  }

  .facilities__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .room-card__thumbs img {
    height: 65px;
  }

  .room-card__info {
    padding: 25px;
  }

  .room-card__name {
    font-size: 1.15rem;
  }

  /* Carousel: 3 slides visible */
  .carousel__slide {
    flex: 0 0 33.333%;
  }

  .event-deals {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-featured {
    padding: 30px;
  }

  .travel-card__desc {
    font-size: 0.85rem;
  }

  .modal__content {
    max-width: 1000px;
  }

  .modal__thumbs img {
    height: 70px;
  }
}
