/* Modern Slick Carousel Customizations */
.featured-properties {
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

/* Property Slider Container */
.property-slider-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.property-slider {
    width: 100%;
}

/* Property Card Base Styles - Consistent Heights */
.property-card {
    position: relative;
    padding: 0;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow: hidden;
    border-radius: 12px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* Property image container with overlay */
.property-image-container {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    border-radius: 12px;
}

.property-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 15px 12px 12px;
    opacity: 1;
    transition: all 0.3s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 120px;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.property-title {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    line-height: 1.3;
    /* Modern text truncation with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.3em;
    word-wrap: break-word;
    cursor: help;
    transition: color 0.2s ease;
}

.property-title:hover {
    color: rgba(255, 255, 255, 0.9);
}

.property-location {
    font-size: 0.75rem;
    margin: 0 0 6px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    line-height: 1.3;
    /* Truncate to single line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: help;
    transition: color 0.2s ease;
}

.property-location:hover {
    color: rgba(255, 255, 255, 0.85);
}

.property-location i {
    font-size: 0.8rem;
    margin-right: 4px;
    opacity: 0.9;
}

.property-location {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.property-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    margin: 0;
    flex-shrink: 0;
}

.beds-baths {
    display: flex;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    align-items: center;
    flex-shrink: 0;
}

.beds-baths span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Action Row: Beds/Baths and View Button */
.property-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

/* Consistent View Property Button */
.btn-view {
    background-color: #a51c36;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.65rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-view:hover {
    background-color: #7c1427;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: white;
    text-decoration: none;
}

/* Slick carousel navigation customization */
.slick-prev, 
.slick-next {
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(165, 28, 54, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-prev .atp-slick-arrow-icon,
.slick-next .atp-slick-arrow-icon,
.slick-prev i,
.slick-next i {
    display: block;
    font-size: 26px !important;
    line-height: 1;
    color: #ffffff !important;
    font-weight: 700;
    pointer-events: none;
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}

.slick-prev:before, 
.slick-next:before {
    content: '' !important;
    display: none !important;
}

.slick-prev:hover, 
.slick-next:hover {
    background: rgba(124, 20, 39, 1) !important;
    transform: scale(1.1);
}

.slick-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slick Dots Styling */
.slick-dots {
    bottom: -35px;
    z-index: 5;
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slick-dots li {
    margin: 0 5px;
    width: 12px;
    height: 12px;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
}

.slick-dots li button:before {
    font-size: 12px;
    color: #999;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    line-height: 12px;
}

.slick-dots li.slick-active button:before {
    color: #a51c36;
    opacity: 1;
}

/* Slick Track and Slide fixes */
.slick-track {
    display: flex !important;
    align-items: stretch !important;
}

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

.slick-slide > div {
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .property-card {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
}

@media (max-width: 991px) {
    .property-card {
        height: 290px !important;
        min-height: 290px !important;
        max-height: 290px !important;
    }

    .property-overlay {
        padding: 18px 12px 15px;
        min-height: 165px;
    }

    .property-title {
        font-size: 1rem;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
        max-height: 2.6em;
    }

    .property-location {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .price {
        font-size: 1.05rem;
    }

    .beds-baths {
        font-size: 0.8rem;
        gap: 8px;
    }

    .beds-baths span {
        padding: 3px 8px;
    }

    .btn-view {
        padding: 9px 20px;
        font-size: 0.7rem;
        min-width: 130px;
    }

    .slick-prev, 
    .slick-next {
        width: 40px;
        height: 40px;
    }

    .slick-prev {
        left: 15px;
    }

    .slick-next {
        right: 15px;
    }

    .slick-prev:before, 
    .slick-next:before {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .property-card {
        height: 270px !important;
        min-height: 270px !important;
        max-height: 270px !important;
    }

    .property-overlay {
        padding: 15px 12px 12px;
        min-height: 155px;
    }

    .overlay-content {
        gap: 6px;
    }

    .property-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
        max-height: 2.6em;
    }

    .property-location {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .property-details {
        gap: 10px;
        margin-bottom: 10px;
    }

    .price {
        font-size: 0.95rem;
    }

    .beds-baths {
        font-size: 0.75rem;
        gap: 6px;
    }

    .beds-baths span {
        padding: 3px 7px;
    }

    .btn-view {
        padding: 8px 18px;
        font-size: 0.65rem;
        min-width: 120px;
    }

    .slick-prev, 
    .slick-next {
        width: 36px;
        height: 36px;
    }

    .slick-prev:before, 
    .slick-next:before {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .property-card {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
        margin: 5px;
    }

    .property-overlay {
        padding: 12px 10px 10px;
        min-height: 145px;
    }

    .overlay-content {
        gap: 5px;
    }

    .property-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        max-height: 2.6em;
    }

    .property-location {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .property-details {
        gap: 8px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .price {
        font-size: 0.9rem;
    }

    .beds-baths {
        font-size: 0.7rem;
        gap: 5px;
    }

    .beds-baths span {
        padding: 2px 6px;
    }

    .btn-view {
        padding: 7px 16px;
        font-size: 0.6rem;
        min-width: 110px;
    }

    .slick-dots {
        bottom: -30px;
    }

    .slick-prev, 
    .slick-next {
        width: 32px;
        height: 32px;
    }

    .slick-prev {
        left: 10px;
    }

    .slick-next {
        right: 10px;
    }

    .slick-prev:before, 
    .slick-next:before {
        font-size: 14px;
    }
}

/* Fix for multi-item rows */
.slick-slide {
    height: auto;
    padding: 0 10px;
}

.slick-track {
    display: flex;
    align-items: stretch;
    margin-left: -10px;
    margin-right: -10px;
}

/* Home carousel edge alignment: remove visible right/left outer gaps */
.home-property-slider-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home-property-slider .slick-list {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home-property-slider .slick-track {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.home-property-slider .property-card {
    margin-left: 6px;
    margin-right: 6px;
}

/* =========================
   Dashboard Final Override Layer
   Keeps home carousel styles deterministic against global css collisions.
   ========================= */
