/* ==========================================
   HOTEL AANON - Room Detail Page Styles
   객실 상세 페이지 전용 CSS
   ========================================== */

/* ---- Page Entry Animation ---- */
.room-detail-page {
  animation: pageEnter 0.35s ease forwards;
}

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

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb-bar {
  background: #F9F9F9;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 14px 0;
  margin-top: var(--header-h);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-link {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.bc-link:hover { color: var(--color-dark-navy); }

.bc-sep {
  font-size: 10px;
  color: #ccc;
}

.bc-current {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

/* ==========================================
   BACK BUTTON
   ========================================== */
.rd-back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.rd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 32px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.13);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.rd-back-btn i {
  font-size: 13px;
  color: var(--color-gold);
  transition: transform 0.22s ease;
}

.rd-back-btn:hover {
  background: var(--color-dark-navy);
  color: #fff;
  border-color: var(--color-dark-navy);
  box-shadow: 0 6px 20px rgba(26,29,46,0.18);
  transform: translateY(-2px);
}

.rd-back-btn:hover i {
  color: var(--color-gold);
  transform: translateX(-4px);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.room-detail-main {
  padding: 48px 0 100px;
}

/* ==========================================
   GALLERY
   ========================================== */
.rd-gallery {
  margin-bottom: 48px;
}

.rd-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 520px;
}

.rd-gallery-main {
  grid-row: 1 / 3;
}

.rd-gallery-sub-top { grid-row: 1; grid-column: 2; }
.rd-gallery-sub-bot { grid-row: 2; grid-column: 2; }

.rd-gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.rd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.rd-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 46, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 28px;
  color: #fff;
}

.rd-gallery-item:hover .rd-gallery-img {
  transform: scale(1.04) translateY(-2px);
}

.rd-gallery-item:hover .rd-gallery-overlay {
  opacity: 1;
}

.rd-gallery-notice {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.rd-gallery-notice i {
  color: #aaa;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================
   INFO LAYOUT
   ========================================== */
.rd-info-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start; /* sticky 동작을 위해 stretch 대신 start 유지 */
}

/* 우측 컬럼 전체를 sticky로 고정 */
.rd-info-right {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

/* ==========================================
   ROOM HEADER
   ========================================== */
.rd-room-header {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.rd-room-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.rd-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-dark-navy);
  color: var(--color-gold);
}

.rd-tag-outline {
  background: transparent;
  border: 1.5px solid #ddd;
  color: var(--color-text-muted);
}

.rd-room-title {
  font-size: 36px;
  font-weight: 600;
  color: #2B2B2B;
  line-height: 1.2;
  margin-bottom: 6px;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.02em;
}

.rd-room-subtitle {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

.rd-room-beds {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rd-bed-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.rd-bed-item i { color: var(--color-dark-navy); }

.rd-bed-divider {
  font-size: 18px;
  color: #ccc;
  font-weight: 300;
}

/* ==========================================
   DETAIL LIST
   ========================================== */
.rd-detail-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.rd-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rd-detail-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
  color: var(--color-gold);
}

.rd-detail-body { flex: 1; }

.rd-detail-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.rd-detail-value {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

.rd-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-navy);
}

/* 요일별 요금 테이블 */
.rd-price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.rd-price-table tr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #f0f0f0;
}
.rd-price-table tr:last-child {
  border-bottom: none;
}
.rd-price-table td {
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
}
.rd-price-table td:first-child {
  font-weight: 600;
  color: var(--color-text-muted);
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
  font-size: 13px;
}
.rd-price-table td:last-child {
  font-weight: 700;
  color: var(--color-dark-navy);
  font-size: 15px;
}


.rd-detail-sub {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.rd-price-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
  opacity: 0.8;
  line-height: 1.5;
}
  color: #C0392B;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.rd-detail-warn i { margin-top: 3px; flex-shrink: 0; color: #E74C3C; }

/* ==========================================
   AMENITIES
   ========================================== */
.rd-amenities {
  margin-bottom: 40px;
}

.rd-amenities-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
  font-family: 'Playfair Display', serif;
}

