/* ═══════ 카카오 로드뷰 패널 ═══════ */

.v2-roadview-panel {
    position: absolute;
    bottom: 87px;
    right: 12px;
    width: 480px;
    height: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 400;
}

/* 로딩 오버레이 — 패널 기준 절대 위치 (header 아래) */
.v2-rv-loading {
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.97);
    z-index: 20;
    transition: opacity 0.25s;
}

/* 최대화 */
.v2-roadview-panel.maximized {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    height: auto;
    border-radius: 16px;
}

/* ─── 헤더 ─── */
.v2-rv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    min-height: 38px;
    flex-shrink: 0;
}

.v2-rv-title {
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
}

.v2-rv-header-btns {
    display: flex;
    align-items: center;
    gap: 2px;
}

.v2-rv-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #868e96;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.v2-rv-btn:hover {
    background: #e9ecef;
    color: #212529;
}

/* ─── 바디 (로드뷰 컨테이너) ─── */
.v2-rv-body {
    flex: 1;
    min-height: 0;
    position: relative;
}

/* ─── 반응형 ─── */
@media (max-width: 768px) {
    .v2-roadview-panel {
        width: calc(100vw - 24px);
        height: 280px;
        bottom: 12px;
        right: 12px;
    }
    .v2-roadview-panel.maximized {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}

/* ═══════ 로딩 애니메이션 ═══════ */

.v2-rv-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.v2-rv-loading-icon {
    animation: rv-pulse 2s ease-in-out infinite;
}

@keyframes rv-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

.v2-rv-spinner {
    animation: rv-spin 1s linear infinite;
    transform-origin: 24px 24px;
}

@keyframes rv-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.v2-rv-loading-text {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    letter-spacing: -0.02em;
}

.v2-rv-loading-bar {
    width: 120px;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.v2-rv-loading-bar-fill {
    height: 100%;
    width: 40%;
    background: #4285F4;
    border-radius: 2px;
    animation: rv-bar 1.2s ease-in-out infinite;
}

@keyframes rv-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ═══════ 토스트 ═══════ */
.v2-rv-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(33,37,41,0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    pointer-events: none;
}
.v2-rv-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
