/* ---------- 예약 달력 ---------- */
.room-calendar-inline {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 16px 12px;
}

.room-calendar-section {
  margin-top: 40px;
  padding: 24px 18px;
  border-radius: 18px;
  background: #faf7f2;
}

.room-calendar-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.room-calendar-legend {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* =====================
   예약 달력 색상 통일
   ===================== */

/* 전설 동그라미 색 */
.cal-dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:4px;
}

/* 예약 가능 = 사이트 배경색톤, 예약 완료 = 연회색, 선택 = 진한 브라운 */
.cal-avail    { background:#f5eee4; }   /* 예약 가능 */
.cal-booked   { background:#e2e2e2; }   /* 예약 완료 */
.cal-selected { background:#5c3b1e; }   /* 선택 일정 (진한 브라운) */

/* 실제 달력 칸 색 */
.room-cal-day-available {
  background:#f5eee4;                   /* 사이트 배경이랑 거의 같은 톤 */
}

.room-cal-day-booked {
  background:#e9e9e9;                   /* 연회색 */
  color:#a0a0a0;
}

.room-cal-day-selected {
  outline:2px solid #5c3b1e;            /* 진한 브라운 테두리 */
  background:#f0e2d3;                   /* 살짝 진한 베이지 */
}

.room-calendar {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  padding: 16px;
  font-size: 13px;
}

.room-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.room-cal-nav-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.room-cal-weekdays,
.room-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.room-cal-weekdays div {
  font-size: 11px;
  color: #999;
  padding: 4px 0;
}

.room-cal-day {
  height: 54px;
  padding: 4px;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

/* 비활성 (이전달/다음달) */
.room-cal-day-disabled {
  color: #ccc;
  cursor: default;
}

/* ✅ 예약 가능: 전체 배경 톤과 같은 베이지 */
.room-cal-day-available {
  background: #faf7f2;
}


/* ❌ 예약 완료: 연한 회색 */
.room-cal-day-booked {
  background: #e3e3e3;
  color: #999;
}

/* 선택된 날짜(체크인~체크아웃) – 진한 브라운 강조 */
.room-cal-day-selected {
  border: 1px solid #5c3b1e;
  box-shadow: 0 0 0 1px rgba(92, 59, 30, 0.18);
  background: #f0e4d6;
}

.room-cal-date {
  font-size: 12px;
}

.room-cal-price {
  font-size: 11px;
  color: #444;
}

.room-total-price {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .room-calendar {
    max-width: 100%;
  }
}

/* 기본 설정 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background-color: #faf7f2;
    color: #1f1f1f;
    line-height: 1.6;
}

/* 상단 헤더 */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee0d0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.15em;
    font-size: 14px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
    color: #555;
}

nav a:hover {
    color: #000;
}

/* 메인 컨텐츠 공통 */
.main {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* 메인 히어로 섹션 */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 15px;
    color: #555;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1c3b2;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #7a6a58;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #ddd;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
}

.hero-image img,
.detail-hero-image img,
.stay-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 숙소 카드 리스트 */
.stay-list-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.stay-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.stay-card {
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.stay-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #ddd;
}

.stay-card-body {
    padding: 18px 18px 16px;
}

.stay-card-body h2 {
    font-size: 17px;
    margin-bottom: 4px;
}

.stay-location {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.stay-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.stay-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stay-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: #1f1f1f;
    text-decoration: none;
}

.stay-link span {
    font-size: 16px;
}

/* 상세 페이지 공통 */
.detail-hero {
    margin-bottom: 40px;
}

.detail-hero-title {
    font-size: 26px;
    margin-bottom: 6px;
}

.detail-hero-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 18px;
}

.detail-hero-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-color: #ddd;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.detail-section-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.detail-text {
    font-size: 14px;
    color: #555;
}

/* 예약 패널 */
.booking-panel {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    font-size: 13px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-main {
    font-size: 18px;
    font-weight: 600;
}

.price-sub {
    font-size: 12px;
    color: #999;
}

.booking-button {
    margin-top: 12px;
    width: 100%;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    background-color: #1f1f1f;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.booking-button:hover {
    opacity: 0.9;
}

.booking-note {
    margin-top: 10px;
    font-size: 11px;
    color: #888;
}

.booking-button-secondary {
    margin-top: 8px;
    width: 100%;
    padding: 8px 0;
    border-radius: 999px;
    border: 1px solid #d4c7b6;
    background-color: #ffffff;
    color: #333333;
    font-size: 13px;
    cursor: pointer;
}

.booking-button-secondary:hover {
    background-color: #f5f0e7;
}

/* WhatsApp 버튼 */
.booking-button-whatsapp {
    margin-top: 8px;
    width: 100%;
    padding: 8px 0;
    border-radius: 999px;
    border: none;
    background-color: #25D366;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.booking-button-whatsapp:hover {
    opacity: 0.9;
}

/* KakaoTalk 버튼 */
.booking-button-kakao {
    margin-top: 8px;
    width: 100%;
    padding: 8px 0;
    border-radius: 999px;
    border: none;
    background-color: #FEE500;
    color: #3C1E1E;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}
.booking-button-kakao:hover {
    opacity: 0.9;
}

/* 전화 버튼 - 세컨더리 */
.booking-button-secondary {
    margin-top: 8px;
    width: 100%;
    padding: 8px 0;
    border-radius: 999px;
    border: 1px solid #d4c7b6;
    background-color: #ffffff;
    color: #333333;
    font-size: 13px;
    cursor: pointer;
}
.booking-button-secondary:hover {
    background-color: #f5f0e7;
}
/* 푸터 */
footer {
    border-top: 1px solid #eee0d0;
    padding: 20px 40px;
    font-size: 11px;
    color: #888;
}

/* 반응형 */
@media (max-width: 768px) {
    header {
        padding: 16px 20px;
    }

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

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

    .main {
        margin-top: 24px;
    }

}

/* 메인 슬라이더 영역 */
.detail-hero-image {
    margin-top: 16px;
}

/* 메인 슬라이더 — 사진 비율 유지 */
.main-slider {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position relative;

}

.main-slider .swiper-slide {
    width: 100%;
}

.main-slider img {
    width: 100%;
    display: block;
    object-fit: cover;
}
/* 3열 포토 그리드 */
.photo-grid-section {
    margin-top: 32px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.photo-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.photo-grid img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* 큰 사진 모달 */
.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.photo-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* 모바일용 높이 조정 */
@media (max-width: 768px) {
    .main-slider {
        height: 260px;
    }
    .photo-grid img {
        height: 90px;
    }
}

/* Lightbox modal */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Lightbox images */
.lightbox img {
    width: auto;
    height: 90vh;
    object-fit: contain;
    margin: 0 auto;
}

/* arrows color */
.lightbox-next, .lightbox-prev {
    color: white !important;
    filter: drop-shadow(0 0 4px black);
}

/* 모달 화살표 */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 10000;
    opacity: 0.8;
}

.modal-prev:hover,
.modal-next:hover {
    opacity: 1;
}

.modal-prev {
    left: 24px;
}

.modal-next {
    right: 24px;
}

/* 모달 바깥 영역 클릭 처리 */
.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.photo-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ---------- HEADER ---------- */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 12px 28px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.brand-logo {
    font-weight: 600;
    text-decoration: none;
    color: #111;
    margin-right: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    margin-right: 16px;
    text-decoration: none;
    color: #555;
}

.main-nav a:hover {
    color: #000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-login {
    text-decoration: none;
    color: #111;
}

/* 언어 선택 */
.lang-switcher {
    position: relative;
}

#lang-current {
    border: none;
    background: none;
    font-size: 12px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 150%;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 180px;
    display: none;
    z-index: 200;
}

.lang-menu li {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.lang-menu li:hover {
    background: #f5f5f5;
}

/* ---------- LOGIN PAGE ---------- */

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.login-box {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 40px 24px 60px;
}

.login-title {
    font-size: 28px;
    letter-spacing: 0.4em;
    margin-bottom: 12px;
}

.login-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 28px;
}

/* 소셜 버튼 공통 */
.btn-social {
    width: 100%;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* 각 서비스 색깔 */

.btn-social.kakao {
    background: #FEE500;
    color: #191600;
}

.btn-social.naver {
    background: #03C75A;
    color: #ffffff;
}

.btn-social.google {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-social.apple {
    background: #000000;
    color: #ffffff;
}

.btn-social.facebook {
    background: #1877F2;
    color: #ffffff;
}

.btn-social:hover {
    opacity: 0.9;
}

/* OR 구분선 */
.login-divider {
    margin: 18px 0;
    font-size: 12px;
    color: #999;
}

/* 이메일 로그인/회원가입 */
.login-email-links {
    font-size: 13px;
    color: #555;
}

.login-link {
    text-decoration: none;
    color: #333;
}

.login-link:hover {
    text-decoration: underline;
}

.login-sep {
    margin: 0 8px;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 18px 0 24px;
    font-size: 11px;
    color: #aaa;
}

/* ---------- STORY / JOURNAL ---------- */
.story-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.story-hero h1 {
  font-size: 32px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.story-hero p {
  font-size: 14px;
  color: #555;
  margin-bottom: 32px;
}

.story-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.story-cat-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.story-cat-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.story-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.story-card-image-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.story-card-body {
  padding: 14px 16px 18px;
}

.story-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.story-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.story-card-excerpt {
  font-size: 13px;
  color: #555;
}

@media (max-width: 600px) {
  .story-main {
    padding: 28px 16px 40px;
  }
}

/* ---------- 예약 달력 ---------- */
.room-calendar-inline {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 16px 12px;
}

.room-calendar-section {
  margin-top: 40px;
  padding: 24px 18px;
  border-radius: 18px;
  background: #fafafa;
}

.room-calendar-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.room-calendar-legend {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.room-calendar {
  width: 100%;
  max-width: 420px;   /* “좀 크게” */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  padding: 16px;
  font-size: 13px;
}

.room-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.room-cal-nav-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.room-cal-weekdays,
.room-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.room-cal-weekdays div {
  font-size: 11px;
  color: #999;
  padding: 4px 0;
}

.room-cal-day {
  height: 54px;
  padding: 4px;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.room-cal-date {
  font-size: 12px;
}

.room-cal-price {
  font-size: 11px;
  color: #444;
}

.room-total-price {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .room-calendar {
    max-width: 100%;
  }
}

/* 금등 메인 예약 버튼 색만 바꾸기 */
#geum-main-reserve-btn {
  background: #CBB395;   /* 연한 갈색 */
  border-color: #CBB395;
  color: #ffffff;
}

#geum-main-reserve-btn:hover {
  background: #B89F7F;   /* 살짝 진한 갈색 */
  border-color: #B89F7F;
}

.booking-panel button {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

/* 저지맨션 예약하기 버튼 – 연한 겨자색 */
#jeoji-main-reserve-btn {
  background: #D8C36A;      /* 연한 겨자색 */
  border-color: #D8C36A;
  color: #ffffff;
  font-weight: 600;
}

#jeoji-main-reserve-btn:hover {
  background: #C2AC56;      /* 약간 더 진한 겨자색 */
  border-color: #C2AC56;
}

.booking-panel button {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

/* =========================
   STORY · JOURNAL - 자세히 보기 링크
   ========================= */
.story-card-actions {
  margin-top: 6px;
}

.story-read-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
}
.story-read-link:hover {
  color: #666;
}

/* =========================
   STORY · JOURNAL - 모달
   ========================= */
.story-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.story-modal.show {
  display: block;
}

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.story-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 80px);
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  overflow-y: auto;
}

.story-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.story-modal-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.story-modal-meta .dot {
  margin: 0 4px;
}

.story-modal h2 {
  font-size: 18px;
  margin: 4px 0 10px;
}

.story-modal-body {
  font-size: 13px;
  line-height: 1.8;
  color: #444;
  white-space: pre-line; /* 줄바꿈 유지 */
}

/* STORY DETAIL (블로그 형식) */
.story-detail-main {
  max-width: 820px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.story-detail-back {
  font-size: 12px;
  margin-bottom: 18px;
}
.story-detail-back a {
  color: #999;
  text-decoration: none;
}
.story-detail-back a:hover {
  text-decoration: underline;
}

.story-detail-header {
  margin-bottom: 18px;
}
.story-detail-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.story-detail-meta .dot {
  margin: 0 4px;
}
.story-detail-header h1 {
  font-size: 22px;
  line-height: 1.4;
}

.story-detail-hero {
  margin: 0 0 20px;
}
.story-detail-hero img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.story-detail-body p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 14px;
}

.story-detail-photo {
  margin: 18px 0;
}

.story-detail-photo img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* 모바일 */
@media (max-width: 600px) {
  .story-detail-main {
    margin-top: 24px;
    padding: 0 14px;
  }
  .story-detail-header h1 {
    font-size: 20px;
  }
}

.detail-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-toggle-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.gallery-toggle-btn:hover {
  background: #f5f5f5;
}

.photo-gallery-advanced {
  margin-top: 12px;
}

/* 카테고리 탭 */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gallery-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.gallery-tab.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* 기존 photo-grid가 없으면 이런 느낌으로 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
}

/* 예약 입력 영역 전체 배치 */
.room-book-section {
  display: flex;
  gap: 12px;
  margin: 12px 0 8px;
  flex-wrap: wrap;         /* 화면 좁으면 줄바꿈 */
}

/* 각 필드 래퍼 */
.book-input {
  flex: 1;
  min-width: 120px;
}

/* 라벨 */
.book-input label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #555;
}

