﻿/* =========================
   SHOWROOM SECTION
   ========================= */
.anvu-showroom-section {
    background: #fff;
    padding: 32px 0 24px;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.anvu-showroom-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.anvu-showroom-head-left {
    flex: 1 1 auto;
    min-width: 0;
}

.anvu-showroom-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: #223046;
}

    .anvu-showroom-title span {
        white-space: nowrap;
    }

.anvu-showroom-sub {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.anvu-showroom-filters {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    max-width: 100%;
}

.anvu-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-size: 14px;
    color: #111827;
    transition: all .2s ease;
}

    .anvu-filter:hover {
        border-color: #cfd8e3;
        background: #f8fafc;
    }

    .anvu-filter input {
        margin: 0;
        width: 16px;
        height: 16px;
        accent-color: #1a73e8;
        flex: 0 0 auto;
    }

    .anvu-filter span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        line-height: 1.2;
    }

/* =========================
   SLIDER
   ========================= */
.anvu-showroom-slider-wrap {
    position: relative;
    margin-top: 8px;
    padding: 0 0px; /* chừa khoảng cho arrow */
}

.anvu-showroom-clip {
    overflow: hidden;
    border-radius: 14px;
}

.anvu-showroom-track {
    --sr-gap: 16px;
    --sr-cols: 4;
    --sr-rows: 2;
    display: grid;
    gap: var(--sr-gap);
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--sr-rows), minmax(0, 1fr));
    grid-auto-columns: calc((100% - ((var(--sr-cols) - 1) * var(--sr-gap))) / var(--sr-cols));
    align-items: stretch;
    transition: transform .35s ease;
    will-change: transform;
}

/* =========================
   CARD
   ========================= */
.anvu-showroom-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

    .anvu-showroom-card .anvu-sr-head {
        padding: 14px 14px 10px;
        border-bottom: 1px solid #edf0f4;
    }

    .anvu-showroom-card .anvu-sr-title {
        margin: 0;
        font-size: 14px;
        line-height: 1.45;
        font-weight: 800;
        color: #223046;
        text-transform: uppercase;
        letter-spacing: .2px;
    }

    .anvu-showroom-card .anvu-sr-body {
        flex: 1 1 auto;
        padding: 12px 14px 14px;
        font-size: 14px;
        color: #374151;
    }

.anvu-sr-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    line-height: 1.5;
}

    .anvu-sr-row:last-child {
        margin-bottom: 0;
    }

.anvu-sr-ico {
    flex: 0 0 18px;
    width: 18px;
    text-align: center;
    color: #111827;
    opacity: .85;
    margin-top: 2px;
}

.anvu-sr-row > div,
.anvu-sr-row > a,
.anvu-sr-row > span,
.anvu-sr-row > p {
    min-width: 0;
    word-break: break-word;
}

.anvu-sr-link {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

    .anvu-sr-link:hover {
        text-decoration: underline;
    }

.anvu-sr-time b {
    font-weight: 800;
    color: #111827;
}

.anvu-sr-phone {
    color: #374151;
}

/* =========================
   ARROWS
   ========================= */
.anvu-showroom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity .2s ease, transform .2s ease;
}

    .anvu-showroom-arrow:hover {
        transform: translateY(-50%) scale(1.03);
    }

    .anvu-showroom-arrow i {
        color: #111827;
    }

    .anvu-showroom-arrow.left {
        left: 0;
    }

    .anvu-showroom-arrow.right {
        right: 0;
    }

    .anvu-showroom-arrow:disabled {
        opacity: .38;
        cursor: not-allowed;
        transform: translateY(-50%);
    }

/* =========================
   VIEW ALL + FULL LIST
   ========================= */
.anvu-showroom-viewall {
    text-align: center;
    margin-top: 16px;
}

    .anvu-showroom-viewall a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 700;
        text-decoration: none;
    }

.anvu-showroom-all {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.anvu-showroom-card-full {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.anvu-showroom-name {
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.4;
}

.anvu-showroom-addr {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.anvu-showroom-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: #333;
}

.anvu-showroom-phone i {
    font-size: 11px;
}

.d-none {
    display: none !important;
}

/* =========================
   DESKTOP LARGE
   ========================= */
@media (max-width: 1199.98px) {
    .anvu-showroom-title {
        font-size: 25px;
    }

    .anvu-showroom-track {
        --sr-cols: 3;
    }

    .anvu-showroom-all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 991.98px) {
    .anvu-showroom-section {
        padding: 28px 0 22px;
    }

    .anvu-showroom-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .anvu-showroom-title {
        font-size: 22px;
    }

    .anvu-showroom-filters {
        width: 100%;
        justify-content: flex-start;
    }

    .anvu-showroom-track {
        --sr-cols: 2;
        --sr-rows: 2;
    }

    .anvu-showroom-slider-wrap {
        padding: 0 14px;
    }

    .anvu-showroom-arrow {
        width: 38px;
        height: 38px;
    }

    .anvu-showroom-all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   MOBILE LANDSCAPE / SMALL TABLET
   ========================= */
@media (max-width: 767.98px) {
    .anvu-showroom-section {
        padding: 24px 0 20px;
    }

    .anvu-showroom-title {
        font-size: 20px;
    }

    .anvu-showroom-sub {
        font-size: 13px;
    }

    .anvu-showroom-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

        .anvu-showroom-filters::-webkit-scrollbar {
            display: none;
        }

    .anvu-filter {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .anvu-showroom-slider-wrap {
        padding: 0 10px;
    }

    .anvu-showroom-track {
        --sr-cols: 2;
        --sr-rows: 1;
        --sr-gap: 12px;
    }

    .anvu-showroom-card .anvu-sr-head {
        padding: 12px 12px 8px;
    }

    .anvu-showroom-card .anvu-sr-body {
        padding: 10px 12px 12px;
        font-size: 13px;
    }

    .anvu-showroom-card .anvu-sr-title {
        font-size: 13px;
    }

    .anvu-sr-row {
        gap: 8px;
        margin: 8px 0;
    }

    .anvu-showroom-arrow {
        width: 34px;
        height: 34px;
    }

    .anvu-showroom-all {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 575.98px) {
    .anvu-showroom-title {
        font-size: 18px;
    }

    .anvu-showroom-sub {
        margin-top: 6px;
    }

    .anvu-showroom-slider-wrap {
        padding: 0 4px;
    }

    .anvu-showroom-track {
        --sr-cols: 1;
        --sr-rows: 1;
    }

    .anvu-showroom-arrow {
        width: 32px;
        height: 32px;
        top: calc(50% - 4px);
    }

        .anvu-showroom-arrow.left {
            left: 4px;
        }

        .anvu-showroom-arrow.right {
            right: 4px;
        }

    .anvu-showroom-viewall {
        margin-top: 14px;
    }
}
