.bcp-container,
.bcp-container * {
    pointer-events: auto !important;
    cursor: default;
}

.bcp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bcp-thumb,
.bcp-thumb-mobile,
.bcp-tool-btn,
.bcp-toggle-btn,
.bcp-tab-btn,
.bcp-mobile-sub-tab,
.bcp-btn-cancel,
.bcp-btn-download {
    cursor: pointer;
}

.bcp-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.bcp-interaction-area {
    display: flex;
    gap: 20px;
    position: relative;
}

.bcp-image-area {
    width: 72%;
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bcp-layers-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 400px;
}

.bcp-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.bcp-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.bcp-base-layer { z-index: 1; }
.bcp-base-layer img { opacity: 1 !important; }
.bcp-primary-layer { z-index: 2; }
.bcp-secondary-layer { z-index: 3; }
.bcp-craft-layer { z-index: 4; }
.bcp-components-layer { z-index: 5; }

.bcp-toolbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.bcp-tool-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 0;
}

.bcp-tool-btn:hover {
    background: rgba(0, 124, 186, 0.9);
    transform: scale(1.1);
}

.bcp-tool-btn svg {
    width: 25px;
    height: 25px;
    display: block;
}

.bcp-thumbnail-area {
    width: 28%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 5px;
    max-height: 800px;
}

.bcp-thumbnail-area::-webkit-scrollbar {
    width: 6px;
}
.bcp-thumbnail-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.bcp-thumbnail-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.bcp-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.bcp-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.bcp-group-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.bcp-toggle-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.bcp-toggle-btn:hover {
    background: #005a87;
}

.bcp-tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.bcp-tab-bar::-webkit-scrollbar {
    height: 4px;
}

.bcp-tab-bar .bcp-tab-btn {
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 11px;
    color: #666;
    transition: all 0.2s;
    white-space: nowrap;
}

.bcp-tab-bar .bcp-tab-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.bcp-tab-bar .bcp-tab-btn:hover:not(.active) {
    background: #e8f0fe;
    border-color: #007cba;
    color: #007cba;
}

.bcp-thumbnails-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bcp-thumbnails-grid[data-rows="1"] {
    max-height: 125px;
}

.bcp-thumbnails-grid.expanded {
    max-height: none;
}

.bcp-tab-content {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.bcp-tab-content.active {
    display: grid;
}

.bcp-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    text-align: center;
    background: #fafafa;
    padding: 5px;
}

.bcp-thumb:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bcp-thumb.active {
    border-color: #007cba;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(0,124,186,0.2);
}

.bcp-thumb img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 5px;
}

.bcp-thumb span {
    display: block;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.bcp-mobile-tabs {
    display: none;
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.bcp-tabs-header {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bcp-tabs-header::-webkit-scrollbar {
    display: none;
}

.bcp-tabs-header .bcp-tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.bcp-tabs-header .bcp-tab-btn.active {
    color: #007cba;
    background: #fff;
    box-shadow: 0 -2px 0 #007cba inset;
}

.bcp-tabs-content {
    padding: 15px;
}

.bcp-tab-panel {
    display: none;
}

.bcp-tab-panel.active {
    display: block;
}

.bcp-mobile-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.bcp-mobile-sub-tabs::-webkit-scrollbar {
    height: 4px;
}

.bcp-mobile-sub-tab {
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
    white-space: nowrap;
}

.bcp-mobile-sub-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.bcp-mobile-sub-tab:hover:not(.active) {
    background: #e8f0fe;
    border-color: #007cba;
    color: #007cba;
}

.bcp-horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: center;
    flex-wrap: nowrap;
}

.bcp-horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}
.bcp-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}
.bcp-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.bcp-mobile-sub-panel {
    display: none;
    flex: 1;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: center;
    flex-wrap: nowrap;
}

.bcp-mobile-sub-panel.active {
    display: flex;
}

.bcp-thumb-mobile {
    flex: 0 0 auto;
    width: 80px;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 5px;
    background: #fafafa;
}

.bcp-thumb-mobile:hover {
    transform: scale(1.05);
}

.bcp-thumb-mobile.active {
    border-color: #007cba;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(0,124,186,0.2);
    transform: scale(1.05);
}

.bcp-thumb-mobile img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 5px;
}