/* 인풋 공통 스타일 */
.book-input input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 포커스 시 효과 */
.book-input input:focus {
  outline: none;
  border-color: #c9a47a;
  box-shadow: 0 0 0 2px rgba(201, 164, 122, 0.25);
}

/* 숫자 인풋 오른쪽 정렬 살짝 */
.book-input input[type="number"] {
  text-align: right;
}

/* 예약 폼 인풋 스타일 */
.room-book-section {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.room-book-section .book-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #555;
}

.room-book-section .book-input label {
  font-weight: 500;
}

.room-book-section .book-input input[type="date"],
.room-book-section .book-input input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.room-book-section .book-input input[type="date"]:focus,
.room-book-section .book-input input[type="number"]:focus {
  border-color: #c49a6c;
  box-shadow: 0 0 0 2px rgba(196, 154, 108, 0.15);
}

/* 전설 동그라미 */
.cal-dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:4px;
}

/* 실제 달력칸 색 (대충 비슷하게) */

.room-book-section {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.room-book-section .book-input label {
  font-size:12px;
  color:#555;
  margin-bottom:4px;
  display:block;
}

.room-book-section .book-input input {
  width:100%;
  padding:8px 10px;
  border:1px solid #ddd;
  border-radius:999px; /* 동글동글 */
  font-size:14px;
  box-sizing:border-box;
}

.room-book-section .book-input input:focus {
  outline:none;
  border-color:#333;
}

.photo-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.gallery-more-link-btn {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #444;
  white-space: nowrap;
}

.gallery-more-link-btn:hover {
  background: #f5f5f5;
}

/* ================================
   상세 페이지 · 메인 공통 레이아웃 보정
   (안전한 선에서 부드러운 통일감만 추가)
================================ */

/* 상세 상단 히어로 간격 정리 */
.detail-hero {
  margin-bottom: 40px;
}

/* 메인 히어로, 상세 레이아웃 공통 여백 */
.main {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* 이미지 카드 느낌 통일 (메인 히어로, 상세 슬라이더 공통) */
.hero-image img,
.detail-hero-image img,
.stay-card-image img {
  border-radius: 20px;
  overflow: hidden;
}

/* 예약 패널을 카드처럼 보이게 살짝 강조 */
.booking-panel {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* ============ 모바일 보정 ============ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .booking-panel {
    margin-top: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  }

  .stay-card {
    margin-bottom: 18px;
  }
}

/* ================================
   Email Login Modal (Stayfolio 느낌)
================================ */
.email-modal {
  position: fixed;
  inset: 0;
  display: none;           /* 기본은 숨김 */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-family: inherit;
}

.email-modal.is-open {
  display: flex;
}

.email-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

/* 카드 */
.email-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 28px 28px 24px;
}

/* 닫기 버튼 */
.email-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #aaa;
}

