/* =========================================================
   MONGYA338 FACILITY PAGES - 302.css
   - 201.php 톤에 맞춘 시설 상세 페이지
   - Hero slider
   - Cream horizontal detail
   - Smooth double-layer SPECIAL image transition
========================================================= */

:root {
  --room-cream: #f8efdc;
  --room-sand: #d5c8ac;
  --room-text: #8b867d;
  --room-muted: #9b958a;
  --room-ink: #171717;
  --room-line: rgba(47, 43, 36, 0.2);
  --room-line-strong: rgba(47, 43, 36, 0.32);
  --room-white: #ffffff;
  --room-black: #111111;
  --room-green: #66754d;
  --room-brown: #8a735d;
}

* {
  box-sizing: border-box;
}

body,
.site-main {
  background: var(--room-cream);
}

.room-detail-section a,
.room-other a,
.special-section a {
  text-decoration: none;
}

/* =========================================================
   HERO SLIDER
========================================================= */

.room-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #15130f;
  touch-action: pan-y;
  user-select: none;
}

.room-hero-track,
.room-hero-slide,
.room-hero-overlay {
  position: absolute;
  inset: 0;
}

.room-hero-track {
  z-index: 1;
}

.room-hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.018);
  transition:
    opacity 1100ms ease,
    transform 6200ms ease;
  will-change: opacity, transform;
}

.room-hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.room-hero-overlay {
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.18) 48%,
    rgba(0, 0, 0, 0.44) 100%
  );
  pointer-events: none;
}

.room-hero-caption {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 4;
  width: min(380px, calc(100% - 48px));
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.room-hero-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.room-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
  appearance: none;
}

.room-hero-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.room-hero-prev { left: 7%; }
.room-hero-next { right: 7%; }
.room-hero-prev::before { transform: translate(-38%, -50%) rotate(-135deg); }
.room-hero-next::before { transform: translate(-62%, -50%) rotate(45deg); }

.room-hero-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  transform: translateY(-50%) scale(1.04);
}

.room-hero-status {
  display: grid;
  grid-template-columns: 44px minmax(86px, 1fr) 44px;
  align-items: center;
  gap: 18px;
  width: min(260px, 100%);
  margin: 30px auto 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.room-hero-current { text-align: right; }
.room-hero-total { text-align: left; }

.room-hero-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.room-hero-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

@keyframes roomHeroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* =========================================================
   FACILITY DETAIL - 201.php STYLE
========================================================= */

.room-detail-section {
  background: var(--room-cream);
  padding: 112px 0 104px;
  color: var(--room-text);
}

.room-detail-inner {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
}

.room-detail-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(56px, 7vw, 110px);
  align-items: start;
}

.room-detail-copy {
  max-width: 560px;
}

.room-brand {
  margin: 0 0 6px;
  color: #8a857b;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.room-detail-copy h1 {
  margin: 0;
  color: #817c73;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: 0.035em;
}

.room-detail-copy h2 {
  margin: 42px 0 0;
  color: #8a857b;
  font-size: clamp(24px, 2.8vw, 33px);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.room-lead {
  margin: 34px 0 0;
  color: #817c73;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 500;
  letter-spacing: -0.07em;
  word-break: keep-all;
}

.room-detail-side {
  width: 100%;
  padding-top: 8px;
}

.facility-info-list {
  width: 100%;
  border-top: 1px solid var(--room-line);
}

.facility-info-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--room-line);
}

