/*
 * EastWest - Property: shared styles for the search page, the stay page and the Hospitality Search module.
 *
 * Child themes set the brand in their style.css:
 *
 *     :root {
 *         --ewp-primary: #16383f;     brand colour: borders, buttons, selected states
 *         --ewp-radius: 0px;          filter buttons, sort options, card links
 *         --ewp-radius-card: 0px;     result cards, loading cards, bedding cards
 *         --ewp-radius-button: 0px;   Book Now button, price popup
 *     }
 */

:root {
    --ewp-primary: #16383f;
    --ewp-radius: 0px;
    --ewp-radius-card: 0px;
    --ewp-radius-button: 0px;
}

body {
    background-color: #FFFFFF;
}

/* Search page: filters */
.filters-wrapper {
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #dedede;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.filters-wrapper .filter-wrapper {
    position: relative;
    margin: 5px 0;
}

.filters-wrapper .filter-button {
    border: 1px solid color-mix(in srgb, var(--ewp-primary) 40%, transparent);
    border-radius: var(--ewp-radius);
    padding: 8px 12px 8px 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    justify-content: space-between;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.filters-wrapper .filter-button:hover {
    border-color: var(--ewp-primary);
    background: #f7f7f7;
}

.filters-wrapper .filter-button i, .filters-wrapper .filter-button svg {
    font-size: 20px;
    margin-left: 10px;
}

.filters-wrapper .search-field .filter-button {
    cursor: text;
    width: 240px;
    max-width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.filters-wrapper .search-field .filter-button::placeholder {
    color: #7e7e7e;
}

.filters-wrapper .search-field .filter-button:focus {
    border-color: var(--ewp-primary);
    background: #fff;
}

#no-results-wrapper {
    display: none;
}

#no-results-wrapper.active {
    display: block;
    padding: 30px;
    font-size: 20px;
}

/* Search page: results */
#results-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 25px;
    padding: 30px;
}

#results-wrapper .card-wrapper {
    display: flex;
    border: 1px solid #ededed;
    border-radius: var(--ewp-radius-card);
    flex-direction: column;
    overflow: hidden;
}

#results-wrapper .card-wrapper:hover {
    border-color: var(--ewp-primary);
}

#results-wrapper .card-wrapper.filtered {
    display: none;
}

#results-wrapper .card-wrapper .img-wrapper {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

#results-wrapper .card-wrapper .img-wrapper img {
    display: flex;
    object-position: center;
    object-fit: cover;
    height: 100%;
    width: 100%;
    max-width: none;
    max-height: none;
}

#results-wrapper .card-content {
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-weight: 400;
}

#results-wrapper h4 {
    font-size: 20px;
    text-transform: none;
    font-weight: 400;
    margin-bottom: 10px;
}

#results-wrapper .card-features {
    font-size: 14px;
    margin-bottom: 10px;
}

#results-wrapper .card-price-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#results-wrapper .card-price {
    font-size: 14px;
    margin: 0;
}

#results-wrapper .card-best-rate-interval {
    font-size: 13px;
    margin: 0;
}

#results-wrapper .card-link {
    font-size: 14px;
    font-weight: 400;
    color: #7e7e7e;
    border: 1px solid #eaeaea;
    border-radius: var(--ewp-radius);
    padding: 8px 10px;
    display: inline-block;
    margin-top: 10px;
}

#results-wrapper .card-link:hover {
    border: 1px solid var(--ewp-primary);
}

#results_count {
    font-size: 16px;
    font-weight: 400;
}

#loading-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 25px;
    padding: 30px;
}

#loading-results .stay-card {
    display: flex;
    border: 1px solid #ededed;
    border-radius: var(--ewp-radius-card);
    flex-direction: column;
    overflow: hidden;
}

#loading-results .stay-card .card-content {
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#loading-results .stay-card .card-title {
    width: 100%;
    margin-bottom: 10px;
}

#loading-results .stay-card .card-image {
    width: 100%;
    height: 250px;
}

