:root {
    --azul: #0a5369;
    --azul-claro: #6FB3B8;
    --areia: #F2EFE8;
    --coral: #E07A63;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter;
    background: var(--areia);
    color: #333;
}

/* header {
            position: sticky;
            top: 0;
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 8%;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            z-index: 10;
        } */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all .3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* .logo {
            font-family: Poppins;
            font-weight: 700;
            color: var(--azul);
            font-size: 22px;
            display: flex;
            align-items: center;
        } */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Poppins;
    font-weight: 700;
    color: var(--azul);
    font-size: 22px;
}

.logo img {
    height: 48px;
    width: auto;
}

/* .logo-img {
            width: 50px;
            height: 50px;
            margin-right: 5px;
        } */

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.slogan {
    font-size: 12px;
    color: var(--azul-claro);
    /* opacity: .7; */
}

nav {
    display: flex;
    align-items: center;
}

/* nav a {
            margin-left: 25px;
            text-decoration: none;
            color: var(--azul);
            font-weight: 500;
        } */

nav a {
    margin-left: 28px;
    text-decoration: none;
    color: var(--azul);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: .3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.menu-close {
    display: none;
}

.btn-reservar {
    margin-left: 30px;
    background: var(--coral);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
}

.btn-reservar:hover {
    transform: translateY(-2px);
    background: #c16854;
}

.btn-reservar::after {
    display: none;
}

.hero {
    height: 85vh;
    background: url("./img/martim-de-sa3.jpeg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 {
    font-family: Poppins;
    font-size: 54px;
    margin: 0;
}

.hero p {
    font-size: 20px;
    margin: 20px 0 30px;
}

.btn {
    background: var(--coral);
    padding: 14px 32px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-2px);
    background: #c16854;
}

section {
    padding: 90px 10%;
}

h2 {
    font-family: Poppins;
    font-size: 36px;
    color: var(--azul);
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature {
    display: flex;
    background: white;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.feature:hover {
    transform: translateY(-2px);
}

.feature svg {
    display: flex;
    margin-right: 3px;
    width: 20px;
    height: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    will-change: transform;
}

.gallery img:hover {
    transform: translateY(-6px);
}

.card,
.feature,
.gallery img {
    transform: translateZ(0);
}

#instagram,
#contato,
#avaliacoes {
    display: flex;
    flex-direction: column;
}

#instagram div,
#contato div,
#avaliacoes>div:last-child {
    display: flex;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding-bottom: 20px;
}

.review {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

footer {
    background: var(--azul);
    color: white;
    padding: 50px 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .socials a {
            margin: 0 10px;
            color: white;
            font-size: 22px;
            text-decoration: none;
        } */

.socials svg {
    width: 18px;
    fill: var(--azul);
}

.socials a:hover {
    background: var(--coral);
}

.socials a:hover svg {
    fill: white;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    z-index: 999;
    animation: pulse 2s infinite;
}

.oculto {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    fill: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #333;
    margin: 4px 0;
    border-radius: 2px;
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 900;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 40px;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
}

.lightbox-prev {
    left: 30px
}

.lightbox-next {
    right: 30px
}

.lightbox-counter {
    /* position: absolute;
            bottom: 110px; */
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
}

.lightbox-counter {
    margin-top: 10px;
    position: relative;
    bottom: auto;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 90vh;
}


/* .lightbox-thumbs {
            margin-top: 20px;
            display: flex;
            gap: 10px;
            max-width: 90vw;
            overflow-x: auto;
            padding-bottom: 10px;
        } */

.lightbox-thumbs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 10px 0 5px 0;
    /* justify-content: center; */
}

/* .lightbox-thumbs img {
            height: 60px;
            width: 90px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            opacity: .6;
            border: 2px solid transparent;
            transition: .2s;
        } */

.lightbox-thumbs img {
    height: 65px;
    width: 95px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: .65;
    border: 2px solid transparent;
    transition: .2s;
    flex: 0 0 auto;
}

.lightbox-thumbs img.active {
    opacity: 1;
    border: 2px solid white;
    transform: scale(1.05);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ZOOM NA IMAGEM */
#lightbox-img {
    transition: transform .25s ease;
    cursor: zoom-in;
}

#lightbox-img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

/* BLUR LOADING */
/* .blur-load {
            filter: blur(20px);
            transition: filter .4s ease;
        }

        .blur-loaded {
            filter: blur(0);
        } */


.airbnb-reviews {
    /* max-width: 1100px; */
    margin: auto;
    /* padding: 60px 20px; */
}

#airbnb-rating {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    /* margin-bottom: 20px; */
}

.review-card:hover {
    transform: translateY(-2px);
}

.review-author {
    font-weight: 600;
    margin-bottom: 6px;
}

.review-stars {
    color: #ff385c;
    margin-bottom: 8px;
}

.airbnb-link {
    display: inline-block;
    margin-top: 20px;
    color: #ff385c;
    font-weight: 600;
    text-decoration: none;
}

#backToTop {

    position: fixed;
    bottom: 100px;
    right: 34px;

    width: 55px;
    height: 55px;

    border-radius: 50%;
    border: none;

    background: var(--coral);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);
    transition: all .3s ease;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);

    z-index: 998;
}

#backToTop svg {
    position: absolute;
    transform: rotate(-90deg);
}

#backToTop .arrow {
    position: relative;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

#backToTop .arrow svg {
    transform: rotate(0deg);
    position: relative;
    padding-top: 7px;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-3px) scale(1.05);
    background: #c16854;
}

#instagram .instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 30px;
    padding-bottom: 22px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .4s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);

    color: white;
    font-size: 14px;
    padding: 10px;

    opacity: 0;
    transition: .3s;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

@media(max-width:900px) {

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: white;
        flex-direction: column;
        padding-top: 100px;
        transition: .4s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    nav a {
        margin: 20px;
        font-size: 18px;
    }

    nav a.menu-close {
        display: flex;
        margin: 0px;
        font-size: 0px;
        position: absolute;
        top: 3%;
        right: 13%;
    }

    .btn-reservar {
        margin: 30px;
        text-align: center;
    }

    nav.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 36px
    }

    .hero p {
        font-size: 16px
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    #backToTop {
        right: 23px;
    }
}

@media(max-width:700px) {
    .hero h1 {
        font-size: 36px
    }

    .hero p {
        font-size: 16px
    }

    .whatsapp-float {
        bottom: 13px;
        right: 13px;
    }

    #backToTop {
        bottom: 85px;
        right: 16px;
    }

    /* .logo-img {
                width: 40px;
                height: 40px;
            } */
}