.email-modal-close:hover {
  color: #333;
}

/* 헤더 */
.email-modal-header {
  margin-bottom: 18px;
}

.email-modal-title {
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin: 4px 0 8px;
}

.email-modal-subtitle {
  font-size: 13px;
  text-align: center;
  color: #777;
}

/* 폼 공통 */
.email-form {
  display: none;
}

.email-form.is-active {
  display: block;
}

.email-field {
  margin-bottom: 14px;
}

.email-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 4px;
}

.email-field input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-field input:focus {
  border-color: #222;
  box-shadow: 0 0 0 1px #222;
}

/* 메인 버튼 */
.email-btn-main {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 11px 16px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: #222;
  color: #fff;
  margin-top: 4px;
}

.email-btn-main:hover {
  background: #000;
}

/* 스위치 텍스트 */
.email-modal-switch {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: #777;
}

.email-modal-switch a {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 모바일에서 카드 여백 */
@media (max-width: 768px) {
  .email-modal-dialog {
    margin: 0 16px;
  }
}

/* ================================
   Email Login Modal (Stayfolio 스타일)
================================ */
.email-modal {
  position: fixed;
  inset: 0;
  display: none;              /* 기본은 숨김 */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-family: inherit;
}

.email-modal.is-open {
  display: flex;
}

.email-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

/* 카드 */
.email-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 28px 28px 24px;
}

