/* Banner Principal */
:root {
    --slide-duration: 25s;
    --start-scale: 1;
    --mid-scale: 1.1;
    --end-scale: 1.15;
    --banner-height: 70vh;
}

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation var(--slide-duration) ease-in-out infinite;
}

.banner .slide:nth-child(1) {
    animation-delay: 0s;
}

.banner .slide:nth-child(2) {
    animation-delay: calc(var(--slide-duration) * 1 / 5);
}

.banner .slide:nth-child(3) {
    animation-delay: calc(var(--slide-duration) * 2 / 5);
}

.banner .slide:nth-child(4) {
    animation-delay: calc(var(--slide-duration) * 3 / 5);
}

.banner .slide:nth-child(5) {
    animation-delay: calc(var(--slide-duration) * 4 / 5);
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(var(--start-scale));
    }

    10% {
        opacity: 1;
        transform: scale(calc(var(--start-scale) + (var(--mid-scale) - var(--start-scale)) * (10 / 50)));
    }

    50% {
        opacity: 1;
        transform: scale(var(--mid-scale));
    }

    60% {
        opacity: 0;
        transform: scale(var(--end-scale));
    }

    100% {
        opacity: 0;
        transform: scale(var(--end-scale));
    }
}

.banner .pousada {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    width: 90%;
}

@media (max-width: 768px) {
    .banner {
        height: 100vh;
    }

    .banner .pousada {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        top: 70%;
    }
}

/* Estilo Site Pousada 4 Irmãos */
body {
    font-family: "Fauna One", serif !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Cormorant Garamond", serif !important;
}

/* Buscador Whatsapp Banner */

.reservation-widget,
.reservation-widget * {
    font-family: "Fauna One", serif !important;
}

.flatpickr-calendar,
.flatpickr-calendar *,
.flatpickr-wrapper {
    font-family: "Fauna One", serif !important;
}

.reservation-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

