/* ===========================================================================
   ESTILO GLOBAL DA CENTRAL DO IMÓVEL: FONTE, BASE, GRADE, CABEÇALHO (DESKTOP E
   CELULAR), VOLTAR AO TOPO, RODAPÉ E OS AVISOS DO PAINEL (POPUP, APP, CHAT).
   CADA PÁGINA TEM O SEU CSS (MESMO NOME DO .php), CARREGADO DEPOIS DESTE.

   O DESENHO É O DO SITE ANTIGO (TEMA HOUZEZ + BOOTSTRAP 3), COM OS VALORES TIRADOS
   DA CASCATA COMPUTADA DELE (styles.css → bootstrap.css → ajustes.css, NESSA
   ORDEM: O BOOTSTRAP ENTRA DEPOIS DO TEMA E VENCE NOS EMPATES). SÓ ENTRA AQUI O
   QUE A TELA USA; O RESTO DO TEMA FICOU PARA TRÁS.
   =========================================================================== */

/* O SITE ANTIGO CARREGA A ROBOTO 300/400/500/700 PELO @import DO TEMA: AQUI É UM
   ARQUIVO VARIÁVEL SÓ, NO PRÓPRIO SITE. */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/roboto/roboto-variavel-latin.woff2') format('woff2');
}

:root {
    --azul: #000066;          /* BOTÕES, BUSCA (O BOOTSTRAP DO SITE ANTIGO FOI RECOLORIDO NELE) */
    --vermelho: #750005;      /* HOVER/FOCO DOS BOTÕES */
    --texto-link: #2d2d2d;
    --cinza-barra: #ededed;
    --cinza-item: #d8d8d8;
    --rodape: #2d2d2d;
}

/* ---- BASE (BOOTSTRAP 3 + HOUZEZ) ----------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

html {
    font-size: 10px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* SEM COR NO body: O SITE ANTIGO NÃO DEFINE, E O TEXTO SOLTO SAI NO PRETO DO NAVEGADOR. */
body {
    margin: 0;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42857143;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
    body { font-size: 12px; }
}

a {
    color: var(--texto-link);
    text-decoration: none;
    background-color: transparent;
    transition: all .5s ease-out;
}

