/* =========================
   reservation layout
========================= */

.reservation-wrap {
    width: 100%;
}

.reservation-wrap .banner-box {
    margin-top: 60px;
    height: 250px;
    width: 100%;
    background-color: #0066d9;
    background-image: url('/images/reservation-bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.reservation-wrap .reservation-inner {
    max-width: 1320px;
    margin: -50px auto 0;
    padding: 0 20px 100px;
}

/* =========================
   search bar (list 상단, 필터 위)
========================= */

.rr-search-bar {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.rr-search-inner {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
}

.rr-search-item {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
}

.rr-search-inner > .rr-search-item:nth-child(1) {
    width: 18%;
}

.rr-search-inner > .rr-search-item:nth-child(2) {
    width: 18%;
}


.rr-search-item + .rr-search-item {
    border-left: 1px solid #eee;
}

.rr-search-item .label {
    font-size: 13px;
    color: #9aa0a6;
    margin: 0 0 8px;
}

.rr-search-item .input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rr-search-item .icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rr-search-item .icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.rr-search-item .placeholder {
    font-size: 16px;
    color: #111;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-search-item .placeholder .rr-period-days {
    margin-left: 6px;
    color: #007bff;
    font-size: 0.95rem;
    font-weight: 700;
}

/* 목록 상단 .search-row — 대여 장소 인라인 gp-select (모달과 동일 패턴) */
.rr-search-item--pickup-select {
    justify-content: flex-start;
}

.rr-search-item--pickup-select .branch-select-wrap--pickup-search {
    width: 100%;
    min-width: 0;
}

.rr-search-item--return-select {
    justify-content: flex-start;
}

.rr-search-item--return-select .branch-select-wrap--return-search {
    width: 100%;
    min-width: 0;
}

/* 대여 기간: 장소 gp-select 버튼과 동일 높이·정렬 */
.rr-search-item--date-select {
    justify-content: flex-start;
}

.rr-search-bar .rr-period-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.rr-search-bar .rr-period-trigger .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #888;
}

.rr-search-bar .rr-period-trigger .icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.rr-search-bar .rr-period-trigger .placeholder.rr-search-date-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

.rr-search-bar .rr-period-trigger .placeholder .rr-period-days {
    margin-left: 6px;
    color: #007bff;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.rr-search-bar .rr-period-trigger .arrow {
    margin-left: 8px;
    flex-shrink: 0;
    color: #666;
}

.rr-search-bar .gp-select--rr-search {
    width: 100%;
}

.rr-search-bar .gp-select--rr-search .gp-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.rr-search-bar .gp-select--rr-search .gp-select__btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #888;
}

.rr-search-bar .gp-select--rr-search .gp-select__btn .icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.rr-search-bar .gp-select--rr-search .gp-select__btn .gp-select__value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.rr-search-bar .gp-select--rr-search .gp-select__btn .arrow {
    margin-left: 8px;
    flex-shrink: 0;
    color: #666;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.rr-search-bar .gp-select--rr-search.is-open .gp-select__btn .arrow {
    transform: rotate(180deg);
}

.rr-search-bar .gp-select--rr-search .gp-select__list {
    top: calc(100% + 8px);
    padding: 6px 0;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rr-search-bar .gp-select--rr-search .gp-select__item {
    padding: 14px 18px;
    font-size: 15px;
}

.rr-search-item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 768px) {
    .rr-search-inner {
        display: flex;
        flex-wrap: wrap;
    }

    .rr-search-inner > .rr-search-item[data-tab="pickup"],
    .rr-search-inner > .rr-search-item[data-tab="return"] {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
        box-sizing: border-box;
    }

    .rr-search-inner > .rr-search-item[data-tab="date"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-left: 0;
        border-top: 1px solid #eee;
    }
}

/* =========================
   filter bar
========================= */

/* 필터 드롭(.filter-panel)이 카드 그리드보다 위 — 부모에 스택 부여 (패널만 z-index 올려서는 부족할 수 있음) */
.reservation-wrap .filter-area,
.reservation-wrap .filter-bar.filter-wrap {
    position: relative;
    z-index: 1;
}

.reservation-wrap .filter-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reservation-wrap .filter-all {
    flex-shrink: 0;
    position: relative;
    padding-right: 12px;
}

.reservation-wrap .filter-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reservation-wrap .filter-all-btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.reservation-wrap .filter-all::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: #e5e5e5;
    z-index: 1;
    pointer-events: none;
}

