/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Author: ITEC Riviera
Text Domain: hello-elementor-child
*/

/* Hiding the web page until JS is done building the page */
body:is(.page-id-24, .page-id-13) header,
body:is(.page-id-24, .page-id-13) main,
body:is(.page-id-24, .page-id-13) div.elementor-location-footer {
    opacity: 0;
}

body:not(.page-id-24, .page-id-13) .lds-spinner {
/*body:not(.page-id-13) .lds-spinner {*/
    /*display: none!important;*/
    opacity: 0;
}

.select2-dropdown {
    /*background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    position: absolute;*/
    left: -100000px;
    /*width: 100%;
    z-index: 1051;*/
}

/* CSS loading animation */
.lds-spinner {
    color: #357ebd;
    display: inline-block;
    position: fixed;
    width: 80px;
    height: 80px;
    top: calc(50% - 40px);
    left: calc(50% - 40px);
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.6);
    /* border-radius: 50%; */
    box-shadow: 0 0 5000px 5000px rgba(255, 255, 255, 0.6);
    /*opacity: 1!important;*/
}
.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #357ebd;
}
.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}
@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
/* END CSS loading animation */

.site-header:not(.header-stacked) .header-inner .site-branding {
    max-width: unset;
}

.site-header:not(.header-stacked) .header-inner .site-navigation {
    max-width: calc(100% - 370px);
}

.site-navigation ul.menu {
    justify-content: flex-end;
}

.es-property-section .es-property-single-fields li.es-property-field {
    list-style: none;
    padding: 0;
}

.es-property-section .es-property-single-fields .es-property-field .grid-2cols .es-property-field__label {
    font-weight: 500;
    /*display: inline-block;*/
    margin-bottom: 9px;
    font-size: 1rem;
}

.es-property-section li,
.es-property-field__value {
    font-size: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 170px auto;
    grid-column-gap: 0px;
    grid-row-gap: 15px;
}

.grid {
    /*background-color: #444;*/
    /*color: #fff;*/
    padding: 5px;
    font-size: 1rem;
}

.grid-col1 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 1;
    /*background: #a0c263;*/
}

.grid-col2 {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 1;
    /*background: #a00263;*/
}

ul.es-listing__meta .es-meta-icon {
    max-width: 24px;
    max-height: 24px;
    margin-right: 8px;
}

.es-listings ul.es-listing__meta .es-meta-icon {
    max-width: 22px;
    max-height: 22px;
}

ul.es-listing__meta li * {
    vertical-align: unset;
}

li.display-inline {
    display: inline;
}

#location {
    margin-top: 0;
}

#location h3 {
    display: none;
}

#location .es-property-section__content {
    padding-top: 0;
}

#location ul.es-property-single-fields {
    margin-left: -40px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.es-request-form .es-field__start-date label,
.es-request-form .es-field__end-date label {
    width: 100%;
}

.es-request-form {
    padding-top: 6px;
}

/* hp field is invisible */
.es-request-form .es-field__cdv_hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.es-request-form .es-field__cdv_hp label {
    display: none;
}

a.es-btn--saved-search {
    display: none;
}

body .es-request-form .es-field__code {
    padding-bottom: 0!important;
}

body .es-request-form  .es-field input[type="text"]:not(textarea),
body .es-request-form .es-field input[type="email"]:not(textarea),
body .es-request-form .es-field select:not(.select2-hidden-accessible):not(textarea),
body .es-request-form .es-field .select2-container .select2-selection--single,
body .es-request-form .es-field .select2-container .select2-selection .select2-selection__arrow
{
    height: 30px;
    /*line-height: 1.2em;*/
}

body .es-request-form .es-field:not(:last-child):not(.es-field--checkbox-item-bordered):not(.es-field--radio-item-bordered) {
    padding-bottom: 2px;
}

body .es-request-form .es-field select:not(.select2-hidden-accessible) {
    background: #fff url(../../plugins/estatik4-pro/includes/classes/framework/assets/images/dropdown-arrow.svg) no-repeat right 9px top 10px;
}

body .es-request-form .es-field textarea:not(.es-ignore-style) {
    line-height: 1.2em;
}

.es-request-form .es-field__message textarea {
    height: 60px;
}

body .es-request-form .es-field .es-field__label {
    margin-bottom: 3px;
}

ul.es-listing__meta {
    display: flex;
    flex-wrap: wrap;
}

