/* ==========================================================================
   BPV Project Detail — bpv-project-detail.css
   ========================================================================== */

.bpv-pd-wrap {
    --bpv-ink:        #2A1D14;
    --bpv-ink-muted:  rgba(42, 29, 20, 0.55);
    --bpv-accent:     #5C3D28;
    --bpv-divider:    rgba(42, 29, 20, 0.15);
    /* --bpv-bg:         #FFFFFF; */
    --bpv-bg-alt:     #FAF6F0;
    --bpv-gallery-gap: 20px;

    font-family: 'Inclusive Sans', sans-serif;
    color: var(--bpv-ink);
    /* background: var(--bpv-bg); */
    margin: 0 auto;
    box-sizing: border-box;
}

.bpv-pd-wrap *,
.bpv-pd-wrap *::before,
.bpv-pd-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Breadcrumb */
.bpv-pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 13px;
    color: var(--bpv-ink-muted);
    padding: 20px 0;
    flex-wrap: wrap;
}
.bpv-pd-breadcrumb a { color: var(--bpv-ink-muted); text-decoration: none; transition: color 0.2s; }
.bpv-pd-breadcrumb a:hover { color: var(--bpv-ink); }
.bpv-pd-breadcrumb__sep { opacity: 0.4; font-size: 15px; }

/* Two-column: 65 / 35, gap 40px */
.bpv-pd-main {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 40px;
    align-items: start;
}

/* Left column — scrolls normally */
.bpv-pd-col-images {
    display: flex;
    flex-direction: column;
    gap: var(--bpv-gallery-gap);
    min-width: 0; /* prevent grid blowout */
}

.bpv-pd-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bpv-bg-alt);
    aspect-ratio: 4 / 3;
    color: var(--bpv-ink-muted);
    font-size: 14px;
}

/* [3] Desktop gallery: row layout 1 / 2 / 3 */
.bpv-pd-gallery-desktop {
    display: flex;
    flex-direction: column;
    gap: var(--bpv-gallery-gap);
}
.bpv-pd-gallery-mobile { display: none; }

.bpv-pd-gallery-row {
    display: grid;
    gap: var(--bpv-gallery-gap);
}
.bpv-pd-gallery-row--1 { grid-template-columns: 1fr; }
.bpv-pd-gallery-row--2 { grid-template-columns: 1fr 1fr; }
.bpv-pd-gallery-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.bpv-pd-gallery-item {
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}
/* .bpv-pd-gallery-row--1 .bpv-pd-gallery-item { aspect-ratio: 16 / 9; }
.bpv-pd-gallery-row--2 .bpv-pd-gallery-item { aspect-ratio: 4 / 3; }
.bpv-pd-gallery-row--3 .bpv-pd-gallery-item { aspect-ratio: 1 / 1; } */
.bpv-pd-gallery-row--1 .bpv-pd-gallery-item { height: 420px; }
.bpv-pd-gallery-row--2 .bpv-pd-gallery-item { height: 280px; }
.bpv-pd-gallery-row--3 .bpv-pd-gallery-item { height: 200px; }

.bpv-pd-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bpv-pd-gallery-item:hover img { transform: scale(1.04); }

/* Right column — sticky via align-self so whichever col is shorter sticks */
.bpv-pd-col-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 24px;
    align-self: start;
    min-width: 0;
}

/* Header */
.bpv-pd-header { margin-bottom: 24px; }

.bpv-pd-title {
    font-family: 'Swarsh Daisy', serif;
    font-size: clamp(2rem, 3.2vw, 56px);
    font-weight: 400;
    line-height: 115%;
    color: var(--bpv-ink);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.bpv-pd-short-desc {
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 15px;
    line-height: 170%;
    color: var(--bpv-ink);
    opacity: 0.75;
}

/* [5] Meta — not bold */
.bpv-pd-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--bpv-divider);
}
.bpv-pd-meta__item { display: flex; align-items: center; gap: 10px; }
.bpv-pd-meta__icon { flex-shrink: 0; color: var(--bpv-accent); display: flex; align-items: center; }
.bpv-pd-meta__text {
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--bpv-ink);
}

