.nearby-item {
    width: 100%;
}
.nearby-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    column-gap: 16px;
}
/* LEVÝ SLOUPEC – názvy */
.nearby-col-name {
    font-weight: 600;
    font-size: 0.8rem;
    /*line-height: 1.35;*/
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nearby-col-chips {
    display: grid;
    grid-template-columns: repeat(4, 90px);
    gap: 6px;
    justify-content: end;
    align-items: center;
    white-space: nowrap;
}
.nearby-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}
/* CHIPY */
.nearby-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nearby-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 2px 6px;
    border: 1px solid #4281cb;
}
.nearby-chip i.mdi {
    font-size: 0.85rem;
    padding-right: 5px;
}
.nearby-chip.is-distance {
    background: #ecf3fc;
    color: #4a90e2;
    font-weight: 600;
}
.nearby-chip.is-walk { }
.nearby-chip.is-car { }
.nearby-chip.is-bike { }
.nearby-list .list-group-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    column-gap: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.nearby-list .list-group-item > strong {
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
}
.nearby-slot {
    width: 100%;
    min-width: 0;
}
.nearby-empty {
    color: #6c757d !important;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .nearby-list .list-group-item {
        grid-template-columns: 1fr;
        row-gap: 8px;
        align-items: start;
    }
    
    .nearby-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
        align-items: start;
    }
    
    .nearby-col-chips {
        grid-template-columns: repeat(2, 1fr); /* 2x2 */
        justify-content: start;
    }
    
    .nearby-chip {
        justify-content: flex-start;
        text-align: left;
    }
}
@media (min-width: 768px) and (max-width: 1550px) {
    .nearby-list .list-group-item {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
    
    .nearby-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
        align-items: start;
    }
    
    .nearby-col-chips {
        grid-template-columns: repeat(4, 1fr);
    }
}
.nearby-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 8px;
    border: 1px solid rgba(0, 0, 0, .06);
    white-space: nowrap;
}
.nearby-badge .g { font-weight: 800; }
.nearby-badge .s { opacity: .85; font-weight: 700; }
.nearby-badge.gA { background: #e8f6ee; color: #1f6a3a; }
.nearby-badge.gB { background: #eef8e7; color: #2c6b1f; }
.nearby-badge.gC { background: #fff6d7; color: #7a5a00; }
.nearby-badge.gD { background: #ffe7d6; color: #7a2f00; }
.nearby-badge.gE { background: #ffe1e1; color: #7a0000; }
.nearby-chip.is-best {
    box-shadow: 0 0 0 2px #4281cb73 inset;
    background: #ecf3fc;
    font-weight: 700;
}
.list-group-item {
    color: #4a90e2;
}