ul.es-listing__meta li {
    display: flex;
    align-content: baseline;
    flex-wrap: nowrap;
}
/*
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px;
}*/

.es-table-wrap {
    overflow-x: auto;
    margin-bottom: 0;
    padding-bottom: 0;
}

#rooms {
    overflow: hidden;
}

#rooms-toggle {
    /*position: absolute;
    right: 0;*/
    display: block;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}

.es-properties {
    max-width: calc(100vw - 17px);
}

.es-properties .es-properties__map {
    flex: 1 0 calc(15% - 30px);
}

.city-country-label {
    display: block;
    margin-bottom: 15px;
}

.es-single__header-right .es-price-container {
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Search results page */

.es-listing__content__inner h3.es-listing__title a {
    font-size: 1.2rem;
}

.es-listing__content__inner .city-country-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Price From of the W&E grid in the property list */
.es-listing__content__inner .cdv-price-from {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.es-listings[class*=" es-listings--grid-"] .es-listing ul.es-listing__meta {
    line-height: 2rem;
    margin-bottom: 0;
}

/* Property page: space between the lines of the icon row when it wraps
   (e.g. the parking text), close to the spacing of the property list. */
.es-single__header ul.es-listing__meta {
    row-gap: 6px;
}

.availability-warning {
    margin-top: 10px;
    font-size: 0.7rem;
    color: red;
}

.calendar-table table td,
.calendar-table table th {
    padding: 0;
}

.es-btn.es-btn--primary:not(.es-btn--bordered):not(:hover):not(:active), .es-btn.es-btn--primary:not(.es-btn--bordered):hover, .es-price-marker--active, .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default, .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current, .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
    background-color: #007DB1;
}

.es-btn.es-btn--primary, .es-btn--primary[type="submit"], button.es-btn--primary, a.es-btn--primary {
    border-color: #007DB1;
}

.elementor-widget-container .employee-name {
    font-size: 1.2rem;
    letter-spacing: .03rem;
    margin-top: 15px;
    margin-bottom: 5px;
    font-family: 'Lato', sans-serif;
    font-style: Normal;
    font-weight: 500;
    line-height: 1.1;
}

.elementor-widget-container .employee-position {
    margin-top: 0 !important;
    margin-bottom: 15px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    font-style: Normal;
    font-weight: 500;
    line-height: 1.3;
}

input[type="checkbox"]:checked {
    background-color: #007DB1!important;
    border-color: #007DB1!important;
}

input#es-field-booking-date-selector {
    border: 1px solid #cfd8dc!important;
}

a.js-es-search__collapse-link.es-secondary-color {
    display: none!important;
}

.es-properties--hfm .es-properties__list {
    margin-right: 0;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.es-properties--hfm .es-properties__list::-webkit-scrollbar {
    display: none;
}
.es-properties.es-properties--hfm:not(.es-properties--hfm--only-map):not(.es-properties--hfm--min-map) .es-listings__wrap-inner,
.es-properties.es-properties--hfm:not(.es-properties--hfm--only-map) .es-listings__wrap-inner {
    margin-right: 0;
    overflow-y: scroll;
    scrollbar-width: thin;
}

.es-listings-filter--mobile .es-title.es-total, .es-listings-filter--mobile .es-total.es-total {
    text-align: left;
}

/*.es-properties.es-properties--hfm.es-properties--hfm--full-width {
    width: calc(100vw - 20px);
}*/

.cdv-view-all-link {
    text-align: center;
    color: #FFF;
    font-size: 1.8em;
    margin-top: 18px;
}

.cdv-view-all-link a {
    color: #5fbaf1;
    font-weight: bold;
    text-decoration: underline!important;
}

.cdv-view-all-link a:hover {
    color: #007DB1;
    text-decoration: underline!important;
}

.es-search--main.es-search--collapsed .es-search-nav {
    display: block!important;
    margin-left: auto;
    margin-right: auto;
}

.es-search--main .es-field__label {
    display: none;
}

body:not(.home) form h3 {
    display: none;
}
body:not(.home) .es-search--main {
    background: none;
    padding: 0!important;
    margin-top: 3px;
}
body:not(.home) .cdv-view-all-link {
    display: none;
}

form input::placeholder, .select2-selection__placeholder {
    color : #555!important;
    font-size: 0.9rem!important;
    opacity: 0.4!important;
}

.select2-search--dropdown {
    padding: 0;
}

.select2-selection__arrow {
    display: none;
}

#nav-event-type-64cf9b6bd83a3 > div > label >
span.select2-container.select2-container--default.select2-container--focus.select2-container--open > span {
    top: -15px!important;
}
li[data-field="booking-date-selector"] {
    min-width: 220px;
}
li.js-es-search-nav__single-item[data-field="city"] {
    min-width: 230px!important;
}
.es-field .select2-container .select2-selection--multiple .select2-selection__rendered .select2-search__field[placeholder="Locations"] {
    width: 90px!important;
    max-width: 90px!important;
}

.select2-dropdown.es-select2__dropdown.es-select2__dropdown--positioning.select2-dropdown--below {
    width: 230px!important;
}
.es-field .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px!important;
    padding-right: 10px!important;
}

