/* =========================
   Common
========================= */

:root {
  --ge-scroll-offset: 50px;
}

#main .page-wrapper {
  padding-top: 0;
}
.ge-project > section {
  margin-bottom: 70px;
}

.ge-project section[id] {
  scroll-margin-top: var(--ge-scroll-offset);
}

.container {
  max-width: 1180px;
}

.title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary-color);
}

.description {
  max-width: 980px;
  margin: 0 auto 22px;
  text-align: center;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.65;
}

.btn_block {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.button_cta-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 34px rgba(11, 77, 184, 0.16);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease;
}
.button_cta-form:hover {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(11, 77, 184, 0.22);
}

.ge-zoomHint {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  z-index: 2;
}
.ge-zoomHint--sm {
  width: 38px;
  height: 38px;
  right: 10px;
  top: 10px;
}

/* =========================
   Scroll animation base
   (Works with your app.js observer)
========================= */

[data-animate],
.ux-animate {
  will-change: transform, opacity, filter;
}
[data-animate]:not([data-animated="true"]),
.ux-animate:not([data-animated="true"]) {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
}
[data-animated="true"] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    transform 700ms ease,
    opacity 700ms ease,
    filter 700ms ease;
}
.ge-out {
  opacity: 0 !important;
  transform: translateY(14px) !important;
  filter: blur(2px) !important;
}

/* =========================
   Sub header nav (under main header)
========================= */
.ge-subnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 1);
}

.ge-subnav .container {
  position: relative;
}

.ge-subnav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
/* Rail centered, scrollable */
.ge-subnav__rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  /* max-width: min(860px, calc(100vw - 32px)); */
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Link pill */
.ge-subnav__link {
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: white;
  background: rgba(0, 51, 160, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.ge-subnav__link:hover {
  transform: translateY(-1px);
  background: rgba(11, 77, 184, 0.1);
  border-color: rgba(11, 77, 184, 0.18);
  color: rgba(11, 77, 184, 0.92);
  box-shadow: 0 10px 22px rgba(11, 77, 184, 0.12);
}

/* active (class) – nếu bạn muốn add class sau này */
.ge-subnav__link.is-active {
  background: rgba(11, 77, 184, 0.14);
  border-color: rgba(11, 77, 184, 0.22);
  color: rgba(11, 77, 184, 0.96);
  box-shadow: 0 14px 30px rgba(11, 77, 184, 0.16);
}

/* Shine nhẹ trên pill active */
.ge-subnav__link.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.55;
}

.ge-subnav__hint {
  display: none;
}

.ge-subnav__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 77, 184, 0.35);
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  max-height: 650px;
}
.hero::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1000px 560px at 50% 60%,
    rgba(11, 77, 184, 0.1),
    rgba(0, 0, 0, 0.35)
  );
  z-index: 1;
}

.hero__content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 44px;
  text-align: center;
  flex-direction: column;
  gap: 14px;
}
.hero__title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1.05;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* =========================
   Overview
========================= */
.overview__wrap {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.overview__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}
.overview__media a {
  position: relative;
  display: block;
  height: 100%;
}
.overview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overview__panel {
  background: #fff;
  padding: 18px 18px 16px;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.overview__table {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.overview__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.overview__label {
  color: rgba(0, 0, 0, 0.62);
  font-weight: 800;
}
.overview__value {
  color: rgba(0, 0, 0, 0.86);
  font-weight: 600;
}

/* =========================
   Location
========================= */
.location__head {
  padding: 10px 0 14px;
}

.location__wrap {
  display: grid;
  grid-template-columns: 1.6fr 56px 1fr;
  gap: 20px;
  align-items: stretch;
}
.location__wrap > * {
  min-width: 0;
}

/* Stage */
.location__stage {
  position: relative;
  height: 600px;
}
.location__stage-link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}
.location__stageImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.location__stage .btn_block {
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 3;
}
.location__zoomHint {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  z-index: 2;
}

/* Nav */
.location__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.location .location__navBtn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.location .location__navBtn i {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.location .location__navBtn:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.05);
}

