/**
 * Room detail mobile — extracted from room.php
 */

  * { box-sizing: border-box; }
  #body #ch-plugin, #body footer { display: none !important; }

  #rm-wrap {
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh; background: var(--wh-bg, #f2f4f6);
    max-width: 720px; margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    color: #1a1a1a; position: relative;
  }
  #rm-wrap main { padding-bottom: 100px; }

  /* ── 네비게이션 ── */
  .rm-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 8px; background: var(--wh-bg, #f2f4f6);
    position: sticky; top: 0; z-index: 100;
    transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease, border-radius .3s ease;
  }
  .rm-nav.scrolled {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 0 0 20px 20px;
    min-height: 56px;
  }
  .rm-nav-right { display: flex; gap: 2px; }
  .rm-nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; text-decoration: none; color: #333;
    border: none; background: none; cursor: pointer; border-radius: 50%;
  }
  .rm-nav-btn:hover { background: #eee; }
  .rm-nav-btn .material-symbols-outlined { font-size: 24px; }

  /* 하트 아이콘 */
  .rm-heart-wrap { position: relative; width: 24px; height: 24px; }
  .rm-heart-wrap svg { width: 24px; height: 24px; display: block; position: absolute; top: 0; left: 0; }
  .rm-heart-wrap .heart { stroke: #333; fill: none; stroke-width: 1.8; }
  .rm-heart-wrap .heart_on { fill: #ef4444; stroke: #ef4444; stroke-width: 1.8; display: none; }
  .rm-heart-wrap .heart_on.d-none { display: none; }
  .rm-heart-wrap .heart.d-none { display: none; }
  /* 찜 상태 */
  .rm-nav-btn.sred .heart { display: none; }
  .rm-nav-btn.sred .heart_on { display: block !important; }

  /* 하트 애니메이션 */
  @keyframes rm-heart-pop {
    0% { transform: scale(1); }
    25% { transform: scale(1.35); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
  .rm-heart-anim { animation: rm-heart-pop 0.4s ease; }

  /* 공유 모달 */
  .rm-share-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 9998; display: none;
  }
  .rm-share-modal {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 720px; z-index: 9999;
    background: #fff; border-radius: 20px 20px 0 0;
    padding: 24px 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
    display: none;
  }
  .rm-share-title { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 20px; text-align: center; }
  .rm-share-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: #f2f2f2; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .rm-share-close .material-symbols-outlined { font-size: 18px; color: #666; }
  .rm-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .rm-share-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; cursor: pointer; border: none; background: none; font-family: inherit;
  }
  .rm-share-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
  }
  .rm-share-icon img { width: 30px; height: 30px; object-fit: contain; }
  .rm-share-icon .material-symbols-outlined { font-size: 26px; color: #fff; }
  .rm-share-name { font-size: 11px; color: #666; font-weight: 500; }

  /* ── 이미지 스와이퍼 ── */
  .room-photo-wrap {
    overflow: hidden;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .room-photo-swiper {
    overflow: visible !important;
    touch-action: pan-y; user-select: none; -webkit-user-select: none;
  }
  .room-photo-swiper .swiper-slide {
    width: calc(100% - 52px); border-radius: 14px; overflow: hidden;
  }
  .room-photo-swiper img { pointer-events: none; -webkit-user-drag: none; }
  .room-photo-img {
    display: block; width: 100%;
    aspect-ratio: 4/3; object-fit: cover; background-color: var(--wh-sep-opaque);
    align-self: flex-start; /* 이미지가 부모 높이만큼 늘어나는 걸 방지 */
    height: auto; /* 명시적으로 자동 높이 설정 */

  }
  .room-photo-noimg { display: flex; align-items: center; justify-content: center; }
  .room-photo-swiper .swiper-pagination { bottom: 12px; }
  .room-photo-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.7); opacity: 1; width: 6px; height: 6px; transition: all 0.2s;
  }
  .room-photo-swiper .swiper-pagination-bullet-active {
    background: #fff; width: 8px; height: 8px;
  }

  /* PC 화살표 버튼 — 모바일에선 숨김 */
  .rp-nav-btn {
    display: none;
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: none; cursor: pointer;
    align-items: center; justify-content: center; color: #111;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .rp-nav-btn:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
  .rp-nav-btn:active { background: #f0f0f0; transform: translateY(-50%) scale(0.96); }
  .rp-nav-prev { left: 20px; }
  .rp-nav-next { right: 20px; }
  .rp-nav-btn.swiper-button-disabled { opacity: 0; pointer-events: none; }
  @media (hover: hover) and (pointer: fine) {
    .rp-nav-btn { display: flex; }
  }

  /* 사진 전체보기 버튼 */
  .rp-all-btn {
    position: absolute; bottom: 14px; right: 14px; z-index: 10;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff; border: none; border-radius: 20px;
    padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; letter-spacing: -0.01em;
  }
  .rp-all-btn:active { opacity: 0.75; }

  /* ===== 사진 전체보기 갤러리 ===== */
  #rp-gallery {
    display: none; position: fixed; inset: 0; z-index: 20000;
    background: #111; flex-direction: column;
    font-family: 'Noto Sans KR', sans-serif;
  }
  #rp-gallery.open { display: flex; }

  /* 헤더 */
  .rpg-header {
    flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
    padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
    background: #111;
  }
  .rpg-close {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.12); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; position: relative; z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }
  .rpg-close:active { background: rgba(255,255,255,0.25); }
  .rpg-counter { font-size: 15px; font-weight: 600; color: #fff; }
  .rpg-spacer { width: 36px; }

  /* 메인 사진 영역 */
  .rpg-main {
    flex: 1; min-height: 0; position: relative; overflow: hidden;
  }
  .rpg-main-swiper { width: 100%; height: 100%; }
  .rpg-main-swiper .swiper-slide {
    display: flex; align-items: center; justify-content: center;
  }
  .rpg-main-swiper .swiper-slide img {
    width: 100%; height: 100%;
    object-fit: contain; user-select: none; -webkit-user-drag: none;
    pointer-events: none;
  }

  /* 갤러리 화살표 버튼 */
  .rpg-nav-btn {
    display: none;
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.25);
    cursor: pointer; align-items: center; justify-content: center;
    color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    transition: background 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .rpg-nav-btn:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) scale(1.07); }
  .rpg-nav-btn:active { background: rgba(255,255,255,0.38); transform: translateY(-50%) scale(0.96); }
  .rpg-nav-prev { left: 20px; }
  .rpg-nav-next { right: 20px; }
  .rpg-nav-btn.swiper-button-disabled { opacity: 0; pointer-events: none; }
  @media (hover: hover) and (pointer: fine) {
    .rpg-nav-btn { display: flex; }
  }

  /* 썸네일 스트립 */
  .rpg-strip {
    flex-shrink: 0; height: 80px;
    background: #000; padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    overflow-x: auto; overflow-y: hidden;
    display: flex; gap: 6px; align-items: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rpg-strip::-webkit-scrollbar { display: none; }
  .rpg-thumb {
    flex-shrink: 0; width: 58px; height: 58px;
    border-radius: 6px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; box-sizing: border-box;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 0.55;
  }
  .rpg-thumb.active { border-color: #fff; opacity: 1; }
  .rpg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* ── 본문 내용 영역 ── */
  .rm-content { padding: 0 20px 20px; }

  /* ── 제목 & 메타 ── */
  .rm-title-section { padding-top: 16px; }
  /* 배지 행 (위치) */
  .rm-title-badges {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; flex-wrap: wrap;
  }
  .rm-badge {
    display: inline-flex; align-items: center;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: var(--wh-radius-pill, 999px);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.94);
    color: var(--wh-brand, #6800cd);
    border: 1px solid rgba(104, 0, 205, 0.18);
    letter-spacing: -0.01em;
  }
  .rm-badge-premiumhost,
  .rm-badge-popular,
  .rm-badge-new,
  .rm-badge-instantbook,
  .rm-badge-selfcheckin {
    background: rgba(255, 255, 255, 0.94);
    color: var(--wh-brand, #6800cd);
    border: 1px solid rgba(104, 0, 205, 0.18);
  }
  .rm-badge-certified {
    background: var(--wh-brand-tint, #f3eefb);
    border-color: rgba(104, 0, 205, 0.22);
  }
  .rm-badge-location {
    font-size: 13px; color: var(--wh-tx3, #8b95a1); font-weight: 500;
    background: none; border: none; padding: 0;
  }
  .rm-trust-strip {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 14px; padding: 14px 16px;
    border-radius: var(--wh-radius-md, 20px);
    background: var(--wh-brand-tint, #f3eefb);
    border: 1px solid var(--wh-info-bd, #ddd0f5);
  }
  .rm-trust-icon {
    font-size: 22px; color: var(--wh-brand, #6800cd); flex-shrink: 0; margin-top: 1px;
  }
  .rm-trust-title {
    font-size: 14px; font-weight: 800; color: var(--wh-tx, #191f28); line-height: 1.35;
  }
  .rm-trust-sub {
    font-size: 12px; color: var(--wh-tx2, #4e5968); margin-top: 3px; line-height: 1.45;
  }
  .rm-title {
    font-size: 26px; font-weight: 800; color: #111;
    line-height: 1.3; letter-spacing: -0.5px;
  }
  /* 스펙 행 (최대 N명 · 침실 N개 · 욕실 N개) */
  .rm-specs-row {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-top: 12px;
  }
  .rm-spec-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; color: #555; font-weight: 500;
  }
  .rm-spec-item .material-symbols-outlined { font-size: 17px; color: #666; }
  .rm-meta { display: none; } /* 기존 meta 행 숨김 */

  /* ── 태그 배지 ── */
  .rm-tags-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 14px;
  }
  .room-tag-item {
    display: inline-flex; align-items: center;
    padding: 6px 13px;
    background: #e6e6e6; color: #4b5563;
    border-radius: 30px;
    font-size: 13px; font-weight: 500;
    white-space: nowrap; line-height: 1;
    letter-spacing: -0.1px;
  }

  /* ── 구분선 ── */
  .rm-divider { height: 1px; background: #eee; margin: 20px 0; }

  /* ── 호스트 카드 ── */
  .rm-host {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 16px;
    padding: 18px 20px;
  }
  .rm-host-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background-size: cover; background-position: center;
    flex-shrink: 0; display: block; text-decoration: none;
  }
  .rm-host-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
  .rm-host-label { display: none; }
  .rm-host-name { font-size: 16px; font-weight: 700; color: #111; line-height: 1.3; }
  .rm-host-since {
    font-size: 13px; color: #777; font-weight: 400;
    display: block; background: none; padding: 0; border-radius: 0; width: auto;
  }
  .rm-host-since .material-symbols-outlined { display: none; }
  .rm-host-contact {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; color: var(--wh-brand, #6800cd) !important;
    text-decoration: none !important; flex-shrink: 0;
    background: #f3e8f7; border-radius: 20px; padding: 8px 14px;
  }
  .rm-host-contact svg { flex-shrink: 0; }

  .rm-longstay {
    margin-top: 12px;
    padding: 14px 15px;
    border: 1px solid #eadff0;
    border-radius: 16px;
    background: #fbf7fc;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .rm-longstay-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f0e4f4;
    color: var(--wh-brand, #6800cd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .rm-longstay-icon .material-symbols-outlined { font-size: 20px; }
  .rm-longstay-body { min-width: 0; flex: 1; }
  .rm-longstay-title { font-size: 14px; font-weight: 800; color: #111; line-height: 1.35; }
  .rm-longstay-sub { margin-top: 3px; font-size: 12px; color: #777; line-height: 1.45; }
  .rm-longstay-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .rm-longstay-rule {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eadff0;
    color: var(--wh-brand, #6800cd);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }
  .rm-host-contact:hover { background: #ead9f2; }

  /* ── 하이라이트 ── */
  .rm-highlights { display: flex; flex-direction: column; gap: 18px; }
  .rm-hl-item { display: flex; gap: 14px; align-items: flex-start; }
  .rm-hl-item .material-symbols-outlined { font-size: 22px; color: #555; flex-shrink: 0; margin-top: 1px; }
  .rm-hl-title { font-size: 14px; font-weight: 700; color: #111; }
  .rm-hl-sub { font-size: 13px; color: #999; margin-top: 2px; }
  .rm-hl-action {
    width: 100%; border: none; background: none; padding: 0; margin: 0;
    text-align: left; font: inherit; cursor: pointer; color: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .rm-hl-action:active { opacity: 0.72; }
  .rm-hl-action-body { flex: 1; min-width: 0; }
  .rm-hl-action-top { display: flex; align-items: center; gap: 6px; }
  .rm-hl-action-top .rm-hl-title { flex: 1; min-width: 0; }
  .rm-hl-pill {
    display: inline-flex; align-items: center; flex-shrink: 0;
    padding: 2px 7px; border-radius: 999px;
    background: rgba(104,0,205,0.08); color: var(--wh-brand, #6800cd);
    font-size: 11px; font-weight: 700; line-height: 1.35;
  }
  .rm-hl-more {
    display: inline-flex; align-items: center; gap: 2px;
    margin-top: 6px; color: var(--wh-brand, #6800cd);
    font-size: 12px; font-weight: 700;
  }
  .rm-hl-cancel {
    padding: 14px 16px;
    border-radius: var(--wh-radius-md, 20px);
    background: var(--wh-warn-bg, #fffbeb);
    border: 1px solid var(--wh-warn-bd, #fde68a);
    box-sizing: border-box;
  }
  .rm-hl-cancel .rm-hl-title { color: var(--wh-warn-tx, #92400e); }
  .rm-hl-cancel .rm-hl-sub { color: var(--wh-tx2, #4e5968); }
  .rm-hl-cancel .rm-hl-pill {
    background: rgba(146, 64, 14, 0.08);
    color: var(--wh-warn-tx, #92400e);
  }
  .rm-hl-more .material-symbols-outlined {
    font-size: 15px; color: var(--wh-brand, #6800cd); margin-top: 0;
  }

  /* ── 숙소 설명 ── */
  .rm-desc-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 12px; }
  .rm-desc-text { font-size: 14px; color: #555; line-height: 1.7; }
  .desc-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .rm-desc-more {
    margin-top: 10px; font-size: 14px; font-weight: 700; color: #111;
    display: flex; align-items: center; gap: 3px;
    background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
  }
  .rm-desc-more .material-symbols-outlined { font-size: 16px; }

  /* ── 편의시설 ── */
  .rm-amen-section {
    /* rm-content의 padding: 0 20px을 뚫고 full-width 배경 */
    margin: 32px -20px;
    background: #fff;
    padding: 28px 20px;
  }
  .rm-amen-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 16px; }
  .rm-amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .rm-amen-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; }
  .rm-amen-item img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
  .amen-hidden { display: none; }
  .rm-amen-more {
    margin-top: 20px; width: 100%; padding: 14px;
    border: 1.5px solid var(--wh-brand, #6800cd); border-radius: 12px;
    background: #fff; font-size: 14px; font-weight: 700; color: var(--wh-brand, #6800cd);
    cursor: pointer; font-family: inherit; transition: background .15s;
  }
  .rm-amen-more:hover { background: #faf6ff; }

  /* ── 날짜 선택 (C+D 합본 최종) ── */
  .rm-date-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 14px; }
  .rm-df {
    background: #fff; border-radius: 16px; border: 1.5px solid #eee;
    padding: 16px 14px; cursor: pointer;
    display: flex; align-items: center;
    transition: border-color 0.15s;
  }
  .rm-df:hover { border-color: var(--wh-brand, #6800cd); }
  .rm-df-item { display: flex; align-items: center; gap: 10px; }
  .rm-df-item-right { flex-direction: row-reverse; }
  .rm-df-icon {
    width: 30px; height: 30px; border-radius: 10px;
    background: #f3ecff; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .rm-df-icon .material-symbols-outlined { font-size: 20px; color: var(--wh-brand, #6800cd); }
  .rm-df-type { font-size: 11px; font-weight: 600; color: #999; }
  .rm-df-date { font-size: 17px; font-weight: 800; color: #111; margin-top: 1px; letter-spacing: -0.3px; }
  .rm-df-empty { color: #ccc !important; font-weight: 500; font-size: 14px !important; }
  .rm-df-center {
    flex: 1; display: flex; align-items: center; padding: 0 8px; min-width: 0;
  }
  .rm-df-line { flex: 1; height: 1.5px; background: var(--wh-sep-opaque); }
  .rm-df-pill {
    font-size: 11px; font-weight: 700; color: var(--wh-brand, #6800cd);
    background: #f3ecff; padding: 3px 10px; border-radius: 20px;
    white-space: nowrap; margin: 0 6px;
  }

  /* ── 지도 ── */
  .rm-map-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 14px; }
  .rm-map-container {
    width: 100%; height: 200px; border-radius: 14px; overflow: hidden;
    background: var(--wh-sep-opaque);
  }
  .rm-map-city { font-size: 15px; font-weight: 700; color: #111; margin-top: 10px; }
  .rm-map-addr { font-size: 13px; color: #999; margin-top: 4px; }

  /* ── 하단 예약 바 ── */
  .rm-bottom {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 720px; z-index: 101;
    background: #fff; border-top: 1px solid #f0f0f0;
    padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .rm-bottom-price { font-size: 20px; font-weight: 900; color: #111; }
  .rm-bottom-per { font-size: 13px; color: #999; font-weight: 400; }
  .rm-bottom-total {
    font-size: 12px; color: #888; margin-top: 2px;
    font-weight: 400; letter-spacing: -0.01em;
    cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
    text-decoration-style: dotted;
  }
  /* 날짜 선택 후 총합계 표시 모드 */
  .rm-bottom-total.is-total {
    font-size: 20px; font-weight: 900; color: #111;
    margin-top: 0; letter-spacing: -0.02em;
  }
  .rm-bottom-total.is-total .rm-total-label {
    font-size: 13px; color: #999; font-weight: 400;
  }

  /* ===== 가격 상세 모달 ===== */
  #rm-price-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); z-index: 10000;
  }
  #rm-price-overlay.active { display: block; }
  #rm-price-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 40px); max-width: 360px; z-index: 10001;
    background: #fff; border-radius: 16px;
    opacity: 0; pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  }
  #rm-price-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: auto;
  }
  .rmp-handle { display: none; }
  .rmp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px;
  }
  .rmp-title { font-size: 17px; font-weight: 700; color: #111; }
  .rmp-close {
    background: none; border: none; cursor: pointer; color: #666;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; padding: 0;
  }
  .rmp-close:active { background: #f2f2f2; }
  .rmp-body { padding: 0 20px 8px; }
  .rmp-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px solid #f3f3f3;
  }
  .rmp-row:last-child { border-bottom: none; }
  .rmp-label { font-size: 15px; color: #333; font-weight: 400; }
  .rmp-value { font-size: 15px; color: #111; font-weight: 500; white-space: nowrap; }
  .rmp-divider { height: 1px; background: #e8e8e8; margin: 4px 0; }
  .rmp-row-total .rmp-label { font-size: 16px; font-weight: 700; color: #111; }
  .rmp-row-total .rmp-value { font-size: 16px; font-weight: 700; color: #111; }
  .rmp-row-discount .rmp-value { color: #16a34a; }
  .rmp-row-deposit {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 11px 0 4px;
  }
  .rmp-deposit-label { font-size: 14px; color: #111; }
  .rmp-deposit-value { font-size: 14px; color: #111; font-weight: 500; white-space: nowrap; }
  .rmp-deposit-note {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #16a34a;
    background: #f0fdf4; border-radius: 4px;
    padding: 1px 6px; margin-top: 4px;
  }
  .rmp-footer { padding: 16px 20px; }

  /* ===== 취소 정책 상세 모달 ===== */
  #rm-policy-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 10000;
  }
  #rm-policy-overlay.active { display: block; }
  #rm-policy-sheet {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
    width: 100%; max-width: 720px; z-index: 10001;
    background: #fff; border-radius: 20px 20px 0 0;
    transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
    max-height: 88vh; overflow-y: auto;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.15);
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  #rm-policy-sheet.active { transform: translateX(-50%) translateY(0); }
  .rmpol-handle { width: 36px; height: 4px; background: #e0e0e0; border-radius: 2px; margin: 12px auto 0; }
  .rmpol-header {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 18px 20px 14px; border-bottom: 1px solid #f0f0f0;
  }
  .rmpol-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex: 0 0 36px;
    border-radius: 12px; background: rgba(104,0,205,0.08);
    color: var(--wh-brand, #6800cd);
  }
  .rmpol-icon .material-symbols-outlined { font-size: 21px; }
  .rmpol-title-wrap { flex: 1; min-width: 0; }
  .rmpol-eyebrow {
    display: block; color: var(--wh-brand, #6800cd);
    font-size: 12px; font-weight: 800; margin-bottom: 2px;
  }
  .rmpol-title { display: block; font-size: 18px; font-weight: 800; color: #111; line-height: 1.35; }
  .rmpol-close {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: var(--wh-bg, #f2f4f6); color: #555; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 34px; padding: 0;
  }
  .rmpol-close:active { background: #ececec; }
  .rmpol-summary {
    margin: 14px 20px 0; padding: 12px 14px;
    border-radius: 14px; background: #f7f2fa;
    color: #3a2146; font-size: 13px; line-height: 1.55;
    font-weight: 600;
  }
  .rmpol-body {
    padding: 14px 20px 0; color: #333; font-size: 14px; line-height: 1.65;
  }
  .rmpol-body .cancelp_cont h2 {
    margin: 4px 0 10px; font-size: 15px; font-weight: 800; color: #111;
  }
  .rmpol-body .cancelp_cont h3 {
    margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #444;
  }
  .rmpol-body .policy-list {
    margin: 0; padding: 0; list-style: none;
  }
  .rmpol-body .policy-list li {
    position: relative; padding: 0 0 10px 18px; color: #4a4a4a;
  }
  .rmpol-body .policy-list li::before {
    content: ''; position: absolute; left: 2px; top: 9px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--wh-brand, #6800cd);
  }
  .rmpol-body dl { margin: 0; }
  .rmpol-body dt { margin-top: 12px; font-weight: 800; color: #111; }
  .rmpol-body dd { margin: 4px 0 0; color: #555; }
  .rmpol-body .policy-notes {
    margin-top: 16px; padding: 14px;
    border-radius: 14px; background: #f7f7f8;
  }
  .rmpol-body .policy-notes dt {
    margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #111;
  }
  .rmpol-body .policy-notes dd {
    position: relative; margin: 0; padding: 0 0 8px 14px;
    color: #666; font-size: 12px; line-height: 1.55;
  }
  .rmpol-body .policy-notes dd::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 4px; height: 4px; border-radius: 50%; background: #aaa;
  }
  .rmpol-body .policy-notes a {
    display: inline-flex !important; margin-top: 8px !important;
    color: var(--wh-brand, #6800cd); font-size: 13px;
    font-weight: 700; text-decoration: none;
  }

  .rm-bottom-dates {
    font-size: 13px; color: var(--wh-brand, #6800cd); text-decoration: none;
    margin-top: 3px; display: block; cursor: pointer;
    background: none; border: none; padding: 0; font-family: inherit;
  }
  .rm-book-btn {
    display: inline-block; padding: 14px 28px;
    background: var(--wh-brand, #6800cd) !important; color: #fff !important;
    border-radius: var(--wh-radius-btn, 18px); font-size: 16px; font-weight: 700;
    text-decoration: none !important; border: none; cursor: pointer;
    font-family: inherit; box-shadow: 0 4px 14px rgba(74,0,128,0.2);
    transition: opacity 0.15s;
  }
  .rm-book-btn:hover, .rm-book-btn:visited, .rm-book-btn:active { color: #fff !important; opacity: 0.9; }

  /* ===== Airbnb 스타일 날짜 선택 모달 ===== */
  #wh-cal-modal {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 720px;
    height: 100%; height: 100dvh;
    z-index: 9999; background: #fff;
    display: flex; flex-direction: column;
    box-sizing: border-box;
    padding-top: var(--safe-t, env(safe-area-inset-top, 0px));
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear;
    font-family: 'Noto Sans KR', sans-serif;
  }
  #wh-cal-modal.wh-cal-hidden { transform: translateX(-50%) translateY(100%); pointer-events: none; visibility: hidden; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.3s; }

  .wh-cal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
  }
  .wh-cal-header-title { font-size: 16px; font-weight: 700; color: #111; }
  .wh-cal-btn-close {
    background: none; border: none; cursor: pointer; color: #111;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; padding: 0;
  }
  .wh-cal-btn-close:active { background: #f2f2f2; }
  .wh-cal-btn-reset {
    background: none; border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--wh-brand, #6800cd);
    padding: 6px 4px; border-radius: 6px; font-family: inherit;
  }
  .wh-cal-btn-reset:active { opacity: 0.7; }

  .wh-cal-tabs {
    display: flex; padding: 12px 16px; gap: 10px; flex-shrink: 0;
  }
  .wh-cal-tab {
    flex: 1; padding: 10px 12px; border-radius: 12px;
    border: 2px solid var(--wh-sep-opaque); cursor: pointer;
    background: #fff; text-align: left; transition: border-color 0.15s;
  }
  .wh-cal-tab.wh-tab-active { border-color: var(--wh-brand, #6800cd); }
  .wh-cal-tab-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #888;
  }
  .wh-cal-tab-date {
    font-size: 14px; font-weight: 600; color: #111; margin-top: 2px;
  }
  .wh-cal-tab.wh-tab-active .wh-cal-tab-date { color: var(--wh-brand, #6800cd); }

  #wh-cal-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  .wh-cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    padding: 0 8px; background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; z-index: 5;
  }
  .wh-cal-weekday {
    text-align: center; padding: 8px 0;
    font-size: 12px; font-weight: 600; color: #888;
  }
  .wh-cal-weekday:first-child { color: #ef4444; }
  .wh-cal-weekday:last-child { color: #3b82f6; }

  .wh-cal-month { padding: 0 8px 20px; }
  .wh-month-header {
    padding: 20px 4px 12px;
    font-size: 16px; font-weight: 700; color: #111;
  }

  .wh-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

  .wh-day {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    height: 48px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .wh-day-empty { cursor: default; }
  .wh-day-inner {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 14px; font-weight: 500; color: #111;
    position: relative; z-index: 2; flex-shrink: 0;
  }
  .wh-day-num { line-height: 1; }

  .wh-day-unavail, .wh-day-past { cursor: not-allowed; }
  .wh-day-unavail .wh-day-inner {
    color: #ccc; text-decoration: line-through; text-decoration-color: #ccc;
  }
  .wh-day-past .wh-day-inner { color: #ccc; }

  /* 체크아웃 전용 날짜 (다음 예약 체크인일)
     — 기본 / 체크인 이전: 그냥 회색 (unavail과 동일)
     — 체크인 이후(.wh-co-eligible): 원 안에 숫자 + "out" 라벨 표시 */
  .wh-day-co-only { cursor: not-allowed; }
  .wh-day-co-only .wh-day-num { color: #ccc; }

  .wh-day-co-only.wh-co-eligible { cursor: pointer; }
  .wh-day-co-only.wh-co-eligible:not(.wh-day-end) .wh-day-inner {
    flex-direction: column; gap: 1px; font-size: 13px;
  }
  .wh-day-co-only.wh-co-eligible:not(.wh-day-end) .wh-day-num { color: #444; }
  .wh-day-co-only.wh-co-eligible:not(.wh-day-end) .wh-day-inner::after {
    content: 'out';
    display: block; font-size: 7px; font-weight: 800;
    color: var(--wh-brand, #6800cd); letter-spacing: 0.04em; line-height: 1;
  }
  @media (hover: hover) and (pointer: fine) {
    .wh-day-co-only.wh-co-eligible:not(.wh-day-end):hover .wh-day-inner { background: #f2f2f2; }
  }

  /* 오늘 날짜: 아웃라인 링 */
  .wh-day-today:not(.wh-day-start):not(.wh-day-end) .wh-day-inner {
    box-shadow: inset 0 0 0 2px var(--wh-brand, #6800cd);
  }
  .wh-day-today.wh-day-unavail .wh-day-inner,
  .wh-day-today.wh-day-past .wh-day-inner { box-shadow: inset 0 0 0 2px #ccc; }

  /* 토/일 색상 (한국 캘린더 관습) */
  .wh-day-sun:not(.wh-day-unavail):not(.wh-day-past):not(.wh-day-co-only) .wh-day-num { color: #ef4444; }
  .wh-day-sat:not(.wh-day-unavail):not(.wh-day-past):not(.wh-day-co-only) .wh-day-num { color: #3b82f6; }
  .wh-day-holiday:not(.wh-day-unavail):not(.wh-day-past):not(.wh-day-co-only) .wh-day-num { color: #ef4444; }
  /* co-eligible 상태에서 토/일은 색상 유지 */
  .wh-day-sun.wh-co-eligible:not(.wh-day-end) .wh-day-num { color: #ef4444; }
  .wh-day-sat.wh-co-eligible:not(.wh-day-end) .wh-day-num { color: #3b82f6; }

  .wh-day-start .wh-day-inner,
  .wh-day-end .wh-day-inner { background: var(--wh-brand, #6800cd); color: #fff !important; }
  .wh-day-start .wh-day-num,
  .wh-day-end .wh-day-num { color: #fff !important; }

  /* 범위 선택 — 셀 사각 칠하기 대신 40px 연결 바 (검색 오버레이 cal_day.range_bg 패턴) */
  #wh-cal-modal .wh-day::before {
    content: '';
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background: var(--wh-brand-tint, #f3eefb);
    z-index: 1;
    pointer-events: none;
  }
  #wh-cal-modal .wh-day-range::before {
    display: block;
    left: 0;
    right: 0;
  }
  #wh-cal-modal .wh-day-range-s::before {
    display: block;
    left: 50%;
    right: 0;
  }
  #wh-cal-modal .wh-day-range-e::before {
    display: block;
    left: 0;
    right: 50%;
  }
  #wh-cal-modal .wh-day-start.wh-day-end::before {
    display: none;
  }
  #wh-cal-modal .wh-day-range .wh-day-num {
    color: var(--wh-brand, #6800cd);
    font-weight: 600;
  }
  #wh-cal-modal .wh-day-range,
  #wh-cal-modal .wh-day-range-s,
  #wh-cal-modal .wh-day-range-e,
  #wh-cal-modal .wh-day-start.wh-day-end {
    background: transparent !important;
  }

  @media (hover: hover) {
    .wh-day:not(.wh-day-unavail):not(.wh-day-past):not(.wh-day-empty):hover .wh-day-inner { background: #f2f2f2; }
    .wh-day-start:hover .wh-day-inner,
    .wh-day-end:hover .wh-day-inner { background: #3a0066 !important; }
  }

  /* 최소 숙박일 알림 배너 */
  #wh-min-alert {
    display: none; align-items: center; gap: 9px;
    margin: 10px 16px; padding: 11px 14px;
    background: #fff8ed; border: 1px solid #fde68a;
    border-radius: 12px; flex-shrink: 0;
    opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
  #wh-min-alert.visible {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .wh-min-alert-icon { flex-shrink: 0; color: #d97706; }
  .wh-min-alert-text { font-size: 13px; font-weight: 500; color: #92400e; line-height: 1.4; }

  .wh-cal-footer {
    padding: 12px 16px calc(12px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid #f0f0f0;
    background: #fff; flex-shrink: 0;
  }
  .wh-cal-footer-summary {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
  }
  #wh-cal-footer-text { font-size: 14px; font-weight: 600; color: #111; }
  #wh-cal-footer-nights {
    font-size: 13px; font-weight: 700; color: var(--wh-brand, #6800cd);
    background: #f3ecff; padding: 4px 10px; border-radius: 20px;
  }
  #wh-cal-save {
    display: block; width: 100%;
    background: var(--wh-brand, #6800cd); color: #fff; border: none;
    border-radius: 14px; padding: 16px;
    font-size: 17px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: opacity 0.15s;
    text-align: center;
  }
  #wh-cal-save:disabled { background: #ddd; color: #999; cursor: not-allowed; }
  #wh-cal-save:not(:disabled):active { opacity: 0.8; }

  /* ── 리뷰 섹션 ── */
  .rm-review-title {
    font-size: 18px; font-weight: 700; color: #111; margin-bottom: 20px;
    display: flex; align-items: center; gap: 6px;
  }
  /* 별점 분포 */
  .rm-review-summary { display: flex; align-items: flex-start; gap: 20px; }
  .rm-review-score-big {
    font-size: 54px; font-weight: 900; color: #111;
    line-height: 1; letter-spacing: -2px;
  }
  .rm-review-stars-main { display: flex; gap: 2px; margin: 8px 0 6px; }
  /* SVG 별 아이콘 — Safari font-variation-settings 미지원 대응 */
  .wh-star { display: inline-block; flex-shrink: 0; }
  .wh-star svg { display: block; }
  .rm-review-total { font-size: 13px; color: #666; white-space: nowrap; }
  .rm-star-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
  .rm-star-row { display: flex; align-items: center; gap: 8px; }
  .rm-star-lbl { font-size: 12px; color: #555; width: 10px; text-align: right; flex-shrink: 0; }
  .rm-star-bar-bg { flex: 1; height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
  .rm-star-bar-fill { height: 100%; background: var(--wh-brand, #6800cd); border-radius: 2px; }
  .rm-star-pct { font-size: 11px; color: #999; width: 28px; text-align: right; flex-shrink: 0; }
  /* 카테고리 */
  .rm-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 20px; }
  .rm-cat-label { font-size: 12px; color: #666; margin-bottom: 5px; }
  .rm-cat-row { display: flex; align-items: center; gap: 8px; }
  .rm-cat-bar-bg { flex: 1; height: 3px; background: #eee; border-radius: 2px; overflow: hidden; }
  .rm-cat-bar-fill { height: 100%; background: var(--wh-brand, #6800cd); border-radius: 2px; }
  .rm-cat-score { font-size: 13px; font-weight: 700; color: var(--wh-purple); width: 24px; text-align: right; flex-shrink: 0; }
  /* 리뷰 카드 */
  .rm-review-list {
    display: flex;
    flex-direction: column;
    gap: var(--wh-space-md, 16px);
    margin-top: 20px;
  }
  .rm-review-card {
    padding: 18px 16px;
    border: 1px solid #eef1f4;
    border-radius: var(--wh-radius-md, 20px);
    background: var(--wh-card, #fff);
    margin: 0;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
  }
  .rm-review-card:active { background: var(--wh-bg, #f2f4f6); }
  .rm-review-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
  .rm-review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--wh-sep-opaque); flex-shrink: 0; }
  .rm-review-meta { flex: 1; min-width: 0; }
  .rm-review-name { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; }
  .rm-review-date { font-size: 12px; color: #999; margin-top: 2px; }
  .rm-review-stars-row { display: flex; gap: 1px; margin-top: 2px; }
  .rm-review-text { font-size: 14px; color: #444; line-height: 1.7; word-break: break-word; }
  .rm-review-text.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .rm-review-more-btn {
    display: flex; align-items: center; gap: 2px;
    margin-top: 8px; font-size: 13px; font-weight: 700; color: #111;
    background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
  }
  .rm-review-all-btn {
    display: block; width: 100%; padding: 13px;
    border: 1.5px solid #ddd; border-radius: 12px; margin-top: 12px;
    background: #fff; font-size: 14px; font-weight: 700; color: #111;
    cursor: pointer; font-family: inherit; text-align: center; text-decoration: none;
  }
  .rm-review-all-btn:hover { background: #fafafa; }
  /* 리뷰 세부 바텀시트 */
  #rv-detail-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); z-index: 10000;
  }
  #rv-detail-overlay.active { display: block; }
  #rv-detail-sheet {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
    width: 100%; max-width: 720px; z-index: 10001;
    background: #fff; border-radius: 20px 20px 0 0;
    transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
    max-height: 88vh; overflow-y: auto;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.15);
  }
  #rv-detail-sheet.active { transform: translateX(-50%) translateY(0); }
  .rvd-handle { width: 36px; height: 4px; background: #e0e0e0; border-radius: 2px; margin: 12px auto 0; }
  .rvd-header {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 20px 14px; border-bottom: 1px solid #f0f0f0;
  }
  .rvd-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #f0f0f0; }
  .rvd-meta { flex: 1; min-width: 0; }
  .rvd-name { font-size: 15px; font-weight: 700; color: #111; }
  .rvd-date { font-size: 12px; color: #999; margin-top: 2px; }
  .rvd-stars-row { display: flex; align-items: center; gap: 2px; margin-top: 5px; }
  .rvd-close {
    background: none; border: none; cursor: pointer; color: #999;
    padding: 0; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
  }
  .rvd-close:active { background: #f2f2f2; }
  .rvd-text-section { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
  .rvd-text { font-size: 14px; color: #444; line-height: 1.75; word-break: break-word; margin: 0; }
  .rvd-cats-section { padding: 18px 20px 32px; }
  .rvd-cats-title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 14px; }
  .rvd-cat-item { margin-bottom: 13px; }
  .rvd-cat-item:last-child { margin-bottom: 0; }
  .rvd-cat-row { display: flex; align-items: center; gap: 10px; }
  .rvd-cat-label { font-size: 13px; color: #555; flex-shrink: 0; white-space: nowrap; margin-right: auto; }
  .rvd-cat-bar-bg { width: 70%; flex-shrink: 0; height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
  .rvd-cat-bar-fill { height: 100%; background: var(--wh-brand, #6800cd); border-radius: 2px; transition: width 0.4s ease 0.05s; }
  .rvd-cat-score { font-size: 13px; font-weight: 700; color: var(--wh-brand, #6800cd); width: 26px; text-align: right; flex-shrink: 0; }