.select2-selection__choice {
    height: 28px;
    padding-top: 8px!important;
}

.es-listing {
    border: none;
    box-shadow: none;
}
.slick-list.draggable {
    border-radius: 9px;
}

/* Fixing Maps CSS broken by Elementor */ 
.es_map [type="button"] {
    border: none!important;
}
.gm-compass-turn {
    cursor: pointer!important;
    background-color: transparent!important;
    border: 0 none!important;
    height: 48px!important;
    left: 0!important;
    overflow: hidden!important;
    padding: 0!important;
    position: absolute!important;
    top: 0!important;
    width: 14px!important;
    z-index: 1!important;
}
.gm-compass-needle {
    cursor: pointer!important;
    background-color: transparent!important;
    border: 0 none!important;
    height: 48px!important;
    left: 14px!important;
    overflow: hidden!important;
    padding: 0!important;
    position: absolute!important;
    top: 0!important;
    width: 20px!important;
}
.gm-iv-close{
    -webkit-box-align: center!important;
    -webkit-align-items: center!important;
    align-items: center!important;
    background: transparent!important;
    background-color: transparent!important;
    border: none!important;
    cursor: pointer!important;
    display: -webkit-box!important;
    display: -webkit-flex!important;
    display: flex!important;
    height: 27px!important;
    -webkit-box-pack: center!important;
    -webkit-justify-content: center!important;
    justify-content: center!important;
    margin: 0!important;
    outline-offset: -2px!important;
    padding: 0!important;
    width: 27px!important;
}
.gm-svpc div {
    width: 40px!important;
    height: 40px!important;
}
.gm-svpc div img {
    transform: translate(-112%, -50%)!important;
}

.es-select2__dropdown .select2-results__option--highlighted[aria-selected=false]:not(:hover) {
    background-color: transparent;
    color: #263238;
}
.es-select2__dropdown .select2-results__option--highlighted[aria-selected=true]:not(:hover) {
    background-color: #DDD;
    color: #263238;
}
.es-control .es-control__list {
    display: none!important;
}  

.drp-buttons button.cancelBtn {
    background-color: #ccc;
    color: #263238;
    font-weight: bold;
    border: none;
    opacity: 1;
}
.drp-buttons button.cancelBtn:hover {
    opacity: 0.8;
    box-shadow: #bbb 0 0 3px;
}
.drp-buttons button.applyBtn {
    background-color: #357ebd;
    color: #fff;
    font-weight: bold;
    border: none;
    opacity: 1;
}
.drp-buttons button.applyBtn:hover {
    opacity: 0.8;
    box-shadow: #357ebd 0 0 3px;
}

/*.es-privacy-policy-container {
    display: none;
}*/

.elementor-menu-toggle {
    color: #eee!important;
}
.elementor-location-footer .elementor-nav-menu a {
    padding-top: 2px!important;
    padding-bottom: 2px!important;
}

button.es-btn:not(.es-btn--icon) {
    padding: 0 20px 0 13px;
}

