html {
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  font-family: Arial, sans-serif;
  background-color: #1C1C1C;
  color: #EAEAEA;
  width: 100%;
}

/* Header1 */
.header1 {
  text-align: center;
  padding: 20px;
  background-color: #2E2E2E;
}
.logo { margin-bottom: 20px; }
.logo img { height: 150px; }

/* Header2 (PC 네비게이션) */
.header2 {
  background-color: #3A3A3A;
  transition: background-color 0.3s ease;
}
.header2 nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center;
}
.header2 nav ul li { flex: 1; text-align: center; }
.header2 nav ul li a {
  display: block; padding: 15px 0;
  text-decoration: none; color: #fff;
  font-weight: bold; transition: all 0.3s ease;
}
.header2 nav ul li a:hover { background: #F9F9F9; color: #000; }
.header2.fixed {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1800px; z-index: 1000;
  background-color: rgba(58,58,58,0.85);
}

/* 햄버거 메뉴 */
.hamburger {
  font-size: 28px; cursor: pointer; color: #fff;
  padding: 10px; background: #333;
  position: fixed; top: 10px; left: 10px;
  z-index: 2100; display: none;
}
.side-menu {
  position: fixed; top: 0; left: -250px;
  width: 250px; height: 100%;
  background: #333; color: #fff;
  transition: left 0.3s ease;
  z-index: 2000; padding-top: 60px;
}
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu ul li a {
  display: block; padding: 15px 20px;
  color: #fff; text-decoration: none;
}
.side-menu ul li a:hover { background: #444; }
.side-menu.open { left: 0; }
.overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500; display: none;
}
.overlay.active { display: block; }

/* 메인 캐러셀 */
.carousel {
  position: relative; max-width: 100%;
  height: 850px; overflow: hidden;
  background: #000;
}
.carousel img { width: 100%; height: 100%; object-fit: contain; }
.slide { display: none; position: absolute; width: 100%; height: 100%; }
.fade { animation: fade 1.5s; }
@keyframes fade { from{opacity:.4} to{opacity:1} }


.caption-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  height: 10%;
  background: rgba(253,251,247,0.6);
  color: #333;
  display: flex;              /* flex로 중앙 정렬 */
  justify-content: center;    /* 가로 중앙 */
  align-items: center;        /* 세로 중앙 */
  font-size: 24px;
  font-weight: 700;
  padding: 12px 24px;
  z-index: 2;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.main-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 32px;
  cursor: pointer; color: #fff; padding: 0; z-index: 10;
}
.main-arrow.left { left: 20px; }
.main-arrow.right { right: 20px; }
.main-arrow:hover { color: #ffcd00; }

/* Section */
.section { padding: 40px; background: #2E2E2E; margin: 20px 0; }

/* Room */
#rooms.section { display: flex; flex-direction: column; }
.room-selector-bar {
  width: 100%; background: #3A3A3A;
  padding: 15px; text-align: center; margin-bottom: 20px;
}
.room-selector-bar label { color: #fff; font-weight: bold; margin-right: 10px; }
.room-selector-bar select {
  padding: 10px 20px; font-size: 16px;
  border-radius: 6px; border: none; outline: none;
  background: #F9F9F9; color: #333;
}
.room-content { display: flex; flex-direction: column; }
.room {
  display: flex; align-items: stretch;
  margin-top: 20px; position: relative;
}
.room-carousel {
  width: 70%; margin-left: 200px;
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.room-carousel img {
  width: 100%; height: auto; object-fit: cover;
  border-radius: 8px; display: block;
}
.textbox {
  width: 30%; background: #F9F9F9; color: #333;
  padding: 20px; margin-left: 20px; margin-right: 200px;
  border-radius: 8px; display: flex; flex-direction: column; height: 110%;
}
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 24px;
  cursor: pointer; padding: 8px; border-radius: 50%; color: #fff;
}
.arrow.left { left: 0; }
.arrow.right { right: 0; }
.textbox button {
  margin-top: 20px; width: 40px; height: 40px;
  border-radius: 50%; font-size: 18px; border: none;
  cursor: pointer; background: #3A3A3A; color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0;
}

/* 오시는 길 */
#location.section { display: flex; align-items: stretch; margin-top: 20px; }
.location-carousel {
  width: 40%; margin-left: 200px;
  aspect-ratio: 16/7; overflow: hidden; border-radius: 8px;
}
.location-carousel img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.3s ease;
}
.location-carousel img:hover { transform: scale(1.05); }
.map-buttons { margin-top: 16px; display: flex; gap: 12px; }
.map-btn {
  display: inline-block; padding: 10px 18px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: #fff; transition: background 0.3s;
}
.map-btn.naver { background: #2DB400; }
.map-btn.naver:hover { background: #249600; }
.map-btn.kakao { background: #FEE500; color: #3C1E1E; }
.map-btn.kakao:hover { background: #e5cc00; }
#location .textbox {
  background: #F9F9F9; color: #333;
  padding: 20px; margin-left: 20px; margin-right: 200px;
  border-radius: 8px; display: flex; flex-direction: column;
  justify-content: center; height: 100%;
}

/* 문의 섹션 */
.concon {
  background-color: #2e2e2e;
}
.contact-section {
  max-width: 800px; margin: 80px auto;
  padding: 40px 20px; background: #F9F9F9;
  border-radius: 12px; text-align: center; color: #222;
}
.contact-section h2 { font-size: 24px; margin-bottom: 10px; }
.contact-sub { font-size: 16px; font-weight: 600; margin-bottom: 30px; }
.contact-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, background 0.3s;
}
.contact-btn:hover { transform: translateY(-3px); }
.contact-btn.phone { background: #4CAF50; }
.contact-btn.sms   { background: #2196F3; }
.contact-btn.kakao1 { background: #FEE500; color: #3C1E1E; }
.contact-btn.kakao2 { background: #FEE500; color: #3C1E1E; }
.contact-btn.insta { background: #E1306C; }
.contact-btn.detail { background: #777; color: #fff; }
.contact-btn.blog { background: #2DB400; }

/* ------------------------------
   푸터
------------------------------ */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  font-size: 14px;
}
.footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer .ftr_logo {
  height: 40px;
  margin-bottom: 16px;
}
.footer .info ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 16px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer .info li {
  margin: 0;
  color: #aaa;
  white-space: nowrap;
}
.footer p {
  margin: 4px 0;
  color: #777;
  font-size: 13px;
}

/* 768px 초과 → 1800px 고정 */
@media (min-width: 769px) {
  body {
    width: 1800px;
  }
}

/* 1900px 초과 → 2300px 고정 */
@media (min-width: 1901px) {
  body {
    width: 1800px;
  }
}

/* 2600px 초과 → 3500px 고정 */
@media (min-width: 2601px) {
  body {
    width: 2300px;
  }
}

/* ------------------------------
   Divider
------------------------------ */
hr.divider {
  border: none;
  height: 10px;
  background-color: #1c1c1c;
  margin-bottom: 20px;
  width: 113.1%;
  margin-left: -180px;
}

/* ------------------------------
   반응형 (모바일 전용 수정사항)
------------------------------ */
@media (max-width: 768px) {
  /* 햄버거 메뉴 보이기 */
  .hamburger { display: block; }
  .header2 nav { display: none; }

  /* 1. 메인 캐러셀 세로 크기 자동 조정 */
  .carousel { height: auto; }
  #mainCarousel { aspect-ratio: 16/9; }
  #mainCarousel .slide { position: relative; height: auto; }
  #mainCarousel img { width: 100%; height: auto; object-fit: cover; }

  /* 2. 방 설명 글상자 중앙맞춤 + 화면보다 작게 */
  #rooms.section .room {
    flex-direction: column !important;
    align-items: center;
    gap: 16px;
  }
  #rooms.section .room-carousel,
  #rooms.section .textbox {
    width: 100% !important;
    margin: 0 !important;
  }
  #rooms.section .textbox {
    max-width: 90%;
    margin: 0 auto !important;
    margin-bottom: 0px; /* 하단 여백 추가 */
  }

  /* 3. 오시는 길 사진과 글상자 간격 */
  #location.section { flex-direction: column; gap: 20px; }

  /* 4. 오시는 길 사진과 글상자 가로폭 동일 */
  .location-carousel {
    width: 100%;
    margin: 0;
    aspect-ratio: auto;
    height: auto;
  }
  .location-carousel img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .textbox {
    width: 80%;
    margin: 0;
  }

  /* 5. 문의 버튼 가로 크기 글 크기에 맞게 */
  .contact-buttons br {
    display: none; /* 모바일에서는 <br> 숨김 */
  }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  .contact-btn {
    width: auto;
    min-width: 60%;
  }

  /* 6. iframe 세로 스크롤 제거 */
  iframe {
    width: 105%;
    transform: translateX(-2.5%);
    height: 2200px;
    border: none;
    overflow: hidden;
  }

  /* 8. divider 모바일에서 더 길게 */
  hr.divider {
    width: 120%;
    margin-left: -10%;
  }

  /* 9. 모바일에서 가로 스크롤 비활성화 */
  body { overflow-x: hidden; }
}

@media (max-width: 768px) {
  /* 1. 전체 페이지에서 가로 스크롤 비활성화 */
  html, body {
    overflow-x: hidden;   /* 가로 스크롤 숨김 */
  }
}

@media (max-width: 768px) {
  /* 방 사진 */
  .room-content .room img {
    display: block;
    margin: 0 auto;   /* 이미지 박스 자체를 가운데 */
  }

  /* 방 설명 글상자 */
  .room-content .textbox {
    width: 90%;       /* 화면 폭의 90% */
    margin: 0 auto;   /* 글상자 자체를 가운데 */
  }

  /* 지도 사진 */
  .location-carousel {
    width: 90%;
    margin: 0 auto;   /* 지도 박스 자체를 가운데 */
  }

  /* 오시는 길 글상자 */
  #location .textbox {
    width: 90%;
    margin: 0 auto;   /* 글상자 자체를 가운데 */
  }
}

/* 데스크탑 환경 */
@media (min-width: 769px) {
  #location.section {
    display: flex;
    align-items: stretch; /* 글상자와 지도 높이를 동일하게 */
    gap: 20px;
  }

  .location-carousel {
    flex: 1;              /* 글상자와 동일한 비율로 늘어남 */
  }

  .location-carousel img {
    width: 100%;
    height: 100%;         /* 글상자 높이에 맞춰 채움 */
    object-fit: cover;    /* 꽉 차게 표시 */
  }

  #location .textbox {
    flex: 1;              /* 지도와 동일한 높이 */
  }
}

/* iframe을 감싸는 영역 배경색 */
.iframe-wrapper {
  background-color: #2e2e2e;
  padding: 20px 0;        /* 위아래 여백 */
  overflow: hidden;
}

/* 공통 스타일 */
.rooms-frame {
  display: block;
  margin: 0 auto;
  border: none;
  overflow: hidden;
}

/* 데스크탑 환경 */
@media (min-width: 769px) {
  .desktop-frame {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: 60vh;
  }
  .mobile-frame {
    display: none; /* 모바일용 iframe 숨김 */
  }
}

/* 모바일 환경 */
@media (max-width: 768px) {
  .desktop-frame {
    display: none; /* 데스크탑용 iframe 숨김 */
  }
  .mobile-frame {
    display: block;
    width: 100%;
    height: 90vh; /* 내용에 맞게 자동 조정 */
    transform: scale(0.8);
    overflow: hidden;    
    overflow-x: hidden !important;
  }
}