html:has(body.page-tour-open),
body.page-tour-open {
  height: 100%;
  overflow: hidden;
}

.page-tour-open .header .section-bg {
  opacity: 1;
}

body.page-tour-open .vip-popup,
body.page-tour-open .vip-popup-trigger,
body.page-tour-open .aiosp-wrap,
body.page-tour-open .aiosp-bg,
body.page-tour-open .lead-dossier,
body.page-tour-open .global-git,
body.page-tour-open footer,
body.page-tour-open .footer,
body.page-tour-open .site-footer {
  display: none !important;
}

body.page-tour-open #main-wrapper,
body.page-tour-open #content,
body.page-tour-open main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tour-stage {
  --site-header: 70px;
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - var(--site-header, 70px)) !important;
  margin: var(--site-header, 70px) 0 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--color-brand-dark);
}

.tour-stage__frame,
.tour-stage--clip .tour-stage__frame,
.tour-stage iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  transform: none !important;
}

.tour-stage h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tour-nav {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(340px, 100%);
  height: 100%;
  max-height: none;
  border-radius: 0 !important;
  overflow: hidden;
  background: rgba(var(--color-brand-dark-rgb), 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition: width 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.tour-nav__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tour-nav__icon {
  display: inline-flex;
  width: 1.6em;
  color: var(--color-brand-gold-light);
  font-weight: 600;
}

.tour-nav__icon::before {
  content: "<<";
}

.tour-nav__kicker {
  margin: 0;
  padding: 0 16px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-nav__list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow: auto;
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 168, 128, 0.7) transparent;
}

.tour-nav__list::-webkit-scrollbar {
  width: 6px;
}

.tour-nav__list::-webkit-scrollbar-track {
  background: transparent;
}

.tour-nav__list::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.55);
  border-radius: 0;
}

.tour-nav__list button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 16px 11px 14px;
  border: 0;
  border-radius: 0 !important;
  border-left: 2px solid transparent;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tour-nav__list button:hover {
  background: transparent;
  color: #c5a880;
}

.tour-nav__list button.is-active {
  background: transparent;
  color: #fff;
  border-left: 2px solid #c5a880;
}