.reservation-wrap .filter-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.reservation-wrap .filter-swiper .swiper-slide {
    width: auto !important;
}

@media (min-width: 769px) {
    .reservation-wrap .filter-swiper {
        overflow: visible !important;
    }

    .reservation-wrap .filter-swiper .swiper-wrapper,
    .reservation-wrap .filter-swiper .swiper-slide {
        overflow: visible !important;
    }

    .reservation-wrap .filter-swiper .swiper-slide {
        position: relative;
        z-index: 1;
    }

    .reservation-wrap .filter-swiper .swiper-slide:has(.filter-item.active),
    .reservation-wrap .filter-swiper .swiper-slide.is-active {
        z-index: 2000;
    }

    .reservation-wrap .filter-item.active {
        position: relative;
        z-index: 2001;
    }

    .reservation-wrap .filter-item.active .filter-panel {
        z-index: 2002;
    }

    .reservation-wrap .filter-swiper .swiper-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

.reservation-wrap .list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.reservation-wrap .list-info {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.reservation-wrap .total-count {
    position: relative;
    font-size: 14px;
    flex-shrink: 0;
}

.reservation-wrap .total-count strong {
    font-weight: 700;
}

.reservation-wrap .sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reservation-wrap .btn-reset-filter {
    box-sizing: border-box;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.reservation-wrap .btn-reset-filter .icon-reset {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

.reservation-wrap .btn-reset-filter:hover {
    background: #f5f5f5;
}

.reservation-wrap .list-top .sort-wrap .gp-select {
    width: auto;
    min-width: 120px;
}

/* 추천순 gp-select: border 화살표 → SVG (booking 등 다른 gp-select는 gp-select.css 유지) */
.reservation-wrap .list-top .sort-wrap .gp-select__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    margin-left: 8px;
    border: none;
    transform: rotate(0deg);
    transform-origin: center center;
    transition: transform 0.2s ease;
    color: #111;
    vertical-align: middle;
}

.reservation-wrap .list-top .sort-wrap .gp-select.is-open .gp-select__arrow {
    transform: rotate(180deg);
}

/* 추천순 트리거와 초기화 버튼 높이 통일 (gp-select 기본은 padding만 있음) */
.reservation-wrap .list-top .sort-wrap .gp-select__btn {
    box-sizing: border-box;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.reservation-wrap .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.reservation-wrap .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px dashed #ccc;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.reservation-wrap .filter-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    pointer-events: none;
}

.reservation-wrap .filter-chip .chip-remove img {
    width: 10px;
    height: 10px;
    display: block;
}

.reservation-wrap .filter-chip button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.reservation-wrap .filter-item {
    position: relative;
}

.reservation-wrap .filter-item.active {
    z-index: 1000;
}

/* 버튼 (테마 button 리셋 덮어쓰기) */
.reservation-wrap .filter-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.reservation-wrap button.filter-select {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: #111;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .time-select-wrap,
.rr-booking-modal .time-select-wrap {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 10px 0 10px;
}

.reservation-wrap .time-box,
.rr-booking-modal .time-box {
    flex: 1;
}

.reservation-wrap .time-label,
.rr-booking-modal .time-label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

.reservation-wrap .time-separator,
.rr-booking-modal .time-separator {
    margin-bottom: 10px;
    font-size: 14px;
}

.reservation-wrap .filter-select .label {
    white-space: nowrap;
}

.reservation-wrap .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reservation-wrap .filter-select .arrow {
    flex-shrink: 0;
    margin-left: 4px;
    color: inherit;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.reservation-wrap .filter-item.active .filter-select .arrow {
    transform: rotate(180deg);
}

.reservation-wrap .filter-item.active .filter-select {
    border-color: #111;
}

/* 패널 — position:absolute 유지(레이아웃). relative로 바꾸면 top/left 기준이 깨짐 */
.reservation-wrap .filter-panel {
    position: absolute;
    top: 50px;
    left: 0;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.reservation-wrap .filter-item.active .filter-panel {
    display: block;
}

.reservation-wrap .panel-inner {
    padding: 20px;
}

.reservation-wrap .panel-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.reservation-wrap .panel-placeholder {
    margin: 0 0 16px;
    font-size: 13px;
    color: #888;
}

/* 차종: 버튼 선택형 */
.reservation-wrap .type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .type-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .type-btn:hover {
    border-color: #111;
}

.reservation-wrap .type-btn.active {
    border-color: #111;
    background: #fff;
    color: #111;
    font-weight: 600;
}

/* 인승: 차종과 동일 계열 pill */
.reservation-wrap .seat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .seat-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    line-height: 1.2;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .seat-btn.active {
    border-color: #111;
    color: #111;
    font-weight: 600;
}

/* 색상: 버튼 배경 = 색상, 그리드 */
.reservation-wrap .color-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .color-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    padding: 0 6px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .color-btn.white,
.reservation-wrap .color-btn.yellow,
.reservation-wrap .color-btn.pearl {
    color: #111;
}

.reservation-wrap .color-btn.active {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.reservation-wrap .color-btn.black {
    background: #000;
}
.reservation-wrap .color-btn.gray {
    background: #999;
}
.reservation-wrap .color-btn.darkgray {
    background: #555;
}
.reservation-wrap .color-btn.bluegray {
    background: #6c7a89;
}
.reservation-wrap .color-btn.silver {
    background: #c0c0c0;
}
.reservation-wrap .color-btn.white {
    background: #fff;
    border: 1px solid #ddd;
}
.reservation-wrap .color-btn.pearl {
    background: #eae7dc;
}
.reservation-wrap .color-btn.red {
    background: #d0021b;
}
.reservation-wrap .color-btn.purple {
    background: #7a1e48;
}
.reservation-wrap .color-btn.orange {
    background: #ff7a00;
}
.reservation-wrap .color-btn.pink {
    background: #ff3f7f;
}
.reservation-wrap .color-btn.yellow {
    background: #ffd400;
}
.reservation-wrap .color-btn.gold {
    background: #caa64a;
}
.reservation-wrap .color-btn.brown {
    background: #6b4a00;
}
.reservation-wrap .color-btn.green {
    background: #1f7a1f;
}
.reservation-wrap .color-btn.khaki {
    background: #6b6b3b;
}
.reservation-wrap .color-btn.blue {
    background: #2a2aff;
}
.reservation-wrap .color-btn.navy {
    background: #1c2a5c;
}
.reservation-wrap .color-btn.teal {
    background: #1f4f4f;
}
.reservation-wrap .color-btn.sky {
    background: #87ceeb;
}
.reservation-wrap .color-btn.violet {
    background: #7f00ff;
}
.reservation-wrap .color-btn.etc {
    background: #888;
}

/* 제조사: 차종과 동일 pill, 다중 선택 */
.reservation-wrap .brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .brand-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .brand-btn:hover {
    border-color: #111;
}

.reservation-wrap .brand-btn.active {
    border-color: #111;
    color: #111;
    font-weight: 600;
}

/* 계약기간: 버튼 선택형 (차종과 동일 UX) */
.reservation-wrap .period-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .period-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .period-btn:hover {
    border-color: #111;
}

.reservation-wrap .period-btn.active {
    border-color: #111;
    background: #fff;
    color: #111;
    font-weight: 600;
}

/* 연료: 단일 선택 radio + pill UI */
.reservation-wrap .fuel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .fuel-item {
    cursor: pointer;
}

.reservation-wrap .fuel-item input {
    display: none;
}

.reservation-wrap .fuel-item span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    box-sizing: border-box;
}

.reservation-wrap .fuel-item:hover span {
    border-color: #111;
}

.reservation-wrap .fuel-item input:checked + span {
    border-color: #111;
    color: #111;
    font-weight: 600;
}

/* 옵션: 다중 선택 (pill 버튼, 차종과 동일 UX) */
.reservation-wrap .option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reservation-wrap .option-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.reservation-wrap .option-btn:hover {
    border-color: #111;
}

.reservation-wrap .option-btn.active {
    border-color: #111;
    background: #fff;
    color: #111;
    font-weight: 600;
}

/* range: 회색 트랙 + 검정 선택 구간 + 이중 슬라이더 (z-index: bg1 → bar2 → input3 → thumb4) */
.reservation-wrap .filter-item[data-filter="price"] .filter-panel,
.reservation-wrap .filter-item[data-filter="price"] .panel-inner,
.full-filter-modal .js-price-range-root,
.mobile-filter-modal .js-price-range-root {
    overflow: visible;
}

.reservation-wrap .range-wrap {
    position: relative;
    height: 40px;
    margin-top: 40px;
    overflow: visible;
}

.reservation-wrap .range-tooltip {
    position: absolute;
    bottom: 40px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
    color: #111;
}

.reservation-wrap .range-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* 전체 트랙 (회색) */
.reservation-wrap .range-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
}

/* 선택 구간 (검정) */
.reservation-wrap .range-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 0;
    background: #111;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

/* input range 위치 */
.reservation-wrap .filter-item[data-filter="price"] input[type="range"],
.full-filter-modal .js-price-range-root input[type="range"],
.mobile-filter-modal .js-price-range-root input[type="range"] {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    margin: 0;
    background: none;
    pointer-events: none;
    z-index: 3;
    -webkit-appearance: none;
    appearance: none;
}

/* track 완전 제거 (커스텀 .range-bg / .range-bar만 표시) */
.reservation-wrap .filter-item[data-filter="price"] input[type="range"]::-webkit-slider-runnable-track,
.full-filter-modal .js-price-range-root input[type="range"]::-webkit-slider-runnable-track,
.mobile-filter-modal .js-price-range-root input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"]::-moz-range-track,
.full-filter-modal .js-price-range-root input[type="range"]::-moz-range-track,
.mobile-filter-modal .js-price-range-root input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"]::-webkit-slider-thumb,
.full-filter-modal .js-price-range-root input[type="range"]::-webkit-slider-thumb,
.mobile-filter-modal .js-price-range-root input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    margin-top: -8px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111;
    -webkit-appearance: none;
    position: relative;
    z-index: 4;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"]:active::-webkit-slider-thumb,
.full-filter-modal .js-price-range-root input[type="range"]:active::-webkit-slider-thumb,
.mobile-filter-modal .js-price-range-root input[type="range"]:active::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"].on::-webkit-slider-thumb,
.full-filter-modal .js-price-range-root input[type="range"].on::-webkit-slider-thumb,
.mobile-filter-modal .js-price-range-root input[type="range"].on::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2);
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"]::-moz-range-thumb,
.full-filter-modal .js-price-range-root input[type="range"]::-moz-range-thumb,
.mobile-filter-modal .js-price-range-root input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"]:active::-moz-range-thumb,
.full-filter-modal .js-price-range-root input[type="range"]:active::-moz-range-thumb,
.mobile-filter-modal .js-price-range-root input[type="range"]:active::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
}

.reservation-wrap .filter-item[data-filter="price"] input[type="range"].on::-moz-range-thumb,
.full-filter-modal .js-price-range-root input[type="range"].on::-moz-range-thumb,
.mobile-filter-modal .js-price-range-root input[type="range"].on::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2);
}

.reservation-wrap .range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #111;
}