a:hover,
a:focus {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

h1, h2, h3 { margin: 20px 0 10px; }
h4, h5, h6 { margin: 10px 0; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

@media (min-width: 768px) and (max-width: 991px) {
    p { margin-bottom: 15px; font-size: 14px; line-height: 20px; }
}

@media (max-width: 767px) {
    p { font-size: 14px; line-height: 20px; }
}

ul,
ol {
    margin-top: 0;
    margin-bottom: 10px;
}

b,
strong {
    font-weight: 500;
}

figure {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
}

button,
input,
select,
textarea {
    margin: 0;
    font: inherit;
    color: inherit;
}

button {
    overflow: visible;
    text-transform: none;
    cursor: pointer;
    transition: all .5s ease-out;
}

/* GLIFO DO FONT AWESOME 4 EM SVG (pages/partials/icones.php): 1em DE ALTURA E A MESMA
   DESCIDA DA FONTE DE ÍCONE (256/1792), PARA ASSENTAR NA LINHA COMO O GLIFO ASSENTAVA. */
.icone {
    display: inline-block;
    width: auto;
    height: 1em;
    vertical-align: -.142857em;
    overflow: visible;
}

/* TEXTO SÓ PARA LEITOR DE TELA. */
.so-leitor,
.visualmente-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pular-para-conteudo {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 2000;
    padding: 10px 15px;
    background: #fff;
    color: var(--azul);
}

.pular-para-conteudo:focus {
    top: 10px;
}

/* ---- CONTAINER E LINHA (GRADE DO BOOTSTRAP 3) ----------------------------------- */

.container {
    margin-right: auto;
    margin-left: auto;
    padding: 0 15px;
}

@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
/* NO CELULAR O TEMA FIXA 480px (CENTRALIZADO) ATÉ 482px; DAÍ PARA BAIXO, A TELA TODA. */
@media (max-width: 767px)  { .container { width: 480px; } }
@media (max-width: 481px)  { .container { width: 100%; } }

.linha {
    margin-right: -15px;
    margin-left: -15px;
}

.container::before,
.container::after,
.linha::before,
.linha::after {
    content: " ";
    display: table;
}

.container::after,
.linha::after {
    clear: both;
}

/* COLUNA DO BOOTSTRAP: A LARGURA FICA NO CSS DE CADA BLOCO. */
.coluna {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

/* ---- CABEÇALHO DO DESKTOP (A PARTIR DE 992px) ------------------------------------
   PRESO NO TOPO (position: fixed) E SEM ESPAÇO RESERVADO: A CAPA DA HOME COMPENSA COM
   A MARGEM DE CIMA DO BANNER, COMO NO SITE ANTIGO. A FAIXA É CINZA TRANSLÚCIDA (86%),
   ENTÃO A COR QUE SE VÊ DEPENDE DO QUE PASSA POR BAIXO. */

.cabecalho {
    position: fixed;
    z-index: 1000;
    width: 100%;
}

@media (max-width: 991px) {
    .cabecalho { display: none; }
}

.cabecalho__barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 30px;
    background-color: #edededdb;
    box-shadow: 0 3px 5px 0 #0000002e;
    transition: all .2s ease-out;
}

/* NO SITE ANTIGO O LOGO SAÍA COM METADE DA LARGURA DO ARQUIVO (O DA CENTRAL, 461x133, FICA 231x67). AQUI É UMA
   CAIXA DE 231x67 NA PROPORÇÃO DO ARQUIVO: O DA CENTRAL SAI IGUAL, E O LOGO DE OUTRO TAMANHO VINDO DO PAINEL NÃO
   ESTOURA O CABEÇALHO. */
.cabecalho__logo {
    line-height: 55px;
}

.cabecalho__logo img {
    width: auto;
    max-width: 231px;
    max-height: 67px;
}

.menu__lista {
    margin: 0;
    padding: 0;
    font-size: 0;
    list-style: none;
}

.menu__item {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    text-transform: capitalize;
}

.menu__link {
    display: inline-block;
    padding: 0 20px 0 0;
    color: var(--texto-link);
    line-height: 50px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .menu__link { padding: 0 9px; }
}

.menu__link:hover,
.menu__item--pai:hover > .menu__link {
    color: #5b5b5b;
}

/* A SETA DO ITEM COM SUBMENU (O \f0d7 DO TEMA): FLUTUA À DIREITA DO RÓTULO, 10px DEPOIS. NO SITE
   ANTIGO ELA HERDA A LINHA DE 50px DO LINK E O GLIFO FICA NO MEIO DELA: O SVG (1em) DESCE A SOBRA/2. */
.menu__seta {
    float: right;
    margin-top: calc((50px - 1em) / 2);
    margin-left: 10px;
}

/* SUBMENU: ESCONDIDO 80px ABAIXO DO ITEM; COM O MOUSE NO ITEM, SOBE PARA 59px APARECENDO. */
.submenu {
    position: absolute;
    top: 80px;
    left: 0;
    z-index: -1;
    width: 155px;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: var(--cinza-barra);
    box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
    font-size: 0;
    font-weight: 400;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease-out;
}

.menu__item--pai:hover > .submenu,
.menu__item--pai:focus-within > .submenu {
    top: 59px;
    z-index: 999;
    opacity: 1;
    visibility: visible;
}

.submenu__item {
    position: relative;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.submenu__link {
    display: block;
    padding: 10px 15px;
    color: var(--texto-link);
}

.submenu__link:hover,
.submenu__link:focus {
    background: var(--cinza-item);
    color: var(--texto-link);
}

/* ---- CABEÇALHO DO CELULAR (ATÉ 991px) ------------------------------------------- */

/* SEM position: O MENU QUE DESCE (ABSOLUTO) SE ALINHA PELO .container, COMO NO SITE ANTIGO. */
.cabecalho-movel {
    min-height: 60px;
    background-color: var(--cinza-barra);
}

@media (min-width: 992px) {
    .cabecalho-movel { display: none; }
}

.cabecalho-movel > .container {
    position: relative;
}

.cabecalho-movel__menu {
    float: left;
    width: 25%;
    line-height: 60px;
}

/* O "≡" DO TEMA: CAIXA DE 18x18 COM O GLIFO DE 20px. */
.cabecalho-movel__botao {
    position: relative;
    top: 1px;
    display: inline-block;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--texto-link);
    font-size: 20px;
    line-height: 18px;
    vertical-align: baseline;
}

.cabecalho-movel__logo {
    float: left;
    width: 50%;
    line-height: 55px;
    text-align: center;
}

/* 70% DA METADE DA BARRA, COMO NO SITE ANTIGO; O TETO DE 73px É A ALTURA MÁXIMA DO LOGO DA CENTRAL NO CELULAR. */
.cabecalho-movel__logo img {
    width: auto;
    max-width: 70%;
    max-height: 73px;
}

/* MENU ABERTO: DESCE DE 80 PARA 60px APARECENDO, DA LARGURA DO CONTAINER. */
.menu-movel {
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 999;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease-out;
}

.cabecalho-movel.aberto .menu-movel {
    top: 60px;
    opacity: 1;
    visibility: visible;
}

.menu-movel__lista {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
}

/* A SETINHA BRANCA QUE APONTA PARA O BOTÃO. */
.menu-movel__lista::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 2px;
    z-index: 2;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

@media (max-width: 767px) {
    .menu-movel__lista::before { left: 18px; }
}

.menu-movel__item {
    position: relative;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
}

.menu-movel__item + .menu-movel__item {
    border-top: 1px solid #f5f5f5;
}

/* NO SITE ANTIGO O ITEM FICA SALMÃO NO HOVER, MAS O LINK (CINZA, LARGURA TODA) O COBRE:
   O QUE SE VÊ É SÓ O TEXTO FICANDO BRANCO. */
.menu-movel__link {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    background-color: var(--cinza-item);
    color: var(--texto-link);
}

.menu-movel__item:hover > .menu-movel__link,
.menu-movel__link:hover,
.menu-movel__link:focus {
    color: #fff;
}

.menu-movel__sub {
    display: none;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    transition: height .4s ease;
}

.menu-movel__item.aberto > .menu-movel__sub {
    display: block;
}

/* O BOTÃO DO SUBMENU COBRE A LINHA INTEIRA DO ITEM (40px), COM A SETA À DIREITA. */
.menu-movel__abrir {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 18px 0 0;
    border: 0;
    background: none;
    color: #959595;
    font-size: 14px;
    line-height: 40px;
    text-align: right;
}

.menu-movel__item:hover > .menu-movel__abrir,
.menu-movel__item.aberto > .menu-movel__abrir {
    color: #fff;
}

.menu-movel__abrir .icone--aberto,
.menu-movel__item.aberto > .menu-movel__abrir .icone--fechado {
    display: none;
}

.menu-movel__item.aberto > .menu-movel__abrir .icone--aberto {
    display: inline-block;
}

/* ---- VOLTAR AO TOPO ------------------------------------------------------------------ */

.voltar-topo {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: none;
    width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 4px;
    background-color: #5b5b5b;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42857;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.voltar-topo.visivel {
    display: inline-block;
}

.voltar-topo:hover {
    opacity: .8;
}

/* O GLIFO FICA NO MEIO DOS 40px, COMO NO BOTÃO DO SITE ANTIGO (O padding 15px DOS LADOS
   É MAIOR QUE A SOBRA E O GLIFO TRANSBORDA CENTRALIZADO). */
.voltar-topo .icone {
    margin: 0 -15px;
}

/* ---- RODAPÉ ---------------------------------------------------------------------- */

.rodape__principal {
    padding: 40px 0 30px;
    background-color: var(--rodape);
}

@media (max-width: 767px) {
    .rodape__principal { padding: 45px 0 15px; }
}

@media (min-width: 768px) {
    .rodape__coluna { float: left; }
    .rodape__coluna--mapa { width: 25%; }
    .rodape__coluna--sobre { width: 41.66666667%; }
    .rodape__coluna--contato { width: 33.33333333%; }
}

@media (max-width: 991px) {
    .rodape__bloco { margin-bottom: 30px; }
}

.rodape__topo {
    margin-bottom: 17px;
}

.rodape__titulo {
    margin: 0 0 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
}

.rodape__corpo {
    font-size: 14px;
}

.rodape__texto {
    margin: 20px 0 0;
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.rodape__texto a {
    color: #fff;
}

.rodape a:hover {
    opacity: .6;
}

.rodape__texto .icone {
    position: relative;
    top: 1px;
    margin-right: 10px;
}

.rodape__contatos {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.rodape__contatos li {
    margin-bottom: 6px;
    padding-left: 25px;
    color: #fff;
    font-weight: 300;
    line-height: 20px;
}

.rodape__contatos a {
    color: #fff;
}

.rodape__contatos .icone {
    margin-right: 10px;
    margin-left: -25px;
}

.rodape__redes {
    margin: 0 0 10px;
    padding: 0;
    font-size: 0;
}

.rodape__redes li {
    display: inline-block;
    margin-right: 7px;
    padding-left: 25px;
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    list-style: none;
}

.rodape__redes a {
    color: #fff;
}

.rodape__redes .rodape__rede--facebook:hover { color: #506dab !important; }
.rodape__redes .rodape__rede--instagram:hover { color: #bb0000 !important; }

.rodape__fim {
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #ffffff26;
    background-color: var(--rodape);
}

@media (max-width: 767px) {
    .rodape__fim { padding: 15px 0; }
}

.rodape__creditos {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
}

@media (max-width: 991px) {
    .rodape__creditos { line-height: 20px; }
}

.rodape__creditos a {
    color: #fff;
}

/* ---- FOTO DE IMÓVEL SEM FOTO ("FOTOS EM BREVE") -------------------------------------
   O ÚLTIMO DEGRAU DA ESCADA (COM MARCA → SEM MARCA → AVISO): ÍCONE DE CÂMERA E O TEXTO,
   CENTRALIZADOS NO ESPAÇO DA FOTO. NUNCA UMA IMAGEM DE RESERVA. */
.foto-indisponivel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e9e9e9;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.foto-indisponivel .icone {
    font-size: 36px;
}

.foto-indisponivel[hidden] {
    display: none;
}

/* ---- CHAT DO PAINEL ----------------------------------------------------------------
   O WIDGET VEM DO PAINEL (public/chat.php) E CHEGA DEPOIS DESTA FOLHA: SÓ A ESPECIFICIDADE
   MAIOR VENCE. A BOLHA FICA ACIMA DO "VOLTAR AO TOPO" (40px EM bottom 30). */
body #sami-chat-raiz {
    right: 20px;
    bottom: 85px;
}

/* ---- POPUP DO PAINEL ----------------------------------------------------------------
   IMAGEM/LINK CADASTRADOS NO PAINEL: APARECE UMA VEZ POR SESSÃO (site.js). */
.popup-painel {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 15px;
}

.popup-painel[hidden] {
    display: none;
}

.popup-painel__fundo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.popup-painel__caixa {
    position: relative;
    z-index: 1;
    max-width: min(480px, 100%);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.popup-painel__caixa img {
    display: block;
    width: 100%;
    height: auto;
}

.popup-painel__fechar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.popup-painel__fechar:hover {
    background: rgba(0, 0, 0, .75);
}

/* ---- INSTALAR O APP (PWA DO PAINEL) ------------------------------------------------
   SÓ APARECE QUANDO O NAVEGADOR OFERECE A INSTALAÇÃO (beforeinstallprompt, site.js). */
.instalar-app {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    max-width: 480px;
    padding: 15px 20px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    font-size: 14px;
    transform: translateX(-50%);
}

.instalar-app[hidden] {
    display: none;
}

.instalar-app p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.instalar-app__icone {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.instalar-app__botao {
    flex: none;
    padding: 8px 15px;
    border: 0;
    border-radius: 4px;
    background: var(--azul);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.instalar-app__botao:hover,
.instalar-app__botao:focus {
    background: var(--vermelho);
}

.instalar-app__fechar {
    position: absolute;
    top: -10px;
    right: -10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--texto-link);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}