@media (max-width: 662px) {
    .site-header:not(.header-stacked) .header-inner .site-branding {
        max-width: 80%;
    }
    .site-header .site-branding .site-logo img.custom-logo {
        width: 100%;
    }

    body.home form h3 {
        font-size: 2.7em;
    }

    body.home .page-content .elementor-top-section:nth-child(2) {
        margin-top: 25px;
        margin-bottom: 25px;
    }
    body.home ul.es-search-nav.js-es-search-nav.es-search-nav--dropdowns {
        display: block;
    }
    body.home .es-search--main.es-search--collapsed .es-search-nav.es-search-nav--dropdowns + .es-search__collapse-link {
        display: none;
    }

    body:not(.home) .es-search--simple.es-search--collapsed.es-search--simple ul.es-search-nav {
        margin-right: 12px;
    }
    /*.es-properties.es-properties--hfm.es-properties--hfm--full-width {
        width: calc(100vw - 17px);
    }*/

    body:not(.home) form {
        margin-bottom: 0;
    }

    .select2-dropdown,
    .select2-dropdown.es-select2__dropdown.es-select2__dropdown--positioning.select2-dropdown--below {
        width: 100%!important;
    }

    a.es-search__collapse-link {
        margin-bottom: 0!important;
        max-height: 40px!important;
    }

    .es-properties .es-properties__search {
        margin-bottom: 5px!important;
        margin: 0 6px 12px 6px !important;
    }

    .es-search--main.es-search--collapsed .es-search-nav > li {
        width: unset;
    }

    .es-search-nav-wrap {
        margin-top: 0!important;
    }

    .es-listings-filter {
        margin-bottom: 10px!important;
    }

    .es-listings-filter--mobile .es-total.es-total {
        text-align: left;
    }
}

@media (max-width: 721px) {
    body.home div.elementor-container:nth-child(2).elementor-column-gap-default {
        min-height: unset!important;
        max-height: unset!important;
    }    
    .es-properties .es-properties__list {
        margin: 0 10px;
    }
    .es-properties .es-listings__wrap-inner {
        margin: 0;
    }
    .es-properties--hfm {
        margin-left: -10px!important;
    }
    .es-properties--hfm--full-width, .es-properties--hfm--only-map:not(.es-properties--hfm) {
        margin-left: -10px!important;
        margin-right: -10px;
    }    
    .es-properties .es-properties__map {
        margin-left: 10px;
        margin-right: 10px;
    }    
    .es-properties__search {
        margin: 0 14px 12px 6px!important;
    }    
    .es-search--main .es-search--submit-item {
        margin-top: 9px!important;
    }
    .select2-dropdown,
    .select2-dropdown.es-select2__dropdown.es-select2__dropdown--positioning.select2-dropdown--below {
        width: 100%!important;
    }

    /* Hiding the Google Maps div if the search returned an empty result */
    .es-properties:has(div.es-no-found-posts) .es-properties__map.es-properties__map--visible {
        display: none!important;
    }
}
@media (min-width: 722px) {
    body.home div.elementor-container:nth-child(2).elementor-column-gap-default {
        min-height: calc(100vh - 125px)!important;
        max-height: calc(100vh - 125px)!important;
    }
    .es-properties.es-properties--hfm:not(.es-properties--hfm--only-map) .es-listings__wrap-inner {
        height: calc(100vh - 230px)!important;
    }    
    .es-search--main.es-search--collapsed .es-search-nav {
        display: flex!important;
    }
    .es-search--main.es-search--collapsed .es-search-nav > li {
        width: unset;
    }
    .es-search--main .es-search-nav .es-search-nav__content {
        margin-top: 0;
    }
    /*.es-properties--hfm .es-properties__list {
        margin-right: 15px;
    }*/
}

@media (min-width: 741px) {
    .es-properties__map.es-properties__map--visible {
        max-height: calc(100vh - 230px);
        min-height: calc(100vh - 230px);
    }
    .es-control {
        display: none!important;
    }
}

@media (max-width: 766px) {
    .site-header:not(.header-stacked) .header-inner .site-branding {
        max-width: 80%;
    }
    .elementor-location-footer .elementor-element {
        text-align: left!important;
    }
    .elementor-location-footer .elementor-widget-wrap {
        justify-content: flex-start!important;
    }
    .elementor-location-footer section:first-of-type .elementor-widget-wrap {
        padding-bottom: 0;
    }    
}

@media (min-width: 1024px) {
    .elementor-widget-container .employee-position-2-lines {
        margin-bottom: -5px;
    }    
}

@media (max-width: 1170px) {
    .es-properties__map {
        max-height: 100vh;
    }
    body.home div.elementor-container:nth-child(2) {
        min-height: calc(100vh - 140px)!important;
        max-height: calc(100vh - 140px)!important;
    }
}