#loading-results .stay-card .card-image .content-placeholder {
    display: block;
}

#loading-results .stay-card .features-line {
    height: 15px;
    width: 80%;
}

#loading-results .stay-card .price-line {
    width: 60%;
    height: 16px;
    margin: 10px 0 30px;
}

#loading-results .stay-card .button-line {
    width: 70%;
    height: 16px;
}

/* Filter popups and the date picker */
.filters-wrapper .filter-popup {
    display: none;
}

.filters-wrapper .filter-wrapper.opened .filter-popup {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: -5px;
    transform: translateY(100%);
    background-color: #fff;
    z-index: 210;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .117647);
    width: 240px;
    padding: 20px;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow: auto;
}

.filters-wrapper .filter-wrapper.date-field.opened .filter-popup.date-picker-popup {
    width: min(720px, calc(100vw - 30px));
    max-height: none;
    overflow: visible;
    padding: 16px;
}

.filters-wrapper .filter-wrapper.date-field hotel-date-picker {
    display: block;
    width: 100%;
}

.filters-wrapper .filter-wrapper.date-field .hotel-datepicker__nav-button {
    color: #222;
    background: #fff;
    padding: 0
}

.filters-wrapper .filter-wrapper.date-field .hotel-datepicker__nav-button:hover:not(:disabled) {
    color: #222;
    background: #f7f7f7;
}

.filters-wrapper .filter-wrapper.date-field .hotel-datepicker__nav-button:disabled {
    color: #222;
}

.date-flexibility-options {
    margin-top: 16px;
}

.date-flexibility-options__desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-flexibility-options__mobile {
    display: none;
}

.date-flexibility-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 12px;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
}

.date-flexibility-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-flexibility-option__icon {
    width: 12px;
    height: 12px;
    border: 1px solid var(--ewp-primary);
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
    flex: 0 0 auto;
}

.date-flexibility-option.is-selected {
    background: var(--ewp-primary);
    border-color: var(--ewp-primary);
    color: #fff;
}

.date-flexibility-option.is-selected .date-flexibility-option__icon {
    border-color: #fff;
    background: #fff;
}

.date-flexibility-option.is-selected .date-flexibility-option__icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ewp-primary);
    transform: translate(-50%, -50%);
}

.date-flexibility-select {
    width: 100%;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
}

.flex-row {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
}

.filter-select-options-col {
    display: flex;
    flex-flow: column;
    width: 100%;
    font-weight: 400;
}

.filter-select-options-col span {
    padding: 5px 0;
    cursor: pointer;
    font-size: 15px;
    text-wrap: nowrap;
}

.filter-select-options-col span:hover {
    color: var(--ewp-primary);
    text-decoration: underline;
}

/* Search page: sorting */
#sort-option-select ul {
    list-style: none;
    display: flex;
    margin: 0 0 0 20px;
}

#sort-option-select ul li {
    border: 1px solid color-mix(in srgb, var(--ewp-primary) 30%, transparent);
    border-radius: var(--ewp-radius);
    padding: 5px 10px 5px 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    justify-content: space-between;
    font-size: 14px;
    margin-right: 10px;
}

#sort-option-select ul li.selected {
    background: var(--ewp-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 400;
}

#sort-option-select ul li:hover {
    border-color: var(--ewp-primary);
}

.heading {
    padding: 30px 30px 0;
    display: flex;
    align-items: center;
}

.loading_icon {
    width: 30px;
    height: 30px;
    display: inline-block;
    animation: loading-rotate 0.8s infinite linear;
    color: transparent;
    font-size: 10px;
    border-top: 2px solid rgba(0, 0, 0, 0.2);
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #333;
    border-left: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background-clip: padding-box;
}

/* Stay page: gallery */
.single-dwl_stay #masthead {
    margin-top: 0;
}

.hero-single-images-wrapper {
    position: relative;
}

