/* Properties Section Base Styles (Core Carousel Functionality - applies to all devices) */
.properties-section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* Important to hide overflowing carousel items */
}

.properties-section h2 {
    font-size: var(--properties-title-font-size);
    color: var(--properties-title-font-color);
    margin-bottom: 10px;
}

.properties-section .section-subtitle {
    font-size: var(--properties-text-font-size);
    color: var(--properties-text-font-color);
    margin-bottom: 40px;
}

.properties-carousel-wrapper {
    position: relative;
    max-width: 1200px; /* Max width for the carousel area */
    margin: 0 auto;
    overflow: hidden;
    padding: 0 50px; /* Space for carousel navigation buttons */
}

.properties-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding transition */
    will-change: transform; /* Hint for browser optimization */
}

.property-card {
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: calc(100% / var(--carousel-items-per-view)); /* Dynamic width based on JS var */
    box-sizing: border-box;
    padding: 15px; /* Padding within carousel wrapper */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
    margin-right: 20px; /* Space between cards */
}

.property-card:last-child {
    margin-right: 0;
}

.property-image {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.property-info h4 {
    font-size: var(--properties-text-font-size); /* Reusing text font size for card title for now, adjust if needed */
    color: var(--properties-title-font-color);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--properties-text-font-color);
    font-size: var(--properties-text-font-size);
}

.property-details span {
    display: flex;
    align-items: center;
}

.property-details .fas {
    margin-right: 5px;
    color: #007bff; /* Icon color */
}

.property-price {
    font-size: 1.2rem; /* Slightly larger for price */
    font-weight: bold;
    color: var(--properties-title-font-color);
    margin-bottom: 15px;
}

.property-description {
    font-size: var(--properties-text-font-size);
    color: var(--properties-text-font-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-detail {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--properties-button-bg-color);
    color: var(--properties-button-text-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-detail:hover {
    background-color: var(--properties-button-bg-color); /* Maintain hover color, or darken slightly */
    filter: brightness(90%);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.carousel-next {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}