/* [2] Accordion — zero hover effect */
.bpv-pd-accordion { border-bottom: 1px solid var(--bpv-divider); }

.bpv-pd-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 18px 0;
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bpv-ink);
    -webkit-appearance: none;
    appearance: none;
}
.bpv-pd-accordion__trigger:hover,
.bpv-pd-accordion__trigger:focus,
.bpv-pd-accordion__trigger:active {
    background: transparent !important;
    color: var(--bpv-ink) !important;
    box-shadow: none !important;
    outline: none !important;
}

.bpv-pd-accordion__chevron {
    flex-shrink: 0;
    color: var(--bpv-ink);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpv-pd-accordion__trigger[aria-expanded="true"] .bpv-pd-accordion__chevron {
    transform: rotate(180deg);
}

.bpv-pd-accordion__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpv-pd-accordion__body.is-open { max-height: 600px; padding-bottom: 20px; }

/* Sizes */
.bpv-pd-sizes { display: flex; flex-direction: column; gap: 6px; }
.bpv-pd-sizes__row { display: flex; gap: 8px; font-size: 14px; line-height: 160%; }
.bpv-pd-sizes__label { color: var(--bpv-ink-muted); }
.bpv-pd-sizes__val   { font-weight: 600; color: var(--bpv-ink); }

/* Amenities */
.bpv-pd-amenities { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bpv-pd-amenities__item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; line-height: 160%; color: var(--bpv-ink);
}
.bpv-pd-amenities__dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--bpv-accent); flex-shrink: 0;
}

