/* 768px 이하 하단 고정 메뉴 차량검색 — 전체화면 오버레이 */
.mobile-vehicle-search {
    display: none;
}

@media (max-width: 768px) {
    html.mobile-vehicle-search-open,
    body.mobile-vehicle-search-open {
        height: 100%;
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .mobile-vehicle-search {
        position: fixed;
        inset: 0;
        z-index: 10050;
        display: flex;
        flex-direction: column;
        background: #fff;
        color: #111;
        box-sizing: border-box;
    }

    .mobile-vehicle-search[hidden] {
        display: none !important;
    }

    .mobile-vehicle-search__bar {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        height: 60px;
        padding: env(safe-area-inset-top, 0) 12px 0 4px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        box-sizing: content-box;
    }

    .mobile-vehicle-search__back {
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111;
        cursor: pointer;
    }

    .mobile-vehicle-search__field {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-vehicle-search__input {
        width: 100%;
        height: 42px;
        padding: 0 42px 0 16px;
        border: 0;
        border-radius: 999px;
        outline: 0;
        background: #f2f2f2;
        color: #111;
        font: inherit;
        font-size: 15px;
        font-weight: 500;
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
    }

    .mobile-vehicle-search__input::-webkit-search-cancel-button {
        display: none;
    }

    .mobile-vehicle-search__input::placeholder {
        color: #999;
        font-weight: 400;
    }

    .mobile-vehicle-search__clear {
        position: absolute;
        top: 50%;
        right: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        background: transparent;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .mobile-vehicle-search__clear[hidden] {
        display: none !important;
    }

    .mobile-vehicle-search__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        background: #fff;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(17, 17, 17, 0.24) transparent;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-vehicle-search__body::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-vehicle-search__body::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-vehicle-search__body::-webkit-scrollbar-thumb {
        min-height: 36px;
        border-radius: 999px;
        background: rgba(17, 17, 17, 0.24);
    }

    .mobile-vehicle-search__body::-webkit-scrollbar-thumb:active {
        background: rgba(17, 17, 17, 0.38);
    }

    .mobile-vehicle-popular {
        padding: 22px 18px 28px;
    }

    .mobile-vehicle-popular[hidden],
    .mobile-vehicle-search__suggest[hidden] {
        display: none !important;
    }

    .mobile-vehicle-popular__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
    }

    .mobile-vehicle-popular__head h3 {
        margin: 0;
        color: #111;
        font-size: 17px;
        font-weight: 700;
    }

    .mobile-vehicle-popular__head time {
        color: #999;
        font-size: 12px;
    }

    .mobile-vehicle-popular__cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 24px;
    }

    .mobile-vehicle-popular__list,
    .mobile-vehicle-search__suggest-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-vehicle-popular__list li + li {
        margin-top: 2px;
    }

    .mobile-vehicle-popular__list a {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr) 14px;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 4px 0;
        color: #111;
        text-decoration: none;
    }

    .mobile-vehicle-popular__rank {
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-vehicle-popular__name {
        min-width: 0;
        overflow: hidden;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mobile-vehicle-popular__status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-vehicle-popular__status--same { color: #bbb; font-size: 14px; }
    .mobile-vehicle-popular__status--up { color: #e53935; }
    .mobile-vehicle-popular__status--down { color: #1e88e5; }
    .mobile-vehicle-popular__status--new { color: #ff5a8a; font-size: 12px; }

    .mobile-vehicle-search__suggest li {
        border-bottom: 1px solid #eee;
    }

    .mobile-vehicle-search__suggest a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        color: #111;
        text-decoration: none;
    }

    .mobile-vehicle-search__suggest a:active {
        background: #fafafa;
    }

    .mobile-vehicle-search__thumb {
        display: inline-flex;
        flex: 0 0 88px;
        align-items: center;
        justify-content: center;
        width: 88px;
        height: 52px;
        overflow: hidden;
        border-radius: 8px;
        background: #fafafa;
    }

    .mobile-vehicle-search__thumb img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .mobile-vehicle-search__text {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
    }

    .mobile-vehicle-search__empty {
        margin: 0;
        padding: 48px 16px;
        color: #999;
        font-size: 14px;
        text-align: center;
    }

    .mobile-vehicle-search__empty[hidden] {
        display: none !important;
    }
}
