﻿:root {
    --header-height: 70px;
}

/* These two media queries need to be commented out until group res actually supports tablet / mobile sizes properly */
/*@media only screen and (max-width: 1260px) {
    .desktop-only {
        display: none !important;
    }
}

@media only screen and (max-width: 849px) {
    .tablet-only {
        display: none !important;
    }

    .tablet-desktop-only {
        display: none !important;
    }
}*/

header {
    position: relative;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    letter-spacing: 1px;
    z-index: 301;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    transition: top .2s ease;
}

header > div:not(.menu-items) {
    z-index: 301;
    position: relative;
}

header > div.header-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
}

header.dark > div.header-background {
    background-color: #2d2d2d;
}

.rn-website-header {
    z-index: 101;
    position: relative;
}

.rn-website-header.move-to-front {
    z-index: 301;
}

.triple-menu {
    height: 20px;
    width: 27px;
    cursor: pointer;
    position: relative;
    user-select: none;
    z-index: 301;
}

.triple-menu div {
    width: 100%;
    height: 3px;
    background-color: #9e9ea7;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform .3s ease, opacity .3s ease;
}

header.dark .triple-menu div {
    background-color: white;
}

.triple-menu div:nth-child(1) {
    top: 0;
}

.triple-menu div:nth-child(2) {
    top: 0;
    bottom: 0;
}

.triple-menu div:nth-child(3) {
    bottom: 0;
}

.triple-menu.open div:nth-child(2) {
    opacity: 0;
}

.triple-menu.open div:nth-child(1) {
    transform-origin: center center;
    transform: translateY(8.5px) rotate(45deg);
}

.triple-menu.open div:nth-child(3) {
    transform-origin: center center;
    transform: translateY(-8.5px) rotate(-45deg);
}

div.divider {
    margin: 0 15px;
    width: 1px;
    height: 0.9em;
    background-color: white;
}

.hoz-divider {
    height: 1px;
    background-color: #C4C4C4;
    width: 100%;
    margin: 20px 0px;
}

a.text-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 25px;
    color: black;
    user-select: none;
    border: none;
    text-decoration: none;
    font-size: 14px;
}

a.text-button .fa {
    color: #7a7a7a;
}

header.dark a.text-button .fa {
    color: white;
}

div.phone-number a {
    text-decoration: none;
    color: black;
}

.menu-items {
    height: calc(100vh - var(--header-height));
    width: 100vw;
    position: fixed;
    top: -110%;
    background-color: #ffffff;
    left: 0;
    transition: top .3s ease, visibility 0s linear .4s;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 300;
    visibility: hidden;
}

body.stop-transition .menu-items {
    transition: none !important;
}

.menu-items.open {
    overflow: auto;
    top: var(--header-height);
    visibility: visible;
    transition: top .3s ease, visibility 0s linear 0s;
}

.menu-items .menu-item {
    font-size: 18px;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
    display: block;
    text-decoration: none;
    color: #000000;
}

div.menu-picture {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

div.menu-picture img {
    width: 70%;
}


/* Header Dark Mode */
header.dark {
    background-color: #2d2d2d;
}

header.dark .menu-items .menu-item,
header.dark .phone-number span,
header.dark .phone-number a,
header.dark .text-button {
    color: white;
}

div.menu-overflow {
    border-radius: 100%;
    width: 35px;
    height: 35px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #ececec;
    position: relative;
    flex: 0 0 35px;
}

.overflow-visible div.menu-overflow {
    display: flex;
}

.overflow-visible:hover {
    overflow: visible;
}

header.dark div.menu-overflow {
    background-color: #848484;
}

header .menu-items .padding {
    width: 40px;
    flex: 0 0 40px;
    visibility: hidden;
}

div.menu-overflow .triple-dots > div {
    width: 5px;
    height: 5px;
    background-color: #000000;
    margin: 3px;
    border-radius: 100%;
}

header.dark div.menu-overflow .triple-dots > div {
    background-color: #2d2d2d;
}

header.dark div.menu-items {
    background: none;
}

div.menu-overflow:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03));
}

div.menu-overflow .overflow-items {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

div.menu-overflow:hover .overflow-items {
    display: block;
}

div.menu-overflow .overflow-items > *:not(.spacer) {
    text-align: left;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

div.menu-overflow .overflow-items > *:not(.spacer):hover {
    background-color: #555555;
}

div.menu-overflow .overflow-items .spacer {
    height: 50px;
}

/** DESKTOP STYLES -- CURRENTLY GROUP RES DOESN'T SUPPORT TABLET / MOBILE SIZES **/
@media only screen and (min-width: 1px) {
    :root {
        --header-height: 100px;
    }

    .mobile-only,
    .mobile-tablet-only,
    .tablet-only {
        display: none !important;
    }

    header {
        grid-template-columns: auto 1fr auto auto;
    }

    header > div.menu-items {
        display: flex;
        position: relative;
        top: 0;
        background: none;
        width: unset;
        height: unset;
        color: black;
        background-image: none !important;
        visibility: unset;
        align-items: center;
        white-space: nowrap;
    }

    .menu-items .menu-item {
        color: black;
        padding: 0 10px;
        text-transform: uppercase;
    }

    .menu-items a.menu-item:hover {
        text-decoration: underline;
    }

    header .property-logo img,
    #ListingDetails-panel .property-logo img {
        max-width: 200px;
        max-height: 80px;
    }

    .rn-website-header ~ header {
        display: none;
    }
}