/*
 * Nút đổi kiểu hiển thị lưới / danh sách — trang tìm kiếm khách sạn, tour (mọi theme).
 * Nạp tự động bởi Modules\Core\Helpers\ListViewMode::registerToggle(). Màu trung tính để hợp mọi theme;
 * theme muốn đổi màu nút đang chọn thì đặt biến --lvm-active (vd .list-view-toggle { --lvm-active: #008894; }).
 */
.list-view-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.list-view-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    vertical-align: middle;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.list-view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #6b7280;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.list-view-toggle button + button {
    border-left: 1px solid #d9dee5;
}

.list-view-toggle button:hover {
    background: #f3f4f6;
    color: #111827;
}

.list-view-toggle button.is-on,
.list-view-toggle button.is-on:hover {
    background: var(--lvm-active, #374151);
    color: #fff;
    cursor: default;
}

.list-view-toggle button:focus-visible {
    outline: 2px solid var(--lvm-active, #374151);
    outline-offset: -2px;
}

.list-view-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Màn nhỏ: phần lớn theme đã in 1 cột thẻ lưới ở cả hai kiểu ⇒ ẩn nút cho đỡ rối. */
@media (max-width: 991.98px) {
    .list-view-bar,
    .list-view-toggle {
        display: none !important;
    }
}