.bcp-thumb-mobile span {
    display: block;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.bcp-modal.active {
    display: flex;
}

.bcp-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bcp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.bcp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.bcp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.bcp-modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

.bcp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.bcp-preview-simple {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.bcp-preview-simple canvas {
    max-width: 100%;
    max-height: 50vh;
    display: block;
    margin: 0 auto;
}

.bcp-info-simple {
    background: #fafafa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.bcp-info-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    padding-bottom: 2px;
    border-bottom: 2px solid #007cba;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bcp-info-logo {
     height: 24px;
     width: 24px;
     vertical-align: middle;
 }

.bcp-info-simple ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcp-info-simple li {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.bcp-info-simple li:last-child {
    border-bottom: none;
}

.bcp-info-simple li strong {
    color: #333;
    font-weight: 600;
    margin-right: 5px;
}

.bcp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0;
}

.bcp-btn-cancel, .bcp-btn-download {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bcp-btn-cancel {
    background: #e0e0e0;
    color: #555;
}

.bcp-btn-cancel:hover {
    background: #d0d0d0;
}

.bcp-btn-download {
    background: #007cba;
    color: white;
}

.bcp-btn-download:hover {
    background: #005a87;
}

.bcp-btn-download:disabled {
    background: #999;
    cursor: not-allowed;
}

.bcp-fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9998 !important;
    border-radius: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    background: #000 !important;
}

.bcp-fullscreen-mode .bcp-title {
    display: none !important;
}

.bcp-fullscreen-mode .bcp-interaction-area {
    height: 100vh !important;
    gap: 0 !important;
}

.bcp-fullscreen-mode .bcp-image-area {
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.bcp-fullscreen-mode .bcp-layers-container {
    height: 100% !important;
    aspect-ratio: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
}

.bcp-fullscreen-mode .bcp-layer {
    width: 100% !important;
    height: 100% !important;
}

.bcp-fullscreen-mode .bcp-layer img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

.bcp-fullscreen-mode .bcp-thumbnail-area,
.bcp-fullscreen-mode .bcp-mobile-tabs {
    display: none !important;
}

.bcp-fullscreen-mode .bcp-toolbar {
    bottom: 30px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .bcp-interaction-area {
        flex-direction: column;
    }
    
    .bcp-image-area {
        width: 100%;
    }
    
    .bcp-layers-container {
        min-height: 350px;
    }
    
    .bcp-thumbnail-area {
        display: none;
    }
    
    .bcp-mobile-tabs {
        display: block;
    }
}

@media (max-width: 768px) {
    .bcp-container {
        padding: 10px;
    }
    
    .bcp-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .bcp-interaction-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .bcp-image-area {
        width: 100%;
        order: 1;
        position: relative;
        z-index: 1;
    }
    
    .bcp-layers-container {
        aspect-ratio: 4/3;
        min-height: 280px;
        max-height: 50vh;
    }
    
    .bcp-toolbar {
        bottom: 15px;
        gap: 15px;
    }
    
    .bcp-tool-btn {
        width: 40px;
        height: 40px;
    }
    
    .bcp-tool-btn svg {
        width: 30px;
        height: 30px;
    }
    
    .bcp-thumbnail-area {
        display: none;
    }
    
    .bcp-mobile-tabs {
        display: block;
        order: 2;
        margin-top: 10px;
        position: relative;
        z-index: 10;
    }
    
    .bcp-tabs-content {
        max-height: 180px;
        overflow-y: auto;
    }
    
    .bcp-horizontal-scroll {
        justify-content: flex-start;
        padding: 10px 5px;
    }
    
    .bcp-mobile-sub-panel {
        justify-content: flex-start;
        padding: 10px 5px;
    }
    
    .bcp-thumb-mobile {
        width: 75px;
    }
    
    .bcp-thumb-mobile img {
        width: 65px;
        height: 65px;
    }
    
    .bcp-modal-content {
        max-height: 98vh;
        margin: 5px;
    }
    
    .bcp-preview-simple {
        padding: 10px;
    }
    
    .bcp-info-simple {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .bcp-layers-container {
        min-height: 240px;
    }
    
    .bcp-tabs-header .bcp-tab-btn {
        font-size: 12px;
        padding: 10px 6px;
    }
    
    .bcp-mobile-sub-tab {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .bcp-thumb-mobile {
        width: 70px;
    }
    
    .bcp-thumb-mobile img {
        width: 60px;
        height: 60px;
    }
    
    .bcp-modal-footer {
        flex-direction: column;
    }
    
    .bcp-btn-cancel, .bcp-btn-download {
        width: 100%;
    }
}

.single-building_project .entry-header,
.single-building_project .entry-content,
.single-building_project .entry-footer {
    display: block;
}

.bcp-actions-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bcp-favorite-btn,
.bcp-like-btn,
.bcp-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}

.bcp-favorite-btn:hover,
.bcp-like-btn:hover,
.bcp-share-btn:hover {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.bcp-favorite-btn.favorited,
.bcp-like-btn.liked {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.bcp-nav-links {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bcp-nav-prev,
.bcp-nav-next {
    flex: 1;
}

.bcp-nav-prev {
    text-align: left;
}

.bcp-nav-next {
    text-align: right;
}

.bcp-nav-links a {
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.bcp-nav-links a:hover {
    color: #007cba;
}

.bcp-nav-links .nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.bcp-nav-links .nav-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .bcp-actions-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bcp-favorite-btn,
    .bcp-like-btn,
    .bcp-share-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        justify-content: center;
    }
    
    .bcp-nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .bcp-nav-prev,
    .bcp-nav-next {
        text-align: center;
    }
}
