/* Familia Haas: usa Neue Haas Grotesk ou Helvetica Neue quando instaladas,
   e um clone livre fiel (TeX Gyre Heros) embutido para todos os outros aparelhos */
@font-face { font-family: 'Heros'; src: url('../fonts/heros-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Heros'; src: url('../fonts/heros-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* NILVA VARGAS - paleta Reino: bege areia, azul céu, verde mar. Fonte Jost. */
:root {
    --ink: #2b3238;          /* texto principal, cinza azulado escuro */
    --ink-soft: #5f6b70;     /* texto secundário */
    --paper: #eeeae0;        /* fundo areia (Areia Reino) */
    --card: #ffffff;         /* cartões */
    --sand: #e5dccc;         /* areia média */
    --sky: #b5d4de;          /* céu reino */
    --sky-deep: #7fa9b8;     /* céu mais profundo, para detalhes/contraste */
    --sea: #a7c4c3;          /* mar reino */
    --sea-deep: #6f9695;     /* mar profundo */
    --line: #d8cfbf;         /* linhas sobre bege */
    --whats: #25d366;
    --danger: #c0392b;       /* vermelho de data reservada */
    --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Neue Haas Grotesk Display Pro', 'Neue Haas Grotesk', 'Helvetica Neue', 'Heros', Helvetica, Arial, sans-serif;
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }

/* Botões grandes, público 60+ */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 58px; padding: 14px 22px;
    border: 0; border-radius: var(--radius);
    font-family: inherit; font-size: 20px; font-weight: 700;
    cursor: pointer; text-align: center;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-whats { background: var(--whats); color: #fff; }
.btn-ghost { background: var(--sky); color: var(--ink); }
.btn:active { opacity: .85; }

/* Header */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
}
header.site .bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px; max-width: 680px; margin: 0 auto;
}
header.site img.logo { height: 78px; width: auto; }
header.site a.call {
    display: flex; align-items: center; gap: 8px;
    background: var(--sea-deep); color: #fff;
    padding: 12px 18px; border-radius: 999px; font-size: 17px;
}

/* Hero, fundo areia com textura de teia da marca */
.hero {
    position: relative; overflow: hidden;
    background: var(--paper); color: var(--ink);
    text-align: center; padding: 46px 0 48px;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url('../img/textura-topo.jpg') center / cover no-repeat;
    opacity: .9; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero img.mark { width: 210px; margin: 0 auto 20px; }
.hero h1 { font-size: 33px; font-weight: 700; line-height: 1.22; letter-spacing: .01em; color: var(--ink); }
.hero p.sub { font-size: 20px; color: var(--ink-soft); margin: 14px auto 28px; max-width: 460px; }
.hero .actions { display: grid; gap: 12px; max-width: 380px; margin: 0 auto; padding: 0 18px; }

/* Seções */
section.block { padding: 40px 0; }
section.block.alt {
    background: var(--sea) url('../img/textura-teia.jpg') center / cover;
    background-blend-mode: soft-light;
}
h2.sec {
    font-size: 26px; font-weight: 700; text-align: center;
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
}
p.sec-sub { text-align: center; color: var(--ink-soft); margin-bottom: 26px; font-size: 18px; }

/* Cards de imóveis */
.cards { display: grid; gap: 22px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 4px 14px rgba(43,50,56,.08);
}
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .price {
    position: absolute; left: 12px; bottom: 12px;
    background: var(--ink); color: #fff; padding: 7px 14px;
    border-radius: 999px; font-size: 18px;
}
.card .ph .code {
    position: absolute; right: 12px; top: 12px;
    background: rgba(255,255,255,.92); color: var(--ink);
    padding: 5px 12px; border-radius: 999px; font-size: 15px; letter-spacing: .04em;
}
.card .body { padding: 18px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.card .loc { color: var(--ink-soft); font-size: 17px; margin-bottom: 6px; }
.card .meta { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.card .btn { min-height: 54px; }

/* Benefícios */
.benefits { display: grid; gap: 18px; }
.benefit {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.benefit .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
    background: var(--sky); display: flex; align-items: center; justify-content: center; }
.benefit .ico svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.benefit .ico.num { font-size: 21px; font-weight: 700; border-radius: 50%; }
.benefit h3 { font-size: 19px; font-weight: 700; }
.benefit p { font-size: 17px; color: var(--ink-soft); }

/* Página do imóvel */
.gallery { position: relative; background: var(--sand); }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery .track img { width: 100%; flex: 0 0 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; }
.gallery .count {
    position: absolute; right: 12px; bottom: 12px;
    background: rgba(0,0,0,.65); color: #fff; padding: 5px 12px;
    border-radius: 999px; font-size: 15px;
}
.prop-head { padding: 22px 0 6px; }
.prop-head h1 { font-size: 27px; font-weight: 700; line-height: 1.25; }
.prop-head .loc { color: var(--ink-soft); font-size: 18px; margin-top: 4px; }
.prop-head .price { font-size: 24px; margin-top: 10px; }
.prop-head .price small { font-size: 17px; color: var(--ink-soft); }
.prop-sec { padding: 20px 0; border-top: 1px solid var(--line); }
.prop-sec h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: .03em; }
.prop-sec p { color: var(--ink-soft); }
.amenities { display: flex; flex-wrap: wrap; gap: 10px; }
.amenities span {
    background: var(--sand); border-radius: 999px; padding: 8px 16px; font-size: 16px;
}
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.map-box iframe { width: 100%; height: 300px; border: 0; display: block; }

/* Calendário */
.cal-help {
    background: var(--sand); border-radius: var(--radius);
    padding: 14px 16px; font-size: 17px; margin-bottom: 14px; color: var(--ink-soft);
}
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.cal .cal-head {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--ink); color: #fff; padding: 12px 8px;
}
.cal .cal-head button {
    background: none; border: 0; color: #fff; font-size: 26px;
    width: 52px; height: 44px; cursor: pointer;
}
.cal .cal-head .m { font-size: 19px; letter-spacing: .05em; text-transform: capitalize; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal .dow { text-align: center; font-size: 14px; color: var(--ink-soft); padding: 10px 0 6px; }
.cal .day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 17px; border-top: 1px solid var(--line); cursor: pointer; user-select: none;
    background: #fff;
}
.cal .day.off { color: #bfc4c0; cursor: default; }
/* Data reservada: vermelho, riscada, com X, sem clique */
.cal .day.blocked {
    color: var(--danger); background: #fbeae8; cursor: not-allowed;
    position: relative; font-weight: 700;
}
.cal .day.blocked::after {
    content: "\00d7"; position: absolute; font-size: 26px; line-height: 1;
    color: var(--danger); opacity: .85; font-weight: 400;
}
.cal .day.blocked span { position: relative; z-index: 1; text-decoration: line-through; }
.cal .day.sel { background: var(--sea-deep); color: #fff; border-radius: 0; }
.cal .day.range { background: var(--sky); }
.legend { display: flex; gap: 18px; font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); display: inline-block; }
.legend .l-free i { background: var(--card); }
.legend .l-block i { background: #fbeae8; border-color: var(--danger); }
.legend .l-sel i { background: var(--sea-deep); }

/* Aviso de horário de entrada e saída, linguagem simples */
.horario {
    display: grid; gap: 10px; margin: 4px 0 16px;
}
.horario .row {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px 16px;
}
.horario .row .h-ico { font-size: 24px; line-height: 1; }
.horario .row .h-t { font-size: 17px; }
.horario .row .h-t strong { font-weight: 700; }

/* Diária mínima */
.min-nights {
    background: var(--sky); border-radius: var(--radius);
    padding: 12px 16px; font-size: 17px; margin-bottom: 14px; color: var(--ink);
    display: flex; align-items: center; gap: 10px;
}

/* Código de referência na página do imóvel */
.ref-code {
    display: inline-block; background: var(--sand); color: var(--ink);
    border-radius: 999px; padding: 5px 14px; font-size: 15px;
    letter-spacing: .05em; margin-top: 8px;
}

/* Barra do carrinho */
.cartbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0,0,0,.10);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    display: none;
}
.cartbar.show { display: block; }
.cartbar .inner { max-width: 680px; margin: 0 auto; display: grid; gap: 8px; }
.cartbar .info { font-size: 17px; text-align: center; color: var(--ink-soft); }
body.has-cart { padding-bottom: 150px; }

/* Página do interesse (carrinho) */
.cart-item {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; background: #fff;
}
.cart-item img { width: 86px; height: 66px; object-fit: cover; border-radius: 8px; }
.cart-item .t { font-size: 18px; font-weight: 700; }
.cart-item .d { font-size: 16px; color: var(--ink-soft); }
.cart-item button.rm {
    margin-left: auto; background: none; border: 0; color: var(--danger);
    font-size: 16px; cursor: pointer; padding: 8px; font-family: inherit;
}

/* Rodapé */
footer.site { background: var(--ink); color: #d8dde0; padding: 44px 0 110px; margin-top: 30px; }
footer.site img { width: 220px; margin: 0 auto 20px; }
footer.site .c { text-align: center; font-size: 16px; line-height: 1.9; }
footer.site a { text-decoration: underline; }
footer.site .admin-link {
    display: inline-block; margin-top: 22px; font-size: 14px;
    color: #8a9498; text-decoration: none; border: 1px solid #3a4247;
    padding: 8px 16px; border-radius: 999px;
}

/* Flutuante do WhatsApp */
.fab-whats {
    position: fixed; right: 16px; bottom: 96px; z-index: 55;
    width: 62px; height: 62px; border-radius: 50%;
    background: var(--whats); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.fab-whats svg { width: 34px; height: 34px; fill: #fff; }

/* Toast */
.toast {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 170px; z-index: 70;
    background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
    font-size: 17px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.toast.show { opacity: 1; }

@media (min-width: 640px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .benefits { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 38px; }
}

/* Trilha de navegação e botão voltar */
.trilha-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.trilha-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.volta {
    flex-shrink: 0; background: var(--sand); border: 1px solid var(--line);
    color: var(--ink); font-family: inherit; font-size: 17px;
    padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.volta:active { opacity: .8; }
.trilha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; overflow: hidden; }
.trilha a { color: var(--sea-deep); text-decoration: underline; }
.trilha .sep { color: var(--ink-soft); }
.trilha .atual { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }

/* Setas da galeria de fotos */
.gallery .gnav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.92); color: var(--ink);
    font-size: 30px; line-height: 1; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.gallery .gnav.prev { left: 10px; }
.gallery .gnav.next { right: 10px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
    .wrap { max-width: 1060px; }
    header.site .bar { max-width: 1060px; }
    header.site img.logo { height: 117px; }   /* logo 50% maior no desktop */
    .hero img.mark { width: 300px; }
    .hero h1 { font-size: 44px; }
    .hero p.sub { font-size: 22px; max-width: 560px; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .card h3 { font-size: 20px; }
    .card .btn { font-size: 18px; min-height: 50px; }
    /* pagina do imovel: conteudo centrado, galeria contida */
    .gallery { max-width: 900px; margin: 22px auto 0; border-radius: var(--radius); overflow: hidden; }
    .prop-wrap { max-width: 760px; margin: 0 auto; }
    .hero .actions .btn, .prop-sec .btn { max-width: 520px; margin-left: auto; margin-right: auto; }
    .cartbar .inner { max-width: 720px; }
    footer.site img { width: 260px; }
}