/* Rail */
.location__rail {
  height: 600px;
  min-width: 0;
  overflow: hidden;
}
.locationSwiper {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.locationSwiper .swiper-slide {
  height: auto !important;
}

.location__album {
  width: 100%;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.location__albumGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop = 3 */
  gap: 10px;
  padding: 12px;
}
.location__albumItem {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #e9eef7;
}
.location__albumItem img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.location__zoomHintSm {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  z-index: 2;
}
.location__albumTitle {
  padding: 12px 14px 14px;
  font-weight: 900;
  text-align: center;
  color: rgba(0, 0, 0, 0.74);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.location__hiddenFbx {
  display: none;
}

/* Grid columns "if": 1 item => 1 col, 2 items => 2 col */
.location__albumGrid:has(.location__albumItem:nth-child(1)):not(
    :has(.location__albumItem:nth-child(2))
  ) {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.location__albumGrid:has(.location__albumItem:nth-child(2)):not(
    :has(.location__albumItem:nth-child(3))
  ) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ===== Amenities (centerMode) ===== */
.amenities__head {
  padding: 10px 0 14px;
}

.amenitiesSwiper {
  width: 100%;
  overflow: hidden;
}

/* Quan trọng: khi slidesPerView:auto, slide phải có width */
.amenitiesSwiper .swiper-slide {
  width: min(860px, calc(100vw - 40px));
  height: auto;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
  opacity: 0.28;
  transform: scale(0.88);
}

/* slide giữa */
.amenitiesSwiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* 2 slide sát bên */
.amenitiesSwiper .swiper-slide-prev,
.amenitiesSwiper .swiper-slide-next {
  opacity: 0.35;
  transform: scale(0.92);
}

/* item */
.amenities__item {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

/* ảnh */
.amenities__item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

/* Footer */
.amenities__footer {
  margin-top: 14px;
  display: flex;
  grid-template-columns: 56px 1fr 56px;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.amenities__label {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  width: 200px;
  color: rgba(0, 0, 0, 0.65);
}
.amenities__nav {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;

  width: 56px;
  height: 44px;
  border-radius: 6px;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.amenities__nav:hover {
  color: rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1023px) {
  .amenities__item img {
    height: 320px;
  }
  .amenities__label {
    font-size: 22px;
  }
  .amenities__footer {
    grid-template-columns: 44px 1fr 44px;
  }
  .amenities__nav {
    width: 44px;
    height: 40px;
  }
}

/* =========================
   Plan
========================= */
.plan__list {
  display: grid;
  gap: 22px;
}
.plan__item {
  margin: 0;
}
.plan__link {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}
.plan__link img {
  width: 100%;
  height: auto;
  display: block;
}
.plan__zoomHint {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0.96;
}

.plan__link:hover .plan__zoomHint {
  background: rgba(0, 0, 0, 0.65);
}

/* =========================
   Sample
========================= */
.sample__grid {
  display: grid;
  gap: 22px;
}
.sample--cols-2 .sample__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sample--cols-3 .sample__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sample__item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #e0e0e0;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}
.sample__item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.sample__item.is-hidden {
  display: none;
}

/* =========================
   Payment
========================= */
.payment__list {
  display: grid;
  gap: 22px;
}
.payment__item {
  margin: 0;
}
.payment__link {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}
.payment__link img {
  width: 100%;
  height: auto;
  display: block;
}
.payment__zoomHint {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0.96;
}

.payment__link:hover .payment__zoomHint {
  background: rgba(0, 0, 0, 0.65);
}

/* ===== Progress ===== */
.progress {
  padding: 56px 0;
}
.progress__head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 22px;
}
.progress__tabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px auto 22px;
}
.progress__tab {
  appearance: none;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: white;
  color: black;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
  opacity: 0.92;
  margin: 0;
}

.progress__tab:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.progress__tab.is-active {
  opacity: 1;
  background: #0b56c5;
  color: #fff;
}

.progress__panel {
  display: none;
}
.progress__panel.is-active {
  display: block;
}

.progressSwiper {
  padding: 14px 0px 28px;
}
.progress__card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(2, 6, 23, 0.16);
  border: 1px solid rgba(2, 6, 23, 0.08);
}
.progress__media {
  display: block;
  position: relative;
}
.progress__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.progress__meta {
  padding: 14px 16px;
  background: #fff;
  border-top: 4px solid #0b56c5;
}
.progress__metaRow {
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.4;
}
.progress__metaLabel {
  color: rgba(2, 6, 23, 0.7);
  font-weight: 600;
}
.progress__metaValue {
  color: rgba(2, 6, 23, 0.92);
  font-weight: 700;
}

.progress__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.progress__navBtn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.progress__navBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.16);
}
.progress .swiper-slide {
  width: 550px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 64em) {
  #amenities {
    padding: 0 15px;
  }
  .description {
    text-align: justify;
  }
  .ge-subnav {
    display: none;
  }
  .overview__wrap {
    grid-template-columns: 1fr;
  }
  .overview__row {
    grid-template-columns: 130px 1fr;
  }

  .location__wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .location__stage {
    height: 420px;
  }
  .location__rail {
    height: auto;
  }

  /* stage -> nav -> rail */
  .location__stage {
    order: 1;
  }
  .location__nav {
    order: 2;
    flex-direction: row;
  }
  .location__rail {
    order: 3;
  }

  .location .location__navBtn i {
    transform: rotate(-90deg);
  }

  .location__albumItem img {
    height: 180px;
  }

  .sample__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .sample__item img {
    height: 300px;
  }

  .ge-subnav__hint {
    display: none;
  }

  #progress {
    padding: 0 15px;
  }

  .progress__media img {
    height: 320px;
  }
  .progress .swiper-slide {
    width: 450px;
  }
}

@media (max-width: 36em) {
  #main > section {
    margin-bottom: 56px;
  }
  .location__albumGrid {
    padding: 10px;
    gap: 8px;
  }
  .location__albumItem img {
    height: 160px;
  }

  .progress {
    padding: 44px 0;
  }
  .progress__tabs {
    justify-content: center;
    overflow: auto;
    padding-bottom: 6px;
  }

  .progress__tab {
    white-space: nowrap;
    margin: 0;
    box-shadow: none !important;
  }
  .progress__media img {
    height: 260px;
  }
  .progress .swiper-slide {
    width: 80vw;
  }

  .progressSwiper {
    padding: 14px 15px 28px;
  }
}
