/**
 * 호텔 지도 오버레이 스타일 — 참조 HTML _app_decoded.html 준용
 * hotelList.php 안 #hotel-map-overlay(.map-modal) 이 오픈되는 오버레이
 */

/* 기존 hotelList.css 의 .map-overlay 를 덮어씀 */
.map-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 400;
}

/* 지도 데이터 로딩 인디케이터 — 하얀 배경 없이 반투명 스피너 chip 만 */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(20, 25, 40, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.map-loading.on { display: inline-flex; }
.map-loading .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: map-loading-spin 0.8s linear infinite;
}
@keyframes map-loading-spin {
    to { transform: rotate(360deg); }
}
.map-modal.open { display: block; }
.map-modal .frame {
    position: absolute;
    inset: 24px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
}

/* ==== 좌측 리스트 패널 ==== */
#mSide {
    width: 360px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    background: #fff;
}
#mHead { padding: 12px 16px; border-bottom: 1px solid #eee; position: relative; }
/* X 버튼 절대배치 — top flex 폭 계산에서 제외해 아래 라인들 공간 확보 */
#mHead .top { padding-right: 36px; }
#mHead .t { font-size: 16px; font-weight: 800; }
#mHead .d {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;   /* 예약가능숙소 라인과 간격 */
}
/* d 앞 위치·달력 아이콘 공통 크기 */
#mHead .d .d-ico {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: #6b7280;
}
#mHead #mDate {
    color: #1a5fd6;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}
#mHead #mDate .d-ico { color: #1a5fd6; }

/* ==== 지역 드롭다운 (지도 헤더) ==== */
#mHead #mLocPicker { position: relative; }
#mHead .loc-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #173a7a;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
#mHead .loc-trigger:hover { color: #1a5fd6; }
#mHead .loc-chev {
    width: 12px;
    height: 12px;
    color: #8a93a0;
    transition: transform 0.2s ease;
}
#mHead #mLocPicker.is-open .loc-chev { transform: rotate(180deg); }
#mHead .loc-suffix { color: #6b7280; }
#mHead .loc-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
#mHead #mLocPicker.is-open .loc-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#mHead .loc-opt {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}
#mHead .loc-opt:hover { background: #EEF4FF; }
#mHead .loc-opt.is-selected { background: #EEF4FF; color: #1a5fd6; }
#mHead #mDate .edit-hint {
    color: #8a93a0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    white-space: nowrap;
}
#mHead #mDate .edit-hint .edit-ico {
    width: 12px;
    height: 12px;
    color: #8a93a0;
}
#mClose {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #374151;
    line-height: 1;
    z-index: 2;
}
#mClose:hover { background: #f3f4f6; }
#mHead select {
    margin-top: 8px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
}

#mList {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* Firefox 커스텀 스크롤바 */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
/* WebKit 계열 (Chrome/Edge/Safari) — 얇은 라운드 스크롤바 */
#mList::-webkit-scrollbar {
    width: 8px;
}
#mList::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}
#mList::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
    border: 2px solid #fff;   /* 트랙과 여백 효과 */
    background-clip: padding-box;
}
#mList::-webkit-scrollbar-thumb:hover { background: #9ca3af; background-clip: padding-box; }
.mList-empty {
    padding: 40px 20px;
    text-align: center;
    color: #8a93a0;
    font-size: 14px;
}

