
/* ─────────────────────────────────────────────
   히어로
───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/portfolio/stay/stay-v1-poolvilla/images/hero__bg.png') center / cover no-repeat;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.50) 45%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 40px;
}

.hero__label {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  color: var(--color-gold);
  margin-bottom: 2rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.hero__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  font-weight: var(--fw-light);
  line-height: 2;
  margin-bottom: 6rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
}
.hero__actions .btn--outline {
  font-weight: var(--fw-regular);
  border: none;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  letter-spacing: var(--ls-widest);
}
.hero__actions .btn--outline:hover {
  color: var(--color-gold);
}


/* ─────────────────────────────────────────────
   소개 (About)
───────────────────────────────────────────── */
.about {
  padding: var(--space-2xl) 0;
  display: flex;
  align-items: center;
  background: var(--color-bg-primary);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 7vw, 12rem);
  align-items: center;
}

.about__desc {
  color: var(--color-text-secondary);
  font-weight: var(--fw-light);
  line-height: 1.95;
  margin-top: 4rem;
  font-size: var(--text-md);
}

.about__stats {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__stat-num {
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  color: var(--color-gold);
  opacity: 0.8;
  margin-left: 5px;
  line-height: 1;
}
.about__stat-star {
  font-size: 0.8em;
}
.about__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-normal);
}

.about__image-wrap {
  position: relative;
}
.about__image {
  position: relative;
  z-index: 1;
  height: 66rem;
  overflow: hidden; 
}

/* Scale Entrance / Exit */
@keyframes scale-entrance {
  from { transform: scale(1.08); opacity: 0; }
  to   { transform: scale(1.0);  opacity: 1; }
}
@keyframes scale-exit {
  from { transform: scale(1.0);  opacity: 1; }
  to   { transform: scale(1.0); opacity: 0; }
}

.about__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
}
.about__slide--active {
  z-index: 2;
  animation: scale-entrance 1.0s cubic-bezier(0.25, 0, 0.2, 1) forwards;
}
.about__slide--exit {
  z-index: 1;
  animation: scale-exit 0.8s ease forwards;
}


/* ─────────────────────────────────────────────
   객실 (Rooms)
───────────────────────────────────────────── */
.rooms {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
}
.room__desc {
  color: var(--color-text-secondary);
  font-weight: var(--fw-light);
  line-height: 1.95;
  margin-top: 4rem;
  font-size: var(--text-md);
}
.rooms__grid {
  display: flex;
  margin: 2rem 0;
  gap: 3rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card {
  flex: 0 0 calc((100% - 6rem) / 3);
  background: var(--color-bg-tertiary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.room-card__image {
  position: relative;
  overflow: hidden;
}
.room-card__image img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.room-card:hover .room-card__image img {
  transform: scale(1.06);
}
.room-card__overlay {
  position: absolute;
  inset: 0;
  transition: var(--transition);
}
.room-card:hover .room-card__overlay {
  background: rgba(0, 0, 0, 0.1);
}

.room-card__body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.room-card__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}
.room-card__size {
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.04em;
}
.room-card__divider {
  height: 1px;
  background: var(--color-border);
  margin: 3rem 0;
}
.room-card__desc {
  flex: 1; 
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: 4rem;
}
.room-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.room-card__price-num {
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}
.room-card__view {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}
.room-card:hover .room-card__view {
  color: var(--color-gold);
}

/* ─────────────────────────────────────────────
   편의시설 (Amenities)
───────────────────────────────────────────── */
.amenities {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.amenity-item {
  background: var(--color-bg-primary);
  padding: 5.5rem 4rem;
  text-align: center;
}
.amenity-item:hover {
  background: var(--color-bg-tertiary);
}
.amenity-item__icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  line-height: 1;
}
.amenity-item h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.amenity-item p {
  font-size: var(--text-md);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   갤러리 (Gallery)
───────────────────────────────────────────── */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 38rem 30rem;
  gap: 5px;
  margin-top: 4.5rem;
}

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

.gallery__item--tall {
  grid-row: 1 / 3;
}

.gallery__item--wide {
  grid-column: 2 / 4;
}
.gallery__item--wide img {
  object-position: center 80%;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

/* 갤러리 도트 네비게이션 */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}
.gallery__dot--active {
  background: var(--color-gold);
  transform: scale(1.4);
}

/* ─────────────────────────────────────────────
   예약 (Booking)
───────────────────────────────────────────── */
.booking {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
  overflow: hidden;
}

.booking__bg {
  position: absolute;
  inset: 0;
  background: url('/portfolio/stay/stay-v1-poolvilla/images/c-main.png') center / cover no-repeat;
  opacity: 0.1;
}

.booking__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.booking__form {
  max-width: 100rem;
  margin: 5rem auto;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid var(--color-border);
  padding: 5rem 4rem;
}

.booking__form-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-input-wrap {
  position: relative;
}
.form-input-wrap .flatpickr-wrapper {
  width: 100%;
}
.form-input-wrap .form-input {
  padding-right: 42px;
}
.form-input {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--color-text-muted);
  padding: 13px 16px;
  font-size: var(--text-sm);
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s ease;
  color-scheme: dark;
}
.form-input::placeholder {
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  font-size: var(--text-xs);
}
.form-input:focus {
  border-color: var(--color-gold);
}
.form-input__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}
.booking__form-row .btn {
  padding: 13px 32px;
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
  flex-shrink: 0;
}
/* 커스텀 인원 드롭다운 */
.custom-select {
  position: relative;
}
.custom-select__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--color-text-muted);
  padding: 13px 16px;
  font-size: var(--text-sm);
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.3s ease;
  user-select: none;
}
.custom-select.open .custom-select__trigger {
  border-color: var(--color-gold);
}
.custom-select__arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}
.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}
.custom-select__options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid var(--color-gold);
  border-top: none;
  z-index: 200;
}
.custom-select.open .custom-select__options {
  display: block;
}
.custom-select__option {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-select__option:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-gold);
}
.custom-select__option--active {
  color: var(--color-gold);
}

