/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

/* =========================
   BODY
========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: #2b2b2b;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 243, 176, 0.9),
            rgba(255, 152, 0, 0.75),
            rgba(77, 208, 225, 0.75)
        ),
        url("../imagens/background-praia.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* =========================
   HEADER
========================= */
.header {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 10;
}

/* =========================
   LOGO
========================= */
.logo {
    width: 100%;
    background: linear-gradient(to bottom, #ff9800, #ff5722);
    padding: 20px 0;
}

.logo img {
    max-width: 420px;
    width: 90%;
    margin: auto;
    display: block;
}

/* =========================
   IDIOMAS (BLINDADO)
========================= */
.lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;

    position: relative;
    z-index: 9999;
}

.lang-btn {
    width: 36px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* 🔥 evita roubo de clique */
}

.lang-btn.active {
    outline: 3px solid #00bcd4;
    transform: scale(1.1);
}

/* =========================
   MENU HAMBÚRGUER
========================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin: 12px auto;

    position: relative;
    z-index: 50;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: orangered;
    margin: 6px 0;
    border-radius: 4px;
}

/* =========================
   MENU LINKS
========================= */
.menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;

    position: relative;
    z-index: 20;
}

.menu a {
    background-color: orangered;
    color: rgb(136, 208, 250);
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   CONTEÚDO
========================= */
h1 {
    margin: 30px 10px 10px;
    color: orangered;
}

h2 {
    margin-bottom: 20px;
}

/* =========================
   POUSADAS
========================= */
.pousadas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    position: relative;
}

.card img {
    width: 100%;
    border-radius: 12px;
}

/* =========================
   OVERLAY ESGOTADO
========================= */
.overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    pointer-events: none;
}


/* =========================
   PATROCÍNIO
========================= */
.Patrocinio img {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

footer {
    background: linear-gradient(
        to right,
        #00bcd4,
        #4dd0e1
    );
    color: #004d40;
    text-align: center;
    font-weight: bold;
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.3;

    width: 100%;
}

footer span {
    display: inline;
    margin: 0;
    padding: 0;
}

@media (max-width: 480px) {
    footer {
        padding: 8px 6px;
        font-size: 8px;
        line-height: 1.2;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        background: linear-gradient(to bottom, #ff9800, #ff5722);
        padding: 20px 0;

        pointer-events: none;
    }

    .menu.active {
        display: flex;
        pointer-events: auto;
    }

    .menu a {
        width: 90%;
        margin: 6px auto;
    }
}

@media (max-width: 480px) {

    footer {
        font-size: 10px;
        padding: 8px;
    }

    .overlay {
        width: 45%;
    }
}

/* =========================
   LIGHTBOX FULLSCREEN
========================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 12px;
}

/* SELO ESGOTADO NO FULL */
.lightbox-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    display: none;
    pointer-events: none;
}

/* BOTÃO FECHAR */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 100000;
}

/* cursor de zoom */
.card img {
    cursor: zoom-in;
}