.email-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #aaa;
}

.email-modal-close:hover {
  color: #333;
}

.email-modal-header {
  margin-bottom: 18px;
}

.email-modal-title {
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin: 4px 0 8px;
}

.email-modal-subtitle {
  font-size: 13px;
  text-align: center;
  color: #777;
}

/* 폼 */
.email-form {
  display: none;
}

.email-form.is-active {
  display: block;
}

.email-field {
  margin-bottom: 14px;
}

.email-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 4px;
}

.email-field input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-field input:focus {
  border-color: #222;
  box-shadow: 0 0 0 1px #222;
}

/* 버튼 */
.email-btn-main {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 11px 16px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: #222;
  color: #fff;
  margin-top: 4px;
}

.email-btn-main:hover {
  background: #000;
}

/* 스위치 텍스트 */
.email-modal-switch {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: #777;
}

.email-modal-switch a {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 모바일 여백 */
@media (max-width: 768px) {
  .email-modal-dialog {
    margin: 0 16px;
  }
}

.email-checkbox {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #777;
}

.email-checkbox input {
  margin-right: 6px;
}

/* =========================
   MY PAGE
========================= */

.mypage-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

/* 상단 타이틀 영역 */
.mypage-hero {
  margin-bottom: 28px;
}

.mypage-hero h1 {
  font-size: 30px;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.mypage-hero p {
  color: #6f6f6f;
  font-size: 14px;
  line-height: 1.7;
}

/* 전체를 하나의 카드처럼 보이게 */
.mypage-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 40px;
  padding: 26px 26px 32px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #f0e4d8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .mypage-main {
    padding-top: 56px;
  }

  .mypage-grid {
    grid-template-columns: 1fr;
    padding: 20px 18px 24px;
  }
}

