/* All Listings Page */
div#lftt_all_listings_page {
    width: 100%;
    max-width: 100%;
}

/* Banner */
.lftt_banner {
    width: 100%;
    max-width: 100%;
    background-color: black;
    border-radius: 10px;
    text-align: center;
}

/* Page Heading */
.lftt_page_hdng {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px;
}

/* Filter Wrapper */
div#lftt_filters_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* width: 100%; */
}

#lftt_filters_wrapper input, #lftt_filters_wrapper select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 160px; 
    /* max-width: 100%; */
  }

  .datepicker {
    display: flex;
    align-items: center;
    /* width: 100%; */
    position: relative;
  }
  
  .datepicker input {
    width: 100%;
    padding-right: 40px;
  }
  
  .datepicker-icon {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    color: #555;
  }
  #lftt_search_btn {
    cursor: pointer;
}

@media (max-width: 768px) {
    #lftt_filters_wrapper input{
        width: 100%;
    }
    #lftt_filters_wrapper select {
        width: 48%; 
      }  
    .datepicker.lftt_select_wrapper {
        width: 48%;
    }
}




/* Maps */
div#lftt_main_map {
    margin: 10px 0;
    border-radius: 10px;
}

/* Map popup */
.lftt-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;
}


.lftt-map-popup-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.lftt-map-popup-info {
    margin-left: 15px;
}

h4.lftt-map-popup-rent {
    font-size: 20px;
    color: #0078d4;
    font-weight: bold;
    margin: 0;
}

button.lftt_sl_details_btn_popup {
    border: none;
    background-color: #0078d4;
    color: #ffffff;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
}

p.lftt-map-popup-specs {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.lftt-map-popup-address {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 480px) {
    .lftt-main-map-popup {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .lftt-map-popup-thumbnail img {
        /* width: 100%; */
        height: auto;
    }

    .lftt-map-popup-info {
        margin-left: 0;
        margin-top: 10px;
    }
}






div#lftt_all_listings_wrapper {
       display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        gap: 15px;
        justify-content: center;
        margin: 10px 0;
}
.lftt_single_listing {
	/* width: calc(33.3% - 10px); */
    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;
}

.lftt_single_listing:hover {
    transform: translateY(-5px);
}

.lftt_sl_image {
    position: relative;
}

.lftt_single_listing .lftt_sl_image img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}

p.lftt_sl_rent {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
}

p.lftt_sl_location {
    align-items: flex-end;
    background: linear-gradient(#0000, #000);
    bottom: 0;
    color: #fff;
    display: flex;
    font-size: 18px;
    font-weight: bold;
    height: 50%;
    left: 0;
    line-height: 1.25;
    margin: 0;
    padding: 10px 10px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    text-shadow: 0 1px 2px #0009;
    width: 100%;
}

.lftt_sl_content {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    flex-grow: 1;
}
p.lftt_sl_address {
    font-size: 16px;
    font-weight: 500;
    padding: 0 10px;
    margin: 5px 0;
}
p.lftt_sl_heading {
    font-size: 14px;
    /* font-weight: 500; */
    padding: 0px 10px;
    margin: 5px 0px;
}
p.lftt_sl_available {
    font-size: 16px;
    font-weight: 500;
    padding: 0px 10px;
    margin: 5px 0px;
}

.lftt_sl_beds_baths_pets {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: bold;
    padding: 0 10px;
    margin: 5px 0;
}

.lftt_icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lftt_icon svg {
    width: 16px;
    height: 16px;
    fill: #000; 
}

  /* Buttons */
  .lftt_sl_buttons {
    display: flex;
    margin-top: auto;
}

.lftt_sl_details_btn, .lftt_sl_apply_btn {
    font-size: 16px;
    text-transform: uppercase;
    padding: 6px 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: 50%;
    text-align: center;
    letter-spacing: 1px;
    border-radius: 0;
}
a.lftt_sl_apply_btn {
    text-decoration: none;
}

        /* Responsive Design */
        @media (max-width: 768px) {
            .lftt_all_listings_wrapper {
                flex-direction: column;
                align-items: center;
            }
            /* .lfpw_single_listing {
                width: 90%;
            } */
            .lftt_sl_buttons {
                flex-direction: row;
            }
            .lftt_sl_details_btn, .lftt_sl_apply_btn {
                width: 50%;
                font-size: 14px;
            }
        }




/* Single listing page */
div#lftt_single_listing_page {
	width: 100%;
	max-width: 100%;
}
.lftt_single_page_wrapper {
    width: 100%;
    max-width: 100%;
}
.lftt_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;
}
.lftt_single_page_back_btn:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* Header Gallery */
.lftt_sp_header{
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
    align-items: flex-start;
}
.lftt_sp_gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 10px;
	/* background: #f1f1f1; */
	/* width: 60%; */
    flex: 1;
    min-width: 60%;
}
.lftt_sp_gallery_item{
	height: 195px;
	overflow: hidden;
	text-align: center;
	position: relative;
	cursor: pointer;
}
.lftt_sp_gallery_item:first-child {
	height: 400px;
	grid-row: 1 / 3;
}
.lftt_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;
}
.lftt_sp_gallery_item img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}
#lftt_sp_map{
	/* display: block; */
    flex: 1;
	min-width: 35%;
	height: 400px;
	border: 1px solid;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .lftt_sp_header {
        flex-wrap: wrap;
    }

    .lftt_sp_gallery,
    #lftt_sp_map {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .lftt_sp_gallery {
        grid-template-columns: 1fr;
    }

    .lftt_sp_gallery_item:first-child {
        height: 300px;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .lftt_sp_gallery_item {
        height: 150px;
    }

    .lftt_sp_gallery_item:first-child {
        height: 250px;
    }
}

