/**
* Theme Name: Villax Child
* Description: This is a child theme of Villax, generated by Merlin WP.
* Author: <a href="https://wpopal.com/">Opalthemes</a>
* Template: villax
* Version: 1.2.1
*/

/* Basic Gallery Styles */
/* Basic Gallery Styles */
.acf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    /* Responsive grid */
    gap: 20px;
    /* Space between items */
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    /* For positioning the caption inside */
    overflow: hidden;
    /* Ensure the caption stays within bounds */
    border-radius: 8px;
    /* Optional: to give the images rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Optional: subtle shadow */
}

.image-container {
    position: relative;
    /* For positioning the caption over the image */
}

.image-container img {
    width: 100%;
    height: 260px;
    display: block;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
}


/* Caption Styles */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    transform: translateY(100%);
    /* Hide caption by default */
    transition: transform 0.3s ease-in-out;
    /* Smooth reveal */
}

div#\#main-property-img .elementor-element,
div#\#main-property-img a,
div#\#main-property-img a img,
div#\#main-property-img .elementor-widget-container {
    height: 100% !important;
    object-fit: cover;
}

/* Hover Effect: Show Caption */
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    /* Slide the caption into view */
}

/* Optional: Zoom Effect on Image */
.gallery-item:hover .image-container img {
    transform: scale(1.1);
    /* Slight zoom effect */
}

.load-more-gallery {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.load-more-gallery:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.load-more-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.amenities-checkmark-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Default to 3 columns */
    gap: 20px;
    /* Space between the columns */
}

.amenities-checkmark-list li {
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.amenities-checkmark-list li i {
    margin-right: 8px;
    color: #8EB3BA;
    /* Green color for checkmark icon */
    font-size: 20px;
    /* Icon size */
}

.amenities-checkmark-list p {
    margin: 0px;
}

img.lb-image {
    border: 0px !important;
}

.lb-closeContainer {
    position: absolute;
    top: 0%;
    right: 5%;
    z-index: 999999;
}

.lb-outerContainer {
    background: none !important;
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .amenities-checkmark-list {
        grid-template-columns: repeat(3, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .acf-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
        /* Responsive grid */
        gap: 20px;
        /* Space between items */
        margin: 20px 0;
    }

    #content-scroll-y {
        overflow-y: scroll;
        height: 70vh;
        display: flex;
        flex-wrap: nowrap;
    }

    .gallery-caption {
        font-size: 14px;
        /* Smaller text on mobile */
    }

    .amenities-checkmark-list {
        grid-template-columns: repeat(2, 1fr);
        /* 1 column on small screens */
    }

    .search-results-grid-container {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr) !important;
        width: 100%;
    }

    .property-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .property-search-submit button {
        width: 100%;
        height: 54px;
    }

    .search-results-grid .col-md-4 {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }
}

@media (max-width: 480px) {
    .acf-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        /* Responsive grid */
        gap: 20px;
        /* Space between items */
        margin: 20px 0;
    }

    #content-scroll-y {
        overflow-y: scroll;
        height: 70vh;
        display: flex;
        flex-wrap: nowrap;
    }

    .amenities-checkmark-list {
        grid-template-columns: 1fr;
        /* Ensure 1 column for mobile screens */
    }

    .amenities-checkmark-list li {
        font-size: 14px;
        /* Slightly smaller text for mobile */
    }

    .search-results-grid-container {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .property-search-form {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px !important;
    }

    .property-search-submit button {
        width: 100%;
        height: 54px;
    }

    .search-results-grid .col-md-4 {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }
}

/*Property Search Results start*/

.search-results-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.search-results-grid .row {
    margin-right: -15px;
    margin-left: -15px;
}

.search-results-grid .col-md-4 {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 30px;
    /* Add spacing below rows */
}

.search-params {
    margin: 20px 0;
    font-size: 1.1em;
}

.search-params span strong {
    color: #000;
}

.search-params .param {
    margin-right: 15px;
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}

.search-results-grid .property-card {
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.search-results-grid .property-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.search-results-grid .property-details {
    padding: 20px 0px;
    flex-grow: 1;
    /* Ensure equal height details */
    display: flex;
    flex-direction: column;
}

.search-results-grid .property-meta-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.95em;
}

