/* Awonikar - car detail lightbox */

.car-box .car-thumbnail .car-img,
.shop-box .shop-theme,
.car-box-5 .car-thumbnail .car-img { cursor: zoom-in; }

.awo-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.awo-modal.is-open { display: block; }

.awo-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 9, 12, 0.82);
}

.awo-modal__box {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100% - 32px));
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #fff;
    border-radius: 6px;
    overflow: auto;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.awo-modal__x {
    position: absolute; top: 8px; right: 12px; z-index: 3;
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer;
}
.awo-modal__x:hover { background: rgba(0,0,0,.8); }

.awo-modal__media { position: relative; background: #111318; }
.awo-modal__img {
    display: block; width: 100%;
    max-height: 58vh; object-fit: cover;
}

/* carousel controls are hidden unless the car has 2+ photos */
.awo-modal__nav,
.awo-modal__dots { display: none; }
.awo-modal.has-carousel .awo-modal__nav,
.awo-modal.has-carousel .awo-modal__dots { display: block; }

.awo-modal__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: rgba(0,0,0,.45); color: #fff;
    font-size: 18px; cursor: pointer;
}
.awo-modal__nav:hover { background: rgba(0,0,0,.75); }
.awo-modal__nav--prev { left: 12px; }
.awo-modal__nav--next { right: 12px; }

.awo-modal__dots {
    position: absolute; left: 0; right: 0; bottom: 10px;
    text-align: center;
}
.awo-dot {
    width: 9px; height: 9px; margin: 0 4px; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer;
}
.awo-dot.is-active { background: #fff; }

.awo-modal__info { padding: 24px 26px 26px; }
.awo-modal__name { margin: 0 0 6px; font-size: 22px; }
.awo-modal__specs { margin: 0 0 12px; font-size: 13px; color: #7a7a7a; text-transform: uppercase; letter-spacing: .03em; }
.awo-modal__desc { margin: 0 0 20px; font-size: 15px; line-height: 26px; color: #535353; }

.awo-modal__options { display: flex; gap: 14px; flex-wrap: wrap; }
.awo-opt {
    flex: 1 1 220px;
    display: block;
    padding: 14px 18px;
    border-radius: 5px;
    text-decoration: none;
    border: solid 2px transparent;
    transition: transform .12s ease, box-shadow .12s ease;
}
.awo-opt:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.14); text-decoration: none; }
.awo-opt__k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.awo-opt__v { display: block; font-size: 19px; font-weight: 700; margin: 2px 0 6px; }
.awo-opt__cta { display: block; font-size: 13px; opacity: .9; }

.awo-opt--buy  { background: #0d5ef5; border-color: #0d5ef5; color: #fff; }
.awo-opt--buy:hover { color: #fff; }
.awo-opt--rent { background: #1faf54; border-color: #1faf54; color: #fff; }
.awo-opt--rent:hover { color: #fff; }

@media (max-width: 575px) {
    .awo-modal__box { margin: 14px auto; max-height: calc(100vh - 28px); }
    .awo-modal__img { max-height: 40vh; }
    .awo-modal__info { padding: 18px; }
    .awo-modal__options { flex-direction: column; }
}

/* Contact page: chosen-car preview */
.car-pick-preview {
    display: none;
    align-items: center;
    gap: 12px;
    margin: -6px 0 20px;
    padding: 10px;
    border: solid 1px #e7e7e7;
    border-radius: 4px;
    background: #fafafa;
}
.car-pick-preview.is-on { display: flex; }
.car-pick-preview img {
    width: 96px; height: 64px; object-fit: cover; border-radius: 3px; flex: none;
}
.car-pick-preview .cpp-name { font-weight: 700; font-size: 15px; display: block; }
.car-pick-preview .cpp-meta { font-size: 13px; color: #7a7a7a; }
