@charset "UTF-8";

/* rental-reservation view — 레이아웃 (car1001 .car-gallery와 병용) */
.view-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    box-sizing: border-box;
}

.view-wrap .view-inner {
    display: flex;
    gap: 90px;
    align-items: flex-start;
}

.view-wrap .view-left {
    flex: 1;
    min-width: 0;
}

.view-wrap .view-left .step.step-1 {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 예약 단계: 최초 step-1만 노출, 우측 CTA로 step-2 전환 */
.view-wrap .view-left .step-2 {
    display: none;
}

.view-wrap.is-booking-mode .view-left .step-1 {
    display: none;
}

.view-wrap.is-booking-mode .view-left .step-2 {
    display: block;
}

.view-wrap .view-right {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    box-sizing: border-box;
}

.view-wrap .view-right-inner {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.view-wrap .view-right-inner .rental-info-top {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.view-wrap .view-right-inner .rental-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #f7fbff;
    border: 1px solid rgb(228 240 251);
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.view-wrap .view-right-inner .rental-link:hover {
    background: #eaf2fb;
}

.view-wrap .view-right-inner .rental-date {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #666;
    word-break: keep-all;
}

.view-wrap .view-right-inner .rental-date .days {
    color: #888;
    margin-left: 4px;
}

.view-wrap .view-right-inner .rental-location {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.view-wrap .view-right-inner .rental-location .loc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.view-wrap .view-right-inner .rental-location .loc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.view-wrap .view-right-inner .rental-location .loc-item .badge,
.view-wrap .view-right-inner .rental-location .label {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #555;
    background: #d8e6fa;
    border-radius: 999px;
}

.view-wrap .view-right-inner .rental-info-top .rental-location .loc-return .badge {
    background-color: #d8faef;
}

.view-wrap .view-right-inner .rental-location .loc-item .name,
.view-wrap .view-right-inner .rental-location .branch {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #474d5d;
    word-break: keep-all;
}

.view-wrap .view-right-inner .rental-location .loc-arrow {
    display: none !important;
}

.view-wrap .view-right-inner .reserve-cta-wrap {
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-wrap .view-right-inner .btn-reserve {
    padding: 14px 24px;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
    background: #4676fa;
    color: #fff;
    cursor: pointer;
}

.view-wrap .view-right-inner .btn-reserve-lookup {
    padding: 12px 20px;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    background: #fff;
    color: #4676fa;
    border: 1px solid #4676fa;
    cursor: pointer;
    box-sizing: border-box;
}

.view-wrap .view-right-inner .btn-reserve-lookup:hover {
    background: rgba(70, 118, 250, 0.08);
}

/* 대여기간·지점 예약 모달 (탭 + 캘린더 — booking.js 공용) */
.rental-modal[hidden] {
    display: none !important;
}

.rental-modal.open {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
}

.rental-modal-inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    min-height: 0;
}

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

.rental-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
}

.rental-modal .modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
}

.rental-modal .modal-close:hover {
    background: #f0f0f0;
    color: #111;
}

.rental-modal .rental-modal-field-label {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #555;
}

/* booking.js 스코프: 본문+공통 footer를 하나의 .rr-booking-modal 안에 둠 (전역 .rr-booking-modal 보다 구체 선택자로 덮음) */
.rental-modal .rr-booking-modal {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
}

/* 탭 + 패널: 헤더 아래 본문 영역 — 탭은 최상단, 패널은 그 아래 */
.rental-modal .modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.rental-modal .modal-body > .tabs {
    flex-shrink: 0;
    padding: 12px 16px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}

.rental-modal .tab-panel {
    display: none;
}

.rental-modal .tab-panel.active {
    display: block;
}

.rental-modal .rental-modal-panel-scroll {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 12px 12px;
}

/* index와 동일: 본문 = 캘린더 스크롤 + 시간 (booking-modal-body-fragment) */
.rental-modal .rental-modal-panel-scroll > .rr-booking-modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    gap:20px;
    min-height: 0;
}

.rental-modal .rental-modal-panel-scroll .rr-booking-modal-body > .rr-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.rental-modal .rental-modal-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.rental-modal .rental-modal-footer .booking-actions {
    display: flex;
    gap: 10px;
    justify-content: stretch;
}

.rental-modal .rental-modal-footer .btn-reset,
.rental-modal .rental-modal-footer .btn-apply {
    flex: 1;
}

.rental-modal .branch-select-wrap {
    margin-top: 16px;
    padding: 0 4px 16px;
    box-sizing: border-box;
}

.rental-modal .branch-info {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f5f7fb;
    border-radius: 8px;
}

.rental-modal .branch-info ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rental-modal .branch-info li {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.rental-modal .branch-info li strong {
    flex-shrink: 0;
    min-width: 50px;
}

.view-wrap .view-right-inner .car-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.view-wrap .view-right-inner .car-summary-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.view-wrap .view-right-inner .car-summary-left .rental-badge {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.view-wrap .view-right-inner .car-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    word-break: keep-all;
}

.view-wrap .view-right-inner .car-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.view-wrap .view-right-inner .car-price-row .label {
    font-size: 0.875rem;
    color: #555;
}

.view-wrap .view-right-inner .car-price-row .price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.view-wrap .view-right-inner .car-summary-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;      /* 필요 시 조정 */
    height: 120px;     /* 필요 시 조정 */
    overflow: hidden;
}

.view-wrap .view-right-inner .car-summary-right img {
    display: block;
    max-width: 100%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.view-wrap .view-right-inner .car-summary-thumb-placeholder {
    height: 88px;
    width: 120px;
    border-radius: 8px;
    background: #eee;
}

/* 갤러리 하단 — 공통 래퍼 + 섹션 박스 */
.view-wrap .view-info-wrap {
    margin-top: 20px;
}

/* step-2 예약 영역 — view-box 와 분리 (booking-box 전용) */
.view-wrap .step-2 .booking-box {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.view-wrap .step-2 .booking-box:first-child {
    padding:0;
}

/* 대여기간 요약 (step-2, 주행거리 선택 위) — 라운드 박스 + 좌우 날짜 + 중앙 pill */
.view-wrap .step-2 .booking-period .booking-title {
    margin: 0;
}

.view-wrap .step-2 .booking-period .booking-title h3 {
    margin: 0 0 14px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

/* 상세: 대여 기간 모달 트리거는 .period-summary 만 (booking-title·한 줄 요약은 비클릭) */
.view-wrap .step-2 .booking-period .period-summary[data-open-rental-tab-modal] {
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.view-wrap .step-2 .booking-period .period-summary[data-open-rental-tab-modal]:hover {
    border: 1.2px solid #4e73df;
    background: #f5f8ff;
}

.view-wrap .step-2 .booking-period .period-summary {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    margin: 0;
    padding: 24px 32px;
    border: 1px solid #e5e8ee;
    border-radius: 20px;
    background: #fff;
}

.view-wrap .step-2 .booking-period .period-summary > .period-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.view-wrap .step-2 .booking-period .period-item .label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: #8b95a1;
    font-weight: 500;
    line-height: 1.2;
}

.view-wrap .step-2 .booking-period .period-item .period-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.view-wrap .step-2 .booking-period .period-row .icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(17, 17, 17, 0.55);
}

.view-wrap .step-2 .booking-period .period-row .icon svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.view-wrap .step-2 .booking-period .period-row .date {
    display: block;
    margin: 0;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: #111;
}

.view-wrap .step-2 .booking-period .period-days {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #4b5cff;
    white-space: nowrap;
    border-radius: 999px;
    background: #f3f4ff;
}

@media (max-width: 768px) {
    .view-wrap .view-inner {
        gap: 20px;
    }
}   

@media (max-width: 480px) {
    .view-wrap .step-2 .booking-period .period-summary {
        gap: 8px;
        padding: 16px 12px;
    }

    .view-wrap .step-2 .booking-period .period-item .period-row {
        gap: 8px;
    }

    .view-wrap .step-2 .booking-period .period-item .label {
        font-size: 0.8125rem;
    }

    .view-wrap .step-2 .booking-period .period-row .date {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .view-wrap .step-2 .booking-period .period-days {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

.view-wrap .step-2 .booking-mileage .booking-title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

.view-wrap .step-2 .booking-mileage .mile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.view-wrap .step-2 .booking-mileage .mile-item {
    display: block;
    margin: 0;
    cursor: pointer;
}

.view-wrap .step-2 .booking-mileage .mile-item input[type='radio'] {
    display: none;
}

.view-wrap .step-2 .booking-mileage .mile-item input:checked + .mile-box {
    border: 1.2px solid #4e73df;
    background: #f5f8ff;
}

.view-wrap .step-2 .booking-mileage .mile-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    border: 1.2px solid #eaeaea;
    background: #fbfbfb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.view-wrap .step-2 .booking-mileage .mile-item > input:not(:checked) + .mile-box:hover {
    background: #f2f2f2;
}

.view-wrap .step-2 .booking-mileage .mile-left .mile-km {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.view-wrap .step-2 .booking-mileage .mile-left .mile-desc {
    font-size: 0.8125rem;
    color: #777;
}

.view-wrap .step-2 .booking-mileage .mile-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
}

.view-wrap .step-2 .booking-mileage .mile-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111;
}

.view-wrap .step-2 .booking-mileage .badge {
    background: #4e73df;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 6px;
}

/* 배차 방식: 배차 gp-select + 대여/반납 필드 (booking-delivery 전용) */
.view-wrap .step-2 .booking-delivery .booking-title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

.view-wrap .step-2 .booking-delivery .delivery-select-row {
    margin-bottom: 8px;
}

.view-wrap .step-2 .booking-delivery .delivery-select-field {
    width: 100%;
    max-width: 100%;
}

.view-wrap .step-2 .booking-delivery .delivery-select-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.view-wrap .step-2 .booking-delivery .delivery-fields {
    margin-top: 16px;
}

/* 패널 1개만 표시 ([hidden]/display 우선순위 충돌 방지: author display:flex 가 hidden 을 덮어쓰던 문제 수정) */
.view-wrap .step-2 .booking-delivery .delivery-fields-row.delivery-pattern {
    display: none !important;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.view-wrap .step-2 .booking-delivery .delivery-fields-row.delivery-pattern.is-active {
    display: flex !important;
}

.view-wrap .step-2 .booking-delivery .delivery-col {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
}

.view-wrap .step-2 .booking-delivery .delivery-field-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.view-wrap .step-2 .booking-delivery .delivery-field-stack .input-address-detail {
    margin-top: 0;
}

.view-wrap .step-2 .booking-delivery .delivery-field-label {
    margin: 0 0 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

/* booking-delivery 내 모든 gp-select: 대여/반납 장소와 동일 (배차 방식은 delivery-fields 밖이므로 여기서 통일) */
.view-wrap .step-2 .booking-delivery .gp-select {
    width: 100%;
}

.view-wrap .step-2 .booking-delivery .gp-select__btn {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9375rem;
}

.view-wrap .step-2 .booking-delivery .gp-select__value {
    font-size: 0.9375rem;
}

/* filter-arrow-svg 인라인 SVG(.gp-select__arrow) — gp-select.css border 치환 무효화 */
.view-wrap .step-2 .booking-delivery .gp-select__arrow {
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    margin-left: 8px;
    border: none !important;
    display: block;
    color: #111;
    transform: none;
    transition: transform 0.2s ease;
}

.view-wrap .step-2 .booking-delivery .gp-select.is-open .gp-select__arrow {
    transform: rotate(180deg);
}

/* 배차 직접입력 상세 — 운전자 주소 상세와 동일하게 일반 필드(흰 배경) */
.view-wrap .step-2 .booking-delivery .delivery-field-stack .js-postcode-detail {
    cursor: text;
}

@media (max-width: 480px) {
    .view-wrap .step-2 .booking-delivery .delivery-select-row,
    .view-wrap .step-2 .booking-delivery .delivery-select-field {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .view-wrap .step-2 .booking-delivery .delivery-col {
        flex: 1 1 100%;
    }

}

/* 운전자 조건 · 보험 (나이 탭 + 카드 라디오) */
.view-wrap .step-2 .booking-insurance .booking-title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

.view-wrap .step-2 .booking-insurance .tabs,
.rental-modal .modal-body > .tabs,
.rental-modal .tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.view-wrap .step-2 .booking-insurance .tabs .tab,
.rental-modal .tabs .tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 0;
    border-radius: 12px;
    border: 1.2px solid #eaeaea;
    background: #fbfbfb;
    color: #111;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.view-wrap .step-2 .booking-insurance .tabs .tab:hover:not(.active):not(.is-disabled),
.rental-modal .tabs .tab:hover:not(.active):not(.is-disabled) {
    background: #f2f2f2;
}

.view-wrap .step-2 .booking-insurance .tabs .tab.active,
.rental-modal .tabs .tab.active {
    border-color: #4e73df;
    background: #4e73df;
    color: #fff;
}

.view-wrap .step-2 .booking-insurance .tabs .tab.active:hover,
.rental-modal .tabs .tab.active:hover {
    color: #fff;
    border-color: #3d68e0;
    background: #3d68e0;
}

.view-wrap .step-2 .booking-insurance > .tab-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.view-wrap .step-2 .booking-insurance > .tab-panel.active {
    display: flex;
}

/* 운전자 조건 — 라디오 카드 (.radio-item) */
.view-wrap .step-2 .booking-insurance .radio-item {
    display: block;
    margin: 0;
    cursor: pointer;
}

.view-wrap .step-2 .booking-insurance .radio-item input[type='radio'] {
    display: none;
}

.view-wrap .step-2 .booking-insurance .radio-item input:checked + .box {
    border: 1.2px solid #4e73df;
    background: #f5f8ff;
}

.view-wrap .step-2 .booking-insurance .radio-item > .box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    border: 1.2px solid #eaeaea;
    background: #fbfbfb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.view-wrap .step-2 .booking-insurance .radio-item > input:not(:checked) + .box:hover {
    background: #f2f2f2;
}

.view-wrap .step-2 .booking-insurance .radio-item .txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.view-wrap .step-2 .booking-insurance .radio-item .txt p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    line-height: 1.35;
}

.view-wrap .step-2 .booking-insurance .radio-item .price {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    flex-shrink: 0;
}

.view-wrap .step-2 .booking-driver .booking-title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

.view-wrap .step-2 .booking-driver .form-group {
    margin-bottom: 16px;
}

.view-wrap .step-2 .booking-driver .form-group:last-child {
    margin-bottom: 0;
}

.view-wrap .step-2 .booking-driver .form-group label,
.view-wrap .step-2 .booking-driver .form-group .label-text {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.view-wrap .step-2 .booking-driver .form-group input[type='text'],
.view-wrap .step-2 .booking-driver .form-group input[type='tel'],
.view-wrap .step-2 .booking-delivery .delivery-field-stack input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #111;
    background: #fff;
}

.view-wrap .step-2 .booking-driver .form-group textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #111;
    background: #fff;
    display: block;
    min-height: 110px;
    resize: vertical;
    font-family: inherit;
}

.view-wrap .step-2 .booking-driver .form-group input::placeholder,
.view-wrap .step-2 .booking-driver .form-group textarea::placeholder,
.view-wrap .step-2 .booking-delivery .delivery-field-stack input::placeholder {
    color: #aaa;
}

.view-wrap .step-2 .booking-driver .form-group #driver_address[readonly],
.view-wrap .step-2 .booking-delivery .delivery-field-stack .js-postcode-address {
    background: #f8f9fb;
    cursor: pointer;
}

.view-wrap .step-2 .booking-driver .form-group .input-address-detail {
    margin-top: 8px;
}

/* gp-select: booking-driver 텍스트 인풋과 동일 톤 (components/gp-select.css 위 덮어쓰기) */
.view-wrap .step-2 .booking-driver .form-group--driver-career .gp-select {
    width: 100%;
}

.view-wrap .step-2 .booking-driver .form-group--driver-career .gp-select__btn {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9375rem;
}

.view-wrap .step-2 .booking-driver .form-group--driver-career .gp-select__value {
    font-size: 0.9375rem;
}

/* filter-arrow-svg 인라인 SVG(.gp-select__arrow) — gp-select.css의 border 치환 규칙 무효화 */
.view-wrap .step-2 .booking-driver .form-group--driver-career .gp-select__arrow {
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    margin-left: 8px;
    border: none;
    display: block;
    color: #111;
    transform: none;
    transition: transform 0.2s ease;
}

.view-wrap .step-2 .booking-driver .form-group--driver-career .gp-select.is-open .gp-select__arrow {
    transform: rotate(180deg);
}

.view-wrap .step-2 .booking-summary .summary-top .car-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #111;
}

.view-wrap .step-2 .booking-summary .summary-top .car-title .car-name-main,
.view-wrap .step-2 .booking-summary .summary-top .car-title .car-name-sub {
    display: block;
}

.view-wrap .step-2 .booking-summary .summary-top .car-title .car-name-sub {
    margin-top: 2px;
}

.view-wrap .step-2 .booking-summary .summary-top .car-sub {
    font-size: 0.8125rem;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap {
    margin-top: 12px;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #fff;
    padding: 32px 0;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-options {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #dbe4ff;
    background: #f0f4ff;
    box-sizing: border-box;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-options .opt-title {
    margin: 0 0 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4e73df;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-options .opt-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-options .opt-list li {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.6875rem;
    line-height: 1.3;
    color: #4e73df;
    border-radius: 999px;
    border: 1px solid #dbe4ff;
    background: #ffffff;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-options .opt-list li:hover {
    background: #4e73df;
    color: #fff;
    border-color: #4e73df;
}

.view-wrap .step-2 .booking-summary .summary-thumb-wrap .summary-thumb .thumb-img .summary-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: inherit;
    background: #eee;
}

.is-hidden {
    display: none;
}

.view-wrap .view-box {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.view-wrap .view-box:last-child {
    border-bottom: none;
}

.view-wrap .view-box + .view-box {
    margin-top: 0;
}

.view-wrap .view-sec-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111;
    margin-bottom: 32px;
}

.view-wrap .view-option .option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.view-wrap .view-option .option-chip {
    font-size: 0.875rem;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    color: #333;
    white-space: nowrap;
}

/* 추가 요금 안내 */
.view-wrap .view-box.view-fee {

}

.view-wrap .view-fee .view-sec-title {
    margin-bottom: 0;
}

.view-wrap .view-fee .fee-box {
    margin-top: 12px;
    padding: 16px;
    background: #f5f7fb;
    border-radius: 8px;
}

.view-wrap .view-fee .fee-box + .fee-box {
    margin-top: 12px;
}

.view-wrap .view-fee .fee-note-box {
    margin-top: 12px;
}

.view-wrap .view-fee .fee-title {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
}

/* fee-list: 항목별 세부 — .fee-note 와 동일 도트(::before 원형) */
.view-wrap .view-fee .fee-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 6px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #333;
}

.view-wrap .view-fee .fee-list li {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.view-wrap .view-fee .fee-list li::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: #333;
}

.view-wrap .view-fee .fee-list li.warn {
    color: #e53935;
}

.view-wrap .view-fee .fee-list li.warn::before {
    background: #e53935;
}

/* fee-note: 공통 안내 — 이용안내 .dot-list 와 동일 패턴 */
.view-wrap .view-fee .fee-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #333;
}

.view-wrap .view-fee .fee-note li {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.view-wrap .view-fee .fee-note li::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: #333;
}

/* 이용안내 */
.view-wrap .view-guide .view-sec-title {
    margin-bottom: 20px;
}

.view-wrap .view-guide .guide-group + .guide-group {
    margin-top: 24px;
}

.view-wrap .view-guide .sub-title {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.view-wrap .view-guide .guide-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.view-wrap .view-guide .guide-table tbody tr:first-child th:first-child {
    border-top-left-radius: 7px;
}

.view-wrap .view-guide .guide-table tbody tr:first-child td:last-child {
    border-top-right-radius: 7px;
}

.view-wrap .view-guide .guide-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 7px;
}

.view-wrap .view-guide .guide-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

.view-wrap .view-guide .guide-table th,
.view-wrap .view-guide .guide-table td {
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.view-wrap .view-guide .guide-table th {
    width: 18%;
    background: #f9fbfe;
    border-right: 1px solid #e0e0e0;
    text-align: center;
}

.view-wrap .view-guide .guide-table td {
    background: #fff;
    text-align: center;
}

.view-wrap .view-guide .guide-table td:first-of-type {
    width: 62%;
    border-right: 1px solid #e0e0e0;
}

.view-wrap .view-guide .guide-table td:last-child {
    width: 20%;
}

.view-wrap .view-guide .guide-table tr:last-child th,
.view-wrap .view-guide .guide-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .view-wrap .step-2 .booking-summary .summary-top .car-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .view-wrap .view-guide > .guide-group:first-of-type {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .view-wrap .view-guide .guide-table {
        min-width: 480px;
    }
}

/* 환불 정책 — 2열 표 (연한 배경·가운데 정렬·얇은 구분선) */
.view-wrap .view-refund .view-sec-title {
    margin-bottom: 12px;
}

.view-wrap .view-refund .refund-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.view-wrap .view-refund .refund-table tbody tr:first-child th:first-child {
    border-top-left-radius: 7px;
}

.view-wrap .view-refund .refund-table tbody tr:first-child td:last-child {
    border-top-right-radius: 7px;
}

.view-wrap .view-refund .refund-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 7px;
}

.view-wrap .view-refund .refund-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

.view-wrap .view-refund .refund-table th,
.view-wrap .view-refund .refund-table td {
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.view-wrap .view-refund .refund-table th {
    width: 38%;
    background: #f9fbfe;
    border-right: 1px solid #e0e0e0;
}

.view-wrap .view-refund .refund-table td {
    width: 62%;
    background: #fff;
}

.view-wrap .view-refund .refund-table tr:last-child th,
.view-wrap .view-refund .refund-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 640px) {
    .view-wrap .view-refund {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .view-wrap .view-refund .refund-table {
        min-width: 480px;
    }
}

/* 대여조건 및 서류안내 */
.view-wrap .view-rental .view-sec-title {
    margin-bottom: 20px;
}

.view-wrap .view-rental .rental-group + .rental-group {
    margin-top: 24px;
}

.view-wrap .view-rental .sub-title {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

/* dot-list: 대여조건 + 이용안내 공통 */
.view-wrap .view-rental .dot-list,
.view-wrap .view-guide .dot-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-wrap .view-rental .dot-list li,
.view-wrap .view-guide .dot-list li {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #333;
}

.view-wrap .view-rental .dot-list li::before,
.view-wrap .view-guide .dot-list li::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: #333;
}

.view-wrap .view-top .car-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 32px;
}

.view-wrap .view-top .car-spec {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.view-wrap .view-top .car-spec .spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.view-wrap .view-top .car-spec .label {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #888;
}

.view-wrap .view-top .car-spec .value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111;
    text-align: right;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.view-wrap .view-top .car-spec .spec-item--color .value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.view-wrap .view-top .car-spec .color-swatches {
    display: inline-flex;
    flex-shrink: 0;
    gap: 4px;
    align-items: center;
}

.view-wrap .view-top .car-spec .color-swatch {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

/* 모바일 STEP 1 하단 고정 CTA — PC에서는 비표시 */
.mobile-fixed-cta {
    display: none;
}

/* STEP 2 환불 정책 모바일 복제본 — 기본 비표시(PC·STEP1·데스크톱 STEP2) */
.refund-policy.mobile-refund {
    display: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .view-wrap .view-inner {
        flex-direction: column;
        max-width: 100%;
    }

    .view-wrap .step-2 .booking-box {
        padding: 20px 0 40px;
    }

    .view-wrap .view-left {
        max-width: 100%;
    }

    .view-wrap .view-right {
        width: 100%;
        position: static;
    }

    .view-wrap {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 80px 20px 40px;
    }

    .view-wrap .view-top .car-spec {
        grid-template-columns: 1fr;
    }

    /* STEP 1만: 우측 예약 박스를 상단으로 (예약 모드·STEP 2에서는 .is-step-1 없음 → 기본 문서 순서) */
    .view-wrap.is-step-1 .view-inner {
        display: flex;
        flex-direction: column;
    }

    .view-wrap.is-step-1 .view-right {
        order: -1;
        width: 100%;
    }

    .view-wrap.is-step-1 .view-left {
        order: 1;
        width: 100%;
    }

    /* STEP 1: 고정 CTA가 콘텐츠를 가리지 않도록 하단 여백 */
    .view-wrap.is-step-1 {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .view-wrap.is-step-1 .mobile-fixed-cta {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        box-sizing: border-box;
    }

    .view-wrap.is-step-1 .mobile-fixed-cta.is-show {
        display: block;
    }

    .view-wrap.is-step-1 .mobile-fixed-cta-inner {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    }

    .view-wrap.is-step-1 .btn-reserve-fixed {
        padding: 14px 24px;
        text-align: center;
        width: 100%;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1.125rem;
        line-height: 1.3;
        background: #4676fa;
        color: #fff;
        cursor: pointer;
        box-sizing: border-box;
    }

    /*
     * STEP 2(예약 모드) 모바일: .view-inner 직계에서 order로
     * 예약 폼(.view-left, .origin-refund 숨김) → 예약 카드(.view-right) → 환불(.mobile-refund)
     * .is-step-1 없음 → STEP1용 order 규칙과 충돌 없음
     */
    .view-wrap.is-booking-mode .view-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .view-wrap.is-booking-mode .view-left {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .view-wrap.is-booking-mode .view-right {
        order: 2;
        width: 100%;
    }

    .view-wrap.is-booking-mode .refund-policy.mobile-refund {
        order: 3;
        display: block;
        padding: 24px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .view-wrap.is-booking-mode .step-2 .booking-refund.origin-refund {
        display: none !important;
    }
}
.car-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
    height: auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 메인 이미지 영역 */
.car-gallery .mainSwiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: 560px;
    box-sizing: border-box;
}

.car-gallery .mainSwiper .swiper-wrapper {
    min-width: 0;
    box-sizing: border-box;
}

.car-gallery .mainSwiper .swiper-slide {
    min-width: 0;
    box-sizing: border-box;
}

.car-gallery .mainSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 썸네일 미리보기 (고정 N칸, 마지막만 모두보기 오버레이) */
.car-gallery .gallery-preview {
    display: flex;
    gap: 8px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
}

.car-gallery .gallery-preview li {
    position: relative;
    flex: 1;
    min-width: 0;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.car-gallery .gallery-preview li.thumb-placeholder {
    cursor: default;
    pointer-events: none;
    background: #2a2a2a;
}

.car-gallery .gallery-preview li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.car-gallery .gallery-preview li.active img {
    opacity: 0.45;
}

.car-gallery .gallery-preview li.is-more .more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    border-radius: 8px;
    padding: 4px;
    box-sizing: border-box;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.car-gallery .gallery-preview li.is-more.active .more-overlay {
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.car-gallery .swp-nav-wrap {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 20px;
    display: flex;
    gap: 8px;
}

.car-gallery .swiper-pagination-count {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 0 12px;
    font-size: 15px;
    z-index: 1;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
}

.car-gallery .swp-nav-wrap button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgb(0, 0, 0, 0.4);
}

.car-gallery .swp-nav-wrap button img {
    width: 12px;
}

@media (max-width: 768px) {
    .car-gallery {
        gap: 4px;
    }

    .car-gallery .mainSwiper {
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .car-gallery .mainSwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        display: block;
    }

}


/* ========== 풀스크린 갤러리 모달 (Encar 스타일) ========== */
html.modal-gallery-open,
body.modal-gallery-open {
    overflow: hidden;
}

.modal-gallery {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    box-sizing: border-box;
    padding: 12px;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
}

.modal-gallery.is-open {
    display: flex;
}

.modal-gallery[hidden]:not(.is-open) {
    display: none !important;
}

.modal-gallery-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.modal-gallery-top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 48px 16px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.05em;
}

.modal-gallery-index {
    font-weight: 500;
}

.modal-gallery-close {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.modal-gallery-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-gallery .gallery-main {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-swiper {
    width: 100%;
    height: 100%;
}

.modal-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.modal-slide-imgwrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: min(72vh, 900px);
}

.modal-slide-imgwrap img {
    max-width: 100%;
    max-height: min(72vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #111;
    border-right: 2px solid #111;
}

.modal-nav-prev {
    left: 12px;
}

.modal-nav-prev::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.modal-nav-next {
    right: 12px;
}

.modal-nav-next::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

.gallery-thumbs {
    flex: 0 0 auto;
    padding: 12px 8px 20px;
    background: #000;
    border-top: 1px solid #222;
}

.modal-thumb-swiper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.modal-thumb-swiper .swiper-slide {
    width: 88px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, box-shadow 0.2s;
    border-radius: 2px;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-thumb-swiper .swiper-slide.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #e74c3c;
}

.modal-thumb-imgwrap {
    width: 88px;
    height: 66px;
    overflow: hidden;
    background: #1a1a1a;
}

.modal-thumb-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-gallery .mainSwiper .swiper-slide {
    cursor: zoom-in;
}

/* 모바일 전용 세로 리스트 갤러리 (Swiper 모달과 별도) */
.modal-gallery-mobile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: #0a0a0a;
    box-sizing: border-box;
    height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-gallery-mobile::-webkit-scrollbar {
    width: 6px;
    height: 10px;
    margin: 0 2px;
    background-color: rgba(0, 0, 0, 0);
    -webkit-border-radius: 100px;
}

.modal-gallery-mobile::-webkit-scrollbar:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-gallery-mobile::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    -webkit-border-radius: 100px;
    border: 2px solid transparent;
}

.modal-gallery-mobile::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.61);
    -webkit-border-radius: 100px;
}

.modal-gallery-mobile.is-open {
    display: block;
}

.modal-gallery-mobile[hidden]:not(.is-open) {
    display: none !important;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
}

.modal-gallery-mobile-inner {
    min-height: min-content;
}

.modal-gallery-mobile .modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 12px;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modal-gallery-mobile-close {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-gallery-mobile .gallery-list {
    overflow: visible;
    padding: 12px 12px 28px;
    box-sizing: border-box;
}

.modal-gallery-mobile .gallery-list-item {
    margin-bottom: 12px;
}

.modal-gallery-mobile .gallery-list-item:last-child {
    margin-bottom: 0;
}

.modal-gallery-mobile .gallery-list-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    vertical-align: middle;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    /* PC용 Swiper 풀스크린 모달은 모바일에서 사용하지 않음 */
    #modal-gallery.modal-gallery {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .car-gallery .mainSwiper .swiper-slide {
        cursor: pointer;
    }

    .modal-slide-imgwrap {
        max-height: min(56vh, 720px);
    }

    .modal-slide-imgwrap img {
        max-height: min(56vh, 720px);
    }

    .modal-nav {
        width: 40px;
        height: 40px;
    }

    .modal-nav-prev {
        left: 4px;
    }

    .modal-nav-next {
        right: 4px;
    }
}
