﻿/* *********************************** Hospedagens */

.bv-header-lodging {
    min-width: 0;
}

.bv-header-lodging-dynamic {
    display: grid;
    gap: 20px;
}

.bv-header-lodging-category-section {
    display: grid;
    gap: 11px;
}

    .bv-header-lodging-category-section h4 {
        margin: 0;
        color: var(--bv-catalog-text);
        font-size: .8rem;
        font-weight: 950;
    }

.bv-header-lodging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

/* *********************************** Card */

.bv-header-lodging-card {
    height: 100%;
}

    .bv-header-lodging-card.is-featured {
        border-color: rgba(255, 46, 147, .28);
    }

.bv-header-lodging-card__open {
    width: 100%;
    height: 100%;
    min-height: 270px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bv-header-lodging-card__image {
    position: relative;
    height: 100%;
    min-height: 270px;
    overflow: hidden;
    background: #eff1f4;
}

    .bv-header-lodging-card__image img {
        width: 100%;
        height: 100%;
        min-height: 270px;
        display: block;
        object-fit: cover;
        transition: transform 220ms ease;
    }

.bv-header-lodging-card:hover
.bv-header-lodging-card__image img {
    transform: scale(1.035);
}

.bv-header-lodging-card__featured {
    position: absolute;
    top: 10px;
    left: 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(24, 24, 30, .78);
    color: #fff;
    font-size: .56rem;
    font-weight: 900;
    backdrop-filter: blur(9px);
}

    .bv-header-lodging-card__featured[hidden] {
        display: none !important;
    }

.bv-header-lodging-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.bv-header-lodging-card__category {
    display: block;
    overflow: hidden;
    color: var(--bv-catalog-accent-dark);
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.bv-header-lodging-card__content > strong {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    color: #292e37;
    font-size: .9rem;
    line-height: 1.34;
    font-weight: 950;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bv-header-lodging-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

    .bv-header-lodging-card__stats > span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #727a86;
        font-size: .58rem;
        font-weight: 850;
    }

        .bv-header-lodging-card__stats > span[hidden] {
            display: none !important;
        }

    .bv-header-lodging-card__stats i {
        color: var(--bv-catalog-accent-dark);
    }

.bv-header-lodging-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

    .bv-header-lodging-card__amenities[hidden] {
        display: none !important;
    }

    .bv-header-lodging-card__amenities > span {
        min-height: 27px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 0 8px;
        border-radius: 9px;
        background: rgba(255, 46, 147, .065);
        color: var(--bv-catalog-accent-dark);
        font-size: .53rem;
        font-weight: 850;
    }

.bv-header-lodging-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    color: var(--bv-catalog-muted);
    font-size: .65rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

    .bv-header-lodging-card__description[hidden] {
        display: none !important;
    }

.bv-header-lodging-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: auto;
    padding-top: 13px;
    color: var(--bv-catalog-accent-dark);
    font-size: .61rem;
    font-weight: 950;
}

/* *********************************** Paginação */

.bv-header-lodging-more {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* *********************************** CTA */

.bv-header-lodging-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 46, 147, .16);
    border-radius: 22px;
    background: radial-gradient(circle at 90% 0, rgba(255, 46, 147, .11), transparent 38%), linear-gradient(135deg, rgba(255, 46, 147, .055), #fff);
}

    .bv-header-lodging-full > div {
        min-width: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
    }

        .bv-header-lodging-full > div > span {
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border-radius: 15px;
            background: var(--bv-catalog-accent-soft);
            color: var(--bv-catalog-accent-dark);
        }

    .bv-header-lodging-full strong {
        display: block;
        color: var(--bv-catalog-text);
        font-size: .79rem;
        font-weight: 950;
    }

    .bv-header-lodging-full p {
        margin: 3px 0 0;
        color: var(--bv-catalog-muted);
        font-size: .65rem;
        line-height: 1.45;
    }

/* *********************************** Vazio */

.bv-header-lodging-empty h3 {
    margin: 14px 0 0;
    color: var(--bv-catalog-text);
    font-size: .97rem;
    font-weight: 950;
}

.bv-header-lodging-empty p {
    max-width: 470px;
    margin: 7px 0 0;
    color: var(--bv-catalog-muted);
    font-size: .73rem;
    line-height: 1.55;
}

/* *********************************** Modal */

.bv-header-lodging-modal {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

    .bv-header-lodging-modal[hidden] {
        display: none !important;
    }

    .bv-header-lodging-modal.is-open {
        opacity: 1;
        visibility: visible;
    }

.bv-header-lodging-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 13, 21, .74);
    backdrop-filter: blur(8px);
}

