/* ------------------------------
   FONTES E CORES
------------------------------ */
:root {
    --cor-primaria: #1A4F6B;
    --cor-primaria-escura: #143e54;
    --cor-primaria-clara: #4FA3C7;

    --cor-texto: #333333;
    --cor-texto-suave: #6C757D;
    --cor-texto-secundario: #4b4b4b;

    --cor-branco: #FFFFFF;
    --cor-fundo-suave: #fafafa;
    --cor-secundaria: #F2E9D8;

    --hero-overlay-forte: rgba(0,0,0,.65);
    --hero-overlay-medio: rgba(0,0,0,.45);
    --hero-overlay-suave: rgba(0,0,0,.20);
    --hero-overlay-min: rgba(0,0,0,.05);

    --gradiente-primario: linear-gradient(
        135deg,
        var(--cor-primaria),
        var(--cor-primaria-escura)
        );

    --sombra: 0 12px 30px rgba(0, 0, 0, 0.08);
    --radius: 18px;
    --cor-navbar-fundo: rgba(255, 255, 255, 0.92);
    --cor-texto-invertido: #ffffff;
}

body.tema-praia {
    --cor-primaria: #d8c29b;
    --cor-primaria-escura: #b89f73;
    --cor-primaria-clara: #eee2cf;

    --cor-texto: #3a332d;
    --cor-texto-suave: #7d7367;
    --cor-texto-secundario: #5d5448;

    --cor-branco: #fffdf9;
    --cor-fundo-suave: #f7f2ea;
    --cor-secundaria: #eadfcf;

    --gradiente-primario: linear-gradient(
        135deg,
        #d8c29b,
        #b89f73
        );

    --sombra: 0 12px 30px rgba(0, 0, 0, 0.08);
    --cor-navbar-fundo: rgba(255, 253, 249, 0.92);
    --cor-texto-invertido: #ffffff;
}

body.tema-praia-dark {
    --cor-primaria: #cbb38a;
    --cor-primaria-escura: #a88d63;
    --cor-primaria-clara: #e0cfb2;

    --cor-texto: #eae6df;
    --cor-texto-suave: #cfc6b6;
    --cor-texto-secundario: #ddd3c2;

    --cor-branco: #1e1a17;        /* base dos cards */
    --cor-fundo-suave: #26211d;   /* fundo geral */
    --cor-secundaria: #332b24;

    --gradiente-primario: linear-gradient(
        135deg,
        #cbb38a,
        #a88d63
        );

    --sombra: 0 12px 30px rgba(0, 0, 0, 0.4);
    --cor-navbar-fundo: rgba(30, 26, 23, 0.92);
    --cor-texto-invertido: #f7f3ed;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--cor-texto);
    background-color: var(--cor-branco);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--cor-primaria);
}

section {
    scroll-margin-top: 90px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--cor-texto-suave);
    max-width: 720px;
    margin: 0 auto;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.navbar {
    backdrop-filter: blur(8px);
    background-color: var(--cor-navbar-fundo);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .5px;
    color: var(--cor-primaria) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--cor-texto-suave) !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--cor-primaria) !important;
}

