/* ================================================
   MANARE RESIDENCE — Showcase Section (SECTION 02)
   ================================================ */

.showcase {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--color-blue-dark);
  color: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top Header */
.showcase__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 40;
  color: var(--color-white);
  pointer-events: none;
}

.showcase__header-title {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  font-style: italic;
  text-transform: uppercase;
}

.showcase__header-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  pointer-events: auto;
}

.showcase__nav-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-primary);
  font-size: inherit;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  padding: 0.5rem;
}

.showcase__nav-btn:hover {
  opacity: 0.7;
}

.showcase__nav-btn.is-active {
  opacity: 1;
}

/* ---------- Residence Name - Above Carousel ---------- */
.showcase__name-layer {
  position: relative;
  z-index: 35;
  text-align: center;
  padding-top: 12rem;
  padding-bottom: 0;
}

.showcase__title {
  font-family: var(--font-secondary);
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--color-white);
  
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
              
  opacity: 1;
  transform: translateY(0);
}

.showcase__title.is-exiting {
  opacity: 0;
  transform: translateY(-30px);
}

.showcase__title.is-entering {
  opacity: 0;
  transform: translateY(30px);
}

/* Main Area */
.showcase__main {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  outline: none;
}

.showcase__images-layer {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* ---------- Card Items ---------- */
.showcase__item {
  position: absolute;
  width: 280px;
  height: 100%;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.32, 0.72, 0, 1);
  transform-origin: center;
}

@media (min-width: 768px) {
  .showcase__item { width: 380px; }
}

@media (min-width: 1024px) {
  .showcase__item { width: 460px; }
}

.showcase__item-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative; /* For the button positioning */
}

.showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Explore Button Inside Each Card ---------- */
.showcase__card-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1.8rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  text-decoration: none;
  z-index: 5;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
}

/* Only show the button on the center (active) card */
.showcase__item.pos-center .showcase__card-btn {
  opacity: 1;
  visibility: visible;
}

.showcase__card-btn:hover {
  background: var(--color-white);
  color: var(--color-blue-dark);
  border-color: var(--color-white);
}

/* Image Positions */
.showcase__item.pos-center {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 20;
}

.showcase__item.pos-left {
  transform: translateX(-105%) scale(0.85);
  opacity: 0.5;
  z-index: 10;
}

.showcase__item.pos-right {
  transform: translateX(105%) scale(0.85);
  opacity: 0.5;
  z-index: 10;
}

.showcase__item.pos-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Lateral Navigation Arrows (next to center card) ---------- */
.showcase__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.showcase__arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.showcase__arrow svg {
  width: 24px;
  height: 24px;
}

/* Position arrows right next to the center card edges */
/* Desktop: card is 460px => half = 230px. Arrow 48px + 12px gap = 60px offset */
.showcase__arrow--prev {
  left: calc(50% - 230px - 60px);
}

.showcase__arrow--next {
  right: calc(50% - 230px - 60px);
}

/* Footer Bottom Info - Hidden */
.showcase__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  z-index: 40;
}

@media (min-width: 768px) {
  .showcase__footer {
    flex-direction: row;
    align-items: center;
  }
}

.showcase__info {
  max-width: 28rem;
  font-size: 0.85rem;
  color: var(--color-grey-light);
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.showcase__info.is-hidden {
  opacity: 0;
}

/* Hide old layers no longer used */
.showcase__text-layer,
.showcase__btn-layer {
  display: none;
}

/* ---------- Tablet: card 380px => half = 190px ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
  .showcase__arrow--prev {
    left: calc(50% - 190px - 56px);
  }
  .showcase__arrow--next {
    right: calc(50% - 190px - 56px);
  }
}