/* Flatpickr 커스텀 */
.flatpickr-calendar {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  border-radius: 0;
  font-family: 'Noto Sans KR', sans-serif;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  border-bottom-color: rgba(201, 168, 76, 0.25);
}
.flatpickr-months {
  background: #0a0a0a;
  padding: 8px 0;
}
.flatpickr-months .flatpickr-month {
  color: #c9a84c;
  fill: #c9a84c;
}
.flatpickr-current-month {
  color: #c9a84c;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.flatpickr-current-month .numInputWrapper span {
  border-color: rgba(201, 168, 76, 0.2);
}
.flatpickr-current-month .numInputWrapper span svg path {
  fill: #c9a84c;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: rgba(201, 168, 76, 0.6);
  fill: rgba(201, 168, 76, 0.6);
  transition: fill 0.2s ease;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #c9a84c;
  fill: #c9a84c;
}
.flatpickr-weekdays {
  background: #0a0a0a;
}
span.flatpickr-weekday {
  background: #0a0a0a;
  color: rgba(201, 168, 76, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.flatpickr-days {
  border-left: none;
  border-right: none;
}
.dayContainer {
  border-right: none;
}
.flatpickr-day {
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.flatpickr-day:hover {
  background: rgba(201, 168, 76, 0.15);
  color: #c9a84c;
  border: none;
}
.flatpickr-day.today {
  border: 1px solid #c9a84c !important;
  color: #c9a84c;
  background: transparent;
}
.flatpickr-day.today:hover {
  background: rgba(201, 168, 76, 0.15);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #0a0a0a;
  font-weight: 600;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255, 255, 255, 0.15);
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, 0.2);
}

/* ─────────────────────────────────────────────
   오시는 길
───────────────────────────────────────────── */
.location {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
}

.location__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8rem;
  align-items: start;
}

.location__map {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.location__map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  filter: grayscale(30%) brightness(0.85);
}
.location__map-btns {
  padding-top: 30px;
  display: flex;
  gap: 3rem;
}
.location__map-btns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: var(--ls-normal);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--color-gold);
  transition: var(--transition);
}
.location__map-btns a:hover {
  color: var(--color-gold-light);
  border-bottom-color: var(--color-gold-light);
}
.location__map-btns i {
  font-size: var(--text-sm);
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.location__block {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.location__block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.location__label {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  color: var(--color-gold);
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.location__address-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  letter-spacing: var(--ls-normal);
}

.location__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.location__list li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--fw-regular);
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}
.location__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 10px;
  top: 6px;
}


/* ─────────────────────────────────────────────
   모바일 반응형
───────────────────────────────────────────── */

/* Laptop 1024px */
@media (max-width: 1024px) {
  
  /* 히어로 */
  /* 섹션 공통 */

  /* 소개 */
  .about__inner{
  column-gap: clamp(2rem, 5vw, 12rem);
  }
  .about__desc{
    font-size: var(--text-sm);
  }
  .about__image {
    height: 54rem;
  }
  .about__stat-num {
    font-size: var(--text-md);
  }
  .about__stat-label {
    font-size: var(--text-2xs);
  }  

  /* 객실 */
  .room-card__image img {
  height: 28rem;
  }
  .room__desc{
    font-size: var(--text-sm);
  }
  .rooms__grid {
    gap: 1.5rem;
  }
  .room-card {
    flex: 0 0 calc((100% - 3rem) / 3);
  }
  .room-card__body {
    padding: 3rem 2rem;
  }  
  .room-card__title {
    font-size: 2.5rem;
  }
  .room-card__size {
    font-size: var(--text-xs);
    letter-spacing: 0.02em;  
  }
  .room-card__desc {
    font-size: var(--text-xs);
    margin-bottom: 3rem;  
  }
  .room-card__price-num {
    font-size: var(--text-xs);
  }
  .room-card__view {
    font-size: var(--text-xs);
  }

  /* 어메니티 */
  .amenity-item {
  padding: 4.5rem 2rem;
  }
  .amenity-item h4 {
  font-size: var(--text-md);
  }
  .amenity-item p {
  font-size: var(--text-sm);
  }  

  /*갤러리 */
  .gallery__grid {
    grid-template-rows: 34rem 26rem;
  }
  .location__map iframe {
    height: 380px;
  }

  /* 로케이션 */
  .location__grid {
    gap: 5rem;
  }
}