.reservation-widget > div {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.reservation-widget label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reservation-widget select,
.reservation-widget input[type="text"] {
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid #888;
    background: transparent;
    min-width: 140px;
    cursor: pointer;
}

.counter {
    display: flex;
    align-items: center;
}

.counter button {
    width: 2rem;
    height: 2rem;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.counter span {
    display: inline-block;
    width: 2rem;
    text-align: center;
    font-size: 1rem;
}

.reservation-widget .btn-book {
    margin-left: auto;
    padding: 0.75rem 1.5rem;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-end;
}

@media (max-width: 768px) {
    .reservation-widget {
        flex-direction: column;
    }

    .reservation-widget .btn-book {
        margin-left: 0;
        width: 100%;
    }
}

.counter span {
    display: inline-block;
    width: 2rem;
    text-align: center;
    font-size: 1rem;
    color: black;
}

.reservation-widget label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: black;
}

.banner .reservation-widget {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 40%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: calc(100% - 40px);
    max-width: 1200px;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
}

.banner .reservation-widget .btn-book {
    margin: 0 0.5rem;
    background: #d5964d;
}

.banner .reservation-widget .btn-book:hover {
    margin: 0 0.5rem;
    background: #004430;
}

/* Header */
.navbar-toggler-icon {
    filter: invert(1) !important;
}

.navbar-toggler {
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    filter: invert(1) !important;
}

.navbar-toggler:hover {
    border-color: #ccc !important;
}

.font-salt-caramel {
    color: #d5964d !important;
    font-family: "Fauna One"
}



@media (max-width: 1024px) {
    .navbar {
        top: 0 !important
    }
}

/* Botões */
.hr-pousada {
    border: none;
    height: 2px;
    background: #d5964d;
    opacity: 1;
    border-radius: 3px;
    max-width: 100px !important;
    margin-left: auto;
    margin-right: auto;
}

.hr-pousada-l {
    border: none !important;
    height: 2px !important;
    background: #d5964d !important;
    opacity: 1 !important;
    border-radius: 3px !important;
    max-width: 100px !important;
    margin-right: auto !important;
}

.btn-4-irmaos:hover {
    border-width: 2px !important;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s, color 0.3s !important;
    background-color: #004033 !important;
}

.btn-4-irmaos {
    background-color: #d5964d !important;
    color: #fff !important;
    border-width: 2px !important;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase !important;

}


.btn-booking {
    border-width: 2px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-booking:hover {
    background-color: #d5964d;
    border-color: #d5964d;
    color: #fff;
}

.bg-cream {
    background-color: #f2dcc1 !important;
}

.navbar-nav .nav-link {
    color: #fff;
}

.social-icons a {
    display: inline-block;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
    color: #fff;
}

.social-icons a:hover {
    color: #d5964d;
}

.btn-booking {
    border-width: 2px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-booking:hover {
    background-color: #d5964d !important;
    border-color: #d5964d !important;
    color: #fff !important;
}

.bg-cream {
    background-color: #f2dcc1 !important;
}



.suites-swiper .swiper {
    padding-bottom: 2rem;
    /* espaço interno para evitar corte no mobile */
}

.suites-swiper .swiper-slide {
    height: auto;
}

.suites-swiper .card {
    height: 100%;
}

/* Paginação fora do swiper */
.suites-pagination {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: #d5964d;
}

#recantoSwiper {
    width: 100%;
    max-width: auto;
    /* ou ajuste conforme seu layout */
    height: 400px;
    /* altura desejada */
    margin: auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* front e back ocupam todo o espaço do pai */
.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front {
    z-index: 2;
}

/* === back setup === */
.flip-card-back {
    transform: rotateY(180deg);
    overflow: hidden;
    /* para conter imagem e overlay */
}

/* imagem de fundo no verso */
.back-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* camada semiopaca escura */
.back-overlay {
    position: absolute;
    top: 0;
    left: 0;

    .flip-card {
        perspective: 1000px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }

    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    /* front e back ocupam todo o espaço do pai */
    .flip-card-front,
    .flip-card-back {
        position: absolute;
        top: 0;
        left: 0;
        backface-visibility: hidden;
    }

    .flip-card-front {
        z-index: 2;
    }

    .flip-card-back {
        transform: rotateY(180deg);
        background: rgba(0, 0, 0, 0.6);
        /* semitransparente */
        color: #fff;
    }

    /* manter o texto centralizado no back */
    .flip-card-back .overlay-text {
        max-width: 90%;
    }

    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* texto acima da overlay */
.flip-card-back .overlay-text {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 1rem;
    text-align: center;
    max-width: 90%;
    margin: auto;
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* front e back ocupam todo o espaço do pai */
.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.flip-card-front {
    z-index: 2;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #004033;
    /* semitransparente */
    color: #fff;
}

/* manter o texto centralizado no back */
.flip-card-back .overlay-text {
    max-width: 90%;

}

.bg-flip-card {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));

}

#recantoSwiper .swiper-slide img {
    border-radius: 10px;
}

.hero-booking {
    background-color: #003580;
    /* cor semelhante ao rosa do exemplo */
    color: #fff;
}

.hero-booking .btn-booking {
    background-color: #fff;
    color: #003580;
    font-weight: 500;
}

.hero-booking .btn-booking:hover {
    background-color: #f8f9fa;
    color: #003580;
}

.comodidades {
    background-color: #004033;
    color: #fff;
}

.comodidades .icon-item {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.comodidades .icon-item img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .comodidades .icon-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    cursor: pointer;
}

.feature-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s ease;
}

.feature-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feature-card .overlay p {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    display: none;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card:hover .overlay {
    opacity: 1;
}

.feature-card:hover .overlay p {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: .5rem;
}

.info-pousada-option {
    cursor: pointer;
    transition: background 0.3s;
}

.info-pousada-option:hover,
.info-pousada-option.info-pousada-active {
    background-color: #f0f0f0;
}

.info-pousada-option img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.info-pousada-main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.info-pousada-main-image.info-pousada-zoom img {
    transform: scale(1.05);
}

.info-pousada-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

@media (max-width: 767.98px) {
    .info-pousada-option {
        padding: 0.5rem;
    }

    .info-pousada-option img {
        width: 60px;
        height: 45px;
    }
}

.swiper-slide {
    display: flex !important;
}

.review-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.review-body {
    flex: 1;
    padding: 1rem;
    padding-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    max-height: 8.4em;
    transition: max-height .3s ease;
}

.review-body.expanded {
    max-height: none;
    overflow: visible;
}

.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    transition: all .3s ease;
}

.review-text.expanded-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}