/* 왼쪽 사이드바(내 정보) */
.mypage-sidebar {
  padding: 10px 4px 10px;
  border-right: 1px solid #f3e6d8;
}

@media (max-width: 768px) {
  .mypage-sidebar {
    border-right: none;
    border-bottom: 1px solid #f3e6d8;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }
}

.mypage-sidebar h2 {
  font-size: 17px;
  margin-bottom: 6px;
}

.mypage-user-email {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.mypage-hint {
  font-size: 12px;
  color: #9a907f;
  line-height: 1.7;
}

/* 오른쪽 예약 내역 영역 */
.mypage-reservations h2 {
  font-size: 17px;
}

.mypage-res-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.mypage-res-count {
  font-size: 13px;
  color: #a29c92;
}

.reservation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 예약 카드 */
.reservation-card {
  border-radius: 14px;
  border: 1px solid #eee3d7;
  padding: 14px 16px 12px;
  background: #fdfbf8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reservation-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reservation-title {
  font-size: 15px;
  font-weight: 600;
}

.reservation-meta {
  font-size: 13px;
  color: #66615a;
}

.reservation-meta .dot {
  margin: 0 6px;
  color: #d5cabc;
}

.reservation-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid #ddd;
}

.reservation-status-confirmed {
  color: #0a7a36;
  border-color: #b9e5c5;
  background: #f4fff7;
}

.reservation-status-cancelled {
  color: #a11a1a;
  border-color: #f3c0c0;
  background: #fff6f6;
}

.reservation-status-changed {
  color: #945600;
  border-color: #f3d19c;
  background: #fffaf2;
}

/* 버튼들 */
.reservation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.reservation-btn-change,
.reservation-btn-cancel {
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}

.reservation-btn-change:hover:not(:disabled),
.reservation-btn-cancel:hover:not(:disabled) {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.reservation-btn-cancel {
  color: #a11a1a;
  border-color: #f5c9c9;
  background: #fff7f7;
}

.reservation-btn-change {
  color: #555;
}

.reservation-btn-change:disabled,
.reservation-btn-cancel:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* 하단 날짜 정보 */
.reservation-dates {
  font-size: 11px;
  color: #9c9186;
}

/* 예약이 없을 때 */
.reservation-empty {
  text-align: center;
  padding: 28px 16px;
  font-size: 14px;
  color: #777;
  border-radius: 14px;
  border: 1px dashed #e1d5c6;
  background: #fbf7f1;
}

/* 결제 방법 영역 */
.room-payment-method {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdf7ef;
  border: 1px solid #f1e0cf;
  font-size: 13px;
}

.room-payment-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.room-pay-option {
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
}

.room-pay-option input {
  margin-right: 6px;
}

.room-discount-line {
  margin-top: 6px;
  font-size: 12px;
  color: #9b7f5a;
}

.cancel-box {
  margin-top: 8px;
  border: 1px solid #e0ded8;
  border-radius: 10px;
  padding: 12px 16px;
  background: #faf7f2;
}

.cancel-box > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}

.cancel-box > summary::-webkit-details-marker {
  display: none;
}

.cancel-inner {
  margin-top: 12px;
}

.cancel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.cancel-table th,
.cancel-table td {
  border: 1px solid #e3dfd5;
  padding: 6px 8px;
  text-align: left;
}

.cancel-table thead {
  background: #f1ece4;
  font-weight: 600;
}

.cancel-notes {
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 1.2rem;
}

.cancel-notes li + li {
  margin-top: 4px;
}

/* 공통 info 박스 (공간 소개 / 구성 / 이용 안내 / 조식 등) */
.info-box {
  margin-top: 16px;
  border: 1px solid #e0ded8;
  border-radius: 10px;
  padding: 10px 14px 12px;
  background: #fdfaf5;
}

.info-box[open] {
  background: #faf5ee;
}

.info-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
}

