/**
*
* This file contains styles for all listings shortcode - [lfzw_listings]
*
**/

:root {
    --lfzw-banner-bgcolor: #000000;
    --lfzw-sub-hdng-font-size: 20px;
    --lfzw-sub-hdng-font-weight: normal;
    --lfzw-sub-hdng-font-color: #ffffff;
    --lfzw-sub-hdng-line-height: 1.5;
    --lfzw-sub-hdng-text-transform: 'none';
    --lfzw-sub-hdng-text-align: center;
    --lfzw-sub-hdng-p-top: 0;
    --lfzw-sub-hdng-p-bottom: 0;
    --lfzw-sub-hdng-p-left: 0;
    --lfzw-sub-hdng-p-right: 0;
    --lfzw-rent-color: #000000;
    --lfzw-rent-bg-color: #ffffff;
    --lfzw-detail-btn-color: #ffffff;
    --lfzw-detail-btn-bgcolor: #46b449;
    --lfzw-detail-btn-hcolor: #ffffff;
    --lfzw-detail-btn-hbgcolor: #02893f;
}

/* Top banner */
.lfzw_page_sub_hdng {
    font-size: var(--lfzw-sub-hdng-font-size);
    font-weight: var(--lfzw-sub-hdng-font-weight);
    color: var(--lfzw-sub-hdng-font-color);
    line-height: var(--lfzw-sub-hdng-line-height);
    text-transform: var(--lfzw-sub-hdng-text-transform);
    text-align: var(--lfzw-sub-hdng-text-align);
    padding-top: var(--lfzw-sub-hdng-p-top);
    padding-bottom: var(--lfzw-sub-hdng-p-bottom);
    padding-left: var(--lfzw-sub-hdng-p-left);
    padding-right: var(--lfzw-sub-hdng-p-right);
}

.lfzw_banner {
    width: 100%;
    max-width: 100%;
    background-color: var(--lfzw-banner-bgcolor);
    border-radius: 10px;
    text-align: center;
}

.lfzw_page_hdng {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px;
}

#lfzw_filters_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#lfzw_filters_wrapper input,
#lfzw_filters_wrapper select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 160px;
    max-width: 100%;
}

.datepicker {
    position: relative;
    display: flex;
    align-items: center;
}

.lfzw_move_in_fltr {
    width: 100%;
    padding-right: 40px;
}

.datepicker-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

/* Map */
div#lfzw_main_map {
    margin: 10px 0;
    border-radius: 10px;
}

.lfzw-main-map-popup {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: 400px;
    border-left: 5px solid #0078d4;
}

.lfzw-map-popup-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.lfzw-map-popup-info {
    margin-left: 15px;
}

h4.lfzw-map-popup-rent {
    font-size: 20px;
    color: #0078d4;
    font-weight: bold;
    margin: 0;
}

p.lfzw-map-popup-specs {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.lfzw-map-popup-address {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

button.lfzw_sl_details_btn_popup {
    background-color: #0078d4;
    color: #fff;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
}

/* All listings */
div#lfzw_all_listings_page {
    width: 100%;
    max-width: 100%;
}

div#lfzw_all_listings_wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 15px;
    justify-content: center;
    margin: 15px auto;
}

.lfzw_single_listing {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 300px;
    display: flex;
    flex-direction: column;
}

.lfzw_single_listing:hover {
    transform: translateY(-5px);
}

/* Image section */
.lfzw_sl_image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.lfzw_sl_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lfzw_sl_image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

p.lfzw_sl_rent {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 2;
    color: var(--lfzw-rent-color);
    background-color: var(--lfzw-rent-bg-color);
}

.lfzw_sl_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Content */
.lfzw_sl_location {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw_sl_address {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw_sl_heading {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw_sl_available {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw_sl_desc {
    font-size: 14px;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw_sl_beds_baths_pets {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw_icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lfzw_icon svg,
.lfzw_icon img {
    width: 16px;
    height: 16px;
    fill: #000;
}

/* Buttons */
.lfzw_sl_buttons {
    display: flex;
    margin-top: auto;
}

.lfzw_sl_details_btn {
    font-size: 18px;
    text-transform: uppercase;
    padding: 8px 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
    border-radius: 0;
    color: var(--lfzw-detail-btn-color);
    background-color: var(--lfzw-detail-btn-bgcolor)
}

.lfzw_sl_details_btn:hover {
    color: var(--lfzw-detail-btn-hcolor);
    background-color: var(--lfzw-detail-btn-hbgcolor)
}

a.lfzw_sl_apply_btn {
    text-decoration: none;
}

/* Pagination */
#lfzw_pagination_wrapper {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lfzw_pagination_wrapper .lfzw_pgn_item,
#lfzw_pagination_wrapper .lfzw_pgn_btn {
    height: 35px;
    width: 35px;
    padding: 2px;
    box-shadow: 0 0 3px #aaa;
    margin: 5px;
}

#lfzw_pagination_wrapper .lfzw_pgn_item:hover,
#lfzw_pagination_wrapper .lfzw_pgn_btn:hover {
    background: rgb(11, 116, 215);
    cursor: pointer;
    color: #fff
}

#lfzw_pagination_wrapper .lfzw_pgn_item.active {
    background: rgb(11, 116, 215);
    color: #fff;
}

@media (max-width: 768px) {
    #lfzw_filters_wrapper input {
        width: 100%;
    }

    #lfzw_filters_wrapper select {
        width: 48%;
    }

    .datepicker.lfzw_select_wrapper {
        width: 48%;
    }

    .lfzw-main-map-popup {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .lfzw-map-popup-thumbnail img {
        height: auto;
    }

    .lfzw-map-popup-info {
        margin-left: 0;
        margin-top: 10px;
    }

     .lfzw_all_listings_wrapper {
        flex-direction: column;
        align-items: center;
    }

    .lfzw_sl_buttons {
        flex-direction: row;
    }

    .lfzw_sl_details_btn,
    .lfzw_sl_apply_btn {
        width: 50%;
        font-size: 14px;
    }
}

