/* ═══════════════════════════════════════
   DC Before/After – Compact Split Layout
   ═══════════════════════════════════════ */

.dc-ba {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* ── Header ── */
.dc-ba .dc-ba__header {
    text-align: center;
    margin-bottom: 40px;
}
.dc-ba .dc-ba__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.dc-ba .dc-ba__subtitle-line {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, #A78278);
}
.dc-ba .dc-ba__subtitle-line:last-child {
    background: linear-gradient(90deg, #A78278, transparent);
}
.dc-ba .dc-ba__subtitle-text {
    font-family: 'Trajan Pro','Cinzel',serif;
    font-size: 11px; font-weight: 400;
    letter-spacing: 3.5px; text-transform: uppercase;
    color: #8B6B62;
}
.dc-ba .dc-ba__title {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 300; color: #1a1a2e;
    margin: 0 0 8px; line-height: 1.15;
}
.dc-ba .dc-ba__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px; color: #505059;
    margin: 0; line-height: 1.6;
    max-width: 420px;
    margin-left: auto; margin-right: auto;
}

/* ── Stage ── */
.dc-ba .dc-ba__stage {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.dc-ba .dc-ba__stage.dc-ba--visible {
    opacity: 1; transform: translateY(0);
}

/* ── Split layout ── */
.dc-ba .dc-ba__split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(167,130,120,0.1);
    box-shadow:
        0 2px 12px rgba(26,26,46,0.04),
        0 12px 48px rgba(26,26,46,0.06);
}

/* ═══ LEFT: Viewer ═══ */
.dc-ba .dc-ba__viewer {
    position: relative;
    background: #0f0f18;
}

/* Slides */
.dc-ba .dc-ba__slide {
    display: none;
    position: relative;
}
.dc-ba .dc-ba__slide--active {
    display: block;
    animation: dcBaIn 0.4s ease;
}
@keyframes dcBaIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slider */
.dc-ba .dc-ba__slider {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: col-resize;
    -webkit-user-select: none;
    user-select: none;
}
.dc-ba .dc-ba__img {
    position: absolute;
    inset: 0;
}
.dc-ba .dc-ba__img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dc-ba .dc-ba__img--after {
    clip-path: inset(0 50% 0 0);
}

/* ── Handle ── */
.dc-ba .dc-ba__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    width: 2px;
}
.dc-ba .dc-ba__handle-line {
    flex: 1;
    width: 2px;
    background: rgba(255,255,255,0.6);
}
.dc-ba .dc-ba__handle-grip {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 2px 12px rgba(0,0,0,0.2),
        0 0 0 2px rgba(167,130,120,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dc-ba .dc-ba__slider:active .dc-ba__handle-grip {
    transform: scale(1.1);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.25),
        0 0 0 3px rgba(167,130,120,0.4);
}
.dc-ba .dc-ba__handle-grip svg {
    width: 11px; height: 11px;
    color: #A78278;
    flex-shrink: 0;
}

/* ── Labels ── */
.dc-ba .dc-ba__label {
    position: absolute;
    top: 14px;
    padding: 5px 11px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 4;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.dc-ba .dc-ba__label--before {
    left: 14px;
    background: rgba(26,26,46,0.55);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.08);
}
.dc-ba .dc-ba__label--after {
    right: 14px;
    background: rgba(167,130,120,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Nav arrows ── */
.dc-ba .dc-ba__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(26,26,46,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}
.dc-ba .dc-ba__nav:hover {
    background: rgba(167,130,120,0.8);
    border-color: rgba(167,130,120,0.5);
}
.dc-ba .dc-ba__nav svg { width: 16px; height: 16px; }
.dc-ba .dc-ba__nav--prev { left: 12px; }
.dc-ba .dc-ba__nav--next { right: 12px; }

/* ── Counter overlay ── */
.dc-ba .dc-ba__counter {
    position: absolute;
    bottom: 14px; right: 14px;
    z-index: 6;
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 5px 12px;
    background: rgba(26,26,46,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
}
.dc-ba .dc-ba__counter-current {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.dc-ba .dc-ba__counter-sep {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}
.dc-ba .dc-ba__counter-total {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
}

/* ═══ RIGHT: Sidebar ═══ */
.dc-ba .dc-ba__sidebar {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #fff;
    border-left: 1px solid rgba(167,130,120,0.08);
}

/* ── Detail card ── */
.dc-ba .dc-ba__detail {
    display: none;
    flex-direction: column;
    margin-bottom: 24px;
}
.dc-ba .dc-ba__detail--active {
    display: flex;
    animation: dcBaDetailIn 0.4s ease;
}
@keyframes dcBaDetailIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dc-ba .dc-ba__detail-tag {
    display: inline-flex;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #A78278;
    background: rgba(167,130,120,0.08);
    border: 1px solid rgba(167,130,120,0.12);
    border-radius: 50px;
    padding: 4px 12px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.dc-ba .dc-ba__detail-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.2;
}
.dc-ba .dc-ba__detail-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #505059;
    margin: 0 0 16px;
    line-height: 1.6;
}
.dc-ba .dc-ba__detail-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #94a3b8;
    padding: 10px 14px;
    background: rgba(167,130,120,0.03);
    border: 1px solid rgba(167,130,120,0.08);
    border-radius: 10px;
}
.dc-ba .dc-ba__detail-hint svg {
    width: 14px; height: 14px;
    color: #A78278;
    flex-shrink: 0;
}

/* ── Thumbnails list ── */
.dc-ba .dc-ba__thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}
.dc-ba .dc-ba__thumbs-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}
.dc-ba .dc-ba__thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    position: relative;
}
.dc-ba .dc-ba__thumb:hover {
    background: rgba(167,130,120,0.04);
    border-color: rgba(167,130,120,0.1);
}
.dc-ba .dc-ba__thumb--active {
    background: rgba(167,130,120,0.06);
    border-color: rgba(167,130,120,0.15);
}
.dc-ba .dc-ba__thumb-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: rgba(167,130,120,0.3);
    min-width: 16px;
    transition: color 0.25s;
}
.dc-ba .dc-ba__thumb--active .dc-ba__thumb-num {
    color: #A78278;
}
.dc-ba .dc-ba__thumb-img {
    width: 38px; height: 38px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.06);
}
.dc-ba .dc-ba__thumb-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dc-ba .dc-ba__thumb-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.dc-ba .dc-ba__thumb-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-ba .dc-ba__thumb-desc {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-ba .dc-ba__thumb-arrow {
    width: 16px; height: 16px;
    color: transparent;
    transition: all 0.25s;
    flex-shrink: 0;
}
.dc-ba .dc-ba__thumb-arrow svg {
    width: 16px; height: 16px;
}
.dc-ba .dc-ba__thumb:hover .dc-ba__thumb-arrow,
.dc-ba .dc-ba__thumb--active .dc-ba__thumb-arrow {
    color: #A78278;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .dc-ba .dc-ba__split {
        grid-template-columns: 1fr 280px;
    }
    .dc-ba .dc-ba__detail-title { font-size: 18px; }
    .dc-ba .dc-ba__sidebar { padding: 22px 18px; }
}

