/* ======================================
   GLOBAL RESET + VARIABLES
====================================== */
@import url("https://use.typekit.net/arh5xie.css");

/* Page with 360 viewer — override img contain behavior, use block fill */
.page-360 .header-secondary {
  display: block;
}

.page-360 .container_360 {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-360 .viewer-360 {
  position: relative;
  width: 100%;
  height: 100%;
}

.viewer-360 iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Tablet adjustments */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "futura-pt", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: url(body-background.webp) no-repeat center center;
  background-size: cover;
}

body {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.page-loaded {
  opacity: 1;
}

/* HIDE CLOUD PLANE SIDE MENU */
.tour-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tour-wrapper iframe {
  width: 100%;
  height: 100%;
}

.tour-wrapper iframe {
  width: calc(100% + 80px);
  margin-right: -80px;
}

/* ======================================
   HEADER + IMAGEN FULL-SCREEN
====================================== */
.header img {
  width: 100%;
  height: auto;
}

.super-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* ======================================
   MAIN NAVIGATION (BOTTOM FIXED)
====================================== */

.tv-navigation {
  position: relative;
  width: 100%;
  height: 100px;
  /*background: #ffffff; */
  color: #877141;
  display: flex;
  align-items: center;
  z-index: 10;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: space-between;
}

/* .tv-navigation::-webkit-scrollbar {
  display: none;
} */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  white-space: nowrap;
  width: 90%;
  /* Scroll the links independently so logo stays visible */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #877141;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  padding: 2px 10px;
}

.nav-links a:hover {
  color: #877141;
}

.nav-links .active {
  text-decoration-line: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.small-font {
  font-size: 1.1rem !important;
  line-height: 160% !important;
  font-weight: 300;
  text-align: left;
  text-transform: capitalize !important;
}

.sub-links-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.sub-links-sub {
  display: none;
  flex-direction: column;
  padding-left: 12px;
  margin-left: 2px;
  margin-top: 10px;
  gap: 0;
  align-items: center;
  /* border-left: 1px solid rgba(135, 113, 65, 0.35); */
}

.sub-links-sub.is-open {
  display: flex;
}

.sub-nav-dropdown-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #877141;
  font-family: inherit;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: capitalize;
}

.sub-nav-dropdown-btn:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.sub-nav-dropdown-btn .dropdown-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 1em;
  line-height: 1;
}

.sub-nav-dropdown-btn.is-open .dropdown-arrow {
  transform: rotate(90deg);
}

