/* =============================================
   HAUS EDELWEISS — Suites & Apartments Page
   Pixel-perfect from Figma node 1572:18935
   ============================================= */


/* ===== PAGE OVERRIDE ===== */
.page-suites {
  background-color: var(--color-cream);
}


/* ===== HERO / TITLE SECTION ===== */
.suites-hero {
  /* 130px for fixed header + 48px Figma padding */
  padding: 178px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-cream);
}

.suites-hero__content {
  text-align: center;
  max-width: 1212px;
  width: 100%;
  padding: 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Hide entrance elements before GSAP runs to prevent FOUC */
.suites-hero__label,
.suites-hero__title,
.suites-hero__desc,
.suites-nav,
.suites-list > .star-border,
.suites-item__image,
.suites-item__content {
  opacity: 0;
}

.suites-hero__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-regular);
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--color-rust);
  line-height: 1.41;
}

.suites-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-medium);
  line-height: 1.24;
  letter-spacing: -1.56px;
  color: var(--color-rust);
}

.suites-hero__desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.24px;
  color: var(--color-wine);
  max-width: 478px;
}


/* ===== CATEGORY TABS ===== */
.suites-nav {
  display: inline-flex;
  position: relative;
  background-color: var(--color-sand-dark);
  padding: 6px;
  margin-top: 64px;
}

.suites-nav__slider {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-rust);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 0;
}

.suites-nav__btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 167px;
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: var(--weight-medium);
  color: var(--color-wine);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-out),
              background-color 0.3s ease;
}

.suites-nav__btn.is-active {
  color: var(--color-sand-dark);
}

.suites-nav__btn:not(.is-active):hover {
  background-color: rgba(131, 39, 6, 0.06);
}


/* ===== ROOM LIST ===== */
.suites-list {
  background-color: var(--color-cream);
}


/* Star-border dividers reuse global .star-border from components.css */


/* ===== ROOM ITEM ===== */
.suites-item {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--container-px);
  background-color: var(--color-cream);
}

.suites-item__image {
  width: 55%;
  aspect-ratio: 792 / 389;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background-color: var(--color-sand-medium);
}

.suites-item__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.suites-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

/* Dual overlay on room images — exactly as in Figma */
.suites-item__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: background var(--duration-normal) var(--ease-out);
}

/* Shared hover: photo, name link, or CTA triggers all three */
.suites-item:has(.suites-item__image-link:hover, .suites-item__name a:hover, .suites-item__cta:hover) .suites-item__image img {
  transform: scale(1.04);
}

.suites-item:has(.suites-item__image-link:hover, .suites-item__name a:hover, .suites-item__cta:hover) .suites-item__image::after {
  background: rgba(0, 0, 0, 0.03);
}

.suites-item__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(131, 45, 6, 0.2);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

/* Right-side content */
.suites-item__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  width: 40%;
  flex-shrink: 0;
}

.suites-item__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 21px;
  width: 100%;
}

.suites-item__name {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: var(--weight-medium);
  line-height: 1.24;
  letter-spacing: -1.2px;
  color: var(--color-rust);
  text-align: right;
  width: 100%;
  transition: color var(--duration-fast) var(--ease-out);
}

.suites-item__name a {
  color: inherit;
  text-decoration: none;
}

.suites-item:has(.suites-item__image-link:hover, .suites-item__name a:hover, .suites-item__cta:hover) .suites-item__name {
  color: var(--color-wine-dark);
}

.suites-item__desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.24px;
  color: var(--color-wine);
  text-align: right;
  max-width: 100%;
}

/* CTA link */
.suites-item__cta.btn-secondary {
  position: static;
  justify-content: flex-end;
  font-size: 18px;
}

.suites-item:has(.suites-item__image-link:hover, .suites-item__name a:hover, .suites-item__cta:hover) .suites-item__cta .btn-secondary__text span {
  transform: translateY(calc(-100% - 15px));
}

.suites-item:has(.suites-item__image-link:hover, .suites-item__name a:hover, .suites-item__cta:hover) .suites-item__cta .btn-secondary__arrow {
  transform: translateX(4px);
}

/* Room specs (meta) */
.suites-item__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.suites-item__meta-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-regular);
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--color-rust);
  text-align: right;
  white-space: nowrap;
}

.suites-item__meta-dot {
  width: 3px;
  height: 3px;
  background-color: var(--color-rust);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1440px) {
  .suites-hero__content {
    padding: 0 80px;
  }

  .suites-item {
    padding: 48px var(--container-px);
  }
}

@media (max-width: 1024px) {
  .suites-hero__title {
    font-size: clamp(40px, 6vw, 78px);
  }

  .suites-item {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
  }

  .suites-item__image {
    width: 100%;
    height: 350px;
  }

  .suites-item__content {
    width: 100%;
    min-height: auto;
    align-items: flex-start;
    gap: 40px;
  }

  .suites-item__info {
    align-items: flex-start;
  }

  .suites-item__name,
  .suites-item__desc {
    text-align: left;
  }

  .suites-item__meta-text {
    text-align: left;
  }

  .suites-nav {
    flex-wrap: nowrap;
  }

  .suites-nav__btn {
    width: auto;
    padding: 12px 20px;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .suites-hero {
    padding: 120px 20px 48px;
  }

  .suites-hero__content {
    padding: 0;
  }

  .suites-hero__title {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .suites-hero__desc {
    font-size: 14px;
  }

  .suites-nav {
    margin-top: 32px;
  }

  .suites-nav__btn {
    font-size: 14px;
    height: 40px;
    padding: 8px 14px;
    width: auto;
  }

  .suites-item {
    padding: 24px 20px;
    gap: 20px;
  }

  .suites-item__image {
    height: 220px;
  }

  .suites-item__content {
    gap: 16px;
    justify-content: flex-start;
  }

  .suites-item__info {
    gap: 8px;
  }

  .suites-item__name {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .suites-item__desc {
    font-size: 14px;
    line-height: 1.5;
  }

  .suites-item__cta.btn-secondary {
    font-size: 16px;
    margin-top: 4px;
  }

  .suites-item__meta {
    gap: 12px;
    margin-top: 4px;
  }

  .suites-item__meta-text {
    font-size: 11px;
    letter-spacing: 1.2px;
  }
}