/* 패널·전체필터·모바일 시트 하단 버튼 (가운데 정렬) */
.reservation-wrap .panel-actions,
.reservation-wrap .modal-actions,
.full-filter-modal .modal-actions,
.full-filter-modal .full-filter-modal-footer.modal-actions,
.mobile-filter-modal .modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reservation-wrap .panel-actions {
    margin-top: 20px;
}

.full-filter-modal .full-filter-modal-footer.modal-actions {
    flex-shrink: 0;
}

.reservation-wrap .panel-actions .btn-reset,
.reservation-wrap .panel-actions .btn-apply,
.reservation-wrap .modal-actions .btn-reset,
.full-filter-modal .modal-actions .btn-reset,
.full-filter-modal .full-filter-modal-footer .btn-reset,
.full-filter-modal .full-filter-modal-footer .btn-submit,
.mobile-filter-modal .modal-footer .btn-reset,
.mobile-filter-modal .modal-footer .btn-apply {
    min-width: 120px;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.reservation-wrap .btn-reset,
.reservation-wrap .modal-actions .btn-reset,
.full-filter-modal .modal-actions .btn-reset,
.full-filter-modal .full-filter-modal-footer .btn-reset,
.mobile-filter-modal .modal-footer .btn-reset {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
}

.reservation-wrap .panel-actions .btn-reset .icon-reset,
.reservation-wrap .modal-actions .btn-reset .icon-reset,
.full-filter-modal .modal-actions .btn-reset .icon-reset,
.full-filter-modal .full-filter-modal-footer .btn-reset .icon-reset,
.mobile-filter-modal .modal-footer .btn-reset .icon-reset {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

.reservation-wrap .btn-apply,
.full-filter-modal .full-filter-modal-footer .btn-submit,
.mobile-filter-modal .modal-footer .btn-apply {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}

.reservation-wrap .btn-apply.is-disabled,
.reservation-wrap .btn-submit.is-disabled,
.reservation-wrap .btn-apply:disabled,
.reservation-wrap .btn-submit:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #fff;
    cursor: not-allowed;
}

/* =========================
   list area
========================= */

.reservation-wrap .list-area {
    min-height: 400px;
    position: relative;
    z-index: 0;
}

/* =========================
   차량 카드 리스트
========================= */

.reservation-wrap .car-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.reservation-wrap .car-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

.reservation-wrap .car-list .empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    font-size: 15px;
    color: #666;
    background: #f8f9fb;
    border-radius: 12px;
}

