/* Mobile first */
html,
body {
    padding: 0;
    margin: 0;
    font-family: open-sans, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    max-width: 100vw;
    max-height: 100%;
    overflow: hidden;
}
* {
    box-sizing: border-box;
}
h1,
h2,
h3 {
    font-family: bebas-neue, sans-serif;
    font-weight: 400;
    font-style: normal;
}
h4 {
    font-weight: 800;
    font-family: open-sans;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    padding: 0;
}
h1 {
    font-size: 62px;
    text-align: center;
    margin: 0;
    padding: 0;
}
p {
    margin: 0;
    padding: 0;
    line-height: 27px;
    font-size: 14px;
}
.cta {
    text-transform: uppercase;
    border-radius: 100px;
    background: #6489BF;
    border: none;
    min-width: 240px;
    color: white;
    font-size: 17px;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 800;
    font-family: open-sans;
    outline: none;
    cursor: pointer;
    padding: 15px 25px;
}
h2 {
    text-align: center;
    text-transform: uppercase;
    color: #FF9577;
    font-size: 37px;
    margin: 30px 0 0 0;
    padding: 0;
}
.yellow {
    color: #FCD578;
}
.purple {
    color: #D1C0E5;
}
.scrollbar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}
/* Main styles */
.dss {
    position: relative;
    display: flex;
    max-width: 100vw;
    max-height: 100%;
    overflow: hidden;
}
.dss.map-show {
    max-height: 100vh;
    overflow: hidden;
}
.landing,
.map,
.results-overlay-mobile {
    display: flex;
    flex-direction: column;
    min-width: 100vw;
    min-height: 100vh;
    z-index: 1;
}
.desktop-only {
    display: none !important;
}
/* Landing page */
.landing {
    position: relative;
    overflow: hidden;
    max-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    transition: margin-left 0.4s cubic-bezier(.22,.54,.79,.9);
}
.landing .form {
    text-align: center;
    position: relative;
    z-index: 5;
}
.landing .auto-complete {
    text-transform: capitalize;
    top: 67px;
    list-style-type: none;
    width: 100%;
    position: absolute;
    color: #1A2650;
    background: white;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 5;
    box-shadow: 2px 0px 16px 2px rgba(0, 0, 0, 0.2);
}
button.gm-control-active.gm-fullscreen-control {
    display: none;
}
.landing .blur.open {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
}
.landing .auto-complete li {
    text-align: left;
    cursor: pointer;
    padding: 10px 15px;
    background: transparent;
    transition: background-color 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), color 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    border-bottom: 1px solid #eee;
}
.landing .auto-complete li:hover {
    background: #6489BF;
    color: white;
}
.show-map .landing {
    margin-left: -100vw;
}
.landing * {
    flex-shrink: 0;
    flex-grow: 0;
}
.landing .mobile-color {
    min-width: 100%;
    position: relative;
    height: 14px;
    background: #FF9577;
    margin-bottom: 32px;
}
.landing .left-alignment,
.location-desktop {
    display: flex;
    flex-grow: 1;
    align-items: center;
    padding: 32px;
    background: #FF9577;
}
.landing .left-alignment img {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 70vw;
    max-width: 575px;
    right: -2vw;
    height: auto;
}
.landing .ps__rail-y {
    position: fixed;
}
.corner-right {
    display: none;
}
.landing .align-right {
    width: 100%;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.landing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 32px 0 32px;
    max-width: 445px;
    align-self: center;
}
.landing .align-right:before,
.landing .align-right:after {
    content: '';
    display: block;
}
.landing h1 {
    color: #39446B;
}
.landing h1 + p {
    text-align: center;
    margin-top: 20px;
    color: #476CA6;
}
.landing h4 {
    margin-top: 45px;
}
.landing input {
    max-width: 400px;
    font-size: 14px;
    border: 2px solid #6489BF;
    border-radius: 50px;
    outline: none;
    margin-top: 10px;
    width: 100%;
    padding: 15px 20px;
}
.landing .cta {
    margin: 32px auto 0 auto;
    padding: 10px 25px;
    padding: 15px 25px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}