.bv-header-lodging-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(90dvh, 820px);
    display: grid;
    grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 11, 20, .35);
}

.bv-header-lodging-modal__close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #282d35;
    box-shadow: 0 6px 18px rgba(10, 15, 24, .13);
    cursor: pointer;
}

.bv-header-lodging-modal__image {
    min-height: 520px;
    background: #eef0f4;
}

    .bv-header-lodging-modal__image img {
        width: 100%;
        height: 100%;
        min-height: 520px;
        display: block;
        object-fit: cover;
    }

.bv-header-lodging-modal__content {
    min-width: 0;
    max-height: min(90dvh, 820px);
    overflow-y: auto;
    padding: 28px;
}

.bv-header-lodging-modal__category {
    display: block;
    margin-right: 45px;
    color: var(--bv-catalog-accent-dark);
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bv-header-lodging-modal__content h3 {
    margin: 7px 45px 0 0;
    color: #242932;
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 950;
}

.bv-header-lodging-modal__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 13px;
}

    .bv-header-lodging-modal__stats > span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #6b7380;
        font-size: .65rem;
        font-weight: 850;
    }

        .bv-header-lodging-modal__stats > span[hidden] {
            display: none !important;
        }

    .bv-header-lodging-modal__stats i {
        color: var(--bv-catalog-accent-dark);
    }

.bv-header-lodging-modal__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

    .bv-header-lodging-modal__amenities[hidden] {
        display: none !important;
    }

    .bv-header-lodging-modal__amenities > span {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        border-radius: 10px;
        background: rgba(255, 46, 147, .07);
        color: var(--bv-catalog-accent-dark);
        font-size: .6rem;
        font-weight: 900;
    }

.bv-header-lodging-modal__description {
    margin-top: 16px;
    color: #59616e;
    font-size: .76rem;
    line-height: 1.7;
}

    .bv-header-lodging-modal__description strong {
        color: #252a33;
        font-weight: 950;
    }

.bv-header-lodging-modal__feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 11px;
    border: 1px solid rgba(255, 46, 147, .14);
    border-radius: 15px;
    background: rgba(255, 46, 147, .045);
}

    .bv-header-lodging-modal__feedback button {
        min-height: 39px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0 13px;
        border: 1px solid rgba(255, 46, 147, .24);
        border-radius: 12px;
        background: #fff;
        color: var(--bv-catalog-accent-dark);
        font: inherit;
        font-size: .66rem;
        font-weight: 900;
        cursor: pointer;
    }

        .bv-header-lodging-modal__feedback button.is-voted {
            border-color: var(--bv-catalog-accent);
            background: var(--bv-catalog-accent);
            color: #fff;
        }

    .bv-header-lodging-modal__feedback > span {
        color: #6c7480;
        font-size: .65rem;
        font-weight: 850;
    }

.bv-header-lodging-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

html.bv-header-lodging-no-scroll,
html.bv-header-lodging-no-scroll body {
    overflow: hidden !important;
}

/* *********************************** Responsivo */

@media (max-width: 900px) {
    .bv-header-lodging-card__open {
        grid-template-columns: 140px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .bv-header-lodging-grid {
        grid-template-columns: 1fr;
    }

    .bv-header-lodging-full {
        align-items: stretch;
        flex-direction: column;
    }

        .bv-header-lodging-full .bv-header-catalog-button {
            width: 100%;
        }

    .bv-header-lodging-modal__dialog {
        width: min(600px, 100%);
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .bv-header-lodging-modal__image,
    .bv-header-lodging-modal__image img {
        min-height: 270px;
        max-height: 38dvh;
    }

    .bv-header-lodging-modal__content {
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .bv-header-lodging-card__open {
        min-height: 225px;
        grid-template-columns: 114px minmax(0, 1fr);
    }

    .bv-header-lodging-card__image,
    .bv-header-lodging-card__image img {
        min-height: 225px;
    }

    .bv-header-lodging-card__content {
        padding: 13px;
    }

    .bv-header-lodging-card__amenities > span {
        min-height: 24px;
        padding-inline: 6px;
        font-size: .5rem;
    }

    .bv-header-lodging-modal {
        align-items: end;
        padding: 0;
    }

    .bv-header-lodging-modal__dialog {
        width: 100%;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;
    }

    .bv-header-lodging-modal__content {
        padding: 20px;
    }

    .bv-header-lodging-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .bv-header-lodging-modal__actions
        .bv-header-catalog-button {
            width: 100%;
        }
}
