/*
 * WF Property Listing Public Stylesheet
 */
.wf-property-layout-wrapper h1, .wf-property-layout-wrapper h2, td, th, .wf-cal-month-year {
    font-family: 'Quattrocento';
}

p, span, li, a {
        font-family: 'Quattrocento Sans';
}

 .wf-property-details-section h1 {
    font-weight: 600;
    font-size: 3rem;
}
.wf-property-layout-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.wf-property-details-section {
    box-shadow: 0px 0px 10px 0px #b7b7a08a;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    margin-bottom: 2rem;
    background-color: #263637;
    color: #cac8a9;
}

.wf-property-details-category {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.1rem;
    /* color: #444; */
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.wf-property-header-details {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.wf_property.type-wf_property {
    margin-top: 40px;
}

.wf-property-details-section.description p {
    font-size: 1.1rem;
}

.wf-property-listing-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wf-property-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}

.wf-property-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wf-property-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wf-property-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.wf-property-details {
    padding: 15px;
}

.wf-property-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.wf-property-excerpt p {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: #555;
}

.wf-property-price {
    font-weight: bold;
    color: #27ae60;
}

/* Styles for single property page overview */
.wf-property-details {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}

/*
 * Booking Form and Notice Styles
 */

.wf-booking-notice.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wf-booking-form-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 25px;
    background-color: #263637;
    color: #cac8a9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Quattrocento Sans';
}

#wf-booking-form .form-row {
    margin-bottom: 15px;
}

#wf-booking-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Quattrocento Sans';
}

#wf-booking-form input[type="text"],
#wf-booking-form input[type="email"],
#wf-booking-form input[type="date"],
#wf-booking-form input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-row-flex {
    display: flex;
    gap: 20px;
}

.form-row-flex .form-row {
    flex: 1;
}

#wf-booking-form button[type="submit"] {
    background-color: #cac8a9;
    color: #263637;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    font-weight: 700;
}

#wf-booking-form button[type="submit"]:hover {
    background-color: #e2e1ce;
}

/*
 * Availability Calendar Styles
 */

.wf-availability-calendar-wrapper {
    /* background-color: #fff;
    border: 1px solid #eee; */
    /* padding: 20px; */
    margin-top: 30px;
    border-radius: 5px;
}

.wf-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wf-calendar-month .wf-cal-month-year {
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.wf-calendar-header .wf-cal-nav {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
}

.wf-calendar-header .wf-cal-nav:hover {
    color: inherit;
}

/* --- THE NEW VISUALS ARE HERE --- */
.wf-availability-calendar-wrapper table.wf-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-spacing: 0;
    border: none;
}

.wf-availability-calendar-wrapper table.wf-calendar th {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9em;
    /* color: #555; */
    border: none;
}

.wf-availability-calendar-wrapper table.wf-calendar td {
    text-align: center;
    padding: 0;
    font-size: 1rem;
    height: 40px; /* Adjust height as needed */
    border: 1px solid transparent;
    position: relative;
    /* Default is available */
    /* background-color: #eaffea;  */
    color: #333;
    vertical-align: middle;
}
/* This is a wrapper for the number to help with positioning if needed */
.wf-availability-calendar-wrapper table.wf-calendar td span {
    position: relative;
    z-index: 2;
}

/* Day Statuses */
.wf-availability-calendar-wrapper td.available{
    background-color: #d6f5d6;
}
.wf-availability-calendar-wrapper td.booked,
.wf-availability-calendar-wrapper td.checkincheckout {
    background-color: #ffc0bd;
}

