/* Auaha common style -- shared across all Auaha tours. Brand-agnostic layout + UI. */

body,
html,
iframe {
    width: 100%;
    height: 100%;
}

body,
html,
ul#menu {
    padding: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    -webkit-overflow-scrolling: touch;
}

iframe {
    background-color: #000;
}

a,
a:active,
a:focus,
a:hover {
    text-decoration: none;
    color: inherit;
}

#menuToggle a:hover,
a.menu-link,
.lastTE,
li.cont a {
    letter-spacing: 0;
    text-transform: capitalize;
}

#menu,
#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menu,
#menuToggle,
iframe {
    right: 0;
    position: absolute;
}

#menu,
#menuToggle,
#menuToggle input,
iframe {
    position: absolute;
}

#menu,
.scroll_menu_items {
    overflow-y: scroll;
}

.BtomClick a,
.sublinks li a,
a {
    text-decoration: none;
}

#menu,
.splash-content {
    font-family: "Suisse Intl", aktiv-grotesk, Arial, sans-serif;
}

.topLogo {
    text-align: center;
    margin: 0 auto;
}

.topLogo img {
    width: 200px;
    padding-top: 10px;
}

.BtomClick a {
    display: block;
    text-align: center;
    padding: 8px 20px;
    border-radius: 4px;
    transition: color .15s, background-color .15s;
}

.BtomClick {
    margin: 0 auto;
    padding-top: 15px;
    padding-bottom: 25px;
}

.BtomClick a:hover {
    box-shadow: 0 0 0 1px #638f38 inset;
}

#burger-button-text {
    text-align: center;
    padding-bottom: 3px;
    font-size: 10px;
}

#menuToggle {
    display: block;
    top: 10px;
    right: 0;
    z-index: 2;
    -webkit-user-select: none;
    user-select: none;
    padding: 10px 8px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-right: 0;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

/* When the Matterport right-side tag dock opens, fade out and shift the
   hamburger button and fullscreen button off the viewport so the dock
   has the screen to itself --- mirrors Matterport's own UI behaviour.
   The nav menu is also auto-closed from JS (Tag.openTags subscriber),
   so #menu doesn't need its own rule here.
   opacity is !important because JS sets style.opacity = "1" inline as
   part of the post-SDK reveal, which would otherwise win the cascade. */
body.mp-tag-dock-open #menuToggle,
body.mp-tag-dock-open #fullscreenButton,
body.mp-tag-dock-open .nav-buttons {
    opacity: 0 !important;
    transform: translateX(60px);
    pointer-events: none;
}

#menuToggle input {
    display: block;
    width: 56px;
    height: 60px;
    top: -3px;
    left: -2px;
    cursor: pointer;
    opacity: 0;
    z-index: 101;
    -webkit-touch-callout: none;
}

#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    border-radius: 3px;
    z-index: 100;
    transform-origin: 4px 0px;
    transition: transform .5s cubic-bezier(.77, .2, .05, 1),
        background .5s cubic-bezier(.77, .2, .05, 1),
        opacity .55s;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    margin-top: 5px;
    margin-left: 3px;
}

#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0) scale(.2, .2);
}

#menuToggle input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

#menu {
    font-weight: 500;
    font-style: normal;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform: translate(200%, 0);
    transition: transform .5s cubic-bezier(.77, .2, .05, 1);
    padding-left: 10px !important;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    top: 2.3rem;
    display: flex;
    flex-wrap: nowrap;
    flex-flow: wrap;
    width: 250px;
    height: auto;
}

#menu a:hover:not(.sub_men_content_itm.active):not(.BtomClick a) {
    color: green;
}

li.cont {
    width: 100%;
}

.accordion-toggle a:after,
.accordion-toggle a:before {
    content: '';
    right: 18px !important;
    display: block;
    position: absolute;
    top: 50%;
    width: 15px;
    height: 2px;
    margin-top: -1px;
    transform-origin: 50% 50%;
    transition: .3s ease-out;
}

#menu li {
    padding: 10px;
}

#menuToggle input:checked~ul {
    transform: none;
}

.hr_remov {
    border-bottom: 0 !important;
}

.map button {
    display: flex;
    width: 100%;
    transition: color .3s;
    line-height: 1.4;
    cursor: pointer;
    background: 0 0;
    border: none;
}

ul {
    list-style: none;
}

#menu-wrapper {
    max-width: 100%;
    cursor: pointer;
}

#menu-wrapper #hamburger-menu {
    position: relative;
    width: 25px;
    height: 20px;
}

.menu-list .menu-submenu {
    padding-top: 0;
    padding-bottom: 20px;
    padding-left: 15px;
}

.menu-list {
    padding-left: 0;
    display: block;
    width: 100%;
}

.menu-list li:first-of-type {
    border-top: 0;
}

.accordion-content,
.accordion-toggle {
    cursor: pointer;
    position: relative;
    letter-spacing: 1px;
}

.accordion-content {
    display: none;
}

.accordion-toggle a:before {
    transform: rotate(-90deg);
    opacity: 1;
    z-index: 2;
}

.menu-submenu li {
    padding: 3px !important;
}

.accordion-toggle.active-tab {
    transition: .3s;
    color: #fff;
}

.accordion-toggle a.active:before {
    transform: rotate(0);
}

