.hot-properties {
    padding: 40px 20px;
    background: #f8f8f8; /* optional background for section */
}

.hot-properties .row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px; /* adjust spacing between cards */
}

.card-container {
    flex: 1 1 calc(20% - 20px); /* 5 in a row for large screens */
    margin: 10px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .card-container { flex: 1 1 calc(25% - 20px); } /* 4 in a row */
}
@media (max-width: 992px) {
    .card-container { flex: 1 1 calc(33.33% - 20px); } /* 3 in a row */
}
@media (max-width: 768px) {
    .card-container { flex: 1 1 calc(50% - 20px); } /* 2 in a row */
}
@media (max-width: 480px) {
    .card-container { flex: 1 1 100%; } /* 1 in a row */
}

/* Hot Properties Title Styling Matching Header */
.section-title {
    font-size: 2rem;
    font-weight: 700;            /* matches header/nav font weight */
    text-align: center;           /* center aligned */
    color: #1E3A5F;               /* green like header accent */
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    cursor: default;
    transition: transform 0.3s;
}

/* Animated underline on hover */
.section-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #F97316;          /* subtle orange accent */
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* Small icon accent matching header */
.hot-properties .section-title::before {
    content: "🏡";
    margin-right: 8px;
}

/* Optional hover scale for modern feel */
.hot-properties .section-title:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hot-properties .section-title {
        font-size: 1.6rem;
    }
}