/* ==========================================================================
   Project Index Tabs Component (.index-tabs-container)
   Isolated styles for house model vertical tabs with enable-magnifier zoom
   ========================================================================== */

.index-tabs-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* 1. Main Display Area (Left Column) */
.index-tabs-display {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.index-tabs-image-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.index-tabs-main-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: initial !important;
    border-radius: 6px;
}

/* Badges Over Image */
.image-overlay-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    color: #002136;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.image-overlay-note {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: #002136;
    opacity: 0.75;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
}

/* Info Below Image */
.index-tabs-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    padding: 0 4px;
}

.index-tabs-text-group {
    display: flex;
    flex-direction: column;
}

.index-tabs-title {
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    color: #002136;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.index-tabs-desc {
    font-family: inherit;
    font-size: 14px;
    color: #002136;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* Hidden Code/Tag ID (Request #3) */
.index-tabs-code,
.tab-item-code {
    display: none !important;
}

/* 2. Vertical Sidebar Tabs (Right Column) */
.index-tabs-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.index-sidebar-header {
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: #002136;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

.index-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #f06800 #f1f1f1;
}

.index-tabs-list::-webkit-scrollbar {
    width: 5px;
}

.index-tabs-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.index-tabs-list::-webkit-scrollbar-thumb {
    background: #f06800;
    border-radius: 4px;
}

.index-tab-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    font-family: inherit;
}

.index-tab-item:hover {
    background: #fafafa;
    border-color: #dcdcdc;
    transform: translateX(-2px);
}

.index-tab-item.active {
    background: #fffdfb;
    border-color: #f06800;
    border-left: 4px solid #f06800;
    box-shadow: 0 4px 12px rgba(240, 104, 0, 0.08);
}

.tab-item-title {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #002136;
    transition: color 0.2s ease;
}

.index-tab-item.active .tab-item-title {
    color: #f06800;
    font-weight: 700;
}

.index-scroll-indicator {
    font-family: inherit;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #f06800;
    letter-spacing: 1.5px;
    margin-top: 14px;
    text-transform: uppercase;
    opacity: 0.85;
}

.index-tabs-error {
    font-family: inherit;
    background: #fff8f5;
    border: 1px solid #ffd8c7;
    color: #c94a00;
    padding: 16px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

/* Responsiveness & Mobile Overlay Stacking (Request #4) */
@media (max-width: 980px) {
    .index-tabs-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .image-overlay-badge {
        bottom: 34px !important;
        left: 12px !important;
        right: auto !important;
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    .image-overlay-note {
        bottom: 12px !important;
        left: 12px !important;
        right: auto !important;
        text-align: left !important;
        font-size: 9px !important;
        background: rgba(255, 255, 255, 0.85);
        padding: 2px 6px;
        border-radius: 3px;
    }
}
