.ai-home-wrapper {
    margin: auto;
    border-radius: 4px;
    padding: 40px 50px 50px;
}
.ai-logo {
    text-align: center;
    margin-bottom: 25px;
}
.ai-logo img {
    width: 95px;
}
.ai-heading {
    text-align: center;
}
.ai-heading h1 {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin: 0 0 19px 0;
    text-transform: capitalize;
}
.ai-heading p {
    color: #949494;
    font-size: 16px;
    margin: 0;
}
.ai-search-form {
    margin: 19px auto 21px;
    position: relative;
}
.ai-search-input {
    width: 100%;
    height: 86px;
    border: 1px solid #cfcfcf;
    border-radius: 22px;
    padding: 0 90px 0 35px;
    font-size: 20px;
    outline: none;
}
.ai-home-wrapper .ai-search-bottom-text {
    text-align: center;
    margin-bottom: 60px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}
.ai-search-input::placeholder {
    color: #9f9f9f;
}
.ai-search-submit {
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}
.ai-search-submit svg {
    width: 34px;
    height: 34px;
    stroke: #222;
}
.ai-stats {
    text-align: center;
    font-size: 26px;
    font-weight: 500;
    color: #111;
    margin-bottom: 50px;
}
.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.ai-card {
    border: 1px solid #949494;
    background-color: #F8F8F8;
    border-radius: 13px;
    padding: 23px 28px;
    display: flex;
    gap: 8px;
    transition: 0.3s ease;
    cursor: pointer;
}
.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}
.ai-icon {
    min-width: 52px;
}
.ai-icon svg {
    width: 42px;
    height: 42px;
    stroke: #2da7ff;
}
.ai-card-content h3 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 6px 0;
    color: #000;
    font-weight: 700;
}
.ai-card-content p {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    margin: 0;
}
.ai-chat-wrapper {
    margin: auto;
    display: none;
    flex-direction: column;
    /* height: 90vh; */
    height: calc(100dvh - 238px);
}
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}
.ai-message {
    margin-bottom: 30px;
}
.ai-user {
    display: flex;
    justify-content: flex-end;
}
.ai-user .bubble {
    background: #fff;
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 450px;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.ai-response {
    display: flex;
    gap: 15px;
}
.ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.ai-response-content {
    flex: 1;
}
.ai-response-content p {
    line-height: 1.8;
    color: #333;
}
.ai-property-list {
    margin-top: 20px;
}
.ai-property-item {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.ai-property-item strong {
    display: block;
    margin-bottom: 8px;
}
#ai-chat-form {
    display: flex;
    gap: 15px;
    padding: 11px 20px;
    border-radius: 16px;
    border: 1px solid #ccc;
    background: #fff;
    align-items: center;
}
#ai-chat-input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    box-shadow: none;
    outline: none;
}
#ai-chat-input:-webkit-autofill,
#ai-chat-input:-webkit-autofill:hover,
#ai-chat-input:-webkit-autofill:focus,
#ai-chat-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: inherit;
    transition: background-color 5000s ease-in-out 0s;
}
#ai-chat-form button {
    border: none;
    border-radius: 16px;
    cursor: pointer;
    min-width: 33px;
    width: auto;
    background-color: transparent;
}
.ai-home-wrapper .ai-search-form input.ai-search-input {
    border-radius: 15px;
    border-color: rgba(148, 148, 148, 1);
    height: 80px;
    font-size: 16px;
    font-weight: normal;
}
.ai-home-wrapper .ai-search-form input.ai-search-input:-webkit-autofill,
.ai-home-wrapper .ai-search-form input.ai-search-input:-webkit-autofill:hover,
.ai-home-wrapper .ai-search-form input.ai-search-input:-webkit-autofill:focus,
.ai-home-wrapper .ai-search-form input.ai-search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: inherit;
    transition: background-color 5000s ease-in-out 0s;
}
.ai-home-wrapper .ai-search-form button.ai-search-submit {
    border: none;
    padding: 0;
    display: flex;
}
.ai-home-wrapper .ai-search-form button.ai-search-submit:hover {
    background-color: transparent;
}
.ai-home-wrapper .ai-search-form input.ai-search-input::placeholder {
    color: #949494;
}
.hostaway-card-content ul.hostaway-listing-amenities {
    list-style: none;
    padding: 0 0 10px 0;
    row-gap: 10px;
}
.hostaway-card-content ul.hostaway-listing-amenities li.hostaway_sq_icon::before {
    top: 50%;
}
.ai-message .ai-response-content .hostaway-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
    margin-top: 9px;
}
.ai-message .ai-response-content .hostaway-listing-card {
    width: 100%;
}
.ai-chat-wrapper form#ai-chat-form button {
    min-width: 33px;
    width: auto;
    background-color: transparent;
    display: flex;
}
.ai-message .ai-avatar {
    position: relative;
    width: 52px;
    height: 52px;
}
.ai-message .ai-avatar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: url("../images/ai-avtar.svg") no-repeat;
    background-size: 87%;
    width: 100%;
    height: 100%;
}
.ai-message .ai-response-content>p:first-child {
    grid-column: 1 / -1;
    margin: 0;
}
.ai-message.ai-user .ai-user-icon {
    position: relative;
    width: 52px;
    height: 52px;
    margin: 0 0 0 20px;
}
.ai-message.ai-user .ai-user-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url("../images/dummy-avtar.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
.ai-loader {
    display: flex;
    margin-bottom: 20px;
}
.ai-loader .bubble {
    background: #f1f1f1;
    padding: 14px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 70px;
}
.ai-loader .bubble span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    animation: hawayAILoader 1.4s infinite ease-in-out;
}
.ai-loader .bubble span:nth-child(2) {
    animation-delay: 0.2s;
}
.ai-loader .bubble span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes hawayAILoader {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
/* start responsive code */
@media(max-width:991px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width:767px) {
    .ai-home-wrapper {
        padding: 30px 20px;
    }
    .ai-heading h1 {
        font-size: 23px;
    }
    .ai-heading p {
        font-size: 16px;
    }
    .ai-search-input {
        height: 65px;
        font-size: 16px;
        padding: 0 70px 0 20px;
    }
    .ai-stats {
        font-size: 18px;
    }
    .ai-card {
        padding: 12px;
    }
    .ai-card-content h3 {
        font-size: 17px;
    }
    .ai-card-content p {
        font-size: 14px;
    }
    .ai-search-form {
        margin: 15px auto 15px;
    }
    .ai-home-wrapper .ai-search-form input.ai-search-input {
        height: 50px;
        padding-right: 61px;
    }
    .ai-icon {
        min-width: 36px;
    }
    .ai-icon svg {
        width: 31px;
        height: 31px;
    }
    .ai-grid {
        gap: 15px;
    }
    .ai-message .ai-response-content {
        grid-template-columns: repeat(1, 1fr);
    }
    .ai-chat-wrapper form#ai-chat-form button {
        padding: 0;
        display: flex;
    }
    #ai-chat-input {
        padding-left: 0;
    }
    .ai-chat-messages {
        padding: 30px 7px;
    }
    .ai-message {
        margin-bottom: 0;
    }
    .ai-message.ai-user {
        margin-bottom: 23px;
    }
    .ai-home-wrapper {
        padding: 30px 0;
    }
    .ai-message .ai-response-content .hostaway-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-message .ai-avatar {
        width: 39px;
        height: 39px;
    }
    .ai-message.ai-user .ai-user-icon {
        min-width: 39px;
        width: 39px;
        height: 39px;
    }
    .ai-home-wrapper .ai-search-form button.ai-search-submit{
        right: 15px;
    }
    .hostaway-card-content .hostaway-listing-amenities li span span{
        line-height: 15px;
    }
    .hostaway_bed_icon::before, .hostaway_bath_icon::before, .hostaway_person_icon::before, .hostaway_sq_icon::before {
        top: 4px;
        transform: translateY(0);
    }
    .hostaway-card-content ul.hostaway-listing-amenities li.hostaway_sq_icon::before{
        top: 1px;
    }
    .hostaway-listing-amenities li:nth-child(4)::after{
        display: none;
    }
    .hostaway-card-content ul.hostaway-listing-amenities{
        row-gap: 5px;
    }
}
@media(max-width:575px) {
    .ai-message .ai-response-content .hostaway-listing-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}