/* ============================================================
   Building Maintenance Tab - 기존 탭 디자인 통일 CSS
   ============================================================ */

/* ── Section Base (기존 .section 패턴 따름) ── */
.section-bm {
    padding: 0 !important;
    min-height: auto !important;
}

/* ── 1. 히어로 영역 (기존 회사소개 탭 스타일) ── */
.bm-intro {
    padding: 170px 0 100px;
    background: var(--bg-light);
}

.bm-intro .section-title {
    margin-bottom: 40px;
}

.bm-hero-btns {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ── 2. 핵심 가치 (기존 service-grid 스타일 차용) ── */
.bm-core-value {
    padding: 170px 0;
    background: #fff;
}

.bm-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.bm-value-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
    position: relative;
}

.bm-value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 43, 92, 0.15);
}

.bm-value-num {
    font-size: 48px;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.bm-value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    margin-bottom: 20px;
}

.bm-value-card h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.bm-value-en {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.bm-value-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: keep-all;
}

/* ── 3. 서비스 상세 (기존 service-card 이미지+텍스트 스타일) ── */
.bm-service-detail {
    padding: 170px 0;
    background: var(--bg-light);
}

.bm-service-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.bm-service-row:last-child {
    margin-bottom: 0;
}

.bm-service-row.reverse {
    flex-direction: row-reverse;
}

.bm-service-img {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bm-service-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bm-service-img:hover img {
    transform: scale(1.05);
}

.bm-service-img-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bm-service-text {
    flex: 1;
    min-width: 0;
}

.bm-service-tag {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.bm-service-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -1.5px;
    line-height: 1.3;
}

.bm-service-quote {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-color);
}

.bm-service-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: keep-all;
}

/* ── 4. 실적 (기존 company-stats-grid 스타일 차용) ── */
.bm-trust {
    padding: 170px 0;
    background: #fff;
}

.bm-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 60px;
}

.bm-trust-card {
    padding: 40px 20px;
}

.bm-trust-number {
    font-size: 52px;
    font-weight: 800;
    display: inline-block;
    color: var(--primary-color);
    letter-spacing: -2px;
}

.bm-trust-unit {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
}

.bm-trust-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
}

/* ── 5. 도면 뷰어 ── */
.bm-blueprint {
    padding: 170px 0;
    background: var(--bg-light);
}

.bm-blueprint-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.bm-blueprint-header img {
    height: 36px;
    object-fit: contain;
}

.bm-blueprint-selector {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.bm-blueprint-selector label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.bm-blueprint-select {
    padding: 12px 40px 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: #fff;
    cursor: pointer;
    min-width: 280px;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.bm-blueprint-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.bm-blueprint-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
}

.bm-blueprint-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.bm-blueprint-preview {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 30px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 15px;
}

.bm-blueprint-select {
    min-width: 200px;
    padding: 10px 30px 10px 16px;
    font-size: 16px !important;
    font-weight: 500;
    color: #334155;
    background-position: right 12px center;
    cursor: pointer;
}

.bm-blueprint-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bm-blueprint-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ── 도면 모달 (기존 팝업 스타일 통일) ── */
.bm-blueprint-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.bm-blueprint-modal.active {
    display: flex;
}

.bm-blueprint-modal-content {
    background: #fff;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: popupAnim 0.3s ease forwards;
}

/* --- 새로 추가된 모달 개별 컨트롤용 클래스 (Desktop) --- */
.bm-list-modal-content {
    max-width: 1100px;
    height: 90vh;
    max-height: 900px;
    padding-bottom: 30px;
    border-radius: 20px;
}

.bm-gallery-modal-content {
    max-width: 1000px;
    height: 90vh;
}

.bm-admin-modal-content {
    max-width: 1200px;
    flex-direction: row;
    height: 80vh;
}

.bm-admin-left-panel {
    width: 50%;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.bm-admin-right-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    position: relative;
}

.bm-modal-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.bm-modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.bm-modal-header h3 img {
    height: 28px;
}

.bm-modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-modal-ctrl-btn {
    background: rgba(255,255,255,0.8);
    border: 1px solid #cbd5e1;
    color: #334155;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bm-modal-ctrl-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.bm-modal-close {
    background: none;
    border: none;
    font-size: 36px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
    margin-left: 10px;
}

.bm-modal-close:hover {
    transform: scale(1.1);
}

.bm-modal-page-info {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    min-width: 70px;
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 2px;
}

.bm-modal-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 20px;
}