.tour-nav.is-collapsed {
  width: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.tour-nav.is-collapsed .tour-nav__panel,
.tour-nav.is-collapsed .tour-nav__native-mask,
.tour-nav.is-collapsed .tour-nav__kicker,
.tour-nav.is-collapsed .tour-nav__list {
  display: none;
}

.tour-nav.is-collapsed .tour-nav__toggle {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(10, 44, 44, 0.9);
  color: #d4af37;
  pointer-events: auto;
  transform: translateY(-50%);
}

.tour-nav.is-collapsed .tour-nav__icon {
  width: auto;
  color: #d4af37;
  font-weight: 500;
}

.tour-nav.is-collapsed .tour-nav__icon::before {
  content: "››";
  color: #d4af37;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.tour-nav.is-collapsed .tour-nav__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1024px) {
  .tour-nav:not(.is-open) {
    width: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .tour-nav:not(.is-open) .tour-nav__panel,
  .tour-nav:not(.is-open) .tour-nav__native-mask,
  .tour-nav:not(.is-open) .tour-nav__kicker,
  .tour-nav:not(.is-open) .tour-nav__list {
    display: none;
  }

  .tour-nav:not(.is-open) .tour-nav__toggle {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 3;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(10, 44, 44, 0.9);
    color: #d4af37;
    pointer-events: auto;
    transform: translateY(-50%);
  }

  .tour-nav:not(.is-open) .tour-nav__icon {
    width: auto;
    color: #d4af37;
    font-weight: 500;
  }

  .tour-nav:not(.is-open) .tour-nav__icon::before {
    content: "››";
    color: #d4af37;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.08em;
  }

  .tour-nav:not(.is-open) .tour-nav__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* Vinhomes Grand Park — overlay native 3DVista chrome; never crop the panorama. */
.tour-stage--grand-park {
  --gp-nav: 248px;
  --gp-rail: 68px;
}

.tour-stage--grand-park .tour-stage__frame {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  transform: none !important;
  margin: 0 !important;
  left: auto !important;
  transition: margin-left 0.28s ease, width 0.28s ease;
}

.tour-stage--grand-park.is-player-shifted .tour-stage__frame {
  width: calc(100% + var(--gp-nav)) !important;
  max-width: none !important;
  margin-left: calc(var(--gp-nav) * -1) !important;
}

.tour-stage--grand-park .tour-nav {
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 120;
  width: var(--gp-nav);
  height: 100%;
  overflow: visible;
  background: rgba(8, 51, 53, 0.82);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tour-stage--grand-park .tour-nav__native-mask {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: var(--gp-nav);
  background: rgba(8, 51, 53, 0.88);
  pointer-events: auto;
  cursor: pointer;
}

.tour-stage--grand-park .tour-nav__toggle {
  position: relative;
  z-index: 2;
  gap: 8px;
  padding: 10px 12px 8px;
  color: #c5a880;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.tour-stage--grand-park .tour-nav__icon {
  width: auto;
  color: #c5a880;
  font-weight: 300;
}

.tour-stage--grand-park .tour-nav__icon::before {
  content: "‹";
  font-size: 16px;
  line-height: 1;
}

.tour-stage--grand-park .tour-nav__kicker {
  padding: 0 12px 8px;
  color: #c5a880;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.tour-stage--grand-park .tour-nav__panel {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-stage--grand-park .tour-nav__list {
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.tour-stage--grand-park .tour-nav__list button {
  padding: 7px 12px 7px 12px;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Be Vietnam Pro", "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
}

.tour-stage--grand-park .tour-nav__list button:hover {
  color: #fff;
}

.tour-stage--grand-park .tour-nav__list button.is-active {
  border-left-color: #c5a880;
  background: transparent;
  color: #fff;
  font-weight: 400;
}

.tour-stage--grand-park .tour-nav.is-collapsed {
  width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tour-stage--grand-park .tour-nav.is-collapsed .tour-nav__native-mask {
  display: none;
}

.tour-stage--grand-park .tour-nav.is-collapsed .tour-nav__toggle {
  position: absolute;
  top: 50%;
  left: 0;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  background: rgba(10, 44, 44, 0.9);
  color: #d4af37;
  transform: translateY(-50%);
}

.tour-stage--grand-park .tour-nav.is-collapsed .tour-nav__icon::before {
  content: "››";
  color: #d4af37;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .tour-stage--grand-park .tour-nav:not(.is-open) {
    width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tour-stage--grand-park .tour-nav:not(.is-open) .tour-nav__native-mask {
    display: none;
  }

  .tour-stage--grand-park .tour-nav:not(.is-open) .tour-nav__toggle {
    position: absolute;
    top: 50%;
    left: 0;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    background: rgba(10, 44, 44, 0.9);
    color: #d4af37;
    transform: translateY(-50%);
  }

  .tour-stage--grand-park .tour-nav:not(.is-open) .tour-nav__icon::before {
    content: "››";
    color: #d4af37;
    font-size: 18px;
  }
}

.tour-project-badge {
  display: none !important;
}

@media (min-width: 1025px) {
  .tour-stage--grand-park .tour-nav:not(.is-collapsed) {
    width: var(--gp-nav);
    background: rgba(8, 51, 53, 0.82);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
  }

  .tour-stage--grand-park .tour-nav:not(.is-collapsed) .tour-nav__toggle {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 10px 12px 8px;
    background: transparent;
    color: #c5a880;
    transform: none;
  }

  .tour-stage--grand-park .tour-nav:not(.is-collapsed) .tour-nav__icon::before {
    content: "‹";
    color: #c5a880;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-nav,
  .tour-nav__list button,
  .tour-stage--grand-park .tour-stage__frame {
    transition: none;
  }
}

.tour-soon {
  --site-header: 118px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - var(--site-header));
  margin-top: var(--site-header);
  overflow: hidden;
  background: var(--color-brand-primary);
  color: #fff;
  text-align: center;
}

.tour-soon__media {
  position: absolute;
  inset: 0;
  background: url("/images/360/the-rivus.jpg") center / cover no-repeat fixed;
  opacity: 0.45;
}

.tour-soon__veil {
  position: absolute;
  inset: 0;
  background: rgba(var(--color-brand-primary-rgb), 0.62);
}

.tour-soon__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  padding: 24px 0;
}

.tour-soon h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.tour-soon__lead {
  margin: 0 0 14px;
  color: #bde3de;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.65;
  text-transform: uppercase;
}

.tour-soon__copy {
  margin: 0 auto 28px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.tour-soon .section-btn {
  border-color: #fff;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.tour-soon .section-btn:hover,
.tour-soon .section-btn:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--color-brand-primary);
}

@media (max-width: 767px) {
  .tour-soon__media {
    background-attachment: scroll;
  }
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.quote-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--color-brand-dark-rgb), 0.55);
}

.quote-modal__card {
  position: relative;
  width: min(480px, 100%);
  padding: 36px 32px 28px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(12px);
  transition: transform 0.35s ease;
}

.quote-modal.is-open .quote-modal__card {
  transform: translateY(0);
}

.quote-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-brand-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.quote-modal__close:hover,
.quote-modal__close:focus-visible {
  background: rgba(var(--color-brand-primary-rgb), 0.08);
}

.quote-modal h2 {
  margin: 0 36px 10px 0;
  color: var(--color-brand-primary);
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.quote-modal__note {
  margin: 0 0 22px;
  color: #3d4a49;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.quote-modal label {
  display: block;
  margin: 0 0 14px;
  color: var(--color-brand-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-modal input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--color-brand-primary-rgb), 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--color-brand-dark);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.quote-modal input[readonly] {
  background: #f4f7f6;
}

.quote-modal__submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--color-brand-primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.quote-modal__submit:hover,
.quote-modal__submit:focus-visible {
  background: var(--color-brand-gold-light);
  color: var(--color-brand-dark);
}

.quote-modal__error,
.quote-modal__success {
  margin: 12px 0 0;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.quote-modal__error {
  color: #8a2b2b;
}

.quote-modal__success {
  color: var(--color-brand-primary);
}

/* Project panoramas — same full-viewport stage as Vinhomes Grand Park. */
.tour-stage--pano > .tour-stage__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
  background: #083335;
}

.tour-stage--pano .tour-pano {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #083335;
}

.tour-stage--pano .tour-pano .pnlm-container {
  width: 100%;
  height: 100%;
  background: #083335;
}

.tour-stage--pano .tour-pano__still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
}

.tour-stage--pano .tour-pano.is-dragging .tour-pano__still {
  cursor: grabbing;
}

.tour-stage--pano .tour-pano__note {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  padding: 8px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 51, 53, 0.78);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.tour-stage--pano .tour-bar,
.tour-stage--pano .tour-tags,
.tour-stage--pano .tour-zoom {
  display: none !important;
}

@media (max-width: 640px) {

  .tour-stage--pano .tour-pano__note {
    left: 12px;
    right: 12px;
    bottom: 68px;
    transform: none;
    white-space: normal;
  }
}

.quote-modal.is-success .quote-modal__fields,
.quote-modal.is-success .quote-modal__submit,
.quote-modal.is-success .quote-modal__note {
  display: none;
}
