/* === GRID LAYOUT (4 / 2 / 1) === */

.ds-nabije-locaties-grid {
    display: grid;
    gap: 15px;
    margin: 40px 0 20px 0;
    grid-template-columns: repeat(1, 1fr); /* default mobile */
}

/* Tablet: 2 per row */
@media (min-width: 641px) and (max-width: 1024px) {
    .ds-nabije-locaties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 per row */
@media (min-width: 1025px) {
    .ds-nabije-locaties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === CARD STYLING (matching locaties-lijst look) === */

.ds-nabije-locatie-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ds-nabije-locatie-card-inner {
    /* optional extra wrapper, but we apply to the link itself for now */
}

/* Base card look – same as .locaties-lijst-item */
.ds-nabije-locatie-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
    height: 100%;
    color: #495057;
    font-weight: 500;
    display: flex;
    flex-direction: column;
}

/* Hover effect like locaties-lijst */
.ds-nabije-locatie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    border-color: #e5347b;
}

/* === IMAGE (4:3 ratio, cover) === */

.ds-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
    overflow: hidden;
}

.ds-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === TITLE & PLAATS (matching locaties-lijst-title / -plaats-label) === */

.ds-title {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Hover color same as locaties-lijst-link:hover .locaties-lijst-title */
.ds-nabije-locatie-card:hover .ds-title {
    color: #e5347b;
}

/* We reuse ds-distance as the place label line */
.ds-distance {
    padding: 0 12px 14px;
    text-align: center;
    font-size: 13px;
    letter-spacing: .5px;
    color: #666;
    text-transform: uppercase;
}
