﻿.search-container {
    width: 100%;
    max-width: 1250px;
    padding: 0px 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

/* Autocomplete */

.autocomplete {
    position: relative;
    width: 35%;
}

.autocomplete-popover {
    width: 450px;
    padding: 0px
}

.autocomplete-msg {
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.autocomplete-item-wrapper {
    display: flex;
    justify-content: center;
    margin: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 0 0 0 var(--primary-color);
}

    .autocomplete-item-wrapper:not(.hotel-placeholder):hover {
        border-color: var(--primary-color);
        box-shadow: 0 2px 0 0 var(--primary-color);
        transform: translateY(-2px);
        transition: box-shadow 0.4s ease, transform 0.4s ease;
    }

    .autocomplete-item-wrapper.hotel-placeholder:hover{
        cursor: default;
    }

    .autocomplete-item-wrapper:focus-visible {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 2px 0 0 var(--primary-color);
        transform: translateY(-2px);
        transition: box-shadow 0.4s ease, transform 0.4s ease;
    }

.autocomplete-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.autocomplete-section {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 20px;
    color: black;
    background-color: #e5e5e5;
}

/* Date Picker/Calendar */

.date-picker {
    width: 35%;
    position: relative;
}

.checkin-cell {
    border-radius: 10px 0 0 10px !important;
    border-right: 1px solid gainsboro;
    width: 35%
}

.checkout-cell {
    border-radius: 0;
    width: 35%
}

.nights-cell {
    border-radius: 0 10px 10px 0;
    width: 30%
}

.calendar-header{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.calendar-header-btn{
    position: absolute;
}

    .calendar-header-btn.prev{
        left: 0;
    }

    .calendar-header-btn.next {
        right: 0;
    }

.popover-calendar{
    display: flex;
    gap: 25px;
    padding: 0 15px;
}

.week-days {
    text-align: center;
    font-size: 12px;
    margin: 6px 0px;
    color: gray;
}

.date-cell {
    position: relative;
    height: 36px;
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    border: 2px solid transparent;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard */
}

    .date-cell.disabled {
        color: #ccc;
        cursor: not-allowed;
        border-color: transparent !important
    }

    .date-cell:hover {
        border-radius: 100% !important;
        border: 2px solid var(--primary-color);
    }

    .date-cell.hover-range-end {
        border-radius: 100% !important;
        border: 2px solid var(--primary-color);
    }

        .date-cell.hover-range-end.disabled {
            border-color: var(--red) !important
        }

    .date-cell.selected {
        background: var(--primary-color);
        color: white;
        transition: 0.4s ease;
    }

    .date-cell.selected-start {
        border-radius: 6px 0 0 6px;
    }

    .date-cell.selected-end {
        border-radius: 0 6px 6px 0;
    }

    .date-cell.between-range {
        background: var(--primary-color-light);
        border-radius: 0;
    }

    .date-cell.between-range.disabled {
        color: white;
    }

    .date-cell.between-selected {
        background: var(--primary-color-light);
        border-radius: 0;
        transition: 0.4s ease;
    }

.nights-label {
    position: absolute;
    z-index: 400;
    top: -80%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: black !important;
    background-color: white;
    box-shadow: 0 2px 2px #dedede;
    border-radius: 50px;
    pointer-events: none;
}

/*Passengers Picker*/

.passengers-field {
    position: relative;
    width: 30%;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room-header{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-title{
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.room-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    width: 25px;
    font-size: 20px
}

.passengers-wrapper{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.passengers-selection-area{
    display: flex;
    align-items: center;
    justify-content: space-between
}

.passegers-type{
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.passengers-selection{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.passengers-change-btn {
    height: 25px;
    width: 25px;
}

.pax-form-title{
    display: flex;
    gap: 8px;
    align-items: center;
}

.pax-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pax-autocomplete .autocomplete-popover {
    display: flex;
    flex-direction: column;
}

.pax-autocomplete .autocomplete-popover{
    width: 230px;
}

.passengers-age-select-wrapper {
    display: flex;
    flex-direction: column;
}

.passengers-age-select {
    height: 40px
}

.autocomplete.pax-autocomplete {
    width: 100%;
}

.pax-autocomplete .hs-dynamic-input {
    height: 40px !important;
}

.pax-autocomplete .hs-dynamic-input-text {
    padding-top: 0px !important;
    padding-right: 10px !important;
}

.pax-autocomplete .hs-custom-popover {
    transition: none !important;
}

.pax-autocomplete .hs-custom-popover.active {
    transition: none !important;
}

.pax-autocomplete .hs-spinner {
    margin-top: 8px;
    margin-right: 6px;
}

.passengers-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/*Search*/
.search-btn {
    min-width: 100px;
    height: 60px;
    font-size: 16px;
    padding: 0px 16px
}

@media (max-width: 1024px) {
    .search-container {
        flex-wrap: wrap;
    }

    .autocomplete {
        width: 100%;
    }

    .date-picker {
        flex: 1
    }

    .passengers-field {
        width: 50%;
    }

    .search-btn {
        width: 100%;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .search-container {
        flex-direction: column;
    }

    .hs-dynamic-input {
        min-width: 100px;
    }

    .date-picker {
        width: 100%;
    }

    .passengers-field {
        width: 100%;
    }

    .search-btn {
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 425px) {
    .checkin-cell {
        width: 50%;
    }

    .checkout-cell {
        width: 50%;
        border-radius: 0 10px 10px 0;
    }

    .nights-cell {
        display: none;
    }

    .popover-calendar {
        padding: 0px;
    }

    .date-cell {
        height: 34px;
        width: 34px;
    }

    .hs-custom-popover{
        width: 100%;
        max-width: 100%;
    }

    .calendar-popover {
        max-width: fit-content;
    }
}