/*-------------------------------*\
            WRAPPER
\*-------------------------------*/

.comworks_property_list {
    display: flex;
    flex-wrap: wrap;
}

/*-------------------------------*\
            FILTERS FORM
\*-------------------------------*/

.property_filters_overlay {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background:rgba(0,0,0,0.5);
    z-index: 1;
}
body.filters_opened {
    width: 100%;
}
.property_filters_box {
    display: none;
    z-index: 6;
    max-width: 425px;
    position: absolute;
    margin-top: 10px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    overflow-y: auto;
    top: 0;
    left: 0;
}
.property_filters_box.open {
    display: block;
}
.property_filters_box_inner {
    padding: 25px 25px 0 25px;
}
@media (min-width: 1280px) and (max-width: 1680px) {
    .property_filters_box {
        max-width: 395px;
    }
}
/* Filters box - mobile view */
@media (max-width: 1279px) {
    .property_filters_box {
        width: 100%;
        left: 0;
        top: 0;
        font-size: 0.9em;
        border-radius: 0;
        margin: 0;
        position: fixed;
        z-index: 9999;
        max-width: 100%;
        height: 100vh;
    }
    .property_filters_box_inner {
        padding: 12px 12px 0 12px;
    }
}
.property_filters_box input[name=search],
.property_filters_box select {
    width: 100%;
    height: 40px;
    padding: 0 10px !important;
    margin-top: 20px;
    border-radius: 9px !important;
    color: #222;
    font-size: 0.95em;
}
select[name=price_min],
select[name=price_max] {
    width: calc(50% - 5px);
    margin: 0;
}
select[name=price_min] {
    margin-right: 5px;
}
select[name=price_max] {
    margin-left: 5px;
}
.property_filters_box input[type=submit] {
    font-size: 0.9em;
    padding: 0.8em 1.35em !important;
}
.pill_group,
.filter_price,
.filter_availability {
    border-bottom: 1px solid #d7d7d7;
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
}
.filter_availability {
    padding-top: 0;
}
.pill_group:first-child {
    padding-top: 0;
}
.filter_label {
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    font-size: 0.95em;
    width: 100%;
    margin-bottom: 12px;
}
.exact {
    margin-top: 12px;
    width: 100%;
}
.pill_item {
    display: inline-block;
    position: relative;
    margin: 0 2px;
}
.pill_item input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    appearance: none;
}
.pill_item label {
    border-radius: 2em;
    border: 2px solid #d7d7d7;
    color: #083851;
    display: block;
    padding: 0.4em 0.92em;
    transition: all 0.25s;
}
.pill_item label span {
    font-weight: 600;
    margin-left: 2px;
}
.pill_item input:checked + label {
    border-color: transparent;
    background: #1bbed3;
    color: #fff;
}
.pill_item input:hover {
    cursor: pointer
}
.pill_item:hover label {
    background: #c9e7ff;
    border-color: #1bbed3;
}
.pill_group .exact input,
.pill_group .exact label {
    display: inline-block;
}
.property_filters_actions {
    margin-top: 25px;
    padding: 25px;
    border-top: 1px solid #d7d7d7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    background: #fff;
}
@media (max-width: 1279px) {
    .property_filters_actions {
        padding: 12px;
    }
}
a.hide_filters,
a.reset_filters {
    font-size: 0.95em;
    color: #333;
    margin: 0 5px;
    border-bottom: 1px dotted #ccc;
}
a.property_filters_toggle {
    /*
    display: inline-flex;
    */
    flex-wrap: wrap;
    justify-content: center;
    color: #333;
    padding: 7px 28px;
    z-index: 2;
    position: relative;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #d7d7d7;
    transition: all 0.25s;
    margin: 15px 30px 18px 10px;
    line-height: 1.75;
}
a.property_filters_toggle:hover {
    color: #333;
    background: #defbff;
}
a.property_filters_toggle .property_icon:before {
    color: #1BBED3;
}
.property_filters_form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 500;
    position: relative;
}
.property_filters_form .property_icon {
    margin: 0 6px;
}
.property_filters_form .property_icon:first-child {
    border-left: 1px solid #d7d7d7;
}
.property_filters_form .filters_label {
    margin-right: 5px;
}

/* Availability */

