:root {
    --lfzw-fr-banner-bgcolor: #000000;
    --lfzw-fr-sub-hdng-font-size: 20px;
    --lfzw-fr-sub-hdng-font-weight: normal;
    --lfzw-fr-sub-hdng-font-color: #ffffff;
    --lfzw-fr-sub-hdng-line-height: 1.5;
    --lfzw-fr-sub-hdng-text-transform: 'none';
    --lfzw-fr-sub-hdng-text-align: center;
    --lfzw-fr-sub-hdng-p-top: 0;
    --lfzw-fr-sub-hdng-p-bottom: 0;
    --lfzw-fr-sub-hdng-p-left: 0;
    --lfzw-fr-sub-hdng-p-right: 0;
    --lfzw-fr-rent-color: #000000;
    --lfzw-fr-rent-bg-color: #ffffff;
    --lfzw-fr-detail-btn-color: #ffffff;
    --lfzw-fr-detail-btn-bgcolor: #46b449;
    --lfzw-fr-detail-btn-hcolor: #ffffff;
    --lfzw-fr-detail-btn-hbgcolor: #02893f;
    --lfzw-fr-s-rent-color: #000000;
    --lfzw-fr-s-info-btn-color: #ffffff;
    --lfzw-fr-s-info-btn-bgcolor: #46b449;
    --lfzw-fr-s-info-btn-hcolor: #ffffff;
    --lfzw-fr-s-info-btn-hbgcolor: #02893f;

}

/* ----- Common ----- */
.lfzw-fr_btn {
    cursor: pointer;
}

.lfzw-fr-hidden {
    display: none;
}

.lfzw-fr-loading {
    text-align: center;
}

.lfzw-fr-loading img {
    width: 50px;
}

.ui-datepicker {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    max-width: 100%;
    text-align: center;
}

.ui-datepicker-header {
    background-color: #2c3e50 !important;
    color: #fff !important;
    font-size: 16px;
    padding: 8px;
    border-radius: 5px 5px 0 0;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    background-color: #fff !important;
    color: #2c3e50 !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background-color: #f0f0f0 !important;
    color: #34495e !important;
}

.ui-datepicker th {
    background-color: #34495e !important;
    color: white !important;
    padding: 6px;
    font-size: 12px;
}

.ui-datepicker-calendar td a {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    color: #2c3e50 !important;
    text-decoration: none;
    border-radius: 4px;
}

.ui-datepicker td a:hover {
    background-color: #2c3e50 !important;
    color: white !important;
}

.ui-datepicker .ui-state-active {
    background-color: #02893f !important;
    color: white !important;
    font-weight: bold;
    border-radius: 5px;
}

/* ----- All listings page ----- */

/* Top banner */
.lfzw-fr_page_sub_hdng {
    font-size: var(--lfzw-fr-sub-hdng-font-size);
    font-weight: var(--lfzw-fr-sub-hdng-font-weight);
    color: var(--lfzw-fr-sub-hdng-font-color);
    line-height: var(--lfzw-fr-sub-hdng-line-height);
    text-transform: var(--lfzw-fr-sub-hdng-text-transform);
    text-align: var(--lfzw-fr-sub-hdng-text-align);
    padding-top: var(--lfzw-fr-sub-hdng-p-top);
    padding-bottom: var(--lfzw-fr-sub-hdng-p-bottom);
    padding-left: var(--lfzw-fr-sub-hdng-p-left);
    padding-right: var(--lfzw-fr-sub-hdng-p-right);
}

.lfzw-fr_banner {
    width: 100%;
    max-width: 100%;
    background-color: var(--lfzw-fr-banner-bgcolor);
    border-radius: 10px;
    text-align: center;
}

.lfzw-fr_page_hdng {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px;
}

#lfzw-fr_filters_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#lfzw-fr_filters_wrapper input,
#lfzw-fr_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-fr_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-fr_main_map {
    margin: 10px 0;
    border-radius: 10px;
}

.lfzw-fr-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-fr-map-popup-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.lfzw-fr-map-popup-info {
    margin-left: 15px;
}

h4.lfzw-fr-map-popup-rent {
    font-size: 20px;
    color: #0078d4;
    font-weight: bold;
    margin: 0;
}

