/* ============================================================
   DESIGN MEDIA - BEFORE/AFTER & FLOOR PLANS
   ============================================================ */

.design-media-section {
    padding: 70px 10%;
    background: #faf8f5;
    scroll-margin-top: 90px;
    border-top: 1px solid #eee8e0;
    border-bottom: 1px solid #eee8e0;
}

.design-media-section h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 500;
    margin: 0 0 10px;
    color: #1f2421;
}

.design-comparisons,
.design-floor-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 36px;
    margin-top: 36px;
}

.comparison-figure {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.comparison-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2421;
    margin: 0 0 16px;
    font-family: inherit;
    line-height: 1.35;
}

.design-comparison {
    --compare: 50%;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e6e4de;
    overflow: hidden;
    border-radius: 10px;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.design-comparison > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.design-comparison-after {
    clip-path: inset(0 0 0 var(--compare));
}

.design-comparison-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(24, 32, 25, 0.8);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
}

.design-after-label {
    left: auto;
    right: 14px;
    background: rgba(168, 132, 76, 0.9);
}

.design-comparison-divider {
    position: absolute;
    left: var(--compare);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

.design-comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #a8844c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #a8844c;
    transition: transform 0.15s ease;
}

.design-comparison:hover .design-comparison-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.design-comparison-control {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: #6e746c;
    margin: 16px 0 6px;
}

.design-comparison-control .control-label {
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.design-comparison-control input[type="range"] {
    flex: 1;
    min-width: 100px;
    height: 6px;
    border-radius: 999px;
    accent-color: #a8844c;
    cursor: pointer;
}

.comparison-caption {
    font-size: 13px;
    line-height: 1.6;
    color: #6e746c;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e8e2d8;
}

/* Floor Plans Card */
.floor-plan-card {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floor-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.floor-plan-media-btn,
.floor-plan-card .project-gallery-open {
    aspect-ratio: 16 / 10;
    background: #fdfdfd;
    border: 1px solid #ede8e0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 0;
    cursor: zoom-in;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.floor-plan-media-btn img,
.floor-plan-card .project-gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.floor-plan-card:hover .floor-plan-media-btn img,
.floor-plan-card .project-gallery-open:hover img {
    transform: scale(1.04);
}

.floor-plan-zoom-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border: 1px solid #dcd6cc;
    padding: 7px 16px;
    border-radius: 999px !important;
    width: auto !important;
    height: auto !important;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f2421;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    z-index: 2;
}

.floor-plan-card:hover .floor-plan-zoom-pill {
    background: #a8844c;
    color: #ffffff !important;
    border-color: #a8844c;
    box-shadow: 0 4px 14px rgba(168, 132, 76, 0.3);
}

.floor-plan-caption-box {
    margin-top: 16px;
    padding: 14px 16px;
    background: #faf8f5;
    border: 1px solid #eee8e0;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.floor-plan-caption-box i {
    color: #a8844c;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.floor-plan-caption-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #242c25;
    line-height: 1.6;
    margin: 0;
}

.floor-plan-card figcaption {
    font-size: 13.5px;
    line-height: 1.6;
    color: #242c25;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee8e0;
}

@media (max-width: 768px) {
    .design-media-section {
        padding: 50px 7%;
    }
    .design-comparisons,
    .design-floor-plans {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
