/* ── Beach House ── */
.beachhouse {
  position: relative;
  background: var(--color-ocean-deep);
  color: var(--color-white);
  padding-block: clamp(5rem, 9vw, 9rem);
  overflow: hidden;
}

.beachhouse__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.beachhouse__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.beachhouse__content {
  position: relative;
  z-index: 1;
}

.beachhouse__eyebrow {
  color: var(--color-ocean-light);
}

.beachhouse__title {
  color: var(--color-white);
  margin-block: 1rem 1.5rem;
}

.beachhouse__body {
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.beachhouse__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.beachhouse__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.beachhouse__feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.beachhouse__feature-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  font-weight: 300;
}

/* Images side */
.beachhouse__images {
  position: relative;
  height: 600px;
  /* overflow must be visible so scaled images can bleed outside
     their grid cells and overlap neighbours on hover */
  overflow: visible;
}

/* ── Shared hover behaviour for all image cards ── */
.beachhouse__img-main,
.beachhouse__img-secondary,
.beachhouse__img-tertiary,
.beachhouse__img-quaternary {
  position: absolute;
  border-radius: var(--radius-lg);
  /* overflow on the wrapper keeps border-radius visible on the img */
  overflow: hidden;
  /* Base z-index — hovered card will rise above peers */
  z-index: 1;
  /* Smooth scale + shadow + lift transition */
  transition:
    transform  0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    z-index    0s   linear 0s;
  /* GPU layer for smooth animation */
  will-change: transform, box-shadow;
  cursor: pointer;
}

/* Hover state — scale out, lift, stronger shadow */
.beachhouse__img-main:hover,
.beachhouse__img-secondary:hover,
.beachhouse__img-tertiary:hover,
.beachhouse__img-quaternary:hover {
  transform: scale(1.1) translateY(-6px);
  z-index: 10;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform  0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    z-index    0s   linear 0s;
}

/* Image inside each card — gentle inner zoom for depth */
.beachhouse__img-main img,
.beachhouse__img-secondary img,
.beachhouse__img-tertiary img,
.beachhouse__img-quaternary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.beachhouse__img-main:hover img,
.beachhouse__img-secondary:hover img,
.beachhouse__img-tertiary:hover img,
.beachhouse__img-quaternary:hover img {
  transform: scale(1.04);
}

/* ── Individual card positions ── */
.beachhouse__img-main {
  top: 0;
  right: 0;
  width: 80%;
  height: 68%;
  box-shadow: var(--shadow-lg);
}

.beachhouse__img-secondary {
  bottom: 0;
  left: 0;
  width: 58%;
  height: 44%;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.12);
}

/* Third image — bottom-right corner */
.beachhouse__img-tertiary {
  bottom: 0;
  right: 0;
  width: 38%;
  height: 30%;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.12);
}

/* Fourth image — mid-left, sits between main and secondary */
.beachhouse__img-quaternary {
  top: 52%;
  left: 0;
  width: 36%;
  height: 24%;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  .beachhouse__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .beachhouse__images {
    height: 400px;
    order: -1;
  }
}

@media (max-width: 560px) {
  .beachhouse__features { grid-template-columns: 1fr; }
  .beachhouse__images { height: 320px; }
}