.gallery-wrapper {
    display: grid;
    grid-template-rows: repeat(1,1fr);
    grid-template-columns: repeat(4,1fr);
    grid-row-gap: 2px;
    grid-column-gap: 2px;
}

.gallery-entry {
    position: relative;
    padding-top: 66.6666% !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.gallery-entry img {
    transition: .3s all ease;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    min-width: 100%;
    min-height: 100%;
}

.gallery-2-2 {
    grid-row-end: span 2;
    grid-column-end: span 2;
}

.order-2 {
    order: 2;
}

.pswp__button:hover {
    background: transparent;
}

/* Stay page: content */
.stay-content-wrapper .title-description {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stay-content-wrapper .title-description .title-details {
    width: 38%;
}

.stay-content-wrapper .title-description .description {
    width: 60%;
}

.stay-content-wrapper .entry-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    width: 100%;
}

.stay-content-wrapper .stay-features {
    font-size: 20px;
    margin-bottom: 10px;
}

.one-container:not(.page) .inside-article.stay-content-wrapper {
    padding-top: 0;
}

.stay-content-wrapper .content-section {
    margin-top: 50px;
}

.stay-content-wrapper .section-title {
    font-size: 35px;
}

.stay-content-wrapper .amenities-wrapper {
    display: flex;
    justify-content: space-between;
    flex: 1 1 30%;
}

.stay-content-wrapper .amenities-wrapper .amenities-set {
    width: 100%;
}

.stay-content-wrapper .amenities-wrapper .amenities-set + .amenities-set {
    margin-left: 3%;
}

.stay-content-wrapper .amenities-wrapper .amenities-set h4 {
    font-size: 20px;
    text-transform: none;
    font-weight: 700;
}

.stay-content-wrapper .amenities-wrapper .amenities-set ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.stay-content-wrapper .location-wrapper {
    display: flex;
    justify-content: space-between;
}

.stay-content-wrapper .location-wrapper .address-wrapper {
    width: 35%;
    font-size: 18px;
}

.stay-content-wrapper .location-wrapper .address-wrapper .section-title {
    margin-bottom: 20px;
}

.stay-content-wrapper .location-wrapper .map-wrapper {
    width: 60%;
    min-height: 400px;
}

.stay-content-wrapper .location-wrapper .map-wrapper > div {
    height: 100%;
    width: 100%;
}

/* Static map image, swapped for the interactive map on click or hover */
#map-container {
    position: relative;
    height: 100%;
    width: 100%;
}

#map-static {
    position: relative;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

#map-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#map-el {
    display: none;
    height: 100%;
    width: 100%;
}

article.type-dwl_stay {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 0 40px;
    box-sizing: content-box;
}

.hidden-gallery {
    display: none;
}

/* Stay page: reserve bar */
.reserve-bar {
    padding: 15px;
    display: flex;
    border-bottom: 1px solid #dedede;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.reserve-bar-container {
    width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0;
    justify-content: space-between;
}

.reserve-bar .filters-wrapper {
    padding: 0;
    box-shadow: none;
    border: 0;
    width: 60%;
}

.reserve-bar .filters-wrapper .filter-wrapper.guests-field.opened .filter-popup {
    width: min-content;
}

.book-price-wrapper {
    display: flex;
    align-items: center;
}

.book-price-wrapper .price-wrapper {
    padding-right: 10px;
    display: flex;
    position: relative;
}

.book-price-wrapper .book-button-wrapper a {
    background: var(--ewp-primary);
    border-radius: var(--ewp-radius-button);
    color: #fff;
    padding: 8px 15px;
    text-transform: uppercase;
    font-size: 15px;
    display: inline-block;
    text-decoration: none;
}

#price-result {
    cursor: pointer;
}

#price-result > span {
    padding-left: 10px;
}

#price-popup {
    display: none;
    position: absolute;
    background: #fff;
    padding: 20px;
    border-radius: var(--ewp-radius-button);
    border: 1px solid grey;
    bottom: -10px;
    transform: translateY(100%);
    width: 200px;
}

