/**
 * Updated Residential Home Carousel CSS
 * Uses residential colors with commercial features
 * Save as: assets/css/residentialhomecarousel.css
 */

/* Reset and base styles */
.residentialhomecarousel-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main container */
.residentialhomecarousel-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: 'Arial', sans-serif;
}

/* Title and view all button */
.residentialhomecarousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.residentialhomecarousel-title {
    font-family: Lufga;
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0%;
    text-align: center;
    text-transform: capitalize;
    color: #000000; /* Residential light theme color */
}

.residentialhomecarousel-view-all {
    display: inline-block;
    width: 165px;
    height: 56px;
    padding: 16px 24px;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #E5E5EA;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-family: Lufga;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0%;
    transition: all 0.3s ease;
}

.residentialhomecarousel-view-all:hover {
    background-color: #0D0D0F;
    color: #ffffff;
}

/* Carousel */
.residentialhomecarousel-carousel {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
}

/* Property card */
.residentialhomecarousel-card {
    width: 402.67px !important;
    height: 408px !important;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 10px;
    background-color: #fff; /* Residential light theme */
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background-color 0.3s ease; /* Restored transition effect */
    outline: none !important; /* Remove focus outline */
    -webkit-tap-highlight-color: transparent;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Restored hover effect for card background */
.residentialhomecarousel-card:hover {
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Add these to remove black border on focus/active */
.residentialhomecarousel-card:focus,
.residentialhomecarousel-card:active {
    outline: none !important;
}

/* If the card is an anchor tag */
a.residentialhomecarousel-card {
    outline: none !important;
    text-decoration: none;
}

/* Slick slide elements should also have no outline */
.slick-slide, 
.slick-slide > div {
    outline: none !important;
}

/* Image */
.residentialhomecarousel-image {
    width: 100%;
    height: 204px;
    overflow: hidden;
    position: relative;
}

.residentialhomecarousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Restored transition effect */
}

/* Restored image scale effect on hover */
.residentialhomecarousel-card:hover .residentialhomecarousel-image img {
    transform: scale(1.05);
}

/* Details */
.residentialhomecarousel-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: transparent;
}

/* Title */
.residentialhomecarousel-details h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333; /* Residential color */
    line-height: 1.3;
}

/* Address */
.residentialhomecarousel-address {
    font-size: 14px;
    color: #666; /* Residential color */
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features */
.residentialhomecarousel-features {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    gap: 25px;
}

.residentialhomecarousel-beds,
.residentialhomecarousel-baths,
.residentialhomecarousel-sqft {
    font-size: 14px;
    color: #555; /* Residential color */
    display: flex;
    align-items: center;
}

.residentialhomecarousel-features i {
    margin-right: 5px;
    color: #555; /* Residential color */
}

/* Price section */
.residentialhomecarousel-price-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.residentialhomecarousel-price-divider {
    height: 1px;
    background-color: #E5E5EA; /* Updated to match border color */
    margin: 15px 0;
    width: 100%;
}

.residentialhomecarousel-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.residentialhomecarousel-price {
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 2%;
}

.residentialhomecarousel-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: #f8f8f8; /* Residential color */
    border: 1px solid #E5E5EA; /* Updated to match border color */
    border-radius: 20px;
    font-size: 13px;
    color: #555; /* Residential color */
    font-weight: 500;
}

/* Navigation */
.residentialhomecarousel-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Dots */
.residentialhomecarousel-dots {
    display: flex;
}

.residentialhomecarousel-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ccc; /* Residential color */
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.residentialhomecarousel-dots .dot.active {
    background-color: #333; /* Residential color */
}

/* Arrows */
.residentialhomecarousel-arrows {
    display: flex;
    gap: 10px;
}

.residentialhomecarousel-prev,
.residentialhomecarousel-next {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* Residential color */
    border: 1px solid #E5E5EA; /* Updated to match border color */
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555; /* Residential color */
}

.residentialhomecarousel-prev:hover,
.residentialhomecarousel-next:hover {
    background-color: #f8f8f8; /* Residential color */
}

/* No results message */
.residentialhomecarousel-no-results {
    color: #333; /* Residential color */
    text-align: center;
    padding: 30px;
    width: 100%;
}

/* Slick fixes */
.slick-track {
    display: flex !important;
    margin-left: 0;
}

.slick-slide {
    height: inherit !important;
    display: flex !important;
    justify-content: center;
    align-items: stretch;
}

.slick-slide > div {
    width: 100%;
    display: flex !important;
    align-items: stretch;
}

/* Responsive styles */
@media (max-width: 1280px) {
    .residentialhomecarousel-card {
        width: 340px !important;
        height: auto !important;
    }
    
    .residentialhomecarousel-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .residentialhomecarousel-header {
        flex-direction: column;
        align-items: center;
    }
    
    .residentialhomecarousel-view-all {
        margin-top: 15px;
    }
    
    .residentialhomecarousel-card {
        width: 100% !important;
    }
    
    .residentialhomecarousel-image {
        height: 220px;
    }
    
    .residentialhomecarousel-features {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    
    .residentialhomecarousel-nav-container {
        flex-direction: column;
        gap: 20px;
    }
}