/* summary 기본 화살표 숨기기 */
.info-summary::-webkit-details-marker {
  display: none;
}

/* 안쪽 내용 줄 간격 통일 */
.info-box .detail-text,
.cancel-box .detail-text {
  margin-top: 8px;
  line-height: 1.7;
}

/* 취소 규정 박스는 기존 cancel-box 모양 사용 */
.cancel-box {
  margin-top: 16px;
  border: 1px solid #e0ded8;
  border-radius: 10px;
  padding: 10px 14px 12px;
  background: #faf7f2;
}

/* 상세 정보 그리드 공통 레이아웃 (왼쪽 설명 / 오른쪽 예약 패널) */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 아코디언 공통 스타일 */
.room-info-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 각 블록 */
.room-info-block {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eee4d5;
  overflow: hidden;
}

/* summary 기본 화살표 제거 */
.room-info-block > summary::marker {
  content: "";
}
.room-info-block > summary::-webkit-details-marker {
  display: none;
}

/* summary 영역 디자인 */
.room-info-block > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

/* 펼쳐졌을 때 */
.room-info-block[open] > summary {
  border-bottom: 1px solid #f3e8da;
}

/* 내용 텍스트 */
.room-info-block .detail-text {
  padding: 14px 18px 18px;
  font-size: 14px;
  line-height: 1.7;
}

/* 취소규정 테이블 */
.refund-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13px;
}
.refund-table th,
.refund-table td {
  border: 1px solid #e5ddd0;
  padding: 6px 10px;
  text-align: left;
}
.refund-table thead {
  background: #faf3e6;
  font-weight: 600;
}

