.car-calendar-wrapper {
    position: relative;
    max-width: 100%;
}

.car-calendar-image {
    width: 100%;
    height: auto;
    display: block;
}

.car-calendar-image-mobile {
    display: none;
}

@media (max-width: 768px) {
    .car-calendar-image-desktop {
        display: none;
    }
    .car-calendar-image-mobile {
        display: block;
    }
}

.car-areas-layer {
    position: absolute;
    inset: 0;
}

.car-areas-layer-mobile {
    display: none;
}

@media (max-width: 768px) {
    .car-areas-layer-desktop {
        display: none;
    }
    .car-areas-layer-mobile {
        display: block;
    }
}

.car-day-area {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    appearance: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.car-day-area:hover {
    background-color: transparent;
}

.car-day-area:active,
.car-day-area:focus {
    background-color: transparent;
    box-shadow: none;
}

.car-day-area[data-disabled="true"] {
    pointer-events: none;
}

.car-day-area:focus-visible {
    outline: 2px solid #0d6efd;
}

.car-day-active {
    outline: 2px dashed rgba(255, 255, 255, 0.7);
}

.car-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    box-sizing: border-box;
}

.car-popup-overlay[hidden] {
    display: none !important;
}

.car-popup {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: min(70vw, 1100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-popup-bg {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    aspect-ratio: 9 / 16;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.car-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1d;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.car-popup-open-body {
    overflow: hidden;
}

@media (max-width: 768px) {
    .car-popup-overlay {
        padding: 0;
    }

    .car-popup {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
    }

    .car-popup-bg {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        aspect-ratio: auto;
        background-size: contain;
    }

    .car-popup-close {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}