.landing footer {
    padding: 69px 32px 32px 32px;
    text-align: center;
}
.landing footer p {
    margin-top: 20px;
}
.landing footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #39446B;
}
/* Autocomplete */
  .autocomplete {
    position: relative;
  }

  .autocomplete-results {
    padding: 0;
    margin: 0;
    border: 1px solid #eeeeee;
    height: 120px;
    overflow: auto;
    width: 100%;
  }

  .autocomplete-result {
    list-style: none;
    text-align: left;
    padding: 4px 2px;
    cursor: pointer;
  }

  .autocomplete-result.is-active,
  .autocomplete-result:hover {
    background-color: #4AAE9B;
    color: white;
}
/* Map selection */
.map {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.map .house h2 {
    font-size: 100px;
    margin-top: 5px;
    color: white;
    line-height: 71px;
    margin-top: 15px;
    transition: all 0.5s;
}
.map .percent {
    font-size: 60px;
}
.map h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 45px;
}
.map .load-more {
    position: absolute;
    left: 50%;
    top: 200px;
    margin-left: -27px;
    width: 54px;
    height: 54px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s 0.5s;
    z-index: 2;
}
.map .location {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: all 0.5s;
    color: white;
    background: #39446B;
    max-height: 224px;
    overflow: hidden;
    z-index: 2;
}
.map .location header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 27px 21px 0  21px;
    transition: all 0.5s;
    background: transparent;

}
.map .location header .expand-fade {
    cursor: pointer;
}
.map .location header h2 {
    margin-top: 0;
    transition: color 0.3s;
}
.map .location.top-10 header h2 {
    color: #FCD578;
}
.map .location.bottom-10 header h2 {
    color: #D1C0E5;
}
.map .location .content {
    position: relative;
    max-width: 450px;
    padding: 0 50px 20px 50px;
    margin: 0 auto;
    flex-grow: 11;
    align-self: center;
    text-align: center;
}
.map .location .content * {
    flex-shrink: 0;
}
/* Scrollbar */
.map .ps__rail-y,
.map .ps__rail-y:hover {
    top: 3px;
    bottom: 3px;
    transition: none !important;
    background: transparent !important;
}
.map .ps__thumb-y {
    background: #1A2650 !important;
    opacity: 0.2;
}
.map .ps__thumb-y:hover {
    opacity: 0.7;
}
.map .expanded .house h2 {
    margin-top: 0;
}
.map .location .content p {
    margin-top: 20px;
}
.map .location hr {
    border: none;
    border-bottom: 2px solid #FF9677;
    margin: 20px 0 0 0;
}
.map .location .content h4.spaced {
    margin: 20px 0 0 0;
    letter-spacing: 0.1em;
}
.map .location .social-icons {
    margin-top: 20px;
}
.map .location .social-icons img {
    cursor: pointer;
}
.map .location .fb {
    margin-right: 10px;
}
.map .location .cta {
    margin-top: 20px;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.16);
}
.map .gm-svpc {
    display: none !important;
}
.map .location .tabs {
    display: flex;
    max-height: 105px;
    min-height: 105px;
    background: #1A2650;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}
.map .location .tabs div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    padding-top: 7px;
    background: transparent;
    transition: background-color 0.5s;
}
.map .location .tabs img {
    margin-bottom: 10px;
    opacity: 0.7;
}
.map .location .tabs .active {
    background: #39446B;
}
.map .location .tabs .active img {
    opacity: 1;
}
.map-selection {
    flex-grow: 1;
}
/* Animate */
.map .expanded ~ .load-more {
    opacity: 0;
    transition: opacity 0.2s;
}
.map .location.expanded {
    max-height: 100vh;
    z-index: 5;
}
.map .expanded header {
    background: #1A2650;
    padding-bottom: 27px;
}
.map .location .expand-fade,
.map .location .content .house ~ *,
.map .location .tabs {
    transition: all 0.5s;
    opacity: 0;
}
.map .expanded .expand-fade,
.map .expanded .content .house ~ *,
.map .expanded .tabs {
    opacity: 1;
}
.map .expanded .content {
    padding: 20px 50px;
}
.map .expanded {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
}
.map p.darker {
    font-size: 16px;
    text-align: left;
    color: #B1C8EA;
}