.book-price-wrapper .price-wrapper.opened #price-popup {
    display: block;
}

#price-popup > div {
    display: flex;
    justify-content: space-between;
}

#price-popup > div + div {
    margin-top: 10px;
}

#price-popup .label {
    font-weight: 700;
}

#price-popup .rent-details-trigger {
    text-decoration: underline;
    cursor: pointer;
}

#price-popup .rent-details {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    left: -10px;
    transform: translateX(-100%);
    background: white;
    border: 1px solid grey;
    padding: 20px;
}

#price-popup .rent-details__popover__header {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

#price-popup .rent-details__popover__header > span {
    color: #3f4d55;
    position: absolute;
    right: 0;
    margin: auto;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
}

#price-popup .rent-details .label {
    text-decoration: underline;
    cursor: pointer;
}

#price-popup .rent-details__popover__body {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #DEDEDE;
    border-bottom: 1px solid #DEDEDE;
}

#price-popup .rent-details__popover__body > div {
    display: flex;
    justify-content: space-between;
}

#price-popup .rent-details__popover__footer > div {
    display: flex;
    justify-content: space-between;
}

/* Hospitality Search module */
.date-guests-search-container {
    position: relative;
    z-index: 1001;
    display: flex;
}

.date-guests-search-container .filters-wrapper {
    box-shadow: none;
    border: 0;
    width: 100%;
    gap: 10px;
}

.date-guests-search-container .filter-buttons {
    flex-grow: 1;
    display: flex;
    gap: 10px;
}

.date-guests-search-container .filter-buttons .filter-button {
    color: #383838;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6em;
    border-radius: 4px;
}

.date-guests-search-container .filter-buttons .filter-wrapper {
    flex-grow: 1;
    min-width: 50%;
}

.date-guests-search-container .search-link-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0;
    justify-content: center;
    min-width: max-content;
    max-width: 200px;
}

.date-guests-search-container .search-link-wrapper a {
    background: var(--ewp-primary);
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    line-height: 26px;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.date-guests-search-container .search-link-wrapper a:hover {
    background: var(--ewp-primary);
}

@-webkit-keyframes loading-rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loading-rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.single-dwl_stay .site-main > *, .page-template-template-search .site-main > * {
    margin-bottom: 0;
}

/* Stay page: bedding */
.bedding-configurations-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 20px;
    width: 100%;
    float: none;
    clear: both;
    margin-top: 20px;
}

.bedding-configuration {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #eae9e9;
    border-radius: var(--ewp-radius-card);
}

.bedding-configuration .bedding-bedroom {
    font-size: 20px;
}

.bedding-configuration .bedding-icons {
    padding: 20px 0;
}

.bedding-configuration .bedding-icon + .bedding-icon {
    margin-left: 10px;
}

.bedding-configuration .bedding-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.bedding-configuration .bedding-beds {
    font-size: 14px;
}

/* PowerPack Content Grid stay cards */
.pp-stay-post > a {
    text-decoration: none;
}

.pp-stay-post .stay-card-features {
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
}

.pp-stay-post .stay-card-features .features-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: #3F4D55;
}

.pp-stay-post .stay-card-features .features-list i {
    font-size: 26px;
    color: #B6BCBF;
}

.floor-plan-button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ewp-primary);
    padding: 10px 20px;
    margin-top: 20px;
    color: var(--ewp-primary);
}

.stay-features ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-bottom: 5px;
    padding-left: 0;
}

.stay-features ul li {
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.stay-features ul li:not(:first-child)::before {
    content: "\2022";
}

.stay-features ul li span {
    padding: 0 5px;
}

.stay-features ul li:first-child span {
    padding-left: 0;
}

.stay-features ul li:last-child span {
    padding-right: 0;
}

/* Long Term addon filters */
.dwllta-post-filters-wrapper .filters-wrapper {
    box-shadow: none;
}