.rd-amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rd-amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F5F5F5;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
  border: 1px solid transparent;
}

.rd-amenity-tag:hover {
  background: #E5E5E5;
  transform: translateY(-1px);
}

.rd-amenity-emoji {
  font-size: 16px;
  line-height: 1;
}

/* ==========================================
   BOOKING CARD (우측 고정 카드)
   ========================================== */
.rd-booking-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1.5px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.rd-booking-header {
  background: var(--color-dark-navy);
  padding: 28px 28px 24px;
}

.rd-booking-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.rd-booking-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.rd-booking-price-from {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-gold);
  font-family: 'Playfair Display', serif;
}

.rd-booking-price-unit {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.rd-booking-price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

.rd-booking-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
}

.rd-booking-summary {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rd-booking-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.rbs-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
}

.rbs-label i { width: 16px; text-align: center; }

.rbs-val {
  font-weight: 600;
  color: var(--color-text);
}

.rbs-yes { color: var(--color-success); }
.rbs-no  { color: #aaa; font-weight: 400; }

.rd-booking-contact {
  padding: 20px 28px 24px;
}

.rbc-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.rbc-tel {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rbc-tel i { color: var(--color-gold); }
.rbc-tel strong { color: var(--color-gold); }

.rbc-hours {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ==========================================
   OTHER ROOMS
   ========================================== */
.rd-other-rooms {
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  padding: 24px;
}

.rd-other-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.rd-other-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rd-other-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.rd-other-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.rd-other-dot-active {
  background: var(--color-gold);
}

.rd-other-name {
  flex: 1;
  color: var(--color-text);
  font-weight: 500;
}

.rd-other-current {
  font-weight: 700;
}

.rd-other-current .rd-other-name {
  color: var(--color-dark-navy);
}

.rd-other-link {
  color: var(--color-text-muted);
  font-weight: 400;
  transition: color var(--transition);
}

.rd-other-link:hover {
  color: var(--color-dark-navy);
  text-decoration: underline;
}

.rd-other-price {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ==========================================
   IMAGE MODAL
   ========================================== */
.rd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rd-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.rd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.92);
  cursor: pointer;
}

.rd-modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rd-modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.rd-modal.open .rd-modal-img {
  transform: scale(1);
}

.rd-modal-caption {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  text-align: center;
}

.rd-modal-close,
.rd-modal-prev,
.rd-modal-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.rd-modal-close {
  top: -20px;
  right: -20px;
}

.rd-modal-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.rd-modal-next { right: -64px; top: 50%; transform: translateY(-50%); }

.rd-modal-close:hover,
.rd-modal-prev:hover,
.rd-modal-next:hover {
  background: rgba(212, 175, 55, 0.6);
  border-color: var(--color-gold);
}

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1199px) {
  .rd-info-layout {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }

  .rd-gallery-grid { height: 440px; }
  .rd-room-title { font-size: 30px; }
}

@media (max-width: 900px) {
  .rd-info-layout {
    grid-template-columns: 1fr;
  }

  .rd-info-right {
    position: static; /* sticky 해제 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .rd-modal-prev { left: -48px; }
  .rd-modal-next { right: -48px; }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
  .room-detail-main { padding: 32px 0 60px; }

  .rd-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 180px 180px;
    height: auto;
  }

  .rd-gallery-main { grid-row: 1; grid-column: 1; }
  .rd-gallery-sub-top { grid-row: 2; grid-column: 1; }
  .rd-gallery-sub-bot { grid-row: 3; grid-column: 1; }

  .rd-room-title { font-size: 26px; }
  .rd-room-beds { flex-wrap: wrap; gap: 8px; }

  .rd-info-right {
    display: block;
  }

  .rd-other-rooms { margin-top: 16px; }

  .rd-modal-prev { left: 8px; }
  .rd-modal-next { right: 8px; }
  .rd-modal-close { top: 8px; right: 8px; }
  .rd-modal-prev,
  .rd-modal-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}
