/* ============= css for home page hotel-rental-car-widget ======================== */
.hb-home-widget_input-container.hb-destination,
.hb-home-widget_input-container.hb-dates,
.hb-home-widget_input-container.hb-settings {
    width: 100%;
}

.hb-home-widget_input-container label {
    font-size: 1rem;
}

.hb-home-widget_input-container input {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1rem;
    color: var(--secondary-text-color);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.hb-home-widget_input-container input:focus,
.hb-home-widget_input-container input:focus-within,
.hb-home-widget_input-container input:focus-visible {
    border-color: var(--primary-color);
}

.hb-home-widget_button {
    border-radius: 18.75rem !important;
    font-size: 1.25rem;
    line-height: 1rem;
    height: 2.625rem;
    width: 25%;
}

.hb-home-widget_button .search {
    display: block;
    height: 100%;
    background: url('/img/search-icon.svg') center no-repeat transparent;
}

.hb-home-widget_button .search span {
    display: none;
}

.loader {
    display: block;
    border: 0.25rem solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    margin: auto;
    animation: spin 2s linear infinite;
}

.hotel-widget-calendar {
    cursor: pointer;
    padding-left: 2.5rem;
    background: url('/img/calendar-icon.svg') 1rem center no-repeat #fff;
}

.hotel-widget-rooms_guests {
    position: relative;
}

.hotel-widget-rooms_guests {
    cursor: pointer;
}

.hotel-widget-rooms_guests span {
    cursor: pointer;
    position: absolute;
    top: calc(50% - 0.5rem);
    right: 1rem;
    display: block;
    height: 0.75rem;
    width: 0.75rem;
    content: '';
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(135deg);
    background-color: #fff;
}

/* List of Destination */
.ui-widget-content .ui-menu-item-wrapper {
    color: var(--secondary-color);
    text-decoration: none;
}

.hb-home-widget .error {
    border: 2px solid red;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 992px) {
    .hb-home-widget_button {
        height: 3rem;
        width: 50%;
    }

    .hb-home-widget_button .search {
        background: none;
        height: auto;
    }

    .hb-home-widget_button .search span {
        display: block;
    }

    .hb-home-widget_input-container.hb-destination {
        width: 34%;
    }

    .hb-home-widget_input-container.hb-dates,
    .hb-home-widget_input-container.hb-settings {
        width: 33%;
    }
}

@media (min-width: 1280px) {
    .hb-home-widget_input-container.hb-destination {
        width: 50%;
    }

    .hb-home-widget_input-container.hb-dates,
    .hb-home-widget_input-container.hb-settings {
        width: 25%;
    }
}
