/**
*
* This file contains styles for single listing shortcode - [lfzw_details]
*
**/

:root {
    --lfzw-s-rent-color: #000000;
    --lfzw-s-info-btn-color: #ffffff;
    --lfzw-s-info-btn-bgcolor: #46b449;
    --lfzw-s-info-btn-hcolor: #ffffff;
    --lfzw-s-info-btn-hbgcolor: #02893f;
}

div#lfzw_single_listing_page {
    width: 100%;
    max-width: 100%;
}

.lfzw_single_page_wrapper {
    width: 100%;
    max-width: 100%;
}

.lfzw_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_single_page_back_btn:hover {
    background: #f8f9fa;
    color: #007bff;
}


/* Header Gallery */
.lfzw_sp_header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: flex-start;

}

.lfzw_sp_gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 60%
}

.lfzw_sp_gallery_item {
    height: 195px;
    overflow: hidden;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.lfzw_sp_gallery_item:first-child {
    height: 400px;
    grid-row: 1 / 3;
}

.lfzw_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_sp_gallery_item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#lfzw_sp_map {
    flex: 1;
    min-width: 35%;
    height: 400px;
    border: 1px solid;
}

.lfzw_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_sp_details_sec_left {
    width: 65%;
}

.lfzw_sp_details_sec_left_header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.lfzw_sp_details_sec_left_main h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.lfzw_sp_details_sec_left_header p {
    font-size: 18px;
    color: #777;
}

.lfzw_sp_details_sec_left_main {
    margin-top: 15px;
}

.lfzw_sp_detail_container {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lfzw_sp_detail_item {
    background-color: #f1f1f1;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
}

.lfzw_sp_detail_item span:first-of-type,
.lfzw_sp_detail_item div:first-of-type {
    font-weight: bold;
}

.lfzw_w50 {
    width: 45%;
}

.lfzw_sp_details_sec_right {
    width: 30%;
    text-align: right;
}

.lfzw_sp_details_sec_right h2 {
    font-size: 26px;
    font-weight: bold;
    color: var(--lfzw-s-rent-color);
}

.lfzw_sp_details_sec_right p {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

#lfzw_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-s-info-btn-color);
    background-color: var(--lfzw-s-info-btn-bgcolor);
}

#lfzw_sp_info_btn:hover {
    color: var(--lfzw-s-info-btn-hcolor);
    background-color: var(--lfzw-s-info-btn-hbgcolor);
}

.lfzw-sp-icons {
    height: 24px;
    width: 24px;
    margin-right: 0.5rem;
    color: #555;
}

.lfzw-share-buttons-wrapper a {
    text-decoration: none;
}

/* Full Screen Gallery */
.lfzw_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_gallery_close_pp {
    position: absolute;
    right: 20px;
    color: #fff;
    top: 10px;
    font-weight: bold;
    font-size: 25px;
    cursor: pointer;
}

.lfzw_sp_fs_gallery_item {
    visibility: hidden;
    transition: all 0.3s;
    opacity: 0;
    max-width: 100%;
}

.lfzw_sp_fs_gallery_item.lfzw_sp_fs_current {
    visibility: visible;
    opacity: 1;
}

.lfzw_sp_fs_gallery_item img {
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 100%;
}

.lfzw_sp_fs_gallery #lfzw_gal_prev,
.lfzw_sp_fs_gallery #lfzw_gal_next {
    color: #fff;
    font-size: 70px;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 70px;
    line-height: 1;
    margin: auto;
    cursor: pointer;
}

.lfzw_sp_fs_gallery #lfzw_gal_prev {
    left: 7px;
}

.lfzw_sp_fs_gallery #lfzw_gal_next {
    right: 7px;
}

@media (max-width: 1024px) {
    .lfzw_sp_header {
        flex-wrap: wrap;
    }

    .lfzw_sp_gallery,
    #lfzw_sp_map {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .lfzw_sp_gallery {
        grid-template-columns: 1fr;
    }

    .lfzw_sp_gallery_item:first-child {
        height: 300px;
        grid-row: auto;
    }

    .lfzw_sp_details_sec {
        flex-direction: column;
        padding: 15px;
    }

    .lfzw_sp_details_sec_left,
    .lfzw_sp_details_sec_right {
        width: 100%;
        text-align: left;
    }

    .lfzw_sp_details_sec_right {
        margin-top: 15px;
    }

    #lfzw_sp_apply_btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .lfzw_sp_gallery_item {
        height: 150px;
    }

    .lfzw_sp_gallery_item:first-child {
        height: 250px;
    }
}