/* =========================
   Skeleton (loading state)
========================= */
.reservation-wrap .car-card.is-skeleton {
    pointer-events: none;
}

.reservation-wrap .car-card.is-skeleton .card-link {
    pointer-events: none;
}

.reservation-wrap .car-card.is-skeleton .btn-like {
    cursor: default;
}

.reservation-wrap .car-card.is-skeleton .skeleton-line {
    display: block;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #eceef2 20%, #f7f8fa 45%, #eceef2 70%);
    background-size: 300% 100%;
    animation: rr-skeleton-shimmer 1.6s ease-in-out infinite;
}

.reservation-wrap .car-card.is-skeleton .skeleton-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-like-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.reservation-wrap .car-card.is-skeleton .car-color {
    gap: 6px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-color-text {
    width: 80px;
    height: 12px;
}

.reservation-wrap .car-card.is-skeleton .car-title {
    margin: 0 0 6px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-title {
    height: 16px;
    margin-bottom: 7px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-title.short {
    width: 68%;
    margin-bottom: 0;
}

.reservation-wrap .car-card.is-skeleton .car-info {
    margin-bottom: 6px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-info {
    height: 13px;
    width: 85%;
}

.reservation-wrap .car-card.is-skeleton .skeleton-price {
    height: 20px;
    width: 110px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-discount {
    height: 20px;
    width: 60px;
}

.reservation-wrap .car-card.is-skeleton .skeleton-origin-price {
    height: 14px;
    width: 90px;
}

@keyframes rr-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@media (max-width: 768px) {
    .reservation-wrap .car-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .reservation-wrap .car-card {
        width: 100%;
        min-width: 0;
    }

    .reservation-wrap .card-thumb > img {
        width: 100%;
        height: auto;
    }
}

.reservation-wrap .car-card {
    display: block;
    position: relative;
    z-index: 1;
    cursor: pointer;
    outline: none;
}

.reservation-wrap .car-card:focus,
.reservation-wrap .car-card:active {
    outline: none;
}

.reservation-wrap .car-card:focus-visible {
    outline: none;
}

.reservation-wrap .car-card a,
.reservation-wrap .car-card button {
    cursor: pointer;
    outline: none;
}

.reservation-wrap .car-card a:focus,
.reservation-wrap .car-card button:focus {
    outline: none;
}

/* 카드: href는 .card-link에 두고(z-index 1), 썸/본문은 위 레이어 — 이동은 JS */
.reservation-wrap .car-card .card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.reservation-wrap .car-card .card-thumb,
.reservation-wrap .car-card .card-body {
    position: relative;
    z-index: 1;
}

.reservation-wrap .card-thumb {
    position: relative;
    aspect-ratio: 480 / 280;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.reservation-wrap .card-thumb > img {
    max-width: 100%;
    max-height: 70%;
    width: auto;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: contain;
}
.reservation-wrap .car-card img,
.reservation-wrap .car-card .img-box,
.reservation-wrap .car-card .thumb {
    position: relative;
    z-index: 1;
}

/* 찜하기 (car1001 .btn-like / 카드 썸네일 우측 상단 — 이중 img + display 전환) */
.reservation-wrap .btn-like {
    box-sizing: border-box;
    padding: 0;
    border: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.reservation-wrap .btn-like .icon-like {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.reservation-wrap .btn-like .icon-off {
    display: block;
}

.reservation-wrap .btn-like .icon-on {
    display: none;
}

.reservation-wrap .btn-like.is-active .icon-off,
.reservation-wrap .btn-like.active .icon-off {
    display: none;
}

.reservation-wrap .btn-like.is-active .icon-on,
.reservation-wrap .btn-like.active .icon-on {
    display: block;
}

.reservation-wrap .car-card .card-thumb .btn-like {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.reservation-wrap .car-card .card-thumb .btn-like:hover {
    background: rgba(0, 0, 0, 0.45);
}

.reservation-wrap .car-card .card-thumb .btn-like:active {
    transform: scale(0.96);
}

.reservation-wrap .car-card .card-thumb .btn-like.is-active,
.reservation-wrap .car-card .card-thumb .btn-like.active {
    background: rgba(0, 0, 0, 0.35);
}

.reservation-wrap .card-body {
    padding: 12px 4px;
}

.reservation-wrap .car-color {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: #666;
}

.reservation-wrap .color-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #ccc;
    border: 1px solid #eee;
}

.reservation-wrap .color-text {
    line-height: 1;
}

.reservation-wrap .car-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
}

.reservation-wrap .car-info {
    font-size: 0.8125rem;
    color: #777;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservation-wrap .car-price {
    margin-top: 8px;
}

.reservation-wrap .car-price .price-top {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.reservation-wrap .car-price .price-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    flex-shrink: 0;
}

.reservation-wrap .car-price .discount {
    background: #fff1f2;
    color: #ff4d4f;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.reservation-wrap .car-price .final-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
}

.reservation-wrap .car-price .price-bottom {
    margin-top: 4px;
}

.reservation-wrap .car-price .origin-price {
    font-size: 0.8125rem;
    color: #999;
    text-decoration: line-through;
}

/* =========================
   전체필터 모달 (ui-modal 재사용)
========================= */

.full-filter-modal .ui-modal-inner {
    max-width: 520px;
    max-height: min(92vh, 720px);
}

.full-filter-modal .ui-modal-body--full-filter {
    padding: 0 0 12px;
}

.reservation-wrap .full-filter-modal .ui-modal-header {
    padding: 24px 32px;
}

.reservation-wrap .full-filter-modal .ui-modal-close {
    margin-right: 0;
    width: auto;
}

.reservation-wrap .full-filter-modal .acc-head {
    padding: 16px 32px;
}

.reservation-wrap .full-filter-modal .acc-head .arrow {
    margin-right: 0;
}

.reservation-wrap .full-filter-modal .acc-body {
    padding: 0 32px 16px;
}

.reservation-wrap .filter-accordion .acc-item {
    border-bottom: 1px solid #eee;
}

.reservation-wrap .acc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.reservation-wrap .acc-head .arrow {
    flex-shrink: 0;
    margin-left: 8px;
    color: inherit;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.reservation-wrap .acc-item.active .acc-head .arrow {
    transform: rotate(180deg);
}

.reservation-wrap .acc-body {
    display: none;
    padding: 0 16px 16px;
}

.reservation-wrap .acc-item.active .acc-body {
    display: block;
}


/* =========================
   모바일 슬라이드업 필터 (≤768px)
========================= */

.mobile-filter-modal {
    display: block; /* 기본만 유지 (media 안에서 건드리지 말 것) */
}

@media (max-width: 768px) {

    .reservation-wrap .filter-item .filter-panel {
        display: none !important;
    }

    .mobile-filter-modal {
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .mobile-filter-modal.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-filter-modal-dim {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .mobile-filter-modal .modal-sheet {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1;
        max-height: 85vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    }

    .mobile-filter-modal.active .modal-sheet {
        transform: translateY(0);
    }

    .mobile-filter-modal .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
    }

    .mobile-filter-modal .modal-header h3.modal-title,
    .mobile-filter-modal .modal-header .modal-title {
        order: 1;
        flex: 1;
        min-width: 0;
        margin: 0;
        text-align: left;
        font-size: 17px;
        font-weight: 600;
        color: #111;
    }

    .mobile-filter-modal .modal-header .btn-close {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/20px no-repeat;
        cursor: pointer;
    }

    .mobile-filter-modal .modal-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-filter-modal .modal-footer {
        flex-shrink: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
        border-top: 1px solid #eee;
    }

    /* 시트 내 range: 모바일 패널과 동일 토큰 */
    .mobile-filter-modal .js-price-range-root {
        overflow: visible;
    }
}

@media (min-width: 769px) {
    .mobile-filter-modal {
        display: none !important;
    }
}