.wf-availability-calendar-wrapper td.checkin {
    background: linear-gradient(to top left, #ffc0bd 50%, #d6f5d6 50%);
}

.wf-availability-calendar-wrapper td.checkout {
    background: linear-gradient(to bottom right, #ffc0bd 50%, #d6f5d6 50%);
}

/* Past days get a muted, hatched look */
.wf-availability-calendar-wrapper td.past {
    color: #ccc;
    background-image: linear-gradient(135deg, #f9f9f9 25%, transparent 25%, transparent 50%, #f9f9f9 50%, #f9f9f9 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    background-color: #fff;
    pointer-events: none;
}

/* Blank cells in the calendar */
.wf-availability-calendar-wrapper td:empty {
    background: transparent;
    border-color: transparent;
}
/* --- END OF NEW VISUALS --- */


/* Legend should also be updated */
.wf-calendar-legend .legend-item.available::before {
    background-color: #d6f5d6;
}
.wf-calendar-legend .legend-item.booked::before {
    background-color: #ffc0bd;
}
.wf-calendar-legend .legend-item::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 1px solid #ddd;
    margin-right: 5px;
    vertical-align: middle;
}

/*
table.wf-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table.wf-calendar th,
table.wf-calendar td {
    text-align: center;
    padding: 6px;
    border: 1px solid #f5f5f5;
    background-color: #fff;
}

table.wf-calendar th {
    background-color: #f9f9f9;
    font-weight: bold;
}

table.wf-calendar td {
    height: 50px;
    vertical-align: middle;
}

table.wf-calendar td.booked {
    background-color: #dc3232 !important;
    color: white;
    text-decoration: line-through;
    opacity: 0.7;
}

table.wf-calendar td.past {
    color: #aaa;
}

.wf-calendar-legend {
    margin-top: 15px;
    text-align: right;
}

.wf-calendar-legend .legend-item {
    display: inline-block;
    margin-left: 15px;
    font-size: 0.9em;
}

.wf-calendar-legend .legend-item.available::before {
    background-color: #fff;
}

.wf-calendar-legend .legend-item.booked::before {
    background-color: #dc3232;
    opacity: 0.7;
}

table.wf-calendar tbody>tr:nth-child(odd)>td, table.wf-calendar tbody>tr:nth-child(odd)>th{
    background-color: #fff;
}
*/
/*
 * Property Gallery Styles
 */
/* .wf-property-gallery-wrapper {
    margin-bottom: 30px;
}

.wf-property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.wf-property-gallery .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
} */

/*
 * NEW: Advanced Gallery Grid & Lightbox Styles
 */

.wf-gallery-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 8px;
    margin-bottom: 30px;
    height: 450px; /* Adjust height as needed */
    border-radius: 12px;
    overflow: hidden;
}

.wf-gallery-grid-layout .gallery-item {
    position: relative;
    overflow: hidden;
}

.wf-gallery-grid-layout .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wf-gallery-grid-layout .gallery-item a:hover img {
    transform: scale(1.05);
}

.wf-gallery-grid-layout .main-image {
    grid-row: 1 / 3;
}

.wf-gallery-grid-layout .side-images {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 450px;
}

.gallery-item.has-overlay .more-images-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    margin: 10px;
    border-radius: 8px;
    font-weight: bold;
    pointer-events: none; /* Allows click-through */
}

/* Lightbox Styles */
#wf-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wf-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.wf-lightbox-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.wf-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    max-height: 85vh; /* Limit image height */
}

.wf-lightbox-close,
.wf-lightbox-prev,
.wf-lightbox-next,
.wf-lightbox-counter {
    position: absolute;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.wf-lightbox-close {
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
}

.wf-lightbox-prev,
.wf-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    padding: 10px;
    user-select: none;
}

.wf-lightbox-prev { left: 15px; }
.wf-lightbox-next { right: 15px; }

.wf-lightbox-counter {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
}


/*
 * Dual Calendar & AJAX Styles
 */

#wf-calendar-container {
    position: relative;
}

#wf-calendar-container.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.8); */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    z-index: 10;
}

.wf-dual-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.wf-cal-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/*
 * Advanced Amenities Styles
 */
.wf-amenities-section {
    margin-top: 20px;
}
.amenity-group {
    margin-bottom: 15px;
}
.wf-amenities-section .amenity-group h4 {
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-size: 1.5rem;
    font-family: 'Quattrocento';
    font-weight: 600;
    color: inherit;
}
.amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.amenity-list li {
    padding: 5px;
    font-size: 1.2rem;
}
.amenity-list li i {
    margin-right: 8px;
    width: 20px; /* Ensures alignment */
    text-align: center;
    color: #555;
}

/*
 * Extra Property Details & Map Styles
 */
.wf-property-extra-details {
    margin-top: 30px;
}

.policy-section, .map-section {
    margin-bottom: 30px;
}

.wf-map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.wf-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* External Book Now Button */
.wf-booking-form-wrapper .wf-book-now-button {
    display: block;
    background-color: #cac8a9; /* A different color to stand out */
    padding: 12px 20px;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    font-size: 1.3em;
    text-align: center;
    text-decoration: none;
    margin-bottom: 20px;
}
.wf-book-now-button:hover {
    background-color: #e2e1ce;
    color: white;
}

.or-divider {
    text-align: center;
    margin: -10px auto 20px;
    line-height: 1;
    color: #888;
}
.or-divider span {
    /* background: #f9f9f9; */
    padding: 0 10px;
}

/*
 * Step 18: Two-Column Sticky Layout
 */