.search-results-grid .property-meta-icons .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000;
    font-size: 18px;
}

.search-results-grid .property-meta-icons i {
    color: #8EB3BA;
    font-size: 18px;
}

.search-results-grid .property-title {
    margin: 0 0 10px;
    font-size: 1.618em;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}

.search-results-grid .property-title a {
    color: #000;
    text-decoration: none;
}

.search-results-grid .property-address {
    color: #A3A3A3;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
    margin-top: auto;
    /* Push address to bottom if content varies */
}

div#page-section {
    padding: 0px;
}

/* Pagination Styles */
#page-section .pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    gap: 10px;
}

#page-section .pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    /* Circle shape */
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    background: #fff;
    /* White background */
}

#page-section .pagination .page-numbers.current,
#page-section .pagination .page-numbers:hover {
    background-color: #8EB3BA;
    /* Theme color */
    color: #fff;
    border-color: #8EB3BA;
}

#page-section .pagination .next.page-numbers,
#page-section .pagination .prev.page-numbers {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
    /* Pill shape for Next/Prev */
}

/* Property Search Results end*/

/* propery search filter start */

.search-filter-container {
    background: #f9f9f9;
    padding: 0px;
    border-radius: 8px;
}

.property-search-shortcode-container {
    /* Optional wrapper styling */
}

.property-search-form {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 0px;
    margin-bottom: 0px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch !important;
    border: 1px solid #f0f0f0;
}

.property-search-field {
    flex: 1;
    min-width: 200px;
}

.property-search-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    /* Bolder label */
    text-transform: uppercase;
    font-size: 0.85em;
    /* Slightly smaller for elegance */
    letter-spacing: 1px;
    color: #1a1a1a;
}

/* Custom Select Wrapper for Pin Icon */
.select-wrapper {
    position: relative;
}

.select-wrapper::before {
    content: "";
    /* Clean previous content if any */
    display: none;
}

/* The Pin Icon */
.select-wrapper .pin-icon {
    position: absolute;
    left: 18px;
    /* More spacing */
    top: 50%;
    transform: translateY(-50%);
    color: #1a1a1a;
    /* Stronger color */
    pointer-events: none;
    z-index: 1;
    font-size: 18px;
}

.property-search-field select {
    width: 100%;
    height: 54px;
    /* Taller, more touch-friendly */
    padding: 0 20px 0 50px;
    /* Left padding for icon */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Smoother corners */
    appearance: none;
    -webkit-appearance: none;
    /* Custom Chevron Arrow */
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%231a1a1a" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 15px center;
    color: #1a1a1a;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-search-field select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    /* Focus ring */
    outline: none;
}

.property-search-field select option {
    color: #A3A3A3;
}

.property-search-field select option:first-child {
    color: #000;
}

/* Guest Counter */
.guest-counter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 6px;
    /* Internal padding */
    background: #fff;
    height: 54px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.guest-counter-wrapper:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.guest-counter-wrapper input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 0;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    -moz-appearance: textfield;
    background: transparent;
    height: 100%;
}

.guest-counter-wrapper input:focus {
    outline: none;
}

.guest-counter-wrapper input::-webkit-outer-spin-button,
.guest-counter-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.guest-btn {
    background: transparent;
    border: 1px solid #f0f0f0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* Circle */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    /* Subtle button shadow */
}

.guest-btn:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: translateY(-1px);
}

.guest-btn:active {
    transform: translateY(0);
}

.property-search-submit {
    flex: 0 0 auto;
}

.property-search-submit button {
    background: #000;
    color: #fff;
    border: none;
    width: 60px;
    padding: 0px;
    /* Slightly larger button */
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Lifted shadow */
}

.property-search-submit button i {
    font-size: 24px;
    background: none;
    color: #fff;
}

.property-search-submit button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

button.guest-btn {
    padding: 0px;
    display: flex;
}

button.guest-btn i {
    background: none;
    color: white;
}


.date-search-field input[type="date"] {
    color: var(--text);
    background-color: #fff;
    border: 1px solid;
    border-color: var(--border);
    max-width: 100%;
    appearance: none;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    border-radius: 0;
    height: 54px;
    padding: 0 20px 0 20px;
}
/* propery search filter end */