p.lfzw-fr-map-popup-specs {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.lfzw-fr-map-popup-address {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

button.lfzw-fr_sl_details_btn_popup {
    background-color: #0078d4;
    color: #fff;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
}

/* All listings */
div#lfzw-fr_all_listings_page {
    width: 100%;
    max-width: 100%;
}

div#lfzw-fr_all_listings_wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 15px;
    justify-content: center;
    margin: 15px auto;
}

.lfzw-fr_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-fr_single_listing:hover {
    transform: translateY(-5px);
}

/* Image section */
.lfzw-fr_sl_image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.lfzw-fr_sl_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lfzw-fr_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-fr_sl_rent {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 2;
    color: var(--lfzw-fr-rent-color);
    background-color: var(--lfzw-fr-rent-bg-color);
}

.lfzw-fr_sl_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Content */
.lfzw-fr_sl_location {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw-fr_sl_address {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw-fr_sl_heading {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw-fr_sl_available {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw-fr_sl_desc {
    font-size: 14px;
    color: #555;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw-fr_sl_beds_baths_pets {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 0 10px;
    margin: 5px 0;
}

.lfzw-fr_icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lfzw-fr_icon svg,
.lfzw-fr_icon img {
    width: 16px;
    height: 16px;
    fill: #000;
}

/* Buttons */
.lfzw-fr_sl_buttons {
    display: flex;
    margin-top: auto;
}

.lfzw-fr_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-fr-detail-btn-color);
    background-color: var(--lfzw-fr-detail-btn-bgcolor)
}

.lfzw-fr_sl_details_btn:hover {
    color: var(--lfzw-fr-detail-btn-hcolor);
    background-color: var(--lfzw-fr-detail-btn-hbgcolor)
}

a.lfzw-fr_sl_apply_btn {
    text-decoration: none;
}

/* Pagination */
#lfzw-fr_pagination_wrapper {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lfzw-fr_pagination_wrapper .lfzw-fr_pgn_item,
#lfzw-fr_pagination_wrapper .lfzw-fr_pgn_btn {
    height: 35px;
    width: 35px;
    padding: 2px;
    box-shadow: 0 0 3px #aaa;
    margin: 5px;
}

#lfzw-fr_pagination_wrapper .lfzw-fr_pgn_item:hover,
#lfzw-fr_pagination_wrapper .lfzw-fr_pgn_btn:hover {
    background: rgb(11, 116, 215);
    cursor: pointer;
    color: #fff
}

#lfzw-fr_pagination_wrapper .lfzw-fr_pgn_item.active {
    background: rgb(11, 116, 215);
    color: #fff;
}

/* ----- Single listing page ----- */
div#lfzw-fr_single_listing_page {
    width: 100%;
    max-width: 100%;
}

.lfzw-fr_single_page_wrapper {
    width: 100%;
    max-width: 100%;
}

.lfzw-fr_single_page_back_btn {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #007bff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.lfzw-fr_single_page_back_btn:hover {
    background: #f8f9fa;
    color: #007bff;
}


/* Header Gallery */
.lfzw-fr_sp_header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: flex-start;

}

.lfzw-fr_sp_gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 60%
}

.lfzw-fr_sp_gallery_item {
    height: 195px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.lfzw-fr_sp_gallery_item:first-child {
    height: 400px;
    grid-row: 1 / 3;
}

.lfzw-fr_sp_gallery_item span {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    color: #000;
    font-size: 14px;
    border-radius: 4px;
    margin: 8px;
    padding: 6px 10px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    font-weight: bold;
}

.lfzw-fr_sp_gallery_item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#lfzw-fr_sp_map {
    flex: 1;
    min-width: 35%;
    height: 400px;
    border: 1px solid;
}