.facility-info-item strong {
  color: var(--room-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.facility-info-item p {
  margin: 0;
  color: #5f5a52;
  font-size: 16px;
  line-height: 1.78;
  font-weight: 500;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.room-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 34px;
  flex-wrap: wrap;
}

.room-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(47, 43, 36, 0.32);
  color: var(--room-ink);
  background: transparent;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.room-actions a.primary {
  background: var(--room-ink);
  border-color: var(--room-ink);
  color: #fff;
}

.room-actions a:hover {
  background: var(--room-ink);
  border-color: var(--room-ink);
  color: #fff;
}

/* =========================================================
   SPECIAL OFFERS - SMOOTH DOUBLE LAYER
========================================================= */

.special-section {
  background-color: var(--room-cream);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0;
  font-family: 'Pretendard', sans-serif;
  overflow: hidden;
  border-top: 1px solid var(--room-line);
}

.special-inner-container {
  width: min(1440px, calc(100% - 80px));
  display: grid;
  grid-template-columns: 1.2fr 3.5fr 4.3fr;
  gap: 50px;
  align-items: center;
}

.special-side-panel .side-img-wrapper,
.main-img-wrapper {
  width: 100%;
  height: 580px;
  overflow: hidden;
}

.side-img-wrapper,
.main-img-wrapper {
  position: relative;
  background: var(--room-sand);
  isolation: isolate;
}

.special-img-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateZ(0) scale(1.015);
  backface-visibility: hidden;
  will-change: opacity, transform;
  transition:
    opacity 1400ms ease,
    transform 2600ms ease;
}

.special-img-layer.active {
  z-index: 2;
  opacity: 1;
  transform: translateZ(0) scale(1);
}

.special-center-panel {
  display: flex;
  justify-content: center;
  padding-left: 20px;
}

.center-content {
  width: 100%;
  max-width: 440px;
}

.top-brand-text {
  margin: 0 0 15px;
  color: var(--room-brown);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: left;
}

.section-big-title {
  margin: 0 0 48px;
  color: #fff;
  font-size: clamp(54px, 5vw, 76px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.special-copy {
  margin-bottom: 34px;
}

.special-copy h3 {
  display: inline-block;
  margin: 0 0 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--room-ink);
  color: var(--room-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
}

.special-copy p {
  margin: 0;
  color: #5f5a52;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.more-badge-wrapper {
  text-align: left;
  margin-bottom: 22px;
}

.more-badge {
  color: var(--room-ink);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid var(--room-ink);
  padding-bottom: 2px;
}

.more-badge:hover {
  color: var(--room-brown);
  border-bottom-color: var(--room-brown);
}

.facility-tab-menu {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--room-line);
  padding-bottom: 20px;
  margin-bottom: 42px;
}

.tab-btn {
  position: relative;
  display: inline-flex;
  background: none;
  border: none;
  padding: 0;
  color: var(--room-muted);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--room-ink);
  font-weight: 600;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -21px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--room-ink);
}

.special-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--room-brown);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.indicator-line {
  position: relative;
  width: 120px;
  height: 1px;
  background: var(--room-line);
  overflow: hidden;
}

.indicator-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 1px;
  background: var(--room-ink);
  transform: translateX(0);
  transition: transform 0.45s ease;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
  .room-hero {
    height: 100svh;
    min-height: 760px;
  }

  .room-hero-nav {
    display: none !important;
  }

  .room-hero-caption {
    bottom: 52px;
  }

  .room-hero-title {
    font-size: 17px;
    letter-spacing: 4px;
  }

  .room-detail-section {
    padding: 78px 0 74px;
  }

  .room-detail-inner {
    width: calc(100% - 52px);
  }

  .room-detail-row {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .room-detail-side {
    padding-top: 0;
  }

  .facility-info-item {
    grid-template-columns: 118px 1fr;
    gap: 20px;
  }

  .special-section {
    min-height: auto;
    padding: 78px 0;
  }

  .special-inner-container {
    width: calc(100% - 52px);
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .special-side-panel {
    display: none;
  }

  .special-center-panel {
    justify-content: flex-start;
    padding-left: 0;
  }

  .center-content {
    max-width: 100%;
  }

  .section-big-title {
    margin-bottom: 34px;
    font-size: 54px;
  }

  .main-img-wrapper {
    height: 420px;
  }

  .facility-tab-menu {
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 18px;
  }

  .tab-btn {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .room-hero {
    height: 100svh;
    min-height: 780px;
  }

  .room-hero-caption {
    bottom: 52px;
    width: calc(100% - 36px);
  }

  .room-hero-status {
    grid-template-columns: 34px minmax(76px, 1fr) 34px;
    gap: 12px;
    margin-top: 24px;
    font-size: 12px;
  }

  .room-detail-section {
    padding: 64px 0 62px;
  }

  .room-detail-inner {
    width: calc(100% - 48px);
  }

  .room-detail-row {
    gap: 52px;
  }

  .room-brand {
    font-size: 18px;
  }

  .room-detail-copy h1 {
    font-size: 52px;
  }

  .room-detail-copy h2 {
    margin-top: 34px;
    font-size: 25px;
  }

  .room-lead {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.7;
  }

  .facility-info-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .facility-info-item p {
    font-size: 15px;
    line-height: 1.78;
  }

  .room-actions a {
    width: 100%;
  }

  .special-inner-container {
    width: calc(100% - 44px);
  }

  .section-big-title {
    font-size: 44px;
  }

  .special-copy p {
    font-size: 14px;
  }

  .main-img-wrapper {
    height: 340px;
  }

  .special-indicator {
    gap: 12px;
    font-size: 11px;
  }

  .indicator-line {
    width: 88px;
  }

  .special-img-layer {
    transition:
      opacity 1200ms ease,
      transform 2200ms ease;
  }
}