.marker {
    min-width: 40px;
    min-height: 40px;
    max-width: 200px;
    max-height: 200px;
    width: 100px;
    height: 100px;
}
.marker svg {
    width: 100%;
    height: 100%;
}
.marker .innerText{
    font-size: 30px;
    color: #ffffff;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    position: absolute;
    top: 50%;
    left: 50%;
}
.marker .percentage{
    font-size: 18px;
}

.social {
    display: block;
    position: absolute;
    top: 250px;
    right: 0;
    z-index: 2;
}
.social a {
    display: flex;
    background: #6489BF;
    padding: 9px 60px 9px 9px;
    margin-right: -40px;
    border-radius: 40px;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.social a:hover {
    margin-left: -30px;
    margin-right: -20px;
    background: #AF3E23;
}
/* Table styles for least and most popular */
.table {
    font-weight: bold;
    text-transform: capitalize;
    color: white;
    font-size: 15px;
    margin-right: auto;
    text-align: left;
}
.table em {
    display: inline-block;
    text-align: right;
    width: 140px;
    font-style: normal;
}
.table span {
    display: inline-flex;
    height: 27px;
    align-items: center;
    border-radius: 50px;
    background: #FCD578;
    color: #39446B;
    margin-right: 29px;
    margin-bottom: 5px;
    padding: 0 10px;
}
.table.purple span {
    background: #D1C0E5
}
/* Lightbox */
.lightbox-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.46);
    z-index: 4;
    -webkit-drop-filter: blur(3px);
}
.lightbox-overlay:before,
.lightbox-overlay:after {
    content: '';
    display: block;
}
.lightbox-overlay.open {
    display: flex;
}
.lightbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    background: white;
    padding: 29px 22px 48px 22px;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: auto;
    box-shadow: none;
}
.lightbox .close {
    position: absolute;
    top: 28px;
    right: 26px;
    width: 21px;
    cursor: pointer;
}
.lightbox h1 {
    font-size: 47px;
    margin-top: 0.5em;
    margin-bottom: 0.6em;
    color: #1A2650;
}
.lightbox .houses {
    margin-bottom: 1.3em;
}
.lightbox p {
    color: #476CA6;
    max-width: 485px;
    padding-left: 20px;
    padding-right: 20px;
}
@media screen and (min-width: 830px) {
    .lightbox {
        height: auto;
        padding: 28px 26px 48px 26px;
        max-width: 764px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    }
    .lightbox h1 {
        font-size: 62px;
    }
}
@media screen and (min-width: 1200px) {
    html,
    body {
        overflow: hidden;
    }
    main {
        display: flex;
    }
    .landing,
    .map,
    .results-overlay-mobile {
        display: flex;
        flex-direction: row;
        min-width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: 1;
    }
    .mobile-only {
        display: none;
    }
    .desktop-only {
        display: block !important;
    }
    .map .expanded {
        display: none;
    }
    /* Landing desktop */
    .landing .left-alignment {
        flex-grow: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        min-width: 37.5vw;
        min-height: 768px;
        height: 100vh;
    }
    .landing .align-right .mobile-only {
        display: none !important;
    }
    .location-desktop {
        flex-grow: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        max-width: 21vw;
        min-width: 480px;
        min-height: 768px;
        height: 100vh;
        z-index:2;
    }
    .location-desktop.overlay {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        margin-left: -100%;
        transition: margin-left 0.55s cubic-bezier(.22,.54,.79,.9);
    }
    .location-desktop.overlay.open {
        margin-left: 0%;
    }
    .location-desktop * {
        position: relative;
        z-index: 1;
    }
    .corner-right {
        display: block;
        position: absolute;
        top: 0;
        right: -292px;
        height: 100vh;
        min-height: 768px;
        z-index: 0;
        pointer-events: none;
    }
    .landing .left-alignment img {
        position: relative;
        z-index: 1;
        margin: 0 -20vw 0 0;
    }
    .landing .align-right {
        max-width: 445px;
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 0;
        height: 100vh;
        margin-left: 21.7vw;
    }
    /* Location */
    .desktop-map {
        display: flex !important;
        min-height: 768px;
        min-width: 100%;
    }
    .location-desktop {
        display: flex !important;
        width: 37.45vw;
        flex-direction: column;
        justify-content: space-between;
        background: #39446B;
        padding: 60px 0 69px 69px;
        color: white;
    }
    .location-desktop h2 {
        margin: 0;
        text-align: left;
        font-size: 62px;
    }
    .location-desktop .house-row {
        display: flex;
        margin-top: 30px;
        margin-right: -80px;
    }
    .location-desktop .house-row p {
        margin-top: 20px;
    }
    .location-desktop .house {
        display: flex;
        flex-direction: column;
        min-width: 210px;
        max-width: 210px;
        height: 210px;
        background: url('./assets/house-outline.svg') no-repeat 0 0;
        background-size: 100% auto;
        color: white;
        padding: 65px 40px 0 40px;
        text-align: center;
        margin-right: 32px;
    }
    .location-desktop .house h2 {
        margin-top: 0;
        font-size: 100px;
        margin-right: -10px;
        text-align: center;
    }
    .location-desktop .ordered {
        display: flex;
    }
    .location-desktop .bottom-portion {
        width: 100%;
    }
    .location-desktop .bottom-portion .cta {
        margin-top: 27px;
        margin-left: 0;
    }
    .location-desktop .ordered img {
        margin-bottom: 15px;
    }
    .location-desktop .top-10 {
        margin-right: 75px;
    }
    .location-desktop .top-10,
    .location-desktop .bottom-10 {
        display: flex;
        flex-direction: column;
        font-weight: bold;
        text-align: center;
        cursor: pointer;
    }
    .location-desktop .ordered .arrow {
        margin: 15px auto 0 auto;
    }
    /* Overlay */
    .location-desktop .go-back {
        position: absolute;
        top: -28px;
        left: -36px;
        width: 32px;
        cursor: pointer;
    }
    .location-desktop .face-row {
        display: flex;
        margin-right: -200px;
        color: #B1C8EA;
        font-size: 18px;
    }
    .location-desktop .face-row img {
        margin-right: 17px;
    }
    .location-desktop .face-row h2 {
        margin: 0;
        font-size: 43px;
    }
    .location-desktop .face-row p {
        font-size: 18px;
        margin-top: 10px;
    }
    .location-desktop .bottom-10-button {
        display: inline-flex;
        border: #6489BF solid 2px;
        border-radius: 100px;
        align-items: center;
        padding: 7px;
        cursor: pointer;
        user-select: none;
    }
    .location-desktop .bottom-10-button span {
        font-family: bebas-neue;
        font-size: 25px;
        color: #D1C0E5;
        padding: 3px 10px 0 10px;
    }
    .location-desktop .bottom-10-button.yellow span {
        color: #FCD578;
    }
    .location-desktop .bottom-10-button .arrow {
        margin-right: 10px;
    }
    .table {
        margin-top: 45px;
    }
    /* Social */
    .social {
        top: 50px;
    }
    .social a.desktop-only {
        display: flex !important;
    }
}