/* ===================================
   Design Detail Page Styles
   =================================== */

body.single-design_sample {
    background-color: #ffffff;
}

.design-detail-page {
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Remove top breadcrumb container */
.breadcrumb-container {
    display: none;
}

/* Two Column Layout */
.design-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Left Column - Images */
.design-detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.design-main-image,
.floor-plan-item {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.design-main-image img,
.floor-plan-item img {
    width: 100%;
    height: auto;
    display: block;
}

.floor-plan-title {
    padding: 12px 16px;
    background-color: #f8f8f8;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

/* Right Column - Details */
.design-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Inline Breadcrumb */
.breadcrumb-inline {
    font-size: 14px;
    color: #999999;
    margin-bottom: 16px;
    line-height: 1.4;
}

.breadcrumb-inline a {
    color: #A8A8A8;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-inline a:hover {
    text-decoration: none;
    color: #262626;
}

.breadcrumb-separator {
    color: #cccccc;
    margin: 0 6px;
}

.breadcrumb-current {
    color: #262626;
}

/* Category Title (Custom Field) */
.detail-category {
    font-size: 0.9375rem;
    color: #262626;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Main Title */
.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0px 0;
    line-height: 1.5;
}

/* Description */
.detail-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 32px;
}

/* White Box Sections */
.design-specifications,
.building-details-box,
.cost-considerations {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    margin-bottom: 24px;
    overflow: hidden;
}

/* Section Headers */
.design-specifications__title,
.building-details-box__title,
.cost-considerations__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 10px 12px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

/* Before/After Tabs */
.spec-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-tab {
    flex: 1;
    padding: 14px 20px;
    background-color: #f5f5f5;
    border: none;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    transition: all 0.3s ease;
    font-family: inherit;
}

.spec-tab:last-child {
    border-right: none;
}

.spec-tab:hover {
    background-color: #fff9e6;
}

.spec-tab.active {
    background-color: #FFD700;
    color: #1a1a1a;
}

.spec-content {
    display: none;
}

.spec-content.active {
    display: block;
}

.spec-content__inner {
    padding: 24px;
}

.spec-content__inner p {
    margin: 12px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #333333;
}

.spec-content__inner strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Building Details Summary */
.building-details-box__summary {
    padding: 10px 12px;
    margin: 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid #e8e8e8;
    color: #333333;
}

.building-details-box__summary strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.unit-card {
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 10px;
}

.unit-card:nth-child(2n) {
    border-right: none;
}

.unit-card__header {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.unit-card__details {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.unit-detail {
    font-size: 0.875rem;
    color: #555555;
}

.unit-card__area {
    font-size: 0.875rem;
    color: #262626;
    font-weight: 500;
}

/* Cost Considerations */
.cost-range-box {
    background: #e8f4f8;
    border: 1px solid #b3d9e6;
        padding: 10px;
    margin: 10px;
    font-size: 0.9375rem;
    color: #333333;
    line-height: 1.6;
}

.cost-range-box strong {
    font-weight: 600;
    color: #1a1a1a;
}

.cost-details-intro {
    padding: 16px 24px 8px;
    margin: 0;
    font-size: 0.9375rem;
    color: #333333;
    line-height: 1.6;
}

.cost-considerations-list {
    list-style: none;
    padding: 0 24px 24px;
    margin: 0;
}

.cost-considerations-list li {
    padding: 6px 0 6px 20px;
    font-size: 0.9375rem;
    color: #555555;
    position: relative;
}

.cost-considerations-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #262626;
}

/* Responsive */
@media (max-width: 1024px) {
    .design-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .units-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .unit-card:nth-child(2n) {
        border-right: 1px solid #e0e0e0;
    }
    
    .unit-card:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .design-detail-layout {
        padding: 20px 16px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .breadcrumb-inline {
        font-size: 0.75rem;
    }
    
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .unit-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 1.25rem;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .unit-card {
        border-right: none !important;
    }
}
/* Image Hover Label */
.design-main-image,
.floor-plan-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-main-image:hover,
.floor-plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.design-main-image img,
.floor-plan-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Image Label Overlay */
.image-label-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.design-main-image:hover .image-label-overlay,
.floor-plan-item:hover .image-label-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Floor Plan Title (Static, not overlay) */
.floor-plan-title {
    padding: 12px 16px;
    background-color: #f8f8f8;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    color: #1a1a1a;
}

/* Different style for images with titles */
.floor-plan-item:has(.floor-plan-title) .image-label-overlay {
    display: none;
}
