/* Container chính */
.mlm-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* Phần bản đồ (60% trên PC) */
.mlm-map-wrapper {
    flex: 0 0 60%;
    min-width: 300px;
}

#main-map {
    border: 0;
    border-radius: 8px;
    width: 100%;
    height: 500px;
    display: block;
}

/* Danh sách địa chỉ (40% trên PC) */
.mlm-list-wrapper {
    flex: 1;
    /* Tự động lấp đầy phần 40% còn lại */
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Tùy chỉnh thanh cuộn cho danh sách */
.mlm-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.mlm-list-wrapper::-webkit-scrollbar-thumb {
    background: #d3020e;
    border-radius: 10px;
}

/* Từng item địa chỉ */
.address-item {
    display: flex;
    gap: 15px;
    border: 2px solid #e0e0e0;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: #fff;
}

.address-item:hover,
.address-item.active {
    border-color: #d3020e;
    background: #fff8f8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.address-item .item-thumb {
    flex: 0 0 100px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.address-item .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address-item .item-info {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.address-item .item-info strong {
    font-size: 15px;
    color: #d3020e;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.address-item .info-row {
    margin-bottom: 2px;
}

/* Responsive cho Mobile */
@media (max-width: 875px) {

    .mlm-map-wrapper,
    .mlm-list-wrapper {
        flex: 0 0 100%;
        /* Rộng 100% trên điện thoại */
    }

    .mlm-container {
        flex-direction: column;
    }

    #main-map {
        height: 300px;
        /* Giảm chiều cao map trên mobile cho cân đối */
    }

    .mlm-list-wrapper {
        max-height: none;
        /* Cho phép giãn theo nội dung nếu cần */
    }
}