/**** Property Shared Style ****/

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* รองรับทั้ง property-item และ property-card */
.property-item,
.property-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-item:hover,
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

/**** Thumbnail ****/

.property-item > a,
.property-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
}

.property-item img,
.property-card img,
.property-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.property-item:hover img,
.property-card:hover img {
    transform: scale(1.04);
}

.property-thumb-placeholder {
    width: 100%;
    height: 260px;
    background: #eeeeee;
}

/**** Content ****/

.property-content {
    padding: 0;
}

.property-item h3,
.property-title {
    margin: 10px 0 5px;
    font-size: 25px;
    line-height: 1.25;
    padding: 20px 10px 0;
    min-height: 95px;
    font-weight: 600;
}

.property-item h3 a,
.property-title a {
    color: #333333;
    text-decoration: none;
}

.property-item h3 a:hover,
.property-title a:hover {
    color: #005bbb;
}

/**** Property Info: Location / Beds / Baths ****/

.property-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 10px 12px 30px;
    margin-top: 10px;
    font-size: 14px;
    color: #333333;
}

.property-info > div,
.property-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
}

/**** Icons ****/

.location-icon,
.beds-icon,
.baths-icon,
.property-icon,
.property-icon-location,
.property-icon-beds,
.property-icon-baths {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.location-icon,
.property-icon-location {
    background-image: url('/wp-content/uploads/2026/05/ico-l-pin.svg');
}

.beds-icon,
.property-icon-beds {
    background-image: url('/wp-content/uploads/2026/05/ico-l-bed.svg');
}

.baths-icon,
.property-icon-baths {
    background-image: url('/wp-content/uploads/2026/05/ico-l-bath.svg');
}

/**** Filter: Properties List Page ****/

.properties-list-wrapper {
    width: 100%;
}

.properties-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.properties-filter-select {
    min-width: 220px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 15px;
    outline: none;
    width: 85%;
}

.properties-filter-select:focus {
    border-color: #005bbb;
}

.properties-filter-button {
    height: 46px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background-color: #333333;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.properties-filter-button:hover {
    background-color: #005bbb;
}

.properties-filter-reset {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    background-color: #f2f2f2;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
}

.properties-filter-reset:hover {
    background-color: #e4e4e4;
    color: #333333;
}

.properties-not-found {
    margin-top: 24px;
}

/**** Home Loop Carousel Fix ****/

.elementor-widget-loop-carousel .property-card,
.elementor-widget-loop-carousel .property-item {
    height: 100%;
    margin-bottom: 0;
}

.elementor-widget-loop-carousel .property-card img,
.elementor-widget-loop-carousel .property-item img,
.elementor-widget-loop-carousel .property-thumb img {
    height: 360px;
    object-fit: cover;
}

.elementor-widget-loop-carousel .property-title,
.elementor-widget-loop-carousel .property-item h3 {
    font-size: 22px;
    min-height: 85px;
}

.elementor-widget-loop-carousel .property-info {
    padding-bottom: 24px;
}
.property_type{
    display: none;
}
/**** Responsive ****/

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-item img,
    .property-card img,
    .property-thumb img,
    .property-thumb-placeholder {
        height: 230px;
    }
    .properties-filter-select {
        width: 75%;
    }
}

@media (max-width: 767px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-item,
    .property-card {
        margin-bottom: 20px;
    }

    .property-item img,
    .property-card img,
    .property-thumb img,
    .property-thumb-placeholder {
        height: 220px;
    }

    .property-item h3,
    .property-title {
        font-size: 21px;
        min-height: auto;
        padding: 18px 12px 0;
    }

    .property-info {
        justify-content: center;
        padding-bottom: 24px;
    }

    .properties-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .properties-filter-select,
    .properties-filter-button,
    .properties-filter-reset {
        width: 100%;
        min-width: 100%;
    }
}