.property_filters_form .arrive,
.property_filters_form .depart,
.property_filters_form .range_date,
.property_filters_form .nights,
.property_filters_form .adults,
.property_filters_form .kids {
    width: calc(50% - 5px);
    height: 40px;
    padding: 0 10px !important;
    border-radius: 9px !important;
    color: #222;
    font-family: comworks-property-list, var(--e-global-typography-primary-font-family), sans-serif !important;
}
.property_filters_form .adults,
.property_filters_form .kids {
    margin-top: 20px;
}
.property_filters_form .arrive,
.property_filters_form .adults {
    margin-right: 5px;
}
.property_filters_form .depart,
.property_filters_form .kids,
.property_filters_form .nights {
    margin-left: 5px;
}
.property_filters_form .range_date {
    width: 100%;
}
.elementor-widget-comworks-property-list:not([calendar_type="range"]) input.range_date,
.elementor-widget-comworks-property-list[calendar_type="range"] input.arrive,
.elementor-widget-comworks-property-list[calendar_type="range"] input.depart,
.elementor-widget-comworks-property-list:not([calendar_type="mixed"]) input.nights,
.elementor-widget-comworks-property-list[calendar_type="mixed"] input.depart {
    display: none;
}
.property_filters_form .flatpickr-wrapper .calendar {
    margin: 0;
    width: 100%;
}

@media (max-width: 1279px) {
    .property_filters_form .arrive,
    .property_filters_form .depart {
        min-width: calc(100% - 12px);
        width: calc(100% - 10px);
        margin: 0;
    }
    .property_filters_form .arrive {
        margin-bottom: 20px;
    }
}

/* Workaround to show placeholder on input[type=date] (mobile flatpickr) */
.property_filters_form input[type=date]:not(:focus):before {
    content: attr(placeholder) !important;
    position: absolute;
    left: 15px;
    color: inherit;
    white-space: nowrap;
}
.property_filters_form input[type=date] {
    position: relative;
    padding-left: 110px !important;
    min-height: 45px;
}

/* Sort */
.sort_wrapper {
    display: flex;
    align-items: center;
    margin: 15px 10px 20px 10px;
}
.sort_wrapper select {
    min-width: 260px;
    background: #fff;
    color: #222;
    height: 40px;
    padding: 0 10px !important;
}
.sort_wrapper label {
    margin-right: 7px;
}

/* No results found*/

.comworks_property_list > p {
    width: 100%;
    font-weight: bold;
    margin: 20px;
}
.elementor-widget-comworks-property-dashboard .comworks_property_list > p {
    margin-left: 0;
}
.comworks_property_list > p:last-child {
    margin-top: 0;
}

/*-------------------------------*\
         FILTERS - ACTIVE
\*-------------------------------*/

@font-face {
	font-family: 'comworks-property-list';
	src: url('../icons/icons.woff2?2') format('woff2');
}
.property_filters_form .filters_label:before {
    font-family: 'comworks-property-list';
    content: "\f1de";
    margin-right: 5px;
}
.property_icon:before {
    font-family: 'comworks-property-list';
}
.property_icon:before {
    margin-right: 5px;
}
.property_icon.search:before {
    content: "\e801";
}
.property_icon.property_category:before {
    content: "\e802";
}
.property_icon.bedrooms:before {
    content: "\f236";
}
.property_icon.bathrooms:before {
    content: "\f2cc";
}
.property_icon.parking:before {
    content: "\f1b9";
}
.property_icon.occupants:before {
    content: "\e800";
}
.property_icon.arrive-depart:before {
    content: "\f4c5";
}
.property_icon.pets:before {
    content: "\f1b0";
}
.property_icon.pool:before {
    content: "\e804";
}
.property_icon.price:before {
    content: "\f155";
}
.property_icon.city:before,
.property_icon.state:before,
.property_icon.country:before {
    content: "\e805";
}

.property_icon.city,
.property_icon.state,
.property_icon.country {
    text-transform: capitalize;
}

/*-------------------------------*\
          LOCATION POSTS
\*-------------------------------*/

a.property_button {
    width: auto;
    font-size: 0.9em;
    display: inline-block;
    padding: 7px 12px;
    color: #fff;
    background: #1bbed3;
    text-transform: uppercase;
    margin: 0 3px;
    outline: none;
}
a.property_button:hover {
    color: #fff;
    background: #aaa395;
}
a.property_button:nth-of-type(2) {
    color: #fff;
    background: #aaa395;
}
a.property_button:nth-of-type(2):hover {
    color: #fff;
    background: #1bbed3;
}

/*-------------------------------*\
            POST BOX
\*-------------------------------*/