.bm-modal-body canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── 메인 홈페이지 대표 진입버튼 ── */
.bm-portfolio-entry {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
@keyframes bmFloatGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 0 0 0 rgba(10, 50, 100, 0.3);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 0 20px rgba(10, 50, 100, 0);
    }
}

.bm-portfolio-entry-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    max-width: 600px;
    /* 무의식적 시선을 이끄는 부유 & 글로우 애니메이션 */
    animation: bmFloatGlow 3s infinite ease-in-out;
    transition: border-color var(--transition-smooth);
}
.bm-portfolio-entry-btn:hover {
    border-color: var(--primary-color);
}
.bm-portfolio-entry-btn .icon-wrap {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}
.bm-portfolio-entry-btn .text-wrap h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.bm-portfolio-entry-btn .text-wrap p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
@keyframes bmArrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.bm-portfolio-entry-btn .arrow-icon {
    margin-left: auto;
    font-size: 24px;
    color: var(--primary-color);
    /* 클릭 유도를 위한 통통 튀는 화살표 애니메이션 */
    animation: bmArrowBounce 1.5s infinite ease-in-out;
}
.bm-portfolio-entry-btn:hover .arrow-icon {
    color: var(--accent-color);
    transform: translateX(10px);
}

/* ── 6. 빌딩 포트폴리오 (팝업 내부 카드 그리드) ── */
.bm-portfolio {
    padding: 170px 0;
    background: var(--bg-light);
}
.bm-building-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}
.bm-building-card {
    width: calc(33.333% - 20px); /* 3개씩 배치되도록 유도 */
    min-width: 300px; /* 모바일 등에서 너무 작아지지 않게 */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.bm-building-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.bm-bc-img {
    height: 240px;
    overflow: hidden;
}
.bm-bc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bm-building-card:hover .bm-bc-img img {
    transform: scale(1.05);
}
.bm-bc-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
}
.bm-bc-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.bm-bc-address {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bm-bc-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
.bm-bc-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.bm-bc-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.bm-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 60px; height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.bm-gallery-nav:hover { background: rgba(255,255,255,0.5); }
.bm-gallery-nav.prev { left: 20px; }
.bm-gallery-nav.next { right: 20px; }

/* 관리자 패널 관련 */
.bm-btn-outline {
    background: transparent;
    border-width: 2px !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
}
.bm-btn-outline:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}
.bm-btn-small {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #e2e8f0;
    color: #334155;
}
.bm-btn-small:hover { background: #cbd5e1; }
.bm-btn-small.btn-primary { background: var(--primary-color); color: #fff; }
.bm-btn-small.btn-primary:hover { background: #005bb5; }
.bm-btn-small.btn-danger { background: #ef4444; color: #fff; }
.bm-btn-small.btn-danger:hover { background: #dc2626; }
.bm-btn-small.btn-secondary { background: #475569; color: #fff; }
.bm-btn-small.btn-secondary:hover { background: #334155; }
.bm-input {
    padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: var(--font-main);
}
.bm-admin-item {
    padding: 12px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
}

/* ── 7. 빌딩 상세 모달 (프리미엄 뷰) ── */
.bm-building-card.clickable {
    cursor: pointer;
}
.bm-building-card.clickable:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 43, 92, 0.15);
}
#bm-detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}
#bm-detail-modal.active {
    display: flex;
}
#bm-detail-modal .bm-detail-modal-bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
}
#bm-detail-modal .bm-detail-modal-content {
    position: relative;
    background: #fff;
    width: 90%; max-width: 500px;
    border-radius: 24px;
    z-index: 100000;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    animation: popupAnim 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.bm-detail-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.bm-detail-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.bm-detail-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}
.bm-detail-info {
    position: absolute; bottom:0; left:0; width:100%;
    padding: 30px; color:#fff;
    text-align: left;
}
.bm-detail-info h2 {
    font-size: 30px; font-weight: 800; margin-bottom: 6px; letter-spacing: -1.5px;
}
.bm-detail-info p {
    font-size: 14px; opacity: 0.9; display: flex; align-items: center; gap: 6px; font-weight: 500;
}
.bm-detail-actions {
    padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
    background: #f8fafc;
}
.bm-detail-btn {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border: 1px solid #e2e8f0;
    padding: 20px 24px; border-radius: 20px;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: left;
}
.bm-detail-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
.bm-detail-btn .icon-wrap {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.bm-detail-btn:hover .icon-wrap {
    background: var(--primary-color);
    color: #fff;
}
.bm-detail-btn .text-wrap h4 {
    font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 6px;
}
.bm-detail-btn .text-wrap p {
    font-size: 14px; color: #64748b; margin:0; line-height: 1.4; word-break: keep-all;
}

/* ── 9. 기타 모달 공통 관리 유틸 UI ── */
#bm-admin-btn {
    border: 1px solid var(--primary-color) !important;
    background-color: #fff;
    box-shadow: 0 2px 0 var(--primary-color) !important;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
}
#bm-admin-btn:hover {
    background-color: #f8fafc;
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--primary-color) !important;
}
#bm-admin-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--primary-color) !important;
}

