/* Stile del calendario */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    border: 1px solid #002337;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #003580;
    color: white;
}

.flatpickr-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-top: 1px solid #eee;
    background-color: #fff;
    border-radius: 0px 12px 12px;
    margin-top: 10px;
}

.flatpickr-footer button {
    font-family: 'mulish', sans-serif;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    line-height: 24px;
    width: 100%;
    margin: 5px;
    text-transform: uppercase;
}

.flatpickr-footer button.reset {
    background: #FFF;
    color: #002337;
    border: 1px solid #002337;
    padding: 5px 15px;
}

.flatpickr-footer button:not(.reset) {
    background: #002337;
    color: #FFF;
    border: 1px solid #002337;
    padding: 5px 15px;
}

.flatpickr-day {
    font-family: 'mulish', sans-serif;
    font-size: 14px !important;
    line-height: 21px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
    color: white !important;
    border-radius: 3px !important;
}

.flatpickr-day.inRange {
    border-radius: 3px !important;
    border: 1px solid #002337 !important;
    box-shadow: -5px 0 0 #ffffff, 5px 0 0 #ffffff !important;
    background-color: #309de10f;
}

.flatpickr-day.today:not(.selected) {
    border-radius: 0px !important;
    background-color: #f0f0f0;
}

.flatpickr-days .dayContainer {
    row-gap: 3px !important;
}

.flatpickr-calendar .flatpickr-weekdays .flatpickr-weekdaycontainer {
    padding: 10px 0;
    background-color: #309de10f;
    margin: 0px 5px;
}

.flatpickr-calendar .flatpickr-weekdays .flatpickr-weekdaycontainer .flatpickr-weekday {
    color: #002337;
    text-align: center;
    font-family: 'mulish', sans-serif;
    font-size: 14px;
    font-weight: 100;
    line-height: 21px;
    text-transform: uppercase;
}

.flatpickr-calendar .flatpickr-month .flatpickr-current-month {
    color: #002337;
    text-align: center;
    font-family: 'mulish-b', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 10px;
}

.flatpickr-calendar .flatpickr-month {
    margin-bottom: 5px;
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flatpickr-calendar .flatpickr-days .dayContainer {
    border: 0px !important;
    box-shadow: none !important;
}

.flatpickr-calendar {
    min-width: 618px;
    width: 100% !important;
}

.flatpickr-calendar .flatpickr-innerContainer {
    justify-content: center;
}

.label-dateRange {
    display: block;
    position: relative;
    padding-right: 40px;
    max-width: 100%;
    width: 100%;
}

.label-dateRange::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 39px;
    padding: 6px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M12 1.70001L6 7.70001L0 1.70001L1.4 0.300012L6 4.90001L10.6 0.300012L12 1.70001Z' fill='%23002337'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.booking-form input {
    color: var(--color-primary);
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #002337;
    background-color: transparent;
    font-family: 'mulish-b', sans-serif;
    font-size: 1em;
    line-height: 24px;
}

.booking-form input::placeholder {
    color: var(--color-primary);
    font-family: 'mulish-b', sans-serif;
    font-size: 1em;
    line-height: 24px;
}

.booking-form .label-input {
    color: var(--color-primary);
    font-family: 'mulish', sans-serif;
    font-size: 0.875em;
    line-height: 21px;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
    content: none !important;
}

/* custom select */
.custom-select,
.custom-select-room {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: sans-serif;
}
.custom-select-room {
    transition: all 0.3s ease;
    z-index: 20;
}

.custom-select__trigger span {
    font-family: 'mulish-b', sans-serif;
    font-size: 1em;
    line-height: 24px;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #002337;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: #002337;
    transition: border-color 0.2s ease;
}

.custom-select__trigger:hover {
    border-color: #002337;
}

.custom-select-room .arrow,
.custom-select .arrow {
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M12 1.70001L6 7.70001L0 1.70001L1.4 0.300012L6 4.90001L10.6 0.300012L12 1.70001Z' fill='%23002337'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

/* Lista opzioni */
.custom-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: transparent;
    border: 1px solid #002337;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.custom-select-room.open .custom-options,
.custom-select.open .custom-options {
    max-height: 370px;
    height: auto !important;
    opacity: 1;
    visibility: visible;
    background-color: #FFF;
    z-index: 122;
}

.custom-select-room .custom-options ul {
    overflow-y: auto;
    max-height: 290px;
}

.option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #002337;
    font-family: 'mulish', sans-serif;
    font-size: 1em;
    line-height: 24px;
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background: #f5f7fa;
}

