.card-date__picker span.ui-icon {
    display: none;
}

.ui-datepicker td.checkin-available a {
    background: url(../../img/webp/checkin.webp) no-repeat;
    background-size: 100% 100%;
}

.ui-datepicker td.checkout-available a {
    background: url(../../img/webp/checkout.webp) no-repeat;
    background-size: 100% 100%;
}


.ui-datepicker td.both-available-date a {
    position: relative;
}

.ui-datepicker td.both-available-date a::after {
    content: "✓→";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 9px;
    color: #2196f3;
    font-weight: bold;
    z-index: 2;
}

.ui-datepicker td.both-available-date a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #2196f3;
    border-radius: 4px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ui-datepicker td.checkin-available-date a::after,
    .ui-datepicker td.checkout-available-date a::after,
    .ui-datepicker td.both-available-date a::after {
        font-size: 8px;
        top: 1px;
        right: 1px;
    }
}

.card-date__selected-range {
    margin-bottom: 25px;
    padding: 20px;
    background: #fafafa;
    border-radius: 15px;
    border: 1px solid #e4e4e5;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02), 0px 10px 15px 0px rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-range {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.selected-range__item {
    text-align: left;
    flex: 1;
    min-width: 120px;
}

.selected-range__label {
    margin-bottom: 10px;
    display: block;
    font: bold 10px / 16px "Lato";
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: text;
    opacity: 0.56;
}

.selected-range__date,
.selected-range__nights {
    height: 46px;
    padding: 1px 0 0 15px;
    display: flex;
    align-items: center;
    background: #f4f4f5;
    border: 1px solid #f4f4f5;
    border-radius: 4px;
    font: 500 14px / 1 "Montserrat";
}

.selected-range__reset {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.ui-datepicker td.ui-state-disabled {
    cursor: not-allowed !important;
}

.ui-datepicker td.blocked-date span,
.ui-datepicker td.blocked-date a {
    background-color: #AB8F69 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.ui-datepicker td.in-range.blocked-date a {
    background-color: #AB8F69 !important;
    color: #ffffff !important;
}

.ui-datepicker td a.ui-state-hover {
    position: relative;
}

.ui-datepicker td[title] a:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.ui-datepicker td.past-date a {
    background-color: #f5f5f5 !important;
    color: #9e9e9e !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.ui-datepicker td.in-range a {
    background-color: #282828 !important;
    color: #ffffff !important;
}

.ui-datepicker td.range-start a {
    background-color: #282828 !important;
    color: #ffffff;
}

.ui-datepicker td.range-end a {
    background-color: #282828 !important;
    color: #ffffff !important;
}

.card-date__button {
    transition: all 0.3s ease;
}
.card-date__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ui-datepicker td[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .selected-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .selected-range__item {
        min-width: 100%;
    }
    
    .ui-datepicker .ui-datepicker-calendar {
        font-size: 14px;
    }
    
    .reset-button {
        width: 100%;
    }
}
