/* ==========================================================================
   03 Details Page Styles
   ========================================================================== */

/* Section 1: Taller hero (2360/2560 aspect) */
.mh-dt-hero {
  height: var(--vh, 100dvh);
  padding-top: var(--header-height, 105px);
  max-height: clamp(700px, 92.2vw, 2360px);
}

/* Section 2: Side-by-side text + carousel */
.mh-dt-side-carousel {
  background: var(--mh-white);
  padding: clamp(4rem, 4.7vw, 12rem) 0;
}

.mh-dt-side-carousel__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 3vw, 8rem);
  padding-left: var(--mh-pad-x);
  padding-right: var(--mh-pad-x);
  overflow: hidden;
}

.mh-dt-side-carousel__text {
  flex: 0 0 clamp(280px, 27.7vw, 710px);
  padding-top: 0;
}

.mh-dt-side-carousel__text .mh-h2 {
  text-align: center;
}

.mh-dt-side-carousel__text .mh-divider-line {
  margin-left: auto;
  margin-right: auto;
}

.mh-dt-side-carousel__text .mh-body {
  text-align: center;
}

.mh-dt-side-carousel__carousel {
  flex: 1;
  min-width: 0;
  position: relative;
}

.mh-dt-side-carousel__carousel .mh-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 2rem 0 0 0;
}

/* Section 3: Showcase (heading + image with text overlay) */
.mh-dt-showcase {
  background: var(--mh-white);
  padding: clamp(2rem, 1.88vw, 4.8rem) 0 clamp(4rem, 4.7vw, 12rem);
}

.mh-dt-showcase__heading {
  text-align: center;
  margin-bottom: clamp(2rem, 2.3vw, 6rem);
}

.mh-dt-showcase__inner {
  position: relative;
  margin: 0 var(--mh-pad-x);
}

.mh-dt-showcase__image-wrap {
  width: 100%;
  overflow: hidden;
}

.mh-dt-showcase__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.mh-dt-showcase__text {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(300px, 33vw, 845px);
  padding: clamp(1rem, 1.5vw, 4rem);
  background: rgba(255, 255, 255, 0.85);
}

.mh-dt-showcase__text .mh-body {
  text-align: left;
}

/* Section 4: Gallery (carousel on top, text below) — symmetric padding, 3 slides desktop */
.mh-dt-gallery {
  background: var(--mh-white);
  padding: clamp(4rem, 4.7vw, 12rem) 0;
}

.mh-dt-gallery .mh-carousel__swiper {
  margin: 0 var(--mh-pad-x);
  overflow: visible;
}

.mh-dt-gallery .mh-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 2rem 0 0 0;
}

.mh-dt-gallery__text {
  text-align: center;
  max-width: clamp(500px, 34.3vw, 878px);
  margin: clamp(4rem, 4.7vw, 12rem) auto 0;
  padding: 0 var(--mh-pad-x);
}

/* Section 6: Panorama (floor plans) */
.mh-dt-panorama {
  background: var(--mh-white);
  padding: clamp(4rem, 4.7vw, 12rem) 0;
}

.mh-dt-panorama__inner {
  position: relative;
  padding: 0 var(--mh-pad-x);
}

.mh-dt-panorama__swiper {
  overflow: hidden;
}

.mh-dt-panorama .mh-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 2rem 0 0 0;
}

/* Constrain slides so aspect-ratio children don't blow out width */
.mh-dt-side-carousel .swiper-slide,
.mh-dt-gallery .swiper-slide,
.mh-dt-panorama .swiper-slide {
  width: auto;
  min-width: 0;
  overflow: hidden;
}

/* Swiper images (all carousels) */
.swiper-slide .mh-carousel__image-wrap > img {
  width: 100%;
  height: 100%;
  display: block;
}

.mh-dt-panorama__swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 767px) {
  .mh-dt-hero {
    height: var(--vh, 100dvh);
  }

  .mh-dt-side-carousel__inner {
    flex-direction: column;
  }

  .mh-dt-side-carousel__text {
    flex: none;
    width: 100%;
  }

  .mh-dt-side-carousel__carousel {
    width: 100%;
    min-width: 0;
  }

  .mh-dt-showcase__image-wrap {
    width: 100%;
  }

  .mh-dt-side-carousel__text .mh-h2,
  .mh-dt-side-carousel__text .mh-body {
    text-align: center;
  }

  .mh-dt-side-carousel__text .mh-divider-line {
    margin-left: auto;
  }

  .mh-dt-showcase__text {
    position: relative;
    width: 100%;
    background: var(--mh-white);
    padding: clamp(2rem, 3vw, 4rem) 0;
  }

  .mh-dt-showcase__text .mh-body {
    text-align: center;
  }
}