.property_post_box {
    display: inline-flex;
    flex-wrap: wrap;
    background: #fff;
    margin: 7px;
    text-align: center;
    overflow: hidden;
}
.property_post_box > *:only-child {
    width: 100% !important;
}
.flickity-ready .property_post_box {
    height: calc(100% - 12px);
}
.property_post_box.opened,
.property_post_box.active,
.property_post_box:hover {
    background: #d2faff;
}
.property_post_box_content {
    padding: 20px;
    font-size: 0.97em;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
}
.property_post_box_content > * {
    width: 100%;
}
/* Truncate Title to 1 Line with ellipsis (...) */
[truncatetitle='true'] .property_title {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.property_title {
    text-transform: uppercase;
    font-size: 1.2em;
}
.property_post_box_content > span {
    margin-bottom: 14px;
}
.property_post_box_content > span:last-child {
    margin-bottom: 0;
}
.property_post_box img {
    width: 100%;
    height: 17vh;
    max-height: 260px;
    min-height: 160px;
    object-fit: cover;
}
.elementor-widget-comworks-property-dashboard .property_post_box img {
    height: 223px;
    max-height: 100%;
}
@media (max-width: 1366px) {
    .property_post_box_content {
        padding: 15px;
    }
}
@media (max-width: 1279px) {
    .property_post_box img {
        height: 100%;
        max-height: 100%;
        min-height: 260px;
    }
}
@media (max-width: 600px) {
    .property_post_box img {
        height: 260px;
    }
}

/*-------------------------------*\
              ICONS
\*-------------------------------*/

.property_details {
    display: flex;
    justify-content: space-around;
    font-weight: 600;
    font-size: 1.15em;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 12px;
}
.property_details span {
    margin-bottom: 5px;
}
.property_details .property_icon:before {
    font-size: 1.12em;
    color: #1bbed3;
    margin-right: 3px;
    font-weight: 400;
}
@media (max-width: 1366px) {
    .property_details {
        font-size: 1em;
    }
}

/*-------------------------------*\
          POST CAROUSEL
\*-------------------------------*/

.comworks_property_list .flickity-viewport {
    width: 100%;
}

/* Make sure dots aren't hidden/cutoff by not having enough room */
[carousel='true'][pagedots='true'] .comworks_property_list .flickity-viewport {
    margin-bottom: 15px;
}

/* Fix Elementor styles overriding Flickity prev/next button padding */
button.flickity-button {
    padding: 1em;
}

/*-------------------------------*\
         GALLERY CAROUSEL
\*-------------------------------*/

.property_carousel {
    position: relative;
    cursor: grab;
}
.property_carousel_inner {
    width: 100%;
    height: 100%;
}
.property_carousel img {
    display: none;
}
.property_carousel img:first-of-type {
    display: block;
}
.property_carousel .flickity-slider img {
    display: block;
}
.property_carousel a.carousel_prev,
.property_carousel a.carousel_next {
    position: absolute;
    color: #1bbed3;
    background: #fff;
    z-index: 5;
    font-size: 1.7em;
    transform: translateY(-50%);
    top: 50%;
    width: 1.2em;
    height: 1.2em;
    line-height: 1;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.25);
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
    cursor: pointer;
    font-family: 'comworks-property-list';
}
a.carousel_prev {
    left: 0;
}
a.carousel_next {
    right: 0;
}
.carousel_prev:before {
    content: "\f104";
    margin-right: 2px;
    margin-bottom: 1px;
}
.carousel_next:before {
    content: "\f105";
    margin-left: 2px;
    margin-bottom: 1px;
}
.property_carousel:hover > a {
    opacity: 1;
    visibility: visible;
}
.property_carousel:hover > a.carousel_prev {
    left: 20px;
}
.property_carousel:hover > a.carousel_next {
    right: 20px;
}
@media (max-width: 1279px) {
    .property_carousel a {
        opacity: 1;
        visibility: visible;
    }
    .property_carousel a.carousel_prev {
        left: 20px;
    }
    .property_carousel a.carousel_next {
        right: 20px;
    }
}

/*-------------------------------*\
         PROPERTY GALLERY
\*-------------------------------*/

