.overlay_wrapper {
    width: 100%;
    margin: 0 auto;
}

.overlay-container-wrapper {
    width: 100%;
    min-height: 460px;
    margin-top: 70px;
    padding: 5px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: visible;
}

@media(min-width:1750px) {
    .overlay-container-wrapper {
        min-height: 650px;
    }

    .car-booking-bar {
        margin-bottom: 30px;
    }
}

/* no clipping of dropdowns/calendars */
.overlay-container-wrapper,
.overlay_wrapper,
.overlay_wrapper-cars,
.car-booking-bar,
.booking-item {
    overflow: visible !important;
    position: relative;
}

/* =============================
   LOISIRS / MENU STRIP
   ============================= */
.overlay-content {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    background-clip: content-box;
}

.overlay-content a {
    flex: 0 0 auto;
    margin-right: 10px;
}

.overlay-content a.commun {
    min-width: 120px;
    width: 190px;
}

.overlay-content.d-none {
    padding-bottom: 0 !important;
}

.overlay-content::-webkit-scrollbar {
    height: 6px;
}

.overlay-content::-webkit-scrollbar-track {
    background: transparent;
}

.overlay-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.moteurss {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
}

.commun {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 15px;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-loisir:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.block_content p,
.block_content li {
    line-height: 30px;
    font-size: 18px;
    margin-bottom: 0 !important;
}


.car-booking-bar {
    width: 100%;
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    align-items: stretch;
    overflow-x: auto;
    z-index: 999999 !important;
}

.booking-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 240px;
    border: 1px solid #eee;
}

.booking-item .label {
    color: #38b6ff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

.booking-input {
    border: none;
    padding: 2px 0;
    font-size: 15px;
    background: none;
    outline: none;
}

.rent-btn {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 12px;
    min-width: 120px;
    flex: 0 0 120px;
    font-size: 16px;
    cursor: pointer;
    height: auto;
    transition: opacity 0.2s;
}

.rent-btn:hover {
    opacity: 0.85;
}

.booking-dual {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    min-width: 500px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
}

.booking-dual .booking-half {
    flex: 1;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.booking-dual select.booking-input {
    font-size: 15px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    padding: 4px 0;
}

.booking-dual .divider {
    width: 1px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0));
    margin: 8px 0;
    align-self: stretch;
}

.booking-item.booking-dual,
.booking-item.booking-dual.date-dual,
.booking-item.booking-dual.time-dual {
    min-height: 95px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.date-box,
.time-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.date-box i,
.time-box i {
    color: #888;
}

.date-input {
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.time-input {
    width: 85px;
    text-align: left;
}

.calendar {
    width: 100%;
    max-width: 450px;
    font-size: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 6px;
}

.calendar-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    font-size: 13px;
    width: 60px;
    height: 40px;
}

.calendar-grid div:hover {
    background: #38b6ff;
    color: #fff;
}

.calendar-grid div.selected-date {
    background: #38b6ff;
    color: #fff;
}

.calendar-grid .dow {
    font-weight: 600;
    opacity: 0.6;
    cursor: default;
}

.calendar-grid .today {
    background: #ff4d4d;
    color: #fff;
    font-weight: bold;
}

.calendar-grid .inactive {
    color: #ccc;
    cursor: default;
}

.calendar-grid .selected {
    background: #38b6ff;
    color: #fff;
}

.time-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    z-index: 1000000;
    max-height: 220px;
    overflow-y: auto;
}

.time-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-cell {
    padding: 8px 25px 8px 7px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.time-cell:last-child {
    border-bottom: none;
}

.time-cell:hover {
    background: #f5f7fa;
}

.custom-select {
    position: static;
    width: 100%;
}


.select-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    width: 100%;
}

.select-box::after {
    content: "▾";
    font-size: 14px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d7d7d;
}

.select-dropdown {
    display: none;
    position: absolute;
    width: 100% !important;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    max-height: 270px;
    overflow: hidden;
    z-index: 99999;
}

.select-search {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    outline: none;
}

.select-options {
    max-height: 220px;
    overflow-y: auto;
}

.select-options .option {
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
}

.select-options .option:hover {
    background: #38b6ff;
    color: #fff;
}

