.featured-properties {
    text-align: center;
    padding: 50px 20px;
}

.featured-properties h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.property-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.property-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px;
}

.property-container::-webkit-scrollbar {
    display: none;
}

.property-card {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 320px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    min-width: calc(100% / 3.3); /* show 3.3 cards */
}

.property-card:hover {
    transform: translateY(-5px);
}

.image-box {
    position: relative;
}

.image-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    background: #002244;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
}

.badge.featured {
    background: #004488;
}

.badge.rent {
    background: #3a6ea5;
}

.price {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,50,0.8);
    color: #fff;
    font-weight: bold;
    padding: 10px 0;
}

.card-content {
    padding: 15px;
    text-align: left;
}

.card-content h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 10px;
}

.location {
    color: #c0392b;
    font-size: 0.9rem;
}

.details {
    font-size: 0.85rem;
    color: #444;
    margin: 10px 0;
}

.contact-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.contact-icons a {
    color: #002244;
    font-size: 1.2rem;
}

.slide-btn {
    background: #002244;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.slide-btn.left {
    left: 0;
}

.slide-btn.right {
    right: 0;
}
/* Overlapping arrows */
.custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    opacity: 1 !important;
}

.carousel-control-prev.custom-arrow {
    left: -20px; /* inside but overlapping */
}

.carousel-control-next.custom-arrow {
    right: -20px; /* inside but overlapping */
}

.custom-arrow span {
    filter: invert(1);
}

/* 📱 Responsive */
@media (max-width: 1024px) {
    .property-card {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .property-card {
        width: 240px;
    }

    .slide-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .featured-properties h2 {
        font-size: 1.5rem;
    }
    .property-container {
        gap: 10px;
    }
    .property-card {
        width: 90%;
    }
}
