/* =========================================================
   MONGYA338 LOCATION PAGE - 401.css
   201.php style based layout
========================================================= */

: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;
}

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

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

/* =========================================================
   HERO - same tone as 201.php
========================================================= */

/* =========================================================
   HERO - LOCATION SLIDER FIX
   페이지: 501.php
   목적:
   - PHP의 .room-hero-slide background-image가 실제 화면에 보이도록 처리
   - 검정 배경만 보이는 문제 해결
========================================================= */

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

/* 슬라이드 이미지 영역 전체 채우기 */
#page-501 .room-hero-track,
#page-501 .room-hero-slide,
#page-501 .room-hero-overlay {
  position: absolute;
  inset: 0;
}

/* 실제 이미지 슬라이드 묶음 */
#page-501 .room-hero-track {
  z-index: 1;
}

/* 각 슬라이드 이미지 */
#page-501 .room-hero-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.018);
  transition:
    opacity 950ms ease,
    transform 5400ms ease;
  will-change: opacity, transform;
}

/* 현재 활성화된 슬라이드만 보이게 */
#page-501 .room-hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* 이미지 위 어두운 그라데이션 */
#page-501 .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;
}

/* 타이틀/진행바 */
#page-501 .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;
}

#page-501 .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);
}

/* 좌우 버튼 */
#page-501 .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;
  appearance: none;
}

#page-501 .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;
}

#page-501 .room-hero-prev {
  left: 7%;
}

#page-501 .room-hero-next {
  right: 7%;
}

#page-501 .room-hero-prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

#page-501 .room-hero-next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

/* 진행바 애니메이션 */
@keyframes roomHeroProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

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

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

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

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

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

  #page-501 .room-hero-status {
    grid-template-columns: 34px minmax(76px, 1fr) 34px;
    gap: 12px;
    margin-top: 24px;
    font-size: 12px;
  }
}
/* =========================================================
   LOCATION DETAIL - horizontal 201 style
========================================================= */

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

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

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

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

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

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

.location-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;
}

.location-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;
}

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

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

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

.location-info-item strong {
  color: #756f66;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.location-info-item span {
  color: #4f4a43;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 500;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

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

.location-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;
}

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

/* =========================================================
   MAP
========================================================= */

.map-section {
  background: var(--room-cream);
  padding: 0 0 104px;
}

.map-inner {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 76px;
  border-top: 1px solid var(--room-line);
}

.map-head {
  margin-bottom: 34px;
}

.map-head p,
.parking-title p {
  margin: 0 0 10px;
  color: #8a857b;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.map-head h2,
.parking-title h2 {
  margin: 0;
  color: var(--room-ink);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.065em;
}

.map-box {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--room-line);
  background: rgba(255, 255, 255, 0.28);
}

.map-box .root_daum_roughmap {
  width: 100% !important;
}

.map-box .wrap_map {
  width: 100% !important;
}

/* =========================================================
   PARKING
========================================================= */

.parking-section {
  background: var(--room-cream);
  padding: 0 0 104px;
}

.parking-inner {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 76px;
  border-top: 1px solid var(--room-line);
}

.parking-title {
  margin-bottom: 34px;
}

.parking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--room-line);
  border-left: 1px solid var(--room-line);
}

.parking-item {
  min-height: 214px;
  padding: 30px 26px;
  border-right: 1px solid var(--room-line);
  border-bottom: 1px solid var(--room-line);
}

.parking-item span {
  display: block;
  margin-bottom: 34px;
  color: #8a857b;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.parking-item h3 {
  margin: 0 0 16px;
  color: var(--room-ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.parking-item p {
  margin: 0;
  color: #5f5a52;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: -0.05em;
  word-break: keep-all;
}

/* =========================================================
   OTHER LINKS
========================================================= */

.location-other {
  background: var(--room-sand);
  padding: 62px 0;
}

.location-other-inner {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

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

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

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

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

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

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

  .location-detail-inner,
  .map-inner,
  .parking-inner,
  .location-other-inner {
    width: calc(100% - 52px);
  }

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

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

  .map-section,
  .parking-section {
    padding-bottom: 76px;
  }

  .map-inner,
  .parking-inner {
    padding-top: 58px;
  }

  .parking-list {
    grid-template-columns: 1fr;
  }

  .parking-item {
    min-height: auto;
  }

  .location-other-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .location-other a {
    width: 100%;
    min-width: 0;
  }
}

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

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

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

  .location-detail-inner,
  .map-inner,
  .parking-inner,
  .location-other-inner {
    width: calc(100% - 48px);
  }

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

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

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

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

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

  .location-info-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .location-info-item span {
    font-size: 15px;
  }

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

  .map-head,
  .parking-title {
    margin-bottom: 28px;
  }

  .parking-item {
    padding: 24px 20px;
  }

  .parking-item span {
    margin-bottom: 22px;
  }

  .location-other-inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   501 HERO MOBILE PROGRESS + MENU OVERLAP FIX
   - 진행 상태는 배너 내부에 배치되어 스크롤을 따라오지 않습니다.
   - 모바일 메뉴가 열리면 제목/진행바/스크롤 표시를 숨깁니다.
========================================================= */
@media (max-width: 767px) {
  #page-501 .room-hero-caption {
    position: absolute !important;
    left: 50% !important;
    top: calc(100svh - 142px) !important;
    bottom: auto !important;
    margin-bottom: 0 !important;
    z-index: 20 !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 560px) {
  #page-501 .room-hero-caption {
    top: calc(100svh - 134px) !important;
    bottom: auto !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1024px) {
  body.is-menu-open #page-501 .room-hero-caption,
  body.is-menu-open #page-501 .main-scroll-indicator {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