.wf-property-layout-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    align-items: flex-start; /* Important for sticky positioning */
    gap: 30px; /* Space between the two columns */
    margin-top: 30px;
}

.wf-property-main-content {
    flex: 1;
    min-width: 65%; /* Left column takes up ~65% */
}

.wf-property-sidebar {
    flex: 1;
    min-width: 320px; /* Ensures sidebar doesn't get too squished */
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: -77px; 
    margin-bottom: 30px;
}

/* Responsive: On smaller screens, stack the columns */
@media (max-width: 992px) {
    .wf-property-layout-wrapper {
        flex-direction: column;
    }
    .wf-property-sidebar {
        /* Unset sticky positioning on mobile where it doesn't make sense */
        position: static;
        width: 100%;
    }
}

svg.wf-property-svg-icon {
    height: 30px;
    width: auto;
}

/*
 * Step 22: Property Carousel Styles
 */
.wf-carousel-wrapper {
    position: relative;
    margin: 20px 0;
    padding: 0 40px; /* Make space for the arrows */
}

/* This extra div prevents a "jump" when the slider initializes */
.wf-property-card-wrapper {
    padding: 0px;
}

.wf-property-card {
    /* background: #263637; */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.wf-property-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.wf-property-card .card-link {
    text-decoration: none;
    color: inherit;
}

.wf-property-card .card-image {
    height: 300px;
}
.wf-property-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wf-property-card .placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

.wf-property-card .card-content {
    padding: 15px;
    color: #263637;
    font-family: 'Quattrocento';
}
.card-details .card-detail-item {
    font-family: 'Quattrocento';
}

.wf-property-card .card-title {
    margin: 0 0 8px;
    font-size: 2.3em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Quattrocento';
}

.wf-property-card .card-property-type {
    /* color: #555; */
    font-size: 1.3em;
    margin-bottom: 12px;
}
.wf-property-card .card-property-type i {
    margin-right: 5px;
}

.wf-property-card .card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* color: #333; */
    font-size: 1.3em;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    justify-content: center;
}
.wf-property-card .card-detail-item i {
    margin-right: 5px;
    color: #0073aa;
}

/* Slick Carousel Arrow Styling */
.wf-carousel-wrapper .slick-prev,
.wf-carousel-wrapper .slick-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.wf-carousel-wrapper .slick-prev:before,
.wf-carousel-wrapper .slick-next:before {
    content: ''; /* Hide the default arrow */
}
.wf-carousel-wrapper .slick-prev i,
.wf-carousel-wrapper .slick-next i {
    color: #333;
    font-size: 16px;
}

.wf-carousel-wrapper .slick-prev { left: -15px; }
.wf-carousel-wrapper .slick-next { right: -15px; }

/*
 * Step 23: Availability Search Form & Results
 */

.wf-search-form-wrapper {
    padding: 0;
    border-radius: 70px;
    margin: 30px 0;
    max-width: 1100px;
}

.wf-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 2px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-input-group {
    display: flex;
    flex-grow: 1;
}

.search-field {
    position: relative;
    padding: 10px 20px 10px 45px; /* Space for icon */
    border-right: 1px solid #ddd;
    flex: 1;
}
.search-field:last-child {
    border-right: none;
}

.search-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    background: transparent;
    cursor: pointer;
}
/* Hide the default date picker icon */
.search-field input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.search-submit-group {
    padding-left: 10px;
}

button.search-submit {
    background-color: #005a87;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
button.search-submit:hover {
    background-color: #004a6e;
}

/* Search Results */
.wf-search-results-wrapper {
    margin-top: 40px;
}

.wf-property-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* Responsive Search Form */
@media (max-width: 768px) {
    .wf-search-form {
        flex-direction: column;
        border-radius: 20px;
    }
    .wf-search-form-wrapper{
        border-radius: 20px;
        padding: 25px;
    }
    .search-input-group {
        flex-direction: column;
        width: 100%;
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .search-field:last-child {
        border-bottom: none;
    }
    .search-submit-group {
        width: 100%;
        padding: 10px 0 0 0;
    }
    .search-submit {
        width: 100%;
    }
}

/*
 * Step 27: Pagination Styles
 */

.wf-pagination {
    margin-top: 40px;
    text-align: center;
}

.wf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.wf-pagination .page-numbers:hover {
    background-color: #f0f0f0;
    color: #005a87;
}

.wf-pagination .page-numbers.current {
    background-color: #005a87;
    color: #fff;
    border-color: #005a87;
    cursor: default;
}

.wf-pagination .page-numbers.dots {
    border: none;
    background: none;
}