/* ───── Base Styles ───── */
.portal-booking-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

select#totalAdultsWithOccupancy,
select#hotel_selector_box {
    background: transparent;
}

.portal-booking-form input,
.portal-booking-form button {
    padding: 10px;
    font-size: 16px;
    flex: 1 1 150px;
    min-width: 120px;
}

.portal-booking-form button {
    padding: 15px 30px;
    text-transform: uppercase;
    flex: none;
    line-height: 20px;
}

#sidebar .portal-booking-form button {
    width: 100%;
}

/* ───── Booking Fields ───── */
.booking-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 200px;
}

.booking-input-icon {
    position: relative;
}
/* Show calendar icon inside .booking-input-icon */
.booking-input-icon::after {
    content: '';
    background: url('data:image/svg+xml;utf8,<svg fill="black" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>') no-repeat center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.6;
}

/* Add space for icon on both desktop & mobile */
.booking-input-icon input {
    padding-right: 40px !important;
}

.booking-input-icon input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    background: #fff;
}

/* Selects with icons */
.icon-select {
    position: relative;
}

.icon-select i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
}

.icon-select select {
    padding-left: 36px;
}

/* ───── Date Inputs ───── */
input.datepicker {
    font-size: 16px !important;
    padding: 12px 15px !important;
    background: transparent !important;
    width: 100% !important;
    height: 50px !important;
    border: 1px solid #ccc !important;
    border-radius: 0px !important;
}

/* Remove calendar icon on desktop only */
@media (min-width: 601px) {
    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
        position: absolute;
        right: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
}

/* ───── Flatpickr Customization ───── */
.flatpickr-calendar {
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.flatpickr-day.today {
    background: #000;
    color: #fff;
}

.flatpickr-day.selected {
    background: #0073aa;
    color: #fff;
}

/* ───── Modal Styling ───── */
#booking-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#booking-modal .modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 960px;
    height: 80vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: -25px;
    right: 0px;
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    z-index: 10001;
    background: #000;
    padding: 5px 0px;
    width: 25px; height: 25px;
    text-align: center;
    line-height: 15px;
}

/* ───── Mobile Styles ───── */
@media (max-width: 600px) {
    .portal-booking-form {
        flex-direction: column;
        gap: 12px;
    }

    .portal-booking-form input,
    .portal-booking-form button {
        width: 100%;
        font-size: 14px;
        flex: 1 1 1px;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
    }

    .booking-input-icon input[type="date"] {
        font-size: 16px !important;
        padding: 14px 40px 14px 12px !important;
        height: 48px !important;
        border-radius: 4px !important;
        background: #fff !important;
        color: #000;
        appearance: none;
        -webkit-appearance: none;
    }

    .booking-input-icon::after {
        content: '';
        background: url('data:image/svg+xml;utf8,<svg fill="black" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>') no-repeat center;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        pointer-events: none;
        opacity: 0.6;
    }

    .booking-field {
        flex: none;
        width: 100%;
    }
}

/* ───── Header Booking Buttons ───── */
#header-booking-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 999;
}

.portal-btn-header {
    background-color: var(--e-global-color-df4a51c);
    fill: var(--e-global-color-df4a51c);
    color: #313131;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: 500;
}

.portal-btn-header:hover {
    background-color: #313131;
    color: var(--e-global-color-df4a51c);
}

.portal-btn {
    background-color: #313131;
    fill: var(--e-global-color-df4a51c);
    color: var(--e-global-color-df4a51c);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    padding: 16px 30px;
    text-transform: uppercase;
    font-weight: 500;
  border: 1px solid #313131;
}

.portal-btn:hover {
    background-color: var(--e-global-color-df4a51c);
    color: #313131;
}

/* ───── Mobile Booking CTA Button ───── */
.mobile-booking-button {
    margin-top: 30px;
}

@media (min-width: 768px) {
    .mobile-booking-button {
        display: none;
    }
}