.btn-more {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    background: #fff;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: .9rem;
    z-index: 2;
    padding: 0;
}

.review-footer {
    padding: .75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: .85rem;
}

.review-footer .footer-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.review-footer .footer-line:last-child {
    margin-bottom: 0;
}

.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

.review-section {
    position: relative;
    padding: 4rem 0;
}

.review-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.review-content {
    position: relative;
    z-index: 1;
}

.navbar-nav .nav-link {
    position: relative;
    color: #fff;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    /* afasta a linha do texto */
    width: 0;
    height: 2px;
    background: #d5964d;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #d5964d;
}


.border-pousada {
    --bs-border-opacity: 1;
    border-color: #d5964d;
}

.footer-link {
    position: relative;
    color: #fff;
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #d5964d;
    transition: width 0.3s ease, left 0.3s ease;
}

.footer-link:hover {
    color: #d5964d;
}

.footer-link:hover::after {
    width: 100%;
    left: 0;
}


.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 11;
    transition: top 0.3s ease;
}


.navbar.scrolled {
    background-color: #004033;
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* Regra para mobile */
@media (max-width: 1024px) {
    .navbar-brand {
        left: 20%;
    }
}

.navbar-nav {
    margin-right: auto;
}

.navbar-toggler {
    margin-left: auto;
    z-index: 101;
}

/* Estilos mobile */
@media (max-width: 991.98px) {

    /* Collapse escondido por padrão */
    .navbar-collapse {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1049;
    }

    /* Aparece só quando .show for adicionado */
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Links centralizados */
    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: #fff;
        font-size: 1.5rem;
        margin: 15px 0;
        text-align: center;
    }

    /* Botão Booking mobile */
    .navbar-collapse .btn-booking {
        margin-top: 20px;
    }

    /* Toggle acima do menu */
    .navbar-toggler {
        z-index: 1050 !important;
    }

    /* ícones mobile */
    .social-icons {
        position: absolute;
        bottom: 10% !important;
        width: 100%;
        text-align: center;
    }

    .social-icons a {
        color: #fff;
        font-size: 1.5rem;
        margin: 0 10px;
    }
}

.font-size-menu {
    font-size: 12px !important;
}

.banner-container {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-item {
    height: 80vh;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

/* Overlay fixo por cima do banner */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* escurece a imagem */
    z-index: 2;
}

/* Texto centralizado */
.banner-text {
    position: absolute;
    top: 60%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}


.handwrite {
    font-size: 3rem;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* começa invisível */
    animation:
        write 3s steps(30, end) forwards;
}

@keyframes write {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.suite-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.suite-card:hover {
    transform: translateY(-5px);
}

.suite-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.suite-features {
    font-size: 0.9rem;
}

.suite-feature {
    background-color: #f1f1f1;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-reservar {
    border: 2px solid #5e2b97;
    color: #5e2b97;
}

.btn-reservar:hover {
    background-color: #5e2b97;
    color: white;
}

.btn-detalhes {
    background-color: #5e2b97;
    color: white;
}

.btn-detalhes:hover {
    background-color: #4a217a;
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: #004033 !important;
    ;
}

/* Garante espaço para a paginação */
#recantoSwiper {
    padding-bottom: 2.5rem;
    /* ajusta conforme o tamanho das bolinhas */
}

/* Tira o position absolute padrão e posiciona logo abaixo */
#recantoSwiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 1rem;
}

footer .social-icons {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: flex;
    gap: 10px;
}

footer .social-icons a {
    font-size: 1.5rem;
    color: #fff;
}

footer .social-icons a:hover {
    color: #d5964d;
}
.navbar-nav .nav-link {
        color: #fff;
        font-size: 16px !important;
        margin: 10px 0 !important;
        text-align: center;
    }