/* Tablet 768px */
@media (max-width: 768px) {
 
  /* 히어로 */
  .hero__content {
    padding: 0 2.4rem;
  }
  .hero__label {
    font-size: var(--text-lg);
  }
  .hero__title {
    font-size: var(--text-4xl);
  }
  .hero__subtitle {
  font-size: var(--text-sm);
  }

  /* 섹션 공통 */

  /* 소개 */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about__text {
    order: 1;
  }
  .about__image-wrap {
    order: 2;
  }
  .about__image {
    height: 42rem;
  }
  .about__stats {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  /* 객실 */
  .rooms__grid {
    flex-wrap: wrap;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: initial;
    gap: 3rem;
    padding: 0 6vw;  
  }
  .room-card {
    flex: none;
    width: 100%;
  }
  .room-card__image img {
    height: 30rem;
  }


  /* 어메니티 */
  .amenities__grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* 갤러리 */
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 25rem 25rem 25rem;
  }
  .gallery__item--tall {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
  }
  .gallery__item--wide {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
  .gallery__dot {
  width: 6px;
  height: 6px;
  }

  /* 예약 */
  .booking__form {
    padding: 4rem 3.2rem;
  }
  .booking__form-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .form-group label {
    font-size: var(--text-xs);
    padding-top: 1rem;
  }
  .form-input {
    font-size: var(--text-xs);
  }
  .form-input::placeholder {
    font-size: var(--text-2xs);
  }
  .booking__form-row .btn {
    font-size: var(--text-xs);
    width: 100%;
    margin: 2rem 0 1rem 0;
  }

  /* 오시는 길 */
  .location__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .location__map{
    gap: 0;
  }
  .location__map-btns a {
    font-size: var(--text-xs);  
  }
  .location__label {
    font-size: var(--text-sm);
    margin: 0;
  }
  .location__address-text {
    font-size: var(--text-xs);
    margin: 0;    
  }
  .location__list li{
    font-size: var(--text-xs);    
  }
}
/* 505px */
@media (max-width: 505px){
  .amenity-item {
    padding: 4.5rem 1rem;
  }        
  .amenity-item p {
  font-size: var(--text-xs);
  }  
}
/* Mobile L 430px */
@media (max-width: 430px) {
  
  /* 히어로 */
  .hero__content {
    padding: 0 0;
  }
  .hero__label {
    font-size: var(--text-md);
  }
  .hero__title {
    font-size: 5rem;
  }
  .hero__subtitle {
    font-size: var(--text-xs);
  }

  /* 섹션 공통 */
  .section-label{
    font-size: var(--text-lg);
  }
  .section-title {
    font-size: var(--text-2xl);
  }

  /* 소개 */
  .about {
    padding: var(--space-xl) 0;
  }
  .about__desc{
    font-size: var(--text-xs);
  }
  .about__image {
    height: 30rem;
  }
  .about__stats {
    gap: 2.4rem;
    flex-wrap: wrap;
  }

  /* 객실 */
  .room__desc{
    font-size: var(--text-xs);
  }
  .room-card__image img {
    height: 24rem;
  }

  /* 어메니티 */
  .amenities__grid {
    grid-template-columns: 1fr;
  }
  .amenity-item {
    padding: 2rem;
  }

  /* 갤러리 */
  .gallery__grid {
    grid-template-rows: 20rem 20rem 20rem;
  }

  /* 예약 */
  .booking__form {
    padding: 3rem 2.4rem;
  }
  .booking__form-row {
    flex-direction: column;
  }
  .form-group {
    flex: none;
    width: 100%;
  }
  .booking__form-row .btn {
    width: 100%;
  }

  /* 오시는 길 */
  .location__map-btns {
    gap: 2rem;
  }

}

/* Mobile S 360px */
@media (max-width: 360px) {
  .about__stats {
    gap: 1.6rem;
  }
  .gallery__grid {
    grid-template-rows: 15rem 15rem 15rem;
  }
    /* 오시는 길 */
  .location__map-btns a {
    font-size: var(--text-2xs);
  }

}