.accordion-toggle a.active:after {
    transform: rotate(180deg);
    opacity: 0;
}

.lastTE {
    padding-left: 0;
    letter-spacing: 0;
}

#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15%;
    z-index: 1000;
}

.splash-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.splash-content h1 {
    font-size: 2em;
}

.splash-content p {
    font-size: 1em;
}

.fade-out {
    opacity: 0;
    transition: opacity 2s ease-out;
}

@media (max-width:599px) {

    body,
    html {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    #menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: rgba(255, 255, 255, 0);
        transition: background-color .5s, transform .5s;
        transform: translateY(-200%);
        z-index: 99;
        display: flex;
        align-items: center;
        text-align: center;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .topLogo img {
        padding: 0;
    }

    .accordion-toggle a:after,
    .accordion-toggle a:before {
        display: none;
    }

    #menuToggle input:checked~#menu {
        transform: translateY(0);
        background: #fff;
    }

    .nav-buttons {
        position: absolute;
        top: 70px;
        right: -4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        z-index: 1;
        transition: opacity 0.3s ease, transform 0.35s ease;
    }

    .nav-buttons button {
        background-color: white;
        color: #000000;
        border: none;
        border-radius: 4px;
        padding: 7px 13px;
        margin-bottom: 10px;
        cursor: pointer;
        font-size: 10px;
        opacity: 0;
    }

    .nav-buttons button:active {
        background-color: #4B4B4B;
        color: white;
    }

    .splash-content {
        max-width: 90%;
        word-wrap: break-word;
        padding: 10px;
    }

    .splash-content h1 {
        font-size: 1.5em;
    }

    .splash-content p {
        font-size: .9em;
    }

    iframe {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

@media (min-width:600px) {
    .nav-buttons {
        display: none;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {

    body,
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    #menuToggle {
        transform: scale(1.2);
        transform-origin: top right;
    }
}

/* ============================================================
   Auaha overlays over the Matterport UI
   ------------------------------------------------------------
   Two independent, optional overlays (toggled in the PHP):
     • #mpLogoLink — a transparent 174×43 click-through sitting over
       Matterport's logo (bottom-RIGHT), replacing the logo's default
       matterport.com link with a link to topVIEW.
     • #auahaCredit — a "| Auaha by topVIEW" link sitting after
       Matterport's "Help | Terms" (bottom-LEFT), styled to match it.
   Both use z-index:1 and are placed BEFORE #fullscreenButton in the
   DOM, so the fullscreen button (same z-index, later in the DOM)
   paints on top and stays clickable where #mpLogoLink overlaps it.
   Tweak the numbers below to fine-tune alignment to the MP chrome.
   ============================================================ */
#mpLogoLink {
    position: fixed;
    right: 24px;
    bottom: 14px;
    width: 174px;
    height: 43px;
    z-index: 1;
    display: block;
    cursor: pointer;
}

#auahaCredit {
    position: fixed;
    left: 97.8px;  /* from the viewport's left edge — sits just past "Terms" */
    bottom: 22px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    pointer-events: none; /* the separator is inert; the link re-enables itself */
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, .75);
    /* SHOW / reappear transition (used when a hide class is removed):
         - reel reappear: only opacity changes → a quick 0.2s fade-in;
         - dock reappear: opacity fades while the transform rises back after a
           0.25s delay, so the credit slides up into view (matching Matterport's
           slower reverse). The hide direction's timing is set on each state
           rule below. */
    transition: opacity 0.2s ease, transform 0.35s ease 0.25s;
}

#auahaCredit .ac-sep {
    margin-right: 6.5px; /* gap before "Auaha by topVIEW" */
    color: #ffffff;      /* separator stays white — no hover colour change */
    pointer-events: none;
}

#auahaCredit .ac-link {
    color: inherit; /* white */
    text-decoration: none;
    pointer-events: auto; /* clickable */
    transition: color .2s ease;
}

#auahaCredit .ac-link:hover,
#auahaCredit .ac-link:focus-visible {
    color: #ff3158;
    text-shadow: none; /* drop the shadow on hover, matching Matterport's links */
}

/* The logo (bottom-right) is covered by Matterport's right-side tag dock when
   it opens, so hide the click-through with the other right-side controls. */
body.mp-tag-dock-open #mpLogoLink {
    opacity: 0;
    pointer-events: none;
}

/* Hide the bottom-left credit when Matterport hides its own bottom chrome.
   The two triggers behave differently, matching Matterport:

   (b) Highlights reel playing → body.mp-tour-playing
       Disappears almost instantly (opacity only, NO drop); reappears with the
       base 0.2s fade-in. */
body.mp-tour-playing #auahaCredit {
    opacity: 0;
    transition: opacity 0.06s ease;
}

/* (a) Tag docked → body.mp-tag-dock-open
       Fades AND drops down together, but only after a 0.25s delay so it tracks
       Matterport's slower hide. (The JS only ADDS this class once the camera has
       finished moving to the tag, so a far-tag fly no longer hides it early.)
       Reappear uses the base transition. */
body.mp-tag-dock-open #auahaCredit {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.35s ease 0.25s, transform 0.35s ease 0.25s;
}

/* Disable the credit link while hidden in either state. */
body.mp-tag-dock-open #auahaCredit .ac-link,
body.mp-tour-playing #auahaCredit .ac-link {
    pointer-events: none;
}