.property_gallery {
   display: grid;
   height: 55vh;
   min-height: 400px;
}
.property_gallery a.thumbnail:nth-child(n+6) {
    display: none;
}
.property_gallery a.thumbnail {
    position: relative;
    width: 100%;
}
.property_gallery a.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
}
@media (min-width: 1280px) {
    .property_gallery a.thumbnail:before {
        visibility: hidden;
        opacity: 0;
        transition: all 0.25s;
        content: "\e803 \a0 \a0 Gallery";
        text-transform: uppercase;
        font-weight: 600;
        font-family: 'comworks-property-list', Montserrat, sans-serif;
        font-size: 1.15em;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.45);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
    }
    .property_gallery a.thumbnail:hover:before {
        visibility: visible;
        opacity: 1;
    }
}
.property_gallery a.thumbnail:nth-child(1) {
   grid-row-start: 1;
   grid-column-start: 1;
   grid-row-end: 3;
   grid-column-end: 3;
}
.property_gallery a.thumbnail:nth-child(2) {
   grid-row-start: 1;
   grid-column-start: 3;
   grid-row-end: 2;
   grid-column-end: 4;
}
.property_gallery a.thumbnail:nth-child(3) {
   grid-row-start: 2;
   grid-column-start: 3;
   grid-row-end: 3;
   grid-column-end: 4;
}
.property_gallery.gallery_count_4 a.thumbnail:nth-child(3) {
   grid-row-start: 2;
   grid-column-start: 3;
   grid-row-end: 3;
   grid-column-end: 5;
}
.property_gallery a.thumbnail:nth-child(4) {
   grid-row-start: 1;
   grid-column-start: 4;
   grid-row-end: 2;
   grid-column-end: 5;
}
.property_gallery a.thumbnail:nth-child(5) {
   grid-row-start: 2;
   grid-column-start: 4;
   grid-row-end: 3;
   grid-column-end: 5;
}
.property_gallery .flickity-button,
.property_gallery .flickity-button:hover,
.property_gallery .flickity-button:focus {
    background: transparent;
}
@media (max-width: 1279px) {
    .property_gallery {
        display: block;
        min-height: 100%;
    }
    .property_gallery a.thumbnail img {
        position: static;
    }
    .property_gallery,
    .property_gallery .thumbnail {
        height: 500px;
    }
}
@media (max-width: 767px) {
    .property_gallery,
    .property_gallery .thumbnail {
        height: 400px;
    }
}
@media (max-width: 400px) {
    .property_gallery,
    .property_gallery .thumbnail {
        height: 290px;
    }
}

/*-------------------------------*\
         PROPERTY EVENTS
\*-------------------------------*/

@media (max-width: 1279px) {
    .property_events td {
        float: left;
        clear: both;
        width: 100%;
    }
    .property_events th {
        display: none;
    }
    .property_events .event_date:before,
    .property_events .event_start_time:before,
    .property_events .event_end_time:before {
        margin-right: 5px;
        font-weight: bold;
    }
    .property_events .event_date:before {
        content: "Date:";
    }
    .property_events .event_start_time:before {
        content: "Start Time:";
    }
    .property_events .event_end_time:before {
        content: "End Time:";
    }
}

/*-------------------------------*\
         PROPERTY REVIEWS
\*-------------------------------*/

.elementor-widget-comworks-property-reviews[pagedots="true"] {
    margin-bottom: 40px;
}
.comworks-reviews--align-center {
    text-align: center;
}
.comworks-reviews--align-right {
    text-align: right;
}
.property_review_wrapper {
    width: 100%;
}
.property_review_content p:last-child {
    margin-bottom: 0;
}
.property_review_name:not(:empty) {
    margin-top: 10px;
}

/*-------------------------------*\
         PROPERTY AGENT
\*-------------------------------*/

/* TODO - add as Elementor controls in property dashboard widget */
.property_agent_plans {
    padding: 30px 35px 35px 35px;
    margin: 7px;
    background: #27a7d7;
    color: #fff;
}
.property_agent_plans a,
.property_agent_plans a:hover,
.property_agent_plans h1,
.property_agent_plans h2,
.property_agent_plans h3,
.property_agent_plans h4,
.property_agent_plans h5,
.property_agent_plans h6 {
    color: #fff;
}
.property_agent_plans a {
    border-bottom: 1px dotted;
}
.property_agent_plans p:last-child {
    margin-bottom: 0;
}
@media (max-width: 1279px) {
    .property_agent_plans {
        padding: 25px 15px;
    }
}
.property_agent_plans .btn {
    display: inline-block;
    padding: 10px 15px;
    background: #393E46;
    color: #fff;
    margin: 5px 10px 20px 0;
    border-bottom: none;
}
.property_agent_plans .btn:hover {
    background: #fff;
    color: #393E46;;
}
