/* ===== 지역별 인기공연 ===== */
.rg-wrap { margin-top: 24px; }

/* 지역 탭 바 */
.rg-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.rg-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #dde3ef;
    border-radius: 16px;
    background: #f5f8ff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}
.rg-tab:hover { border-color: #0057b8; color: #0057b8; background: #e8f0fb; }
.rg-tab.active { background: #0057b8; color: #fff; border-color: #0057b8; }
.rg-tab.active svg path { fill: #fff; }

/* 지도 + 목록 레이아웃 */
.rg-body {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* 지도 */
.rg-map-col {
    width: 280px;
    flex-shrink: 0;
}
/* 지도 path 클래스는 SVG 내부 <style>에서 처리 */
/* rg-dot, rg-map-label 관련 삭제 */

.rg-map-wrap {
    background: linear-gradient(160deg, #eef3fb 0%, #f5f8ff 100%);
    border: 1px solid #dde3ef;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0,87,184,0.07);
    position: sticky;
    top: 20px;
}
.rg-map-svg { width: 100%; height: auto; display: block; }


.rg-dot { cursor: pointer; color: #c5d3e8; transition: color 0.2s; }
.rg-dot:hover { color: #6699cc; }
.rg-dot.active { color: #0057b8; }
.rg-dot.active-secondary { color: #f0a500; }

.rg-map-label {
    font-size: 9px;
    font-weight: 700;
    fill: #fff;
    pointer-events: none;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 목록 패널 */
.rg-list-col { flex: 1; min-width: 0; }
.rg-panel { display: none; }
.rg-panel.active { display: block; }

.rg-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #0057b8;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.rg-region-name {
    font-size: 18px;
    font-weight: 800;
    color: #0d2260;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rg-count { font-size: 13px; color: #888; }
.rg-count strong { color: #0057b8; font-weight: 800; }

/* 공연 아이템 */
.rg-list { display: flex; flex-direction: column; gap: 14px; }
.rg-item {
    display: flex;
    gap: 0;
    border: 1px solid #eef0f7;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.rg-item:hover {
    box-shadow: 0 6px 24px rgba(0,87,184,0.11);
    transform: translateY(-2px);
}
.rg-item-img {
    width: 110px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}
.rg-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.rg-item:hover .rg-item-img img { transform: scale(1.05); }
.rg-item-body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}
.rg-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d2260;
    line-height: 1.5;
    word-break: keep-all;
}
.rg-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 빈 상태 */
.rg-empty { text-align: center; padding: 60px 0; color: #bbb; }
.rg-empty p { margin-top: 12px; font-size: 14px; }

/* 전체보기 버튼 */
.rg-more-wrap { text-align: center; margin-top: 28px; }
.rg-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 28px;
    border: 2px solid #0057b8;
    border-radius: 21px;
    font-size: 13px;
    font-weight: 700;
    color: #0057b8;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.rg-more-btn:hover { background: #0057b8; color: #fff; }

/* 태블릿 */
@media (max-width: 900px) {
    .rg-body { gap: 18px; }
    .rg-map-col { width: 220px; }
    .rg-item-img { width: 90px; }
}

/* 모바일 */
@media (max-width: 640px) {
    .rg-body { flex-direction: column; }
    .rg-map-col { width: 100%; }
    .rg-map-wrap { position: static; }
    .rg-map-svg { max-height: 260px; width: auto; margin: 0 auto; }
    .rg-list-col { width: 100%; }
    .rg-tab { font-size: 12px; height: 28px; padding: 0 10px; }
    .rg-item-img { width: 80px; height: 88px; }
    .rg-item-body { padding: 10px 12px; gap: 4px; }
    .rg-item-title { font-size: 12px; }
    .rg-item-meta { font-size: 11px; }
    .rg-region-name { font-size: 16px; }
    .pf-btn-book, .pf-btn-detail { font-size: 11px; height: 28px; padding: 0 10px; }
}