/* Detail section single listing page */

.lftt_sp_details_sec {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .lftt_sp_details_sec_left {
    flex: 1;
    padding-right: 20px;
  }

  .lftt_sp_details_sec_left_header h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
  }

  .lftt_sp_details_sec_left_header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
  }

  .lftt_sp_details_headline {
    /* font-size: 18px;
    font-weight: bold; */
    margin-bottom: 15px;
    color: #0056b3;
  }

  .lftt_sp_details_desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
  }

  .lftt_sp_details_sec_right {
    width: 250px;
    text-align: center;
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
  }

  .lftt_sp_details_sec_right h2 {
    font-size: 24px;
     margin-bottom: 10px;
  }

  .lftt_sp_details_sec_right p {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
  }

  #lftt_sp_schedule_btn, #lftt_sp_apply_btn {
    display: block;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
  }

  @media (max-width: 768px) {
    .lftt_sp_details_sec {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* padding: 15px; */
    }

    .lftt_sp_details_sec_right {
        margin-top: 15px; 
    }

    #lftt_sp_schedule_btn, #lftt_sp_apply_btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
}


/* Full Screen Gallery */
.lftt_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;
}
.lftt_gallery_close_pp{
	position: absolute;
    right: 20px;
    color: #fff;
    top: 10px;
    font-weight: bold;
    font-size: 25px;
	cursor: pointer;
}
.lftt_sp_fs_gallery_item{
	visibility: hidden;
    transition: all 0.3s;
    opacity: 0;
    max-width: 100%;
}
.lftt_sp_fs_gallery_item.lftt_sp_fs_current{
	visibility: visible;
	opacity: 1;
}
.lftt_sp_fs_gallery_item img{
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 100%;
}
.lftt_sp_fs_gallery #lftt_gal_prev, .lftt_sp_fs_gallery #lftt_gal_next{
	color: #fff;
    font-size: 70px;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 70px;
    line-height: 1;
    margin: auto;
    cursor: pointer;
}
.lftt_sp_fs_gallery #lftt_gal_prev{
	left: 7px;
}
.lftt_sp_fs_gallery #lftt_gal_next{
	right: 7px;
}




 /* Pagination css */
#lftt_pagination_wrapper {
	width: 100%;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
  }
  #lftt_pagination_wrapper .lftt_pgn_item, #lftt_pagination_wrapper .lftt_pgn_btn {
	height: 35px;
    width: 35px;
    padding: 2px;
    box-shadow: 0 0 3px #aaa;
    margin: 5px;
  }
  #lftt_pagination_wrapper .lftt_pgn_item:hover, #lftt_pagination_wrapper .lftt_pgn_btn:hover {
	  background: rgb(11, 116, 215);
	  cursor: pointer;
	  color: #fff
  }
  #lftt_pagination_wrapper .lftt_pgn_item.active {
	  background: rgb(11, 116, 215);
	  color: #fff;
  }

  /* Datepicker - all listings page */
/* Datepicker*/
.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 {
    padding: 0 !important;
  }
  
  .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;
  }

.lftt-hidden {
  display: none;
}

.lftt-loading {
	text-align: center;
}

.lftt-loading img {
	width: 50px;
}