.dm-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    gap: 32px;
    margin: 32px 0;
}

.dm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    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:22px;
}

.dm-name{
    margin:0;
}

.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: 8px;
    margin: 0 20px 24px;
}

.dm-year {
    padding: 5px 12px;
    border-radius: 999px;
    background: #ececec;
    font-size: .85rem;
    font-weight: 600;
    cursor:pointer;
}

a.dm-year:hover{
    background:#d8d8d8;
    color:#000;
}

.dm-rating-row {
    display: grid;
    grid-template-columns:95px 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 10px 20px;
}

.dm-rating-title {
    font-size: .92rem;
}

.dm-rating-value {
    font-weight: 700;
    min-width: 36px;
    text-align: right;
}

.dm-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 20px;
    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-rating-total .dm-stars {
    font-size: 24px;
}

.dm-rating-total .dm-rating-value {
    font-size: 1.05rem;
}

@media (max-width: 640px) {

    .dm-grid {
        grid-template-columns:1fr;
    }

    .dm-card {
        max-width: 360px;
        margin: auto;
    }
}