/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* new necessary styling */
body.side-header-left #side-header {
    background: #043b5b;
}

#side-header .fusion-main-menu {
    display: none;
}

#main-menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 9999;
    background: rgba( 4, 59, 91, 0.90 );
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s linear, visibility 0.4s linear;
}

@media only screen and (max-width: 800px) {
    #main-menu-overlay {
        display: none;
    }
}

#main-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#main-menu-overlay #menu-main-menu {
    display: block;
    list-style: none;
    padding: 0;
}

#main-menu-overlay #menu-main-menu a {
    color: #fff;
    font-family: 'Work Sans';
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.4em;
    position: relative;
    padding-bottom: 15px;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s linear;
}

#main-menu-overlay #menu-main-menu a:hover {
    color: #9e9e9e;
}

#main-menu-overlay #menu-main-menu li:not(:last-child) a::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 1px;
    background: #54a585;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 0;
}

#main-menu-overlay #close-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

@media only screen and (max-width: 870px) {
    .fusion-contact-info {
        padding: 0 !important;
    }
}

#residence-inquiry-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba( 208, 211, 212, 0.90 );
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s linear, visibility 0.4s linear;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 50px 0;
}

#residence-inquiry-overlay.active {
    opacity: 1;
    visibility: visible;
    overflow: scroll;
}

@media (max-width: 768px) {
    #residence-inquiry-overlay .overlay-container > div {
        margin-top: 50px;
    }
}

#residence-inquiry-overlay #close-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.hideme {
    display: none;
}

.single-residence section#map-section {
    display: table;
    height: 100%;
    width: 100%;
    margin-bottom: -10px;
}

#availability-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba( 4, 59, 91, 0.90 );
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s linear, visibility 0.4s linear;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    top: 0;
    left: 0;
}

#availability-overlay.active {
    opacity: 1;
    visibility: visible;
}

#availability-overlay #close-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#residence-row,
#development-row {
    background: #e5e6e7;
    padding: 20px 0;
}

#residence-row .row,
#development-row .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#residence-row .row .residence,
#development-row .row .development {
    margin: 0 20px 20px 0;
    width: calc(33% - 10px);
}

#development-row .row .development {
    position: relative;
}

#development-row .row figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
    text-align: center;
    display: flex;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s linear;
    align-items: center;
    padding: 20px;
}

#development-row .row .development::before {
    position: absolute;
    content: "";
    background: #4a7a7a;
    opacity: 0.8;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s linear;
}

#development-row .row .development:hover figcaption {
    opacity: 1;
}

#development-row .row .development:hover::before {
    opacity: 0.8;
}

#development-row .row figcaption h5.listing-name-type {
    margin: 0;
    color: #fff;
    font-size: 16px;
    text-decoration: underline;
}

@media (min-width: 1201px) {
    #residence-row .row .residence:nth-child(3n),
    #development-row .row .development:nth-child(3n) {
        margin-right: 0;
    }
}

@media (max-width: 1200px) {
    #residence-row .row .residence,
    #development-row .row .development {
        width: calc(50% - 10px);
    }

    #residence-row .row .residence:nth-child(2n),
    #development-row .row .development:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    #residence-row .row .residence,
    #development-row .row .development {
        width: 95%;
        margin: 0 auto 20px !important;
    }
}

#residence-row .row .residence img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

#development-row .row .development img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 260px;
}

#residence-row .row figcaption {
    background: #fff;
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 0px) and (max-width: 991px) {
    #residence-row .container,
    #development-row .container {
        width: auto;
    }
}

.overlay-container {
    max-width: 1170px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}