/* 좌측 카드 (mcard) */
.mcard {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.mcard:hover { background: #f8fafc; }
.mcard.sel { background: #eff6ff; box-shadow: inset 3px 0 0 #1d4ed8; }
.mcard .mcard-thumb {
    position: relative;
    width: 104px; height: 80px;
    flex: 0 0 auto;
}
.mcard .mcard-thumb img {
    width: 104px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #e5e7eb;
}
.mcard .best-badge {
    position: absolute;
    top: 4px; left: 4px;
    background: linear-gradient(135deg, #ff8a00, #ff3d57);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(255, 61, 87, 0.35);
    letter-spacing: -0.2px;
}
.mcard .info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* 상품명 — 살짝 키우고 1줄 말줄임 */
.mcard .nm {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 평점 + 후기 링크 라인 */
.mcard .rate {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.mcard .rate .badge {
    color: #ff8a00;         /* 별점 노란(주황) */
    font-weight: 800;
    font-size: 13px;
    background: none;
    padding: 0;
    letter-spacing: 0;
}
/* 후기 링크 — 기본 회색 밑줄 + hover 파랑 */
.mcard .rate .rv-link {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.mcard .rate .rv-link:hover { color: #1a5fd6; }

.mcard .price {
    font-size: 14px;
    font-weight: 800;
    color: #e11d48;
    margin-top: 6px;   /* 위쪽 여유 */
}
.mcard .btns {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.mcard .btns button {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    line-height: 1.2;
}
.mcard .btns button.primary { background: #1a5fd6; color: #fff; border-color: #1a5fd6; }
.mcard .btns button:hover { opacity: 0.9; }

/* ==== 지도 영역 ==== */
#mMap {
    flex: 1;
    min-height: 100%;
    z-index: 1;
}

/* ==== 좌측 리스트 접기/펼치기 토글 (PC 전용) ====
   - 열린 상태: mSide 우측 경계에 세로 pill 형태로 붙어 리스트 박스와 이어져 보이도록
                (좌측 border/radius 없음, mSide 배경/보더와 통일)
   - 접힌 상태: 화면 좌측 끝으로 이동, 완전 독립 pill
   +/- 컨트롤(우측 상단)과 겹치지 않도록 좌측에 위치 */
#mSideToggle {
    position: absolute;
    top: 50%;
    left: 360px;                        /* mSide width 와 동일 = 우측 경계 */
    transform: translateY(-50%);
    z-index: 3;
    width: 22px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    background: #fff;
    /* 좌측은 mSide 와 이어짐 — border/radius 없음. 우측만 살짝 둥글게. */
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    /* 자연스러운 그림자 — mSide 오른쪽으로 살짝 튀어나오는 느낌 */
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.2s ease;
}
#mSideToggle:hover { background: #f3f4f6; }
#mSideToggle .arrow {
    width: 7px;
    height: 7px;
    border-top: 2px solid #374151;
    border-left: 2px solid #374151;
    transform: rotate(-45deg);          /* ◄ 리스트 접기 방향 */
    transition: transform 0.2s ease;
}

/* 리스트 숨김 상태 */
.map-modal .frame.side-hidden #mSide { display: none; }
.map-modal .frame.side-hidden #mSideToggle { left: 0; }
.map-modal .frame.side-hidden #mSideToggle .arrow {
    transform: rotate(135deg);          /* ► 리스트 펼치기 방향 */
    margin-left: -3px;
}

/* 마커 pill (호텔명+가격) */
.pill-marker {
    background: #fff;
    border: 1px solid #1a5fd6;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #173a7a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    /* 호텔명 / 금액 2줄 표시 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 90px;
    max-width: 180px;
    line-height: 1.25;
}
/* 마우스 hover 시 강조 — Leaflet marker 의 z-index 는 JS 에서 setZIndexOffset 으로 처리 */
.pill-marker:hover {
    box-shadow: 0 4px 12px rgba(26, 95, 214, 0.35);
    transform: translateY(-1px);
}
.pill-marker .name {
    /* 호텔명 — 길면 말줄임 */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pill-marker .price {
    color: #e11d48;
    font-size: 11px;
    white-space: nowrap;
}
.pill-marker.sel {
    background: #1a5fd6;
    color: #fff;
    border-color: #1a5fd6;
}
.pill-marker.sel .price { color: #ffd34d; }
.pill-marker.is-best {
    border-color: #ff3d57;
    box-shadow: 0 2px 8px rgba(255, 61, 87, 0.4);
}
.pill-marker .best {
    display: inline-block;
    background: linear-gradient(135deg, #ff8a00, #ff3d57);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    margin-right: 6px;
    letter-spacing: -0.2px;
}
.pill-marker.sel .best { background: #ffd34d; color: #173a7a; }

/* 클러스터 아이콘 */
.cl-cluster {
    transform: translate(-50%, -50%);
    background: #1a5fd6;
    color: #fff;
    min-width: 36px; height: 36px;
    padding: 0 7px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(26, 95, 214, 0.5);
    border: 2px solid #fff;
}
.cl-cluster small {
    font-size: 8px;
    font-weight: 700;
    opacity: 0.9;
    margin-top: 1px;
}

/* ==== 모바일 하단 카드 스와이프 (기본은 숨김) ==== */
#mCards { display: none; }

/* ==== 리뷰 패널 (지도 위 우측 슬라이드) ==== */
.rv-panel {
    position: absolute;
    top: 0; right: 0;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.rv-panel.open { transform: translateX(0); }

/* ==== 리뷰 사진 그리드 오버레이 (rv-thumbs 클릭 시 오픈) ====
   부모(.frame) 안 중앙 모달. 뒤 배경은 어둡게(dim). */
.rv-gallery {
    /* 뷰포트 전체를 덮는 dim 층. 지도 프레임 밖까지 나와 전체 화면 사용. */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 1000;
    padding: 24px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.rv-gallery.open {
    display: block;
    opacity: 1;
}
/* 실제 모달 박스 — 헤더/그리드 wrapper 공통 max-width 로 중앙 배치 */
.rv-gallery-head,
.rv-gallery-grid-wrap {
    width: min(1000px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.rv-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
    border-radius: 12px 12px 0 0;
    /* 스크롤 시 상단에 도달하면 그때 sticky 고정 (padding-top 값 -24px 만큼 위로 이동해 닿을 때 붙음) */
    position: sticky;
    top: -24px;
    z-index: 10;
    transition: border-radius 0.15s ease;
}
/* 상단에 붙은 상태 — 라운드 제거해 아래쪽 이미지 살짝 보이는 현상 방지 */
.rv-gallery-head.is-stuck {
    border-radius: 0;
}
/* 모바일(≤760px) — 오버레이 padding 이 0 이므로 top 도 0 */
@media (max-width: 760px) {
    .rv-gallery-head { top: 0; }
}
.rv-gallery-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1f2430;
}
.rv-gallery-close {
    width: 30px; height: 30px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.rv-gallery-close:hover { background: #f3f4f6; }

/* 그리드 wrapper — 실제 padding/배경 담당. Masonry 는 안쪽 .rv-gallery-grid 만 컨테이너로 인식. */
.rv-gallery-grid-wrap {
    padding: 5px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}
/* 그리드 자체 — Masonry.js 가 아이템을 position:absolute 로 배치.
   padding 은 0 (컬럼 폭 20% 계산이 wrapper 안쪽 폭과 정확히 일치하도록). */
.rv-gallery-grid {
    padding: 0;
    position: relative;
}
/* 리뷰 사진박스 그룹 전체 box-sizing: border-box 로 통일 (percentPosition 계산 정확) */
.rv-gallery,
.rv-gallery *,
.rv-gallery *::before,
.rv-gallery *::after {
    box-sizing: border-box;
}

/* Masonry columnWidth 기준 sizer — 화면엔 안 보이지만 아이템과 동일 폭. */
.rv-gallery-sizer {
    width: 20%;
    height: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
}
/* 각 아이템 — 폭 % 반응형 (기본 5컬럼 = 20%). padding 으로 아이템 간 및 좌우 여백 표현. */
.rv-gallery-item {
    width: 20%;
    padding: 4px;
    position: relative;
    cursor: zoom-in;
}
.rv-gallery-item > img {
    border-radius: 8px;
    background: #eef0f3;
}
/* 반응형 컬럼 수 : 5 → 4 → 3 → 2 (sizer 도 동일 폭) */
@media (max-width: 1100px) {
    .rv-gallery-item, .rv-gallery-sizer { width: 25%; }
}
@media (max-width: 860px) {
    .rv-gallery-item, .rv-gallery-sizer { width: 33.3333%; }
}
@media (max-width: 560px) {
    .rv-gallery-item, .rv-gallery-sizer { width: 50%; }
}
.rv-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    background: #eef0f3;
    transition: opacity 0.25s ease;
}
/* 확장 직후 이미지가 새로 페이드인 — 확장 트리거 시 클래스로 짧게 opacity 0 → 1 */
.rv-gallery-item.is-wide.fade-in img {
    animation: rv-item-fade-in 0.3s ease;
}
@keyframes rv-item-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
/* 이동 애니메이션 스킵 — masonry 가 인라인으로 붙이는 transition: transform 을 무력화 */
.rv-gallery-item.no-transition {
    transition: none !important;
}
/* 확장 상태 — 폭은 JS 에서 인라인 style.width 로 그리드 전체 폭 지정.
   높이 제한 없음: 이미지 원본 비율 그대로 자연 확장 (검은 배경 없이 이미지 자체가 커짐). */
.rv-gallery-item.is-wide {
    cursor: zoom-out;
}
/* 원본 로딩 중 스피너 — 이미지 중앙 오버레이 */
.rv-gallery-item.is-loading > img {
    filter: brightness(0.85);
}
.rv-item-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rv-item-loader-spin 0.8s linear infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes rv-item-loader-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.rv-gallery-item.is-wide img {
    width: 100%;
    height: auto;
}

/* 확장 패널 — masonry 아이템 하나로 배치되며, 폭은 JS 가 그리드 전체 폭으로 인라인 지정.
   검은 배경 위에 원본 비율 contain 중앙정렬. */
.rv-gallery-full {
    z-index: 5;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    height: 75vh;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rv-gallery-full-open 0.28s ease;
}
/* 초기 진입 시엔 애니메이션 없이 */
.rv-gallery-full.no-anim {
    animation: none;
}
/* 닫을 때 slide-up */
.rv-gallery-full.is-closing {
    animation: rv-gallery-full-close 0.22s ease forwards;
}
.rv-gallery-full img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111;
}
@keyframes rv-gallery-full-open {
    from { opacity: 0; height: 0; }
    to   { opacity: 1; height: 75vh; }
}
@keyframes rv-gallery-full-close {
    from { opacity: 1; height: 75vh; }
    to   { opacity: 0; height: 0; }
}

/* 확장 시에만 X 버튼 노출 */
.rv-gallery-item-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px; height: 34px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
}
.rv-gallery-item-close:hover { background: rgba(0, 0, 0, 0.85); }
.rv-gallery-item.is-full .rv-gallery-item-close,
.rv-gallery-item.is-wide .rv-gallery-item-close,
.rv-gallery-full .rv-gallery-item-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 태블릿 이하 — 지도 프레임이 전체 폭 되는 시점(760px)부터 갤러리도 전체 폭 */
@media (max-width: 760px) {
    .rv-gallery {
        padding: 0;
    }
    .rv-gallery-head,
    .rv-gallery-grid-wrap {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}

/* ========================================================
   자사 브랜드 스팟 마커 (더라운지 · 메오키친 등) + 하단 카드
======================================================== */
/* 마커 — 흰 배경 pill + 반짝이는 오렌지 border */
.leaflet-marker-icon.brand-spot-marker {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}
.brand-spot-marker .brand-spot-name {
    position: relative;
    display: inline-block;
    background: #fff;
    color: #3A1A05;              /* 주황이 살짝 섞인 진한 갈검정 */
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    border: 2px solid #F26A2F;   /* 딥 오렌지 (빨강 톤) */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    animation: brand-spot-glow 1.6s ease-in-out infinite;
}
@keyframes brand-spot-glow {
    0%, 100% {
        border-color: #F26A2F;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18),
                    0 0 0 0 rgba(242, 106, 47, 0.55);
    }
    50% {
        border-color: #FF884D;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18),
                    0 0 0 6px rgba(242, 106, 47, 0);
    }
}

/* 하단 카드 (지도 안 하단 fixed) — 클릭 시 상세로 이동 */
.brand-spot-card {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(340px, calc(100% - 32px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    z-index: 500;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* 모바일: 하단 #mCards (호텔 카드 슬라이더) 위쪽으로 배치 */
@media (max-width: 760px) {
    .brand-spot-card {
        bottom: 280px; /* mCards 카드 높이 + 여백 (겹침 방지 상향) */
    }
}
.brand-spot-card:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.brand-spot-card__thumb {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    background: #eef0f3 center/cover no-repeat;
    flex-shrink: 0;
}
.brand-spot-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.brand-spot-card__rating {
    color: #F5A623;
    font-size: 12px;
    font-weight: 700;
}
.brand-spot-card__name-en {
    font-size: 14px;
    font-weight: 700;
    color: #1C1C1E;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-spot-card__name-kr {
    font-size: 12.5px;
    font-weight: 500;
    color: #48484A;
    line-height: 1.15;
    margin-top: -1px; /* EN 과 좀 더 붙게 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 상세보기 버튼 (한글명 아래 · 카드 클릭 시 함께 동작하지만 CTA 로 명시) */
.brand-spot-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 10px;
    background: #157CED;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1.2;
}
.brand-spot-card__cta::after {
    content: '›';
    font-size: 13px;
    line-height: 1;
    margin-top: -1px;
}
.brand-spot-card__close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #9AA1AC;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    align-self: flex-start;
}
.brand-spot-card__close:hover { color: #1C1C1E; }
@media (max-width: 480px) {
    .rv-gallery-head { border-radius: 0; }
}
.rv-phead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f3;
}
.rv-phead h3 { font-size: 16px; font-weight: 800; }
.rv-pclose {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #374151;
    line-height: 1;
}
.rv-pbody {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 18px;
    /* mList 와 동일한 커스텀 스크롤바 */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.rv-pbody::-webkit-scrollbar {
    width: 8px;
}
.rv-pbody::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}
.rv-pbody::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
    border: 2px solid #fff;
    background-clip: padding-box;
}
.rv-pbody::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
    background-clip: padding-box;
}
.rv-empty {
    padding: 40px 20px;
    text-align: center;
    color: #8a93a0;
    font-size: 14px;
}

/* AI 리뷰 요약 — 상품 상세페이지(item.css .ai-review) 스타일 이식.
   item.css 를 리스트/맵에 로드하지 않으므로 필요한 부분만 여기 복제. */
@keyframes ai-border-spin {
    0%   { --ai-border-angle: 0deg; }
    100% { --ai-border-angle: 360deg; }
}
@property --ai-border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.rv-panel .ai-review {
    margin-top: 0;
    line-height: 1.5;
    letter-spacing: -0.02em;
}
.rv-panel .ai-review .ai-box-wrap {
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid #ddd;
    margin-bottom: 18px;
}
.rv-panel .ai-review .ai-box {
    padding: 16px 18px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}
.rv-panel .ai-review .ai-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #157CED;
}
.rv-panel .ai-review .ai-icon {
    background: conic-gradient(
        from var(--ai-border-angle),
        #93E0FA, #D8AAFC, #EE8EF6, #FFB399, #93E0FA
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    animation: ai-border-spin 6s linear infinite;
}
.rv-panel .ai-review .ai-subtitle {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
    color: #1C1C1E;
}
.rv-panel .ai-review .ai-desc {
    color: #081C36;
    line-height: 1.6;
    letter-spacing: -0.02em;
    font-size: 13.5px;
    margin: 0;
}

/* rv-slim: 별점 요약 (상품카드와 동일 형태 · 컴팩트) */
.rv-slim {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 2px 10px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 14px;
}
.rv-slim .score {
    font-size: 15px;
    font-weight: 800;
    color: #ff8a00;   /* 별점 노란 */
}
.rv-slim .dim { font-size: 13px; color: #8a93a0; font-weight: 600; }
.rv-slim .rv-cnt {
    font-size: 13px;
    color: #5a6270;
    font-weight: 700;
    margin-left: 8px;
}

/* 리뷰 리스트 */
.rv-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef0f3;
}
.rv-item:last-child { border-bottom: none; }
.rv-item .rv-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
.rv-item .rv-meta .stars { color: #ff8a00; font-weight: 800; }
.rv-item .rv-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 8px;
    scrollbar-width: none;                              /* Firefox */
    -ms-overflow-style: none;                           /* IE/Edge */
    min-width: 0;
}
.rv-item .rv-thumbs::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.rv-item .rv-thumbs img {
    width: 90px; height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    background: #eef0f3;
}
.rv-item .rv-text {
    font-size: 13.5px;
    color: #1f2430;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.rv-more {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    color: #1a5fd6;
    font-weight: 700;
    font-size: 13px;
    margin-top: 12px;
    cursor: pointer;
    text-decoration: none;
}

/* ==== 반응형 (모바일) ==== */
@media (max-width: 760px) {
    .map-modal .frame { inset: 0; border-radius: 0; }
    /* 좌측 리스트 토글은 PC 전용 */
    #mSideToggle { display: none !important; }
    #mSide {
        position: absolute !important;
        top: 0; left: 0; right: 0;
        width: 100% !important;
        height: auto !important;
        z-index: 20;
        background: transparent !important;
        border: none !important;
        pointer-events: none;
    }
    #mHead {
        background: rgba(255, 255, 255, 0.97);
        margin: 10px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
        pointer-events: auto;
        border: none;
    }
    #mList { display: none !important; }
    #mMap {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
        width: 100% !important;
        z-index: 1;
    }
    #mCards {
        display: flex;
        position: absolute;
        left: 0; right: 0; bottom: 0;
        z-index: 30;
        gap: 12px;
        padding: 12px 14px 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    #mCards::-webkit-scrollbar { display: none; }
    .mmcard {
        position: relative;
        scroll-snap-align: center;
        flex: 0 0 84%;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
        overflow: hidden;
        cursor: pointer;
    }
    .mmcard.sel {
        box-shadow: 0 8px 24px rgba(26, 95, 214, 0.5);
        outline: 2px solid #1a5fd6;
    }
    .mmcard .best-badge {
        position: absolute;
        top: 8px; left: 8px;
        z-index: 2;
        background: linear-gradient(135deg, #ff8a00, #ff3d57);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(255, 61, 87, 0.35);
    }
    .mmcard img {
        width: 100%; height: 118px;
        object-fit: cover;
        background: #dbeafe;
        display: block;
    }
    .mm-info { padding: 10px 13px 12px; }
    .mm-nm {
        font-size: 14px;
        font-weight: 700;
        color: #1C1C1E;
        line-height: 1.3;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* 평점 + 후기 링크 (mcard 와 동일 톤) */
    .mm-rate {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 8px;
    }
    .mm-rate .badge {
        color: #ff8a00;        /* 노란 별점 */
        font-weight: 800;
        font-size: 13px;
        background: none;
        padding: 0;
    }
    .mm-rate .rv-link {
        color: #6b7280;
        text-decoration: underline;
        text-underline-offset: 2px;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
    }
    .mm-rate .rv-link:hover { color: #1a5fd6; }
    .mm-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .mm-price {
        font-size: 15px;
        font-weight: 800;
        color: #e11d48;
    }
    .mm-go {
        border: 1px solid #1a5fd6;
        background: #1a5fd6;
        color: #fff;
        font-weight: 700;
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
        line-height: 1.2;
        cursor: pointer;
    }
    .mm-go:hover { opacity: 0.92; }

    /* 모바일 리뷰 패널: 풀스크린 슬라이드 (참조 HTML 준용) */
    .rv-panel {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        z-index: 40;
    }
}