﻿/* Grid container */
.also-homes__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Tablet */
@media (max-width: 992px) {
    .also-homes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .also-homes__grid {
        grid-template-columns: 1fr;
    }
}

.also-card__details {
    list-style: none; /* remove bullets */
    padding-left: 0; /* reset default */
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #333;
}

.also-homes__title {
    font-size: 1.2rem; /* smaller than page H2 */
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #00008b; /* DHH blue */
    line-height: 1.3;
}

.also-card__details li {
    margin-left: 0.5rem; /* subtle indent */
    margin-bottom: 0.25rem;
}

.also-card__image {
    /*  width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;*/
    aspect-ratio: 3 / 2;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


@media (max-width: 576px) {
    .also-homes__grid {
        padding: 0 0.75rem; /* breathing room on edges */
    }

    .also-card {
        max-width: 360px; /* stops it feeling huge */
        margin: 0 auto; /* centre when only one */
    }
}