/* ── 반응형 (기존 모바일 패턴 통일) ── */
@media (max-width: 768px) {
    .bm-intro,
    .bm-core-value,
    .bm-service-detail,
    .bm-trust,
    .bm-blueprint {
        padding: 50px 0 60px !important;
    }

    .bm-value-grid,
    .bm-trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bm-value-card {
        padding: 30px;
    }

    .bm-service-row,
    .bm-service-row.reverse {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
    }

    .bm-service-img img {
        height: 220px;
    }

    .bm-service-text h3 {
        font-size: 24px;
    }

    .bm-service-text p {
        font-size: 16px;
    }

    .bm-trust-number {
        font-size: 40px;
    }

    .bm-hero-btns {
        flex-direction: column;
        align-items: center; /* 박스 자체를 중앙으로 */
    }
    
    .bm-hero-btns button {
        width: 80%; /* 박스의 길이를 적절히 축소 */
        max-width: 300px; /* 최대 크기 제한 */
        justify-content: center; /* 내부 글씨 중앙 정렬 (flex 버튼 기준) */
        text-align: center; /* 내부 글씨 중앙 정렬 (일반 속성 기준) */
    }

    .bm-blueprint-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .bm-blueprint-select {
        min-width: 100%;
    }

    .bm-blueprint-modal-content {
        width: 100% !important;
        height: 100vh !important;
        max-height: none !important;
        max-width: none !important;
        border-radius: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }

    /* 관리자 모달 모바일 대응 (상하 분할) */
    .bm-admin-modal-content {
        flex-direction: column !important;
    }
    .bm-admin-left-panel, .bm-admin-right-panel {
        width: 100% !important;
        border-right: none !important;
    }
    .bm-admin-left-panel {
        border-bottom: 1px solid #e2e8f0 !important;
        height: 50vh !important; /* 모바일에서 반반씩 */
    }
    .bm-admin-right-panel {
        height: 50vh !important;
    }

    .bm-modal-header {
        padding: 16px 20px;
    }

    .bm-modal-header h3 {
        font-size: 32px !important;
        font-weight: 800 !important;
        letter-spacing: -0.5px !important;
    }

    .bm-modal-header h3 i {
        font-size: 36px !important;
    }

    /* 빌딩 포트폴리오 카드 리스트 모바일 꽉차게 */
    .bm-building-grid {
        gap: 20px;
    }
    .bm-building-card {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 메인 탭 진입 버튼 수직정렬 (아이콘-텍스트-화살표 겹침 방지) */
    .bm-portfolio-entry-btn {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px !important;
    }
    .bm-portfolio-entry-btn .arrow-icon {
        margin-left: 0 !important;
        transform: rotate(90deg) !important;
    }
    
    /* 상세 정보창 여백 및 폰트 축소 */
    .bm-detail-modal-content {
        width: 95% !important;
    }
    .bm-detail-actions {
        padding: 16px !important;
    }
    .bm-detail-btn {
        padding: 16px !important;
        gap: 15px !important;
    }

    .bm-modal-header-responsive {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
    }
    
    .bm-blueprint-header-left {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100%;
    }
    
    .bm-blueprint-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 8px !important;
    }
    
    .bm-blueprint-select {
        min-width: 100% !important;
        width: 100%;
    }
    
    .bm-blueprint-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bm-controls-responsive {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 5px;
    }
    
    .bm-modal-ctrl-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }
    
    #bm-page-info {
        font-size: 13px !important;
        padding: 4px 10px !important;
    }
}

