/* Base Dropdown Styles */
.custom-datetime-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    display: none;
    min-width: 400px;
}

.custom-datetime-dropdown-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    padding: 0;
    min-width: 650px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}


/* Desktop Styles */
.custom-datetime-modal-body {
    display: flex;
    flex-direction: row;
}

.custom-datetime-calendar-section {
    padding-right: 32px;
    min-width: 320px;
    border-right: 1px solid #CCC;
}

.custom-datetime-time-info-section {
    display: flex;
    flex-direction: column;
}

/* Calendar Header */
.custom-datetime-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
}

.custom-datetime-calendar-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #3a3a3a;
    padding: 0 8px;
}

/* Calendar Table */
.custom-datetime-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.custom-datetime-calendar-table th {
    color: #8a8a8a;
    font-weight: 500;
    padding-bottom: 6px;
}

.custom-datetime-calendar-table td {
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    position: relative;
}

.custom-datetime-calendar-table td.selected {
    background: #4caf50;
    color: #fff;
}

.custom-datetime-calendar-table td.in-range {
    background: #e8f5e9;
    color: #222;
}

.custom-datetime-calendar-table td.range-start,
.custom-datetime-calendar-table td.range-end {
    background: rgba(99, 171, 69, 1);
    color: #fff;
}

.custom-datetime-calendar-table td.disabled {
    color: #ccc;
    pointer-events: none;
}

.custom-datetime-calendar-table td:hover:not(.disabled):not(.selected) {
    background: #c8e6c9;
}

/* Time Section */
.custom-datetime-time-section {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    justify-content: end;
    padding-left: 2rem;
}

.custom-datetime-time-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.custom-datetime-time-group:first-child {
    border-bottom: 1px solid #CCC;
}

.custom-datetime-time-group label {
    color: #444;
    font-family: "Inter";
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    margin-bottom: .5rem;
}

.custom-datetime-time-group input[type="time"] {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 16px;
    width: 100%;
}

.custom-datetime-time-group input[type="time"] {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 16px;
    width: 100%;
}

/* Actions */
.custom-datetime-actions {
    display: flex;
    gap: 12px;
    margin-top: 3rem;
    justify-content: flex-end;
}

.custom-datetime-actions button {
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 16px;
    cursor: pointer;
    background: #4caf50;
    color: #fff;
    font-weight: 600;
    transition: background 0.15s;
}

.custom-datetime-actions button:last-child {
    background: #e0e0e0;
    color: #333;
}

.custom-datetime-actions button:hover {
    filter: brightness(0.95);
}

/* Desktop Time Picker Dropdown */
.custom-time-picker-dropdown {
    position: absolute;
    z-index: 10000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 200px;
}

.custom-time-picker-popup {
    padding: 16px;
}

.custom-time-picker-header {
    color: #767A85;
    font-family: "Inter";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 8px */
    margin-bottom: .75rem;
    text-align: start;
}

.custom-time-picker-body {
    display: flex;
    gap: 8px;
    align-items: center;
}

/*.custom-time-picker-col.ampm {*/
/*    width: 40px;*/
/*}*/

/*.custom-time-picker-col div,*/
/*.custom-time-picker-col .ampm-option {*/
/*    padding: 8px 4px;*/
/*    text-align: center;*/
/*    cursor: pointer;*/
/*    font-size: 14px;*/
/*}*/

/*.custom-time-picker-col div:hover,*/
/*.custom-time-picker-col .ampm-option:hover {*/
/*    background: #f0f0f0;*/
/*}*/

/*.custom-time-picker-col div.selected,*/
/*.custom-time-picker-col .ampm-option.selected {*/
/*    background: #4caf50;*/
/*    color: white;*/
/*}*/

.custom-time-picker-sep {
    font-weight: bold;
    margin: 0 4px;
}

/* Desktop time input wrapper styles */
.custom-datetime-time-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    border-radius: 25px;
    border: 1px solid #DCDCDC;
    background: #FFF;
}

.custom-datetime-time-input-wrapper:hover, .custom-datetime-time-input-wrapper:focus {
    border: 1px solid #63AB45;
    background: #EFF6EC;
}

.custom-datetime-time-value {
    font-weight: 500;
}

.ampm-toggle {
    font-size: 12px;
    color: #666;
}

.clock-icon {
    display: flex;
    align-items: center;
}