@media (min-width: 992px) {
    .car-booking-bar {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 30px;
        padding: 5px 40px 20px 20px;
    }

    .booking-half {
        width: 50%;
    }

    .location-dual {
        flex: 1 1 450px;
        min-width: 340px;
        max-width: 100%;
    }

    .date-dual {
        flex: 1 1 250px;
        min-width: 235px;
        max-width: 100%;

    }

    .time-dual {
        flex: 1 1 250px;
        min-width: 240px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .rent-btn {
        padding: 8px 12px !important;
        font-size: 15px !important;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .calendar-grid div {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        font-size: 12px;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .car-booking-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .booking-item {
        flex: 1 1 45%;
        min-width: 260px !important;
        max-width: 350px;
    }

    .booking-dual {
        flex-direction: row !important;
        min-width: unset !important;
    }
}

@media (max-width: 768px) {
    .overlay-container-wrapper {
        padding-top: 20px;
        margin-top: 35px;
    }

    .overlay_wrapper,
    .overlay_wrapper-cars,
    .overlay-container,
    .centered_header_content {
        width: 100%;
    }

    .overlay-container {
        height: auto;
        padding: 40px 20px;
        margin-top: 90px;
    }

    .moteurss {
        flex-wrap: wrap;
        gap: 5px;
        overflow-x: hidden;
    }

    .guests2 {
        min-width: 277px !important;
        position: absolute !important;
        left: -5px !important;
        top: 10px !important;
        margin-bottom: 6px;
    }

    .car-booking-bar {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .booking-item {
        width: 100% !important;
        min-width: 100% !important;
    }

    .booking-dual {
        flex-direction: column !important;
        min-width: 100% !important;
    }

    .booking-dual .divider {
        width: 100%;
        height: 1px;
        margin: 6px 0;
    }

    .select-dropdown {
        max-height: 250px;
    }

    .calendar-wrapper,
    .time-wrapper {
        left: 0 !important;
        width: 100% !important;
    }

    .booking-item.booking-dual,
    .booking-item.booking-dual.date-dual,
    .booking-item.booking-dual.time-dual {
        min-height: auto;
    }
}

.time-wrapper {
    width: 130px !important;
    max-width: 130px !important;
}


.location-dual {
    max-width: 100% !important;
}

.booking-half {
    padding: 14px 15px 7px !important;
    position: relative;
}

.date-box,
.time-box {
    padding: 3px 0 !important;
    gap: 5px !important;
}

.time-input,
.date-input {
    font-size: 14px !important;
}


.location-dual .select-box {
    padding: 6px 8px !important;
    font-size: 14px !important;
}

.booking-item.booking-dual,
.booking-item.booking-dual.date-dual,
.booking-item.booking-dual.time-dual,
.location-dual {
    min-height: 75px !important;
}

.select2-container .select2-selection {
    border: none !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.custom-dd-wrapper {
    position: static;
    width: 100%;
    display: flex;
    align-items: center;
}

.custom-dd {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto !important;
    margin-top: 6px;
    display: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .15);
    max-height: 260px;
    overflow-y: auto;
    z-index: 99999;
}

.custom-dd-wrapper .input-icon-left {
    margin-right: 8px;
    color: #888;
    font-size: 16px;
}

.custom-dd-wrapper .ant-input {
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    flex: 1;
    height: 30px;
    line-height: 30px;
}

.custom-dd.show {
    display: block
}

.custom-dd .dd-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    transition: background .18s;
}

.custom-dd .dd-row:hover {
    background: #f5f7fa
}

.custom-dd .dd-row.selected {
    background: #38b6ff;
    color: #fff
}

.custom-dd .dd-row i {
    width: 18px;
    text-align: center;
    margin-right: 10px;
    color: #888
}

.custom-dd .dd-row.selected i {
    color: #fff
}

.custom-dd-wrapper .clear-btn {
    margin-left: 8px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    transition: color .2s;
}

.custom-dd-wrapper .clear-btn:hover {
    color: #ff4d4d
}

.custom-dd.show::-webkit-scrollbar {
    width: 5px;
}

.custom-dd.show::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dd.show::-webkit-scrollbar-thumb {
    background-color: #ebf0fa;
    border-radius: 2px;
    border: 1px solid transparent;
}

.time-wrapper {
    scrollbar-width: none;
}

.time-wrapper::-webkit-scrollbar {
    display: none;
}



/* Calendar arrow pointer */
.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    z-index: 1000000;
}

/* Add arrow pointer */
.calendar-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    /* Adjust based on input position */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

/* Alternative: using clip-path for a cleaner arrow */
.calendar-wrapper::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.input-icon-left:has(> i:not([class])) {
    margin-right: 0;
}