.btn-brand {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    border: none;
    border-radius: 999px;
    padding: .8rem 1.4rem;
    font-weight: 600;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active {
    color: var(--cor-branco);
    background: var(--cor-primaria-escura);
    transform: translateY(-1px);
}

.btn-light-outline {
    border: 1px solid rgba(255,255,255,.45);
    color: var(--cor-branco);
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    padding: .8rem 1.4rem;
    font-weight: 600;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-light-outline:hover,
.btn-light-outline:focus,
.btn-light-outline:active {
    background: rgba(255,255,255,.18);
    color: var(--cor-branco);
    transform: translateY(-1px);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background: url('../img/praiadaaguda.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--hero-overlay-forte) 0%,
        var(--hero-overlay-medio) 35%,
        var(--hero-overlay-suave) 60%,
        var(--hero-overlay-min) 80%
        );
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.16);
    color: var(--cor-branco);
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .95rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: var(--cor-texto-invertido);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero p {
    color: rgba(255,255,255,.92);
    font-size: 1.1rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ------------------------------
   RESUMO RÁPIDO
------------------------------ */
.summary-bar {
    margin-top: -42px;
    position: relative;
    z-index: 3;
}

.summary-card {
    background: var(--cor-branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 1.2rem 1rem;
}

.summary-item {
    text-align: center;
    padding: .75rem;
}

.summary-item strong {
    display: block;
    color: var(--cor-primaria);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.summary-item span {
    color: var(--cor-texto-suave);
    font-size: .95rem;
}

/* ------------------------------
   SOBRE
------------------------------ */
.about-text {
    max-width: 820px;
    margin: 0 auto;
    color: var(--cor-texto-secundario);
    font-size: 1.05rem;
}

/* ------------------------------
   GALERIA
------------------------------ */
.gallery-card,
.photo-card {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    background: var(--cor-branco);
}

.gallery-card img,
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, opacity .35s ease;
    cursor: pointer;
}

.gallery-card:hover img,
.photo-card:hover img {
    transform: scale(1.04);
    opacity: .94;
}

.gallery-main {
    height: 100%;
    min-height: 520px;
}

.gallery-small {
    height: 250px;
}

/* ------------------------------
   COMODIDADES
------------------------------ */
.amenities-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.amenities-list li {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: var(--cor-texto);
}

/* ------------------------------
   LOCALIZAÇÃO / MAPA
------------------------------ */
.location-box {
    background: var(--cor-branco);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--sombra);
    height: 100%;
}

.map-box {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    background: var(--cor-branco);
}

.map-box iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

.location-list {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: var(--cor-texto-suave);
}

.location-list li {
    margin-bottom: .4rem;
}

/* ------------------------------
   INFORMAÇÕES DA ESTADIA
------------------------------ */
.info-card {
    background: var(--cor-branco);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--sombra);
    height: 100%;
}

.info-card h4 {
    color: var(--cor-primaria);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: .6rem 0;
}

.payment-list,
.rules-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.payment-list li,
.rules-list li {
    padding: .45rem 0;
    color: var(--cor-texto-suave);
}

/* ------------------------------
   CTA FINAL
------------------------------ */
.cta-section {
    background: var(--gradiente-primario);
    color: var(--cor-branco);
    border-radius: 28px;
    padding: 3rem 2rem;
    box-shadow: var(--sombra);
}

.cta-section h2,
.cta-section p {
    color: var(--cor-branco);
}

.cta-section p {
    opacity: .92;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
    background: var(--cor-primaria);
    color: var(--cor-branco);
}

footer p {
    margin: 0;
}

/* ------------------------------
   RESPONSIVO
------------------------------ */
@media (max-width: 991.98px) {
    .hero {
        min-height: 70vh;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .summary-bar {
        margin-top: -28px;
    }

    .gallery-main {
        min-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.7rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery-main,
    .gallery-small {
        height: 240px;
        min-height: auto;
    }

    .summary-card {
        padding: .8rem;
    }

    .location-box {
        padding: 1.4rem;
    }

    .cta-section {
        padding: 2.2rem 1.2rem;
        text-align: center;
    }

    .page-hero {
        padding: 95px 0 55px;
    }
}
@media (max-width: 400px) {
    .summary-bar {
        margin-top: 0;
    }
}

/* ------------------------------
   PÁGINA GALERIA
------------------------------ */
.page-hero {
    background: var(--gradiente-primario);
    color: var(--cor-branco);
    padding: 110px 0 70px;
}

.page-hero h1 {
    color: var(--cor-branco);
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
    color: rgba(255,255,255,.9);
    max-width: 760px;
    margin: 0 auto;
}

.gallery-section {
    padding: 70px 0;
    background: var(--cor-fundo-suave);
}

.gallery-block + .gallery-block {
    margin-top: 60px;
}

.gallery-label {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--cor-primaria);
}

.gallery-caption {
    padding: .9rem 1rem;
    color: var(--cor-texto-suave);
    font-size: .95rem;
    background: var(--cor-branco);
}

/* ------------------------------
   SCROLL TO TOP
------------------------------ */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 50%;
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--sombra);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: background-color .25s ease, transform .25s ease, opacity .25s ease, visibility .25s ease;
}

#scrollTopBtn:hover,
#scrollTopBtn:focus {
    background-color: var(--cor-primaria-escura);
    color: var(--cor-branco);
    transform: translateY(-2px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-fotos {
    background: var(--cor-fundo-suave);
}
.section-info {
    background: var(--cor-fundo-suave);
}
.badge-included {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
/* ------------------------------
   THEME SWITCH
------------------------------ */

.theme-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    display: none;
}

.theme-switch label {
    position: absolute;
    cursor: pointer;
    background: var(--cor-secundaria);
    border-radius: 50px;
    width: 100%;
    height: 100%;
    transition: background 0.3s ease;
}

/* bola */
.theme-switch label::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: var(--cor-branco);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: var(--sombra);
}

/* estado ativo (dark) */
.theme-switch input:checked + label {
    background: var(--cor-primaria);
}

.theme-switch input:checked + label::after {
    transform: translateX(24px);
    background: var(--cor-branco);
}
.theme-switch label {
    backdrop-filter: blur(6px);
}
/*Tamanho Logo*/

.logo {
    height: 120px;
    width: auto;
}
/*Logo Dark/Light*/

body.tema-praia .logo {
    content: url('../img/logo-picasso3-light.png');
}

body.tema-praia-dark .logo {
    content: url('../img/logo-picasso3.png');
}

/*Hamburguer*/

:root {
    --cor-toggler: rgba(0, 0, 0, 0.72);
    --cor-toggler-borda: rgba(0, 0, 0, 0.28);
}

body.tema-praia-dark {
    --cor-toggler: rgba(255, 255, 255, 0.92);
    --cor-toggler-borda: rgba(255, 255, 255, 0.34);
}

.navbar-toggler {
    border: 1px solid var(--cor-toggler-borda);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    box-shadow: none;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--cor-toggler);
}

.toggler-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: block;
}

.toggler-icon span,
.toggler-icon::before,
.toggler-icon::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cor-toggler);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease, bottom 0.28s ease, background-color 0.2s ease;
    content: "";
}

.toggler-icon span {
    top: 7px;
}

.toggler-icon::before {
    top: 0;
}

.toggler-icon::after {
    bottom: 0;
}

/* estado aberto: vira X */
.navbar-toggler:not(.collapsed) .toggler-icon span {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .toggler-icon::before {
    top: 7px;
    transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) .toggler-icon::after {
    bottom: 7px;
    transform: rotate(-45deg);
}