.custom-datetime-date-label {
    color: rgba(33, 37, 41, 0.75);
    font-family: "Inter";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 15px */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .custom-datetime-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: unset;
        background: #F1F1F4;
        z-index: 10000;
        transform: translateY(-100%);
        transition: transform 0.3s ease-out;
    }

    .custom-datetime-dropdown.show {
        transform: translateY(0);
    }

    .custom-datetime-dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        min-width: unset;
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .custom-datetime-modal-body {
        display: flex;
        align-items: center;
        padding: 0 20px;
        margin-top: auto;
        gap: 0;
        position: relative;
        background: transparent none !important;
    }

    .custom-datetime-modal-body header {
        position: absolute;
        top: 0;
        left: 15px;
        right: 15px;
    }

    .custom-datetime-modal-body::after {
        display: none;
    }

    .mobile-step-date, .mobile-step-time, .mobile-step-guest {
        position: relative;
    } 

    .custom-datetime-dropdown .custom-datetime-dropdown-content {
        background: transparent none !important;
    }

    .custom-datetime-calendar-section {
        background: none !important;
        box-shadow: none !important;
    }

    .mobile-step-date {
        border-radius: 15px;
        background: #FFF;
        box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.12);
    }

    /* Mobile Header */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        border-bottom: 1px solid #C4C2C2;
        padding-bottom: 1rem;
    }

    .mobile-header h3 {
        font-size: 22px;
        font-weight: 600;
        margin: 0;
        color: #000;
    }

    .mobile-close-btn {
        background: rgba(136, 211, 89, 0.45);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 300;
        position: absolute;
        top: -4rem;
        right: -1.5rem;
    }

    .mobile-step-date,
    .mobile-step-time,
    .mobile-step-guest {
        width: 100%;
        flex: 1;
        padding: 1rem;
        box-sizing: border-box;
        display: none;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-step-date {
        display: flex;
    }

    .custom-datetime-calendar-section {
        background: #FFFFFF;
        border-radius: 20px;
        padding: 24px 0;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Mobile Time Section */
    .custom-datetime-time-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 0;
    }

    /* Mobile Guest Section */
    .custom-datetime-guest-section {
        background: #FFFFFF;
        border-radius: 20px;
        padding: 24px 20px;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .guest-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid #F0F0F0;
    }

    .guest-row:last-child {
        border-bottom: none;
    }

    .guest-label {
        font-size: 16px;
        font-weight: 600;
        color: #000;
        margin-bottom: 4px;
    }

    .guest-desc {
        font-size: 14px;
        color: #666;
    }

    .guest-controls {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .guest-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #E0E0E0;
        background: #FFFFFF;
        color: #666;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .guest-btn:hover {
        background: #F5F5F5;
    }

    .guest-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .custom-datetime-dropdown .custom-datetime-dropdown-content {
        padding: 0;
    }

    .guest-count {
        font-size: 16px;
        font-weight: 600;
        color: #000;
        min-width: 24px;
        text-align: center;
    }

    .custom-datetime-calendar-section {
        border-right: none;
    }

    .custom-datetime-calendar-table td {
        padding: 12px 0;
        height: 35px !important;
        width: 35px !important;
    }

    .custom-datetime-actions {
        background: #F1F1F4;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: auto;
        margin-top: 0;
    }

    .custom-datetime-actions button {
        color: #FFF;
        font-family: "Inter";
        font-size: 15px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-transform: capitalize;
        flex: 1;
        padding: 16px 24px;
        border-radius: 9px;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;

    }

    .mobile-clear-btn {
        background: none !important;
        color: #848484 !important;
        font-family: "Inter";
        font-size: 13px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }

    .mobile-next-btn,
    .mobile-next-guest-btn,
    .mobile-submit-btn {
        background: #6CB944 !important;
        color: #FFFFFF !important;
    }

    .mobile-back-btn {
        background: none !important;
        color: #848484 !important;
        font-family: "Inter";
        font-size: 13px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }

    /* Mobile Time Input */
    .mobile-time-input {
        padding: 16px 20px;
        cursor: pointer;
        display: flex;
        transition: all 0.2s ease;
        justify-content: space-between;
        gap: 1rem;
        align-items: center;
    }

    .mobile-check-time-date {
        color: rgba(33, 37, 41, 1);
        font-family: "Inter";
        font-size: 17px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%; /* 17px */
    }

    .sl-room-adv svg {
        height: 1rem;
    }

    .mobile-step-time {
        border-radius: 15px;
        background: #FFF;
        box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.12);
    }

    .custom-datetime-time-section {
        padding: 0 !important;
    }

    .mobile-time-input:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-time-input.active {
        border-color: #6CB944;
        box-shadow: 0 0 0 2px rgba(108, 185, 68, 0.2);
    }

    .mobile-time-input label {
        color: #8F8F8F;
        font-family: "Inter";
        font-size: 13px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;

    }

    .mobile-time-display {
        border-radius: 25px;
        border: 1px solid #DCDCDC;
        background: #FFF;
        padding: 8px;
        color: rgba(33, 37, 41, 0.75);
        font-family: "Inter";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
    }

    .mobile-time-picker-modal {
        position: fixed;
        top: 50%;
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 20px 20px 0px 0px;
        background: #FFF;
        z-index: 10001;
        display: none;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }


    .mobile-time-picker-modal.show {
        transform: translateY(0);
    }

    .mobile-time-picker-modal.show::before {
        opacity: 1;
    }

    .mobile-time-picker-content {
        height: 100vh;
        display: flex;
        flex-direction: column;
        background: #F1F1F4;
    }

    .mobile-time-picker-body {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F1F1F4;
        padding: 40px 20px;
    }

    /* Scroll Wheel Time Picker */
    .mobile-time-picker-container {
        padding: 40px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding-bottom: 0;

    }

    .custom-datetime-dropdown .custom-datetime-dropdown-content {
        border-radius: 0;
        transition: background 0.2s ease;
    }

    .custom-datetime-dropdown .custom-datetime-dropdown-content.backdrop {
        background: rgba(0, 0, 0, 0.60) !important;
    }

    .mobile-time-scroll-wheel {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 120px;
        overflow: hidden;
        position: relative;
        width: 60px;
    }

    .mobile-time-scroll-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease;
        transform: translateY(0px);
    }

    .mobile-time-scroll-item {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 500;
        color: #CCC;
        transition: all 0.3s ease;
        cursor: pointer;
        width: 60px;
    }

    .mobile-time-scroll-item.current {
        font-size: 28px;
        font-weight: 700;
        color: #000;
        transform: scale(1.2);
    }

    .mobile-time-separator {
        font-size: 28px;
        font-weight: 700;
        color: #000;
        align-self: center;
    }

    /* Mobile Time Picker Actions */
    .mobile-time-picker-actions {
        padding: 20px;
        display: flex;
        gap: 12px;
    }

    .mobile-time-picker-actions button {
        flex: 1;
        padding: 16px 24px;
        border-radius: 25px;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #848484;
        font-family: "Inter";
        font-size: 17px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        background-color: transparent;
    }

    .mobile-step-guest {
        padding: 0;
    }
}