.refund-notes {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.refund-notes li + li {
  margin-top: 4px;
}

/* ============================
   REVIEW GALLERY (Pinterest)
   ============================ */

.story-review-gallery {
  max-width: 1000px;         /* 전체 영역 조금 더 작게 */
  margin: 3rem auto 4rem;
  padding: 0 1rem;
}

.review-gallery-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.review-gallery-sub {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.4rem;
}

/* Masonry: column 레이아웃 (썸네일 더 작게) */
.review-masonry {
  column-count: 3;
  column-gap: 1rem;
}

/* 큰 화면에서는 4컬럼으로 더 작게 */
@media (min-width: 1280px) {
  .review-masonry {
    column-count: 4;
  }
}

@media (max-width: 1024px) {
  .review-masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .review-masonry {
    column-count: 1;
  }
}

.review-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.review-masonry-item img {
  width: 100%;
  display: block;
  border-radius: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: zoom-in;
}

/* hover 효과도 살짝만 */
.review-masonry-item:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* Modal */
.review-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.review-modal.show {
  display: flex;
}

.review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* 👉 팝업 크기: 화면의 80% 안쪽 + 세로 80% 안쪽
   세로 긴 인스타 스토리도 전체가 다 보이도록 스케일링 */
.review-modal-inner {
  position: relative;
  width: auto;
  max-width: min(420px, 80vw);  /* 가로 최대 420px / 화면 80% */
  max-height: 80vh;             /* 세로 최대 화면의 80% */
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;             /* 안에서 잘리지 않게, 이미지가 이 안에 맞게 줄어듦 */
}

/* 이미지 비율 유지 + 전체가 보이도록 축소 */
.review-modal-inner img {
  display: block;
  width: 100%;          /* 가로 기준으로 꽉 채우기 */
  height: auto;         /* 비율 유지 */
  max-height: 80vh;     /* 세로가 화면보다 커지지 않게 */
  object-fit: contain;  /* 잘리지 않고 전체가 보이도록 */
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

/* =========================
   모바일 헤더 레이아웃 정리
   ========================= */
@media (max-width: 768px) {
  .site-header {
    /* 너무 두껍지 않게 살짝 줄이기 */
    padding: 0.5rem 0;
  }

  .header-inner {
    flex-direction: column;         /* 가로 → 세로 정렬 */
    align-items: center;
    gap: 0.35rem;                   /* 요소들 사이 간격 */
  }

  .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .brand-logo {
    font-size: 0.95rem;             /* 로고 글씨 조금 줄이기 */
    text-align: center;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;                /* 줄바꿈 허용 */
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;             /* 메뉴 글씨도 살짝 줄이기 */
  }

  .header-right {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .header-login {
    padding: 0;                     /* 모바일에서는 버튼 여백 줄이기 */
  }

  .lang-switcher button#lang-current {
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Guest Selector Button */
.guest-open-btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

/* Modal Background */
.guest-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal Box */
.guest-modal-content {
  width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  animation: fadeIn 0.2s ease;
}

.guest-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
}

.guest-title {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}

.guest-desc {
  font-size: 12px;
  margin: 0;
  color: #777;
}

.guest-counter {
  display: flex;
  align-items: center;
  gap: 15px;
}

.guest-counter button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.guest-next-btn {
  width: 100%;
  padding: 12px;
  background: black;
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 25px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #5c3b1e;
}

.admin-cal-nav {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 16px;
  color: #b69a7a;
}

.admin-cal-nav:hover {
  color: #5c3b1e;
}

/* =========================
   관리자 달력 스타일
   ========================= */
.admin-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.admin-cal-day {
  border: 1px solid #f2e3d3;
  border-radius: 12px;
  padding: 10px 0;
  background: #fdf6ee;          /* 기본은 연한 베이지 */
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
              transform 0.08s ease, box-shadow 0.08s ease;
}

/* 🔒 수동 블럭된 날짜 */
.admin-cal-day.is-blocked {
  background: #5c3b1e;          /* 진한 브라운 */
  color: #ffffff;
  border-color: #5c3b1e;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* 살짝 hover 효과 */
.admin-cal-day:hover {
  background: #f7ebdd;
}
.admin-cal-day.is-blocked:hover {
  background: #4a3118;
}

/* =========================
   MOBILE FIX: 글/달력 한 화면에 맞추기
   ========================= */

/* 가로 밀림(숨은 overflow) 방지 */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 긴 텍스트/가격 줄바꿈 허용 */
.detail-text,
.info-box,
.room-calendar,
.room-cal-price,
.room-calendar-section,
.booking-panel {
  overflow-wrap: anywhere;
  word-break: keep-all; /* 한국어 문장 자연스럽게 */
}

/* ---------- 모바일 레이아웃 ---------- */
@media (max-width: 768px) {

  /* 상세 페이지 그리드: 무조건 1열로 */
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* 좌우 여백 살짝 줄여서 한 화면에 더 잘 들어오게 */
  .main {
    padding: 0 14px !important;
  }

  /* 달력 박스: 고정폭 제거 + 꽉 차게 */
  .room-calendar {
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px !important;
  }

  /* 달력 셀: 높이/라운드 살짝 줄여서 화면에 더 깔끔하게 */
  .room-cal-day {
    height: 46px !important;
    border-radius: 9px !important;
    padding: 4px !important;
  }

  /* 요일 글씨 조금 작게 */
  .room-cal-weekdays div {
    font-size: 10px !important;
  }

  /* 날짜/가격 폰트 줄이기 + 줄바꿈 허용 */
  .room-cal-date {
    font-size: 11px !important;
  }

  .room-cal-price {
    font-size: 10px !important;
    line-height: 1.1 !important;
    white-space: normal !important; /* 한 줄 고집 X */
  }

  /* 섹션 배경/패딩이 너무 커서 밀리는 경우 방지 */
  .room-calendar-section {
    padding: 18px 14px !important;
  }

  /* 정보 아코디언/설명 박스도 가로 꽉 차게 */
  .room-info-accordion,
  .room-info-block,
  .info-box,
  .cancel-box {
    width: 100% !important;
  }
}

/* 더 작은 폰(아이폰 SE 급)에서는 가격을 더 줄여서 확실히 한 화면 */
@media (max-width: 390px) {
  .room-cal-day { height: 42px !important; }
  .room-cal-price { font-size: 9px !important; }
}

/* 팝업처럼 좁은 화면에서 카드가 너무 넓어지지 않게 */
.checkout-container,
.checkout-card {
  max-width: 420px;
  width: calc(100% - 24px);
  margin: 0 auto;

  /* ✅ 핵심 */
  max-height: 80vh;
  overflow-y: auto;
}

/* 모바일에서는 조금 더 줄이기 */
@media (max-width: 480px) {
  .checkout-container,
  .checkout-card {
    max-height: 70vh;
  }
}

/* ===== Calendar minimal polish ===== */

.room-cal-grid,
.room-cal-header,
.room-cal-weekdays {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.room-cal-date {
  font-size: 14px;
  font-weight: 600;
}

.room-cal-price {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap; /* 170,000 줄바꿈 방지 */
}

.room-cal-day {
  min-height: 62px; /* 가격 줄 내려가는 문제 해결 */
}

.room-cal-grid,
.room-cal-header,
.room-cal-weekdays {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.room-cal-date,
.room-cal-price {
  font-family: "Antic Slab", serif;
}

/* ===== Calendar number font : Playfair Display (FORCE) ===== */

.room-cal-date {
  font-family: "Playfair Display", serif !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.room-cal-price {
  font-family: "Playfair Display", serif !important;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== Stay Map ===== */
.stay-map-section { margin: 28px 0; }
.stay-map-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

.stay-map-box{
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.stay-map-actions{ margin-top: 10px; }
.stay-map-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: #111;
  background: #fff;
}
.stay-map-btn:hover{ background: #f7f7f7; }

/* ===== FORCE Map Box Visible ===== */
.stay-map-section { margin: 18px 0; }

.stay-map-box{
  display: block !important;
  width: 100% !important;
  height: 360px !important;     /* 핵심: 높이 */
  min-height: 360px !important; /* 핵심: 눌려도 유지 */
  border-radius: 16px;
  overflow: hidden;
  background: #e9e9e9;
}

.location-section { margin-top: 16px; }

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.map-box {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  text-decoration: underline;
}

/* === MODAL PANEL HEIGHT FIX (force) === */
body.modal-open { overflow: hidden; }

/* 모달 오버레이/패널로 흔히 쓰는 케이스들 전부 커버 */
.modal, .popup, .dialog, .overlay,
#modal, #popup, #dialog,
.checkout-modal, #checkout-modal,
.reservation-modal, #reservation-modal,
.confirm-modal, #confirm-modal {
  /* 오버레이가 화면 가득이면 OK */
}

/* ===== FORCE MODAL HEIGHT LIMIT ===== */

/* 1) HTML <dialog>를 쓰는 경우 (가장 흔함) */
dialog {
  max-height: 78vh !important;
  height: auto !important;
  overflow: auto !important;
}

/* dialog 배경 */
dialog::backdrop {
  background: rgba(0,0,0,0.35) !important;
}

/* 2) 모달/시트/패널 공통 (혹시 dialog가 아니어도 커버) */
.modal-content, .modal-panel, .modal-inner,
.popup-content, .dialog-content,
.checkout-modal, .checkout-modal-panel,
.confirm-modal, .confirm-modal-panel,
.reservation-modal, .reservation-modal-panel {
  max-height: 78vh !important;
  height: auto !important;
  overflow-y: auto !important;
}

/* checkout.html 전용: 항상 '팝업처럼' 보이게 */
.checkout-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f6f1ea; /* 기존 사이트 배경 톤 */
}

.checkout-frame {
  width: 560px;      /* ← 너가 원한 빨간선 가로 */
  height: 560px;     /* ← 너가 원한 빨간선 세로 */
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  overflow: auto; /* 내용 길면 스크롤 */
  padding: 18px;
}

/* 모바일/작은 창에서는 꽉 차게 */
@media (max-width: 620px), (max-height: 560px) {
  .checkout-frame {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    padding: 16px;
  }
}

.room-cal-day-past {
  opacity: 0.35;
  filter: grayscale(0.4);
  cursor: not-allowed;
}
