/* pieces.css — Carousel + auto-scroll strip layout */

/* ============================================
   Hero Carousel
   ============================================ */
.carousel-section {
    background: var(--grey-100);
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Slide Image */
.slide-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1a1e;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform .2s ease-out;
    touch-action: none;
}

.slide-image::after {
  content: 'MAISON JADE Club';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  letter-spacing: .15em;
  color: rgba(255,255,255,.08);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.strip-card {
  position: relative;
}

.strip-card::after {
  content: 'MJC';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: .2em;
  color: rgba(255,255,255,.10);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.lightbox-img-wrap {
  position: relative;
}

.lightbox-img-wrap::after {
  content: 'MAISON JADE Club';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  font-style: italic;
  letter-spacing: .15em;
  color: rgba(255,255,255,.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

/* Badge on slide */
.pieces-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 2px;
    color: var(--white);
    z-index: 2;
}

.pieces-badge-rare     { background: rgba(196,162,101,.9); }
.pieces-badge-waitlist { background: rgba(74,124,106,.85); }
.pieces-badge-invest   { background: rgba(42,45,48,.8); }

/* Slide Info (below image) */
.slide-info {
    padding: 28px 32px 36px;
    background: var(--white);
    border-top: 1px solid var(--grey-200);
}

.slide-category {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-bottom: 8px;
    font-weight: 500;
}

.slide-brand {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--grey-700);
    margin-bottom: 4px;
    line-height: 1.2;
}

.slide-name {
    font-size: .95rem;
    color: var(--grey-500);
    margin-bottom: 4px;
}

.slide-detail {
    font-size: .78rem;
    color: var(--jade-light);
    margin-bottom: 8px;
    font-weight: 400;
}

.slide-price {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    color: var(--grey-700);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: .01em;
}

.slide-cta {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--jade-deep);
    background: none;
    color: var(--jade-deep);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all .25s;
    font-weight: 400;
    cursor: pointer;
}

.slide-cta:hover {
    background: var(--jade-deep);
    color: var(--white);
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    /* Only cover the image area, not the info */
    height: auto;
    bottom: auto;
    /* We'll position by percentage based on aspect-ratio */
    padding-top: 0;
}

/* Position arrows over the image only */
.carousel-arrow {
    top: 0;
    height: 62.5%; /* 10/16 of total slide = image portion */
}

.carousel-prev { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent); }
.carousel-next { right: 0; background: linear-gradient(-90deg, rgba(0,0,0,.25), transparent); }

.carousel-prev:hover { background: linear-gradient(90deg, rgba(0,0,0,.4), transparent); }
.carousel-next:hover { background: linear-gradient(-90deg, rgba(0,0,0,.4), transparent); }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 20px;
    background: var(--white);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--grey-300);
    background: none;
    cursor: pointer;
    padding: 0;
    transition: all .25s;
}

.carousel-dot.active {
    background: var(--jade-deep);
    border-color: var(--jade-deep);
    transform: scale(1.15);
}

.carousel-dot:hover:not(.active) {
    border-color: var(--jade-medium);
}

/* ============================================
   Auto-scrolling Strip
   ============================================ */
.scroll-strip-section {
    padding: 48px 0 56px;
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
    overflow: hidden;
}

.scroll-strip-header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 28px;
}

.scroll-strip-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--jade-deep);
    letter-spacing: -.01em;
}

.pieces-label {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 500;
}

.scroll-strip-wrapper {
    overflow: hidden;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.scroll-strip-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 24px;
    scroll-behavior: auto;
}

.scroll-strip-track::-webkit-scrollbar { display: none; }

.strip-card {
    flex: 0 0 200px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--grey-200);
    cursor: pointer;
    transition: box-shadow .3s, transform .3s;
}

.strip-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.strip-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--grey-200);
}

.strip-card-info {
    padding: 10px 12px;
}

.strip-card-brand {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: .9rem;
    font-weight: 500;
    color: var(--grey-700);
    line-height: 1.3;
}

.strip-card-name {
    display: block;
    font-size: .7rem;
    color: var(--grey-400);
    margin-top: 2px;
}

