/* Room showcase: photo with play button + overlapping text panel */

.showcase {
  position: relative;
  background: var(--color-white);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 45, 75, 0.03);
    pointer-events: none;
  }
}

.showcase__box {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
}

.showcase__media {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
  background: #1a1d22;
  box-shadow: var(--shadow-panel);

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 15, 24, 0.2), rgba(8, 15, 24, 0.06));
    pointer-events: none;
  }
}

.showcase__img {
  --parallax-scale: 1.08;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .js-enabled .is-visible .showcase__media:hover .showcase__img,
  .js-enabled .showcase__media.is-visible:hover .showcase__img {
    --image-reveal-scale: 0.03;
  }
}

/* Gold play disc (video link to be added) */
.showcase__play {
  position: relative;
  z-index: 5;
  grid-area: 1 / 1;
  place-self: center;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.94);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: box-shadow var(--duration-base) ease;

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--color-white);
    transform: translate(-34%, -50%);
  }
}

@media (hover: hover) {
  .showcase__play:hover {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.14);
  }
}

.showcase__panel {
  position: relative;
  z-index: 3;
  width: min(92%, 440px);
  margin: -34px auto 0;
  padding: 2.4rem 2rem;
  background: var(--color-panel);
  box-shadow: var(--shadow-panel-lg);
}

.showcase__kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: #8a6d45;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.showcase__title {
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.showcase__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 45, 75, 0.08);
}

.showcase__spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);

  &::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-secondary);
  }
}

@media (min-width: 1024px) {
  .showcase__box {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }

  .showcase__media {
    flex: 1 1 100%;
    min-height: 430px;
  }

  .showcase__panel {
    flex: 0 0 45%;
    width: auto;
    margin: 0;
    padding: 3.4rem 2.7rem;
  }

  .showcase__play {
    width: 102px;
    height: 102px;
  }

  .showcase__play::before {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
  }
}

/* Two-column variant (rooms page): photo and info panel side by side */
.showcase__box--split {
  gap: 1.5rem;
  padding-top: 0;
}

@media (min-width: 1024px) {
  .showcase__box--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.showcase__box--split {
  align-items: center;
}