/* ── PDF 인쇄용 최적화 (배경색 유지, 애니메이션 비활성화, 상단바 및 모달 숨김) ── */
@media print {
    /* 전체 탭(페이지) 모두 출력 */
    .m-tab-content, .section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 애니메이션 상태 즉시 최종 렌더링으로 고정 */
    .reveal, .reveal.delay-1, .reveal.delay-2, .reveal.delay-3, .bm-portfolio-entry-btn {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* 웹 전용 오버레이, 상단 메뉴바, 인터랙티브 팝업 숨김 처리 */
    header, #m-header, #m-gnb, nav, .header-tools, #quoteModal, .bm-blueprint-modal, .hero-video-bg {
        display: none !important;
    }

    /* 배경색 등 그래픽 요소 정확히 인쇄 (브라우저 의존) */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 페이지 잘림 방지 (섹션 중간이나 카드 중간에서 잘리지 않도록) */
    .section, .bm-intro, .bm-core-value, .bm-service-detail, .bm-trust, .bm-portfolio, .bm-building-card, .service-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
}

/* ── 9. 도면 핫스팟(마커) 스타일 ── */
.bm-pdf-hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.9); /* 고급스러운 앰버(Amber)/골드톤 배경 */
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 50;
    transition: transform 0.2s, background 0.2s;
    pointer-events: auto; /* 부모가 none이어도 이벤트 받음 */
}

/* 마커 숨쉬는 효과(Pulse 애니메이션) */
@keyframes bmHotspotPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.bm-pdf-hotspot {
    animation: bmHotspotPulse 2s infinite;
}

.bm-pdf-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(180, 83, 9, 1); /* 호버 시 조금 더 진한 황금/구리빛 */
    z-index: 60;
    animation: none;
}

.bm-pdf-hotspot.admin-mode {
    background: rgba(59, 130, 246, 0.85); /* 관리자 편집 모드 중에는 파랑색 지정 */
    animation: none;
}
.bm-pdf-hotspot.admin-mode:hover {
    background: rgba(37, 99, 235, 1);
}

/* 핫스팟 툴팁 (팝업 사진) */
.bm-pdf-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
}

/* 툴팁 말풍선 화살표 */
.bm-pdf-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* 호버 시 툴팁 등장 */
.bm-pdf-hotspot:hover .bm-pdf-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bm-pdf-tooltip img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: #f1f5f9;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
}

.bm-pdf-tooltip-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
    padding: 0 4px 4px 4px;
    word-break: keep-all;
}

/* ── 스마트폰/모바일 환경 핫스팟 축소 ── */
@media screen and (max-width: 768px) {
    .bm-pdf-hotspot {
        width: 18px;
        height: 18px;
        font-size: 10px;
        border: 1px solid #fff;
    }
    
    .bm-pdf-tooltip {
        width: 160px;
        padding: 8px;
        bottom: calc(100% + 8px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }
    
    .bm-pdf-tooltip::after {
        border-width: 6px;
    }

    .bm-pdf-tooltip img {
        height: 100px;
        border-radius: 6px;
        margin-bottom: 4px;
    }

    .bm-pdf-tooltip-title {
        font-size: 12px;
    }
}