/* Logo — always same width as sidebar so it sits centered above it */
.icon-logo {
  flex-shrink: 0;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-logo img {
  height: auto !important;
  width: 100px !important;
}

/* ======================================
   NAV SCROLL HINT ARROWS
====================================== */

.nav-scroll-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #877141;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ======================================
   RESPONSIVE MAIN NAV
====================================== */

@media (max-width: 1200px) {
  .nav-links {
    gap: 2rem;
  }
  .nav-links a {
    font-size: 1rem;
  }

  .page-360 .viewer-360 {
    height: 85%;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 2rem;
    justify-content: flex-start; /* switch to scroll-friendly layout */
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .nav-links a {
    font-size: 1.15rem;
  }
}

@media (max-width: 850px) {
  .nav-links {
    gap: 1.5rem;
  }
  .nav-links a {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.95rem;
  }
  .icon-logo img,
  .icon-home img {
    height: 30px;
  }
}

/* ======================================
   SUB NAVIGATION (LEVEL 2 / LEVEL 3)
====================================== */
.main-navigation {
  position: static;
  width: 100%;
}

.container-navigation {
  position: relative;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 10%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 20; /* Always above main nav */
}

.tv-sub-navigation {
  min-height: 100%;
  color: #877141;
  display: flex;
  align-items: center;
  justify-content: center; /* center causes overflow to be unreachable */
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  white-space: normal;
  word-break: break-word;
}

.tv-sub-navigation::-webkit-scrollbar {
  display: none;
}

.tv-sub-navigation a.active-link {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
/* Pill style (level3) */
.tv-sub-navigation--level3 .sub-links a {
  padding: 6px 16px;
  color: #fff;
}

/* Links inside sub-nav */
.sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 0 1rem;
  white-space: nowrap;
}

.sub-links a {
  color: #877141;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 180%;
  font-weight: 300;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.sub-links a:hover {
  text-decoration: underline;
  transition: color 0.2s ease;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

p {
  text-align: center;
  width: 100%;
}

/* ======================================
   RESPONSIVE SUB NAV
====================================== */

@media (max-width: 1920px) {
  .sub-links a {
    font-size: 0.9rem;
  }

  .nav-links a {
    font-size: 1.25rem;
  }
}

@media (max-width: 1400px) {
  .nav-links {
    justify-content: flex-start; /* center overflows both sides and blocks left-scroll */
    gap: 3rem;
    padding-left: 8px;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .sub-links a {
    font-size: 1rem;
  }

  .icon-logo img {
    height: auto !important;
    width: 90px !important;
  }
}

@media (max-width: 1200px) {
  .tv-sub-navigation .sub-links {
    max-height: 50vh;
    overflow-y: auto;
  }
}

@media (max-width: 1024px) {
  .sub-links {
    gap: 1.5rem;
  }
  .sub-links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 850px) {
  .sub-links {
    gap: 1.25rem;
  }
  .sub-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .sub-links {
    gap: 1rem;
  }
  .sub-links a {
    font-size: 0.85rem;
  }
}

/* ======================================
   SPECIAL CASE: TOP OR BOTTOM SUBNAV
   (Level 3 selector)
====================================== */

.sub-nav-top .tv-sub-navigation {
  bottom: var(--nav-h);
  height: var(--subnav-top-h);
  z-index: 30;
}
.subnav-back img {
  width: 56px;
  height: 56px;
}

/* ======================================
   PREVENT HORIZONTAL SCROLL ON NAV
====================================== */

.tv-navigation,
.tv-navigation ul {
  overflow-x: auto;
  scrollbar-width: none;
}

.tv-navigation::-webkit-scrollbar,
.tv-navigation ul::-webkit-scrollbar {
  display: none;
}

/* ======================================
   IMAGE FULL SCREEN
====================================== */

/* Image area: below main nav (100px), and to the left of side nav when present */
.full {
  position: fixed;
  top: 100px;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
}

@media (min-width: 1367px) {
  .full {
    bottom: 30px;
  }
}

/* Pages with side nav: leave room on the right */
body.has-side-nav .full {
  right: 250px;
}

.header-secondary {
  position: absolute;
  inset: 0;
}

.header-secondary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}


/* ======================================
   NAV OVERLAYS
====================================== */

/* Main nav — fixed, always visible, transparent */
.full-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

/* Side nav — fixed panel on the RIGHT, always visible, starts below main nav, transparent */
.container-navigation {
  position: fixed !important;
  right: 0;
  left: auto;
  top: 100px;
  bottom: 0;
  height: auto !important;
  width: 250px !important;
  z-index: 2000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.container-navigation::-webkit-scrollbar {
  display: none;
}

/* ======================================
   RESPONSIVE SIDEBAR + IMAGE AREA
====================================== */

/* Tablet landscape (iPad Air / Pro / mini all covered up to 1366px) */
@media (max-width: 1366px) {
  .container-navigation {
    width: 130px !important;
  }

  body.has-side-nav .full {
    right: 130px;
  }

  /* Logo matches sidebar width so it stays visually centered above it */
  .icon-logo {
    width: 130px;
  }

  .tv-sub-navigation {
    padding: 16px 8px;
  }

  .sub-links a {
    font-size: 1rem;
  }

  .small-font {
    font-size: 0.85rem !important;
  }
}

/* ======================================
   VIEWS SUB-LEVELS (O1 / O2 / O3 …)
   Hidden by default via CSS.
   JS in setActiveLink.js shows the matching
   group dynamically — no CSS changes needed
   when adding new O-groups in the future.
====================================== */
[class*="-levels"] {
  display: none;
}

/* ======================================
   DISCLAIMER FLOATING BUTTON
====================================== */

#disclaimer-btn {
  position: fixed;
  right: 25px;
  bottom: 50px;
  z-index: 9000;
  font-family: "futura-pt", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #877141;
  padding: 8px 16px;
  border-radius: 4px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration-line: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

#disclaimer-btn:hover {
  background: rgba(135, 113, 65, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  color: #5a4e2d;
}

@media (max-width: 1400px) {
  #disclaimer-btn {
    font-size: 1rem;
    padding: 6px 10px;
    right: 15px;
    bottom: 30px;
  }
} 

/* ======================================
   PAGE LOADER OVERLAY
====================================== */

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #f8f4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

#page-loader.loader-hide {
  opacity: 0;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Logo: fades in and lifts up gently */
.loader-logo {
  width: 88px;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: loader-logo-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes loader-logo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Line: expands from center outward */
.loader-line-wrap {
  width: 88px;
  height: 1px;
  position: relative;
  overflow: hidden;
}

.loader-line {
  position: absolute;
  inset: 0;
  background: #877141;
  transform: scaleX(0);
  transform-origin: center;
  animation: loader-line-in 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.65s forwards;
}

@keyframes loader-line-in {
  to {
    transform: scaleX(1);
  }
}