/* [4] CTA box */
.bpv-pd-cta {
    margin-top: 28px;
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bpv-pd-cta__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.bpv-pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 13px 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: center;
}
.bpv-pd-btn--outline {
    border: 1px solid var(--bpv-accent);
    color: var(--bpv-accent);
    background: transparent;
}
.bpv-pd-btn--outline:hover { background: rgba(92, 61, 40, 0.06); }
.bpv-pd-btn--filled {
    border: 1px solid var(--bpv-accent);
    background: var(--bpv-accent);
    color: #fff;
}
.bpv-pd-btn--filled:hover { background: #4a3020; }
.bpv-pd-cta__text {
    font-size: 12px;
    line-height: 160%;
    color: #535353;
}

/* [6] Long description in left column */
.bpv-pd-long-desc {
    margin-top: 12px;
    padding-top: 32px;
    border-top: 1px solid var(--bpv-divider);
    font-family: 'Inclusive Sans', sans-serif;
    font-size: 15px;
    line-height: 180%;
    color: var(--bpv-ink);
    opacity: 0.85;
}
.bpv-pd-long-desc p + p { margin-top: 1.2em; }

/* Lightbox */
.bpv-pd-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.bpv-pd-lightbox.is-open { opacity: 1; pointer-events: all; }
.bpv-pd-lightbox__backdrop {
    position: absolute; inset: 0;
    background: rgba(250, 246, 240, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.bpv-pd-lightbox__shell {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 80px 20px;
    box-sizing: border-box; gap: 20px;
}
.bpv-pd-lightbox__close {
    position: absolute; top: 24px; right: 28px;
    background: transparent !important;
    border: 1px solid var(--bpv-accent, #5C3D28) !important;
    border-radius: 0 !important; outline: none !important;
    box-shadow: none !important; cursor: pointer;
    color: var(--bpv-accent, #5C3D28) !important;
    padding: 8px 10px; line-height: 0;
    opacity: 0.7; transition: opacity 0.2s;
    -webkit-appearance: none; appearance: none;
}
.bpv-pd-lightbox__close:hover { opacity: 1; }
.bpv-pd-lightbox__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent !important;
    border: 1px solid var(--bpv-accent, #5C3D28) !important;
    border-radius: 0 !important; outline: none !important;
    box-shadow: none !important; cursor: pointer;
    color: var(--bpv-accent, #5C3D28) !important;
    padding: 12px 10px; line-height: 0;
    opacity: 0.6; transition: opacity 0.2s;
    z-index: 2; -webkit-appearance: none; appearance: none;
}
.bpv-pd-lightbox__arrow:hover { opacity: 1; }
.bpv-pd-lightbox__arrow--prev { left: 20px; }
.bpv-pd-lightbox__arrow--next { right: 20px; }
.bpv-pd-lightbox__stage {
    flex: 1; display: flex; align-items: center; justify-content: center;
    overflow: hidden; width: 100%; max-width: 900px;
}
.bpv-pd-lightbox__zoom-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: grab;
}
.bpv-pd-lightbox__zoom-wrap.is-grabbing { cursor: grabbing; }
.bpv-pd-lightbox__main-img {
    max-width: 100%; max-height: 100%; object-fit: contain; display: block;
    transform-origin: center center; transition: transform 0.1s ease;
    pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.bpv-pd-lightbox__thumbs {
    display: flex; gap: 10px; justify-content: center;
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
    max-width: 100%; scrollbar-width: none;
}
.bpv-pd-lightbox__thumbs::-webkit-scrollbar { display: none; }
.bpv-pd-lightbox__thumb {
    width: 60px; height: 60px; flex-shrink: 0;
    object-fit: cover; cursor: pointer;
    opacity: 0.4; transition: opacity 0.2s;
    border: 1.5px solid transparent;
}
.bpv-pd-lightbox__thumb:hover { opacity: 0.7; }
.bpv-pd-lightbox__thumb.is-active { opacity: 1; border-color: var(--bpv-accent, #5C3D28); }

/* Responsive */
@media (max-width: 1024px) {
    .bpv-pd-main { grid-template-columns: 60% 40%; gap: 32px; }
    .bpv-pd-title { font-size: clamp(1.8rem, 4vw, 42px); }
}

/* [8] Mobile */
@media (max-width: 768px) {
    .bpv-pd-main { grid-template-columns: 1fr; gap: 32px; }
    .bpv-pd-col-info { position: static; }

    .bpv-pd-gallery-desktop { display: none; }
    .bpv-pd-gallery-mobile  { display: flex; flex-direction: column; gap: 10px; }

    .bpv-pd-mob-main-wrap { width: 100%; overflow: hidden; position: relative; }
    .bpv-pd-mob-track {
        display: flex;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }
    .bpv-pd-mob-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
    .bpv-pd-mob-slide img {
        width: 100%; height: 100%; object-fit: cover; display: block;
        pointer-events: none; user-select: none; -webkit-user-drag: none;
    }
    .bpv-pd-mob-thumbs {
        display: flex; gap: 10px; overflow-x: auto;
        scrollbar-width: none; padding-bottom: 2px;
    }
    .bpv-pd-mob-thumbs::-webkit-scrollbar { display: none; }
    .bpv-pd-mob-thumb {
        flex: 0 0 72px; height: 72px; overflow: hidden;
        cursor: pointer; opacity: 0.45; transition: opacity 0.2s;
        border: 2px solid transparent;
    }
    .bpv-pd-mob-thumb.is-active { opacity: 1; border-color: var(--bpv-accent); }
    .bpv-pd-mob-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .bpv-pd-title { font-size: clamp(1.8rem, 7vw, 36px); }
    .bpv-pd-cta__buttons { grid-template-columns: 1fr; gap: 12px; }

    .bpv-pd-lightbox__arrow { display: none; }
    .bpv-pd-lightbox__shell { padding: 52px 16px 12px; gap: 12px; }
    .bpv-pd-lightbox__thumb { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .bpv-pd-mob-thumb { flex: 0 0 60px; height: 60px; }
}