@media (max-width: 740px) {
    .dc-ba { padding: 40px 16px; }
    .dc-ba .dc-ba__header { margin-bottom: 20px; }
    .dc-ba .dc-ba__subtitle-text { font-size: 10px; letter-spacing: 2.5px; }
    .dc-ba .dc-ba__subtitle-line { width: 24px; }
    .dc-ba .dc-ba__title { font-size: clamp(20px, 5vw, 26px); }
    .dc-ba .dc-ba__desc { font-size: 13px; }

    /* Stack: viewer on top, sidebar below */
    .dc-ba .dc-ba__split {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }
    .dc-ba .dc-ba__slider { aspect-ratio: 1/1; }
    .dc-ba .dc-ba__sidebar {
        border-left: none;
        border-top: 1px solid rgba(167,130,120,0.08);
        padding: 16px;
    }

    /* Compact detail card */
    .dc-ba .dc-ba__detail { margin-bottom: 12px; }
    .dc-ba .dc-ba__detail-tag { font-size: 9px; padding: 3px 10px; margin-bottom: 8px; }
    .dc-ba .dc-ba__detail-title { font-size: 16px; margin-bottom: 4px; }
    .dc-ba .dc-ba__detail-desc { font-size: 12px; margin-bottom: 10px; line-height: 1.5; }
    .dc-ba .dc-ba__detail-hint { display: none; }

    /* Thumbs: horizontal scroll row */
    .dc-ba .dc-ba__thumbs {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .dc-ba .dc-ba__thumbs::-webkit-scrollbar { display: none; }
    .dc-ba .dc-ba__thumbs-label { display: none; }
    .dc-ba .dc-ba__thumb {
        min-width: 0;
        width: auto;
        flex-shrink: 0;
        padding: 5px 8px;
        border-radius: 8px;
    }
    .dc-ba .dc-ba__thumb-desc { display: none; }
    .dc-ba .dc-ba__thumb-arrow { display: none; }
    .dc-ba .dc-ba__thumb-num { display: none; }
    .dc-ba .dc-ba__thumb-img { width: 28px; height: 28px; border-radius: 6px; }
    .dc-ba .dc-ba__thumb-title { font-size: 11px; white-space: nowrap; }

    /* Nav arrows compact */
    .dc-ba .dc-ba__nav { width: 32px; height: 32px; }
    .dc-ba .dc-ba__nav svg { width: 14px; height: 14px; }
    .dc-ba .dc-ba__nav--prev { left: 8px; }
    .dc-ba .dc-ba__nav--next { right: 8px; }

    /* Counter & labels compact */
    .dc-ba .dc-ba__counter { bottom: 10px; right: 10px; padding: 4px 10px; }
    .dc-ba .dc-ba__counter-current { font-size: 12px; }
    .dc-ba .dc-ba__counter-sep { font-size: 10px; }
    .dc-ba .dc-ba__counter-total { font-size: 10px; }
    .dc-ba .dc-ba__label { top: 10px; padding: 4px 9px; font-size: 9px; }
    .dc-ba .dc-ba__label--before { left: 10px; }
    .dc-ba .dc-ba__label--after { right: 10px; }
}

@media (max-width: 480px) {
    .dc-ba { padding: 30px 12px; }
    .dc-ba .dc-ba__header { margin-bottom: 16px; }
    .dc-ba .dc-ba__split { border-radius: 12px; }
    .dc-ba .dc-ba__slider { aspect-ratio: 4/5; }
    .dc-ba .dc-ba__sidebar { padding: 12px; }

    /* Larger touch target for handle */
    .dc-ba .dc-ba__handle-grip { width: 44px; height: 44px; }
    .dc-ba .dc-ba__handle-grip svg { width: 12px; height: 12px; }

    /* Even more compact detail */
    .dc-ba .dc-ba__detail { margin-bottom: 10px; }
    .dc-ba .dc-ba__detail-tag { font-size: 8px; padding: 2px 8px; margin-bottom: 6px; }
    .dc-ba .dc-ba__detail-title { font-size: 15px; }
    .dc-ba .dc-ba__detail-desc { font-size: 11px; margin-bottom: 8px; }

    /* Smaller thumbs */
    .dc-ba .dc-ba__thumb { padding: 4px 6px; border-radius: 6px; }
    .dc-ba .dc-ba__thumb-img { width: 24px; height: 24px; border-radius: 5px; }
    .dc-ba .dc-ba__thumb-title { font-size: 10px; }
}

@media (max-width: 380px) {
    .dc-ba { padding: 24px 10px; }
    .dc-ba .dc-ba__title { font-size: 20px; }
    .dc-ba .dc-ba__desc { font-size: 12px; }
    .dc-ba .dc-ba__slider { aspect-ratio: 3/4; }
    .dc-ba .dc-ba__sidebar { padding: 10px; }
    .dc-ba .dc-ba__detail-title { font-size: 14px; }
    .dc-ba .dc-ba__detail-desc { font-size: 11px; }
}
