.dm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(253px, 293px));
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    margin: 32px 0;
}

.dm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    overflow: hidden;
    transition: .2s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

.dm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
}

.dm-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.dm-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-content {
    padding: 12px 0;
}

.dm-name {
    margin: 0;
    text-align: center;
}

.dm-rating-total {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dm-city {
    text-align: center;
    color: #777;
    margin-bottom: 18px;
    font-size: .95rem;
}

.dm-years {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 10px 18px;
}

.dm-year {
    font-size: .8rem;
    padding: 4px 10px;
}

.dm-rating-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:10px 20px;
}

.dm-rating-stars, .dm-rating-total {
    cursor:help;
}

.dm-rating-title {
    font-size: .92rem;
}

.dm-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 18px;
    letter-spacing: 2px;
}

.dm-stars-back {
    color: #ddd;
}

.dm-stars-front {
    color: #f5b301;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
}

.dm-stars-large {
    font-size: 30px;
}

@media (max-width: 640px) {

    .dm-grid {
        grid-template-columns:1fr;
    }

    .dm-card {
        max-width: 360px;
        margin: auto;
    }
}