.option.selected {
    background: #002337;
    color: #FFF;
}

.booking-form .label-room {
    color: var(--color-primary);
    font-family: 'mulish-b', sans-serif;
    font-size: 1em;
    line-height: 24px;
}

.booking-form .label-room .required {
    font-family: 'mulish', sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

.booking-form .custom-select-age-children {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-form .increase-children,
.booking-form .decrease-children,
.booking-form .increase-adults,
.booking-form .decrease-adults {
    width: 37px;
    height: 37px;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-form .increase-children:disabled,
.booking-form .decrease-children:disabled,
.booking-form .increase-adults:disabled,
.booking-form .decrease-adults:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-form .increase-children:hover:not(:disabled),
.booking-form .decrease-children:hover:not(:disabled),
.booking-form .increase-adults:hover:not(:disabled),
.booking-form .decrease-adults:hover:not(:disabled) {
    background: var(--color-primary);
}

.booking-form .increase-children:hover:not(:disabled) svg path,
.booking-form .decrease-children:hover:not(:disabled) svg path,
.booking-form .increase-adults:hover:not(:disabled) svg path,
.booking-form .decrease-adults:hover:not(:disabled) svg path {
    fill: #fff;
}

.booking-form .adults-count,
.booking-form .children-count {
    text-align: center;
    font-family: 'mulish-b', sans-serif;
    font-size: 1.125em;
    line-height: 28px;
    background-color: #E8EFF3;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-form .age-children {
    padding: 7px 10px 7px 5px !important;
    font-family: 'mulish-b', sans-serif;
    font-size: 1em;
    line-height: 24px;
    border-radius: 8px;
    border: 1px solid #002337 !important;
    height: 40px !important;
    color: var(--color-primary) !important;
    background-color: white;
}

.booking-form .remove-room-btn:focus-visible,
.booking-form .age-children:focus-visible {
    outline: none;
    border: 2px solid var(--color-primary);
}

.booking-form #add-room {
    color: var(--color-primary);
    text-align: center;
    font-family: 'mulish-b', sans-serif;
    font-size: 0.85em;
    line-height: 24px;
    text-transform: uppercase;
    text-decoration: underline;
    background-color: white;
    border: 0;
}

.booking-form .footer-btn {
    background-color: white;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    margin-top: -10px;
    box-shadow: 0px -2px 3px 0px #0000005e;
    position: relative;
    z-index: 1111;
}

.booking-form .footer-btn button:focus-visible {
    outline: none;
    border: 2px solid #0d6efd;
}

.booking-form .footer-btn button {
    border-radius: 4px;
    border: 1px solid var(--color-primary);
    font-family: 'mulish-b', sans-serif;
    font-size: 1em;
    line-height: 24px;
    text-transform: uppercase;
    padding: 5px 15px;
}

.booking-form .footer-btn .apply-room {
    background-color: var(--color-primary);
    color: white;
}

.booking-form .footer-btn .reset-room {
    background-color: white;
    color: var(--color-primary);
}

.booking-form #add-room:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-form .remove-room-btn {
    text-transform: uppercase;
}

.booking-form .custom-options ul {
    overflow: auto;
    /* Altezza o max-height per mostrare bene la scrollbar */
    max-height: 300px;
    /* Firefox */
    scrollbar-color: #002337 #E8EFF3;
    scrollbar-width: thin;
}

/* Chrome, Edge, Safari */
.booking-form .custom-options ul::-webkit-scrollbar {
    width: 10px;
    /* larghezza della barra */
}

.booking-form .custom-options ul::-webkit-scrollbar-track {
    background: #E8EFF3;
    /* colore di sfondo */
    border-radius: 10px;
}

.booking-form .custom-options ul::-webkit-scrollbar-thumb {
    background-color: #002337;
    /* colore della parte mobile */
    border-radius: 10px;
    border: 2px solid #E8EFF3;
    /* bordo per dare contrasto */
}

.booking-form .custom-options ul::-webkit-scrollbar-thumb:hover {
    background-color: #003a5c;
    /* colore più scuro al passaggio */
}

.error-message {
    font-family: 'mulish-b', sans-serif;
    color: red;
    font-size: 0.9em;
    line-height: 20px;
    display: block;
    margin-bottom: 5px;
}
.booking-form .radio-group p{
    color: var(--color-primary);
    font-family: 'mulish-b', sans-serif;
    font-size: 1.125em;
    line-height: 27px;
    white-space: nowrap;
}
.booking-form .radio-group {
    color: #002b3d;
    border-right: 1px solid #002b3d;
    padding: 10px;
    padding-right: 20px;
    margin-right: 20px;
}

.booking-form .radio-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.booking-form .custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.booking-form .custom-radio input[type="radio"] {
    display: none;
}
.booking-form .radio-btn {
    width: 24px;
    height: 24px;
    border: 2px solid #002b3d;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 8px;
    box-sizing: border-box;
}
.booking-form .radio-btn:focus-visible{
    outline: none;
    border-color: #002b3d;
    box-shadow: 0 0 0 3px rgba(0, 43, 61, 0.5);
}
.booking-form .radio-btn::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.735 12.322C6.55446 12.13 6.30541 12.017 6.04201 12.0076C5.77861 11.9983 5.52217 12.0933 5.32844 12.272C5.13471 12.4507 5.01937 12.6986 5.00749 12.9619C4.99561 13.2252 5.08815 13.4826 5.265 13.678L8.877 17.597C9.414 18.123 10.214 18.123 10.711 17.627L11.075 17.268C12.3895 15.9752 13.7025 14.6809 15.014 13.385L15.054 13.345C16.2797 12.1371 17.499 10.9227 18.712 9.70199C18.8933 9.51218 18.9927 9.25872 18.9887 8.99628C18.9848 8.73384 18.8778 8.48348 18.6909 8.2992C18.504 8.11493 18.2522 8.01152 17.9897 8.01129C17.7273 8.01106 17.4752 8.11404 17.288 8.29799C16.0807 9.51232 14.8673 10.7207 13.648 11.923L13.608 11.963C12.3513 13.2053 11.0929 14.4459 9.833 15.685L6.735 12.322Z"/></svg>');
    background-size: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.booking-form .radio-btn input:checked + .radio-btn::after {
    opacity: 1;
}

.booking-form .custom-radio input[type="radio"]:checked + .radio-btn {
    background-color: #002b3d;
    border-color: #002b3d;
}

.booking-form .custom-radio input[type="radio"]:checked + .radio-btn::after {
    opacity: 1;
}
.booking-form .custom-radio .label-text{
    color: var(--color-primary);
    font-family: 'mulish', sans-serif;
    font-size: 1em;
    line-height: 24px;
}
.booking-form .text-coupon p{
    color: var(--color-primary);
    font-family: 'mulish', sans-serif;
    font-size: 14px;
    line-height: 24px;
}
#btn-submit{
    background-color: #FF9A03;
    border-radius: 4px;
    padding: 15px 25px;
    color: var(--color-primary);
    font-family: 'mulish-b', sans-serif;
    font-size:1em;
    line-height: 24px;
    text-transform: uppercase;
    border: 2px solid #FF9A03;
    transition: all 0.3s ease;
}
#contactInfo{
    background-color: #00233796;
}
#contactInfo .modal-dialog{
    width: 100%;
    max-width: 850px;
}
#contactInfo .modal-header{
    border-bottom: 0px !important;
}
#contactInfo .container-links a{
    padding: 10px 15px;
    background: #00233745;
    color: #002337;
    font-family: 'mulish', sans-serif;
    font-size: 1em;
    line-height: 24px;
}
#contactInfo  .modal-content{
    border-radius: 0 !important;
}
#contactInfo .close{
    color: var(--color-primary);
    border: 0;
    background: white;
    font-family: 'mulish-b', sans-serif;
}
#iscritto a{
    color: var(--color-primary);
    font-family: 'mulish-b', sans-serif;
}
@media screen and (min-width: 991px) {
    #btn-submit:hover{
        background-color: #ff9a038f !important;
    }
}
@media screen and (max-width: 700px) {
    .flatpickr-calendar {
        min-width: 314px !important;
    }
    .booking-form .label-input{
        padding-bottom: 5px;
    }
    .booking-form .radio-group{
        border-right: 0;
        margin-right: 0;
    }
    .custom-select__trigger,
    .booking-form input{
        padding: 13px 8px;
    }
    .label-dateRange::before{
        right: 8px;
        top: 49px;
    }
}