.lfzw-fr_sp_details_sec {
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.lfzw-fr_sp_details_sec_left {
    width: 65%;
}

.lfzw-fr_sp_details_sec_left_header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.lfzw-fr_sp_details_sec_left_main h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.lfzw-fr_sp_details_sec_left_header p {
    font-size: 18px;
    color: #777;
}

.lfzw-fr_sp_details_sec_left_main {
    margin-top: 15px;
}

.lfzw-fr_sp_detail_container {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lfzw-fr_sp_detail_item {
    background-color: #f1f1f1;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
}

.lfzw-fr_sp_detail_item span:first-of-type,
.lfzw-fr_sp_detail_item div:first-of-type {
    font-weight: bold;
}

.lfzw-fr_w50 {
    width: 45%;
}

.lfzw-fr_sp_details_sec_right {
    width: 30%;
    text-align: right;
}

.lfzw-fr_sp_details_sec_right h2 {
    font-size: 26px;
    font-weight: bold;
    color: var(--lfzw-fr-s-rent-color);
}

.lfzw-fr_sp_details_sec_right p {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

#lfzw-fr_sp_info_btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
    color: var(--lfzw-fr-s-info-btn-color);
    background-color: var(--lfzw-fr-s-info-btn-bgcolor);
}

#lfzw-fr_sp_info_btn:hover {
    color: var(--lfzw-fr-s-info-btn-hcolor);
    background-color: var(--lfzw-fr-s-info-btn-hbgcolor);
}

.lfzw-fr-sp-icons {
    height: 24px;
    width: 24px;
    margin-right: 0.5rem;
    color: #555;
}

.lfzw-fr-share-buttons-wrapper a {
    text-decoration: none;
}

/* Full Screen Gallery */
.lfzw-fr_sp_fs_gallery {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    margin: auto;
    text-align: center;
}

.lfzw-fr_gallery_close_pp {
    position: absolute;
    right: 20px;
    color: #fff;
    top: 10px;
    font-weight: bold;
    font-size: 25px;
    cursor: pointer;
}

.lfzw-fr_sp_fs_gallery_item {
    visibility: hidden;
    transition: all 0.3s;
    opacity: 0;
    max-width: 100%;
}

.lfzw-fr_sp_fs_gallery_item.lfzw-fr_sp_fs_current {
    visibility: visible;
    opacity: 1;
}

.lfzw-fr_sp_fs_gallery_item img {
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 100%;
}

.lfzw-fr_sp_fs_gallery #lfzw-fr_gal_prev,
.lfzw-fr_sp_fs_gallery #lfzw-fr_gal_next {
    color: #fff;
    font-size: 70px;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 70px;
    line-height: 1;
    margin: auto;
    cursor: pointer;
}

.lfzw-fr_sp_fs_gallery #lfzw-fr_gal_prev {
    left: 7px;
}

.lfzw-fr_sp_fs_gallery #lfzw-fr_gal_next {
    right: 7px;
}

.lfzw-fr_single_listing {
    width: 18%;
}
@media (max-width: 768px) {
    .lfzw-fr_single_listing {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #lfzw-fr_filters_wrapper input {
        width: 100%;
    }

    #lfzw-fr_filters_wrapper select {
        width: 48%;
    }

    .datepicker.lfzw-fr_select_wrapper {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .lfzw-fr-main-map-popup {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .lfzw-fr-map-popup-thumbnail img {
        height: auto;
    }

    .lfzw-fr-map-popup-info {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .lfzw-fr_all_listings_wrapper {
        flex-direction: column;
        align-items: center;
    }

    .lfzw-fr_sl_buttons {
        flex-direction: row;
    }

    .lfzw-fr_sl_details_btn,
    .lfzw-fr_sl_apply_btn {
        width: 50%;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .lfzw-fr_sp_header {
        flex-wrap: wrap;
    }

    .lfzw-fr_sp_gallery,
    #lfzw-fr_sp_map {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .lfzw-fr_sp_gallery {
        grid-template-columns: 1fr;
    }

    .lfzw-fr_sp_gallery_item:first-child {
        height: 300px;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .lfzw-fr_sp_gallery_item {
        height: 150px;
    }

    .lfzw-fr_sp_gallery_item:first-child {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .lfzw-fr_sp_details_sec {
        flex-direction: column;
        padding: 15px;
    }

    .lfzw-fr_sp_details_sec_left,
    .lfzw-fr_sp_details_sec_right {
        width: 100%;
        text-align: left;
    }

    .lfzw-fr_sp_details_sec_right {
        margin-top: 15px;
    }

    #lfzw-fr_sp_apply_btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
}