.strip-card-price {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: .82rem;
    color: var(--grey-700);
    font-weight: 500;
    margin-top: 4px;
}

/* ============================================
   CTA Section
   ============================================ */
.pieces-cta-section {
    padding: 80px 40px;
    background: var(--jade-deep);
    text-align: center;
}

.pieces-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.pieces-cta-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 28px;
}

.pieces-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--jade-deep);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .3s;
}

.pieces-cta-btn:hover { background: var(--gold-light); }

.pieces-cta-channels {
    margin-top: 20px;
}

.pieces-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .78rem;
    transition: color .3s;
}

.pieces-wa-link:hover { color: rgba(255,255,255,.8); }

/* Footer disclaimer */
.footer-disclaimer {
    font-size: .62rem;
    color: rgba(255,255,255,.3);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 600px;
}

/* ============================================
   Inline Image Gallery (Instagram-style swipe)
   ============================================ */
.slide-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.slide-gallery-frame {
    min-width: 100%;
    height: 100%;
}

.slide-gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================
   Image Count Dots (Instagram-style, on slide)
   ============================================ */
.slide-img-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    background: rgba(0,0,0,.35);
    padding: 5px 10px;
    border-radius: 12px;
}

.slide-img-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .2s;
}

.slide-img-dot.active {
    background: #fff;
}

/* ============================================
   Gallery Hint Icon (on slide images)
   ============================================ */
.slide-gallery-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,.45);
    color: rgba(255,255,255,.8);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
}

.slide-gallery-hint:hover {
    background: rgba(0,0,0,.7);
}

.slide-image[onclick] {
    cursor: pointer;
}

/* ============================================
   Lightbox (Instagram-style gallery)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility .25s;
}

.lightbox.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    padding: 8px;
    transition: color .2s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .1em;
    font-weight: 400;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}

.lightbox-img-wrap {
    max-width: 900px;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2px;
    transition: opacity .2s;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255,255,255,.08);
    border: none;
    color: rgba(255,255,255,.7);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.lb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all .2s;
}

.lb-dot.active {
    background: #fff;
    border-color: #fff;
}

/* Booking overlay styles moved to booking.css */

/* ============================================
   RTL
   ============================================ */
[dir="rtl"] .slide-info { text-align: right; }
[dir="rtl"] .pieces-badge { right: auto; left: 16px; }
[dir="rtl"] .carousel-prev { left: auto; right: 0; }
[dir="rtl"] .carousel-next { right: auto; left: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 769px) {
    .carousel-slide {
        flex-direction: row;
    }

    .slide-image {
        flex: 0 0 60%;
        aspect-ratio: auto;
        min-height: 480px;
    }

    .slide-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 40px;
        border-top: none;
        border-left: 1px solid var(--grey-200);
    }

    .carousel-arrow {
        height: 100%;
    }

    .carousel-dots {
        position: absolute;
        bottom: 0;
        left: 60%;
        right: 0;
        background: transparent;
        padding-bottom: 24px;
    }

    .strip-card {
        flex: 0 0 220px;
    }
}

@media (max-width: 768px) {
    .slide-image {
        aspect-ratio: 4 / 3;
    }

    .slide-info {
        padding: 20px 20px 28px;
    }

    .slide-brand {
        font-size: 1.6rem;
    }

    .carousel-arrow {
        width: 44px;
    }

    .carousel-arrow svg {
        width: 22px;
        height: 22px;
    }

    .scroll-strip-section {
        padding: 36px 0 40px;
    }

    .scroll-strip-title {
        font-size: 1.3rem;
    }

    .strip-card {
        flex: 0 0 160px;
    }

    .pieces-cta-section {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .slide-image {
        aspect-ratio: 1 / 1;
    }

    .slide-info {
        padding: 16px 16px 24px;
    }

    .slide-brand {
        font-size: 1.4rem;
    }

    .slide-cta {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .strip-card {
        flex: 0 0 140px;
    }

    .pieces-cta-section {
        padding: 40px 20px;
    }

    .pieces-cta-text {
        font-size: 1.2rem;
    }
}
