@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Cores fiéis à marca Samuel Felix */
    --navy: #5C2828;
    /* Marrom/Vinho elegante da logo */
    --navy-deep: #441D1D;
    /* Tom fechado para cabeçalhos e fundos nobres */
    --gold: #B89C66;
    /* Dourado/Bege corporativo */
    --gold-hover: #9E8351;
    /* Dourado para estado hover */
    --sea: #5C2828;
    /* Substitui o verde anterior pelo tom da marca */

    /* Superfícies e Tipografia */
    --sand: #FDFCF7;
    /* Off-white levemente aquecido */
    --sand-line: #E8E2D5;
    /* Bordas ultra-suaves */
    --ink: #2B2B2B;
    /* Texto principal (alta leitura) */
    --ink-soft: #635E5A;
    /* Textos secundários */
    --white: #FFFFFF;

    /* Acabamentos Elegantes */
    --radius: 4px;
    /* Bordas levemente mais retas (combinam com a geometria da logo) */
    --shadow: 0 12px 35px rgba(68, 29, 29, 0.05);
    /* Sombra difusa e imperceptível */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: 'Public Sans', -apple-system, sans-serif;
    line-height: 1.55;
}

h1,
h2,
h3,
h4 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--navy-deep);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--navy-deep);
    border-bottom: 3px solid var(--gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 0.01em;
}

.logo img {
    display: block;
    width: 66px;
    height: 45px;
    object-fit: contain;
}

.nav-principal {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-principal a {
    color: #CBD5DE;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-principal a:hover,
.nav-principal a.ativo {
    color: var(--white);
    border-color: var(--gold);
}

.btn-whatsapp {
    background: var(--sea);
    color: var(--white) !important;
    padding: 9px 18px !important;
    border-radius: 999px;
    border: none !important;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: var(--navy-deep);
    border-color: transparent !important;
}

/* ---------- Botão Flutuante do WhatsApp Elegante ---------- */
.whatsapp-flutuante {
    position: fixed;
    z-index: 999;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: var(--navy-deep);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(68, 29, 29, 0.28);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        border-radius 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s ease,
        background 0.2s ease;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    animation: pulso-whatsapp 4.5s ease-in-out infinite;
}

.whatsapp-flutuante::before {
    content: "";
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M12 2C6.48 2 2 6.36 2 11.75c0 2.07.66 3.99 1.79 5.57L2.5 21.5l4.36-1.19a10.1 10.1 0 0 0 5.14 1.4c5.52 0 10-4.36 10-9.75S17.52 2 12 2Zm0 17.75c-1.66 0-3.2-.47-4.5-1.28l-.32-.19-3.02.82.82-2.93-.21-.3a7.68 7.68 0 0 1-1.27-4.32C3.5 7.44 7.3 4 12 4s8.5 3.44 8.5 7.75-3.8 7.75-8.5 7.75Zm4.36-5.78c-.24-.12-1.42-.7-1.64-.78-.22-.08-.38-.12-.54.12-.16.24-.62.78-.76.94-.14.16-.28.18-.52.06-.24-.12-1-.37-1.9-1.17-.7-.63-1.18-1.4-1.32-1.64-.14-.24-.02-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.54-1.3-.74-1.78-.2-.47-.4-.4-.54-.41h-.46c-.16 0-.42.06-.64.3-.22.24-.84.82-.84 2s.86 2.32.98 2.48c.12.16 1.7 2.6 4.12 3.64.58.25 1.03.4 1.38.51.58.18 1.1.16 1.52.1.46-.07 1.42-.58 1.62-1.14.2-.56.2-1.04.14-1.14-.06-.1-.22-.16-.46-.28Z'/%3E%3C/svg%3E") center/24px no-repeat;
    border-radius: 50%;
}

.whatsapp-flutuante .texto {
    max-width: 0;
    opacity: 0;
    font-family: 'Public Sans', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: max-width 0.35s ease, opacity 0.25s ease 0.05s;
}

.whatsapp-flutuante:hover {
    width: 210px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 14px 35px rgba(184, 156, 102, 0.4);
    color: var(--white);
    animation: none;
}

.whatsapp-flutuante:hover .texto {
    max-width: 150px;
    opacity: 1;
    padding-right: 18px;
}

@keyframes pulso-whatsapp {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(68, 29, 29, 0.28), 0 0 0 0 rgba(184, 156, 102, 0.4);
    }

    50% {
        box-shadow: 0 10px 30px rgba(68, 29, 29, 0.28), 0 0 0 10px rgba(184, 156, 102, 0);
    }
}

/* ---------- Hero / Busca ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 100px 0 140px;
    background:
        radial-gradient(circle at top right, rgba(184, 156, 102, 0.16), transparent 42%),
        linear-gradient(105deg,
            rgba(68, 29, 29, 0.96) 0%,
            rgba(68, 29, 29, 0.88) 48%,
            rgba(92, 40, 40, 0.68) 100%),
        url('../../img/tubarao-aerea-topo.jpg') center 53% / cover no-repeat;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -160px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 50px rgba(255, 255, 255, 0.02),
        0 0 0 100px rgba(255, 255, 255, 0.015);
    pointer-events: none;
}

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

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #F0D99E;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero .eyebrow::before {
    content: "";
    width: 36px;
    height: 1.5px;
    background: var(--gold);
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--white);
    font-size: clamp(2.3rem, 4.8vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 650;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.hero p.lead,
.hero .lead {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    line-height: 1.65;
}

/* faixa costeira decorativa - assinatura visual do portal */
.faixa-costa {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: -1px;
}

/* ---------- Busca ---------- */
.busca-card {
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(68, 29, 29, 0.08);
    border-radius: 14px;
    box-shadow:
        0 20px 48px rgba(68, 29, 29, 0.12),
        0 5px 14px rgba(0, 0, 0, 0.045);
    padding: 22px;
    margin-top: -54px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.campo label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--ink);
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 156, 102, 0.14);
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    transition: background 0.15s;
}

.btn:hover {
    background: #9C7526;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* ---------- Listagem ---------- */
.secao {
    padding: 56px 0;
}

.secao-titulo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 10px;
}

.secao-titulo p {
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- Padrão Visual Elegante ---------- */

/* Grid com mais respiro entre os imóveis */
.grid-imoveis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

/* Card com bordas sofisticadas e cantos levemente retos da marca */
.card-imovel {
    background: var(--white);
    border: 1px solid #EAE5DC;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-imovel:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(68, 29, 29, 0.08);
    border-color: var(--gold);
}

/* Container da foto com zoom limpo e elegante */
.foto-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #EAE5DC;
}

.foto-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.foto-slide.ativo {
    opacity: 1;
    transform: scale(1);
}

/* O zoom suave na foto ao passar o mouse */
.card-imovel:hover .foto-slide.ativo {
    transform: scale(1.06);
}

/* Corpo do card com tipografia alinhada e organizada */
.card-imovel .corpo {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-imovel h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin: 0 0 6px;
    line-height: 1.35;
}

.card-imovel .local {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

/* Linha divisória fina para as características */
.caracteristicas {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #F0ECE4;
    border-bottom: 1px solid #F0ECE4;
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.preco {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-top: auto;
}

.ver-mais {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--navy-deep);
    color: var(--navy-deep);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.card-imovel:hover .ver-mais {
    background: var(--navy-deep);
    color: #FFFFFF;
    border-color: var(--navy-deep);
}

.vazio {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
}

/* ---------- Página de detalhe ---------- */
.detalhe-conteudo {
    padding-top: 34px;
}

.detalhe-conteudo>.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

.breadcrumb span[aria-hidden="true"] {
    color: #a2aaa6;
}

.breadcrumb a {
    color: var(--navy);
    font-weight: 600;
}

.detalhe-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 34px;
}

.galeria {
    min-width: 0;
}

.detalhe-main-col {
    min-width: 0;
}

.galeria .foto-principal {
    height: 440px;
    min-width: 0;
    border-radius: var(--radius);
    background: var(--sand-line) center/cover no-repeat;
    transition: background-image .18s ease-in-out;
}

.detalhe-rail {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}

.miniaturas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 102px;
    gap: 8px;
    height: auto;
    max-height: 440px;
    padding-right: 3px;
    overflow-y: auto;
    align-content: start;
}

.miniatura-item {
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--sand-line) center/cover no-repeat;
    cursor: pointer;
    opacity: .78;
    transition: opacity .15s, border-color .15s, transform .15s;
}

.miniatura-item:hover,
.miniatura-item:focus-visible,
.miniatura-item.ativa {
    opacity: 1;
    border-color: var(--gold);
    outline: none;
}

.miniatura-item:hover {
    transform: translateY(-1px);
}

.detalhe-info {
    max-width: none;
    padding-top: 18px;
}

.detalhe-info .eyebrow {
    display: block;
    margin-bottom: 7px;
}

.detalhe-info h1 {
    margin: 0 0 9px;
    line-height: 1.12;
}

.detalhe-info .local {
    margin: 0 0 24px;
}

.ficha-tecnica {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 18px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.ficha-tecnica .item {
    text-align: center;
    min-width: 0;
}

.ficha-tecnica .item-icone {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 7px;
    color: var(--navy);
}

.ficha-tecnica .item-icone svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.ficha-tecnica .item .valor {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    color: var(--navy-deep);
    font-weight: 600;
}

.ficha-tecnica .item .rotulo {
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.painel-contato {
    background: var(--white);
    border: 1px solid rgba(68, 29, 29, .10);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(68, 29, 29, .11);
    padding: 28px;
    position: sticky;
    top: 20px;
}

.painel-ref {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #F4EFE7;
    color: var(--navy);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.painel-contato .preco-grande {
    font-family: 'Fraunces', serif;
    font-size: 1.9rem;
    color: var(--navy-deep);
    font-weight: 700;
    margin-bottom: 7px;
}

.painel-contato .preco-grande span {
    margin-left: 3px;
    color: var(--ink-soft);
    font-family: 'Public Sans', sans-serif;
    font-size: .92rem;
    font-weight: 500;
}

.painel-atendimento {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: .88rem;
    line-height: 1.55;
}

.painel-atendimento small {
    font-size: .76rem;
}

.painel-contato .btn-contato-whatsapp {
    display: block;
    margin: 0;
    padding: 14px 16px;
    background: var(--sea);
    color: #fff;
    text-align: center;
}

.painel-contato .btn-contato-whatsapp:hover {
    background: var(--gold-hover);
}

.divisor-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
    color: #87908d;
    font-size: .7rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.divisor-form::before,
.divisor-form::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sand-line);
}

.form-interesse h3 {
    margin-bottom: 5px;
    font-size: 1.35rem;
}

.form-intro {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: .86rem;
}

.form-interesse .form-linha {
    margin-bottom: 14px;
}

.form-interesse .campo label {
    color: var(--navy-deep);
    font-size: .7rem;
    font-weight: 700;
}

.form-interesse .campo input,
.form-interesse .campo textarea {
    border-color: #dce2df;
    border-radius: 8px;
    background: #fbfcfb;
}

.form-interesse .campo input {
    min-height: 47px;
}

.form-interesse .campo textarea {
    resize: vertical;
}

.painel-contato .btn-enviar-interesse {
    width: 100%;
    margin-top: 2px;
    padding: 14px 16px;
    color: #172923;
}

.nota-privacidade {
    margin: 11px 0 0;
    color: #7b8581;
    font-size: .69rem;
    line-height: 1.45;
    text-align: center;
}

.painel-contato .btn {
    width: 100%;
    margin-top: 8px;
}

/* ---------- Formulários (contato / admin) ---------- */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    max-width: 560px;
}

.form-linha {
    margin-bottom: 16px;
}

.alerta {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.alerta-sucesso {
    background: #E4F0EA;
    color: #285C46;
    border: 1px solid #B9DCC9;
}

.alerta-erro {
    background: #FBE9E7;
    color: #8A2E22;
    border: 1px solid #F3C4BC;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #C8CFD6;
    padding: 48px 0 32px;
    margin-top: 60px;
    border-top: 3px solid var(--gold);
    /* Detalhe dourado de encerramento */
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-inner strong {
    color: var(--white);
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.copy {
    width: 100%;
    font-size: 0.8rem;
    color: #8C98A4;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Admin ---------- */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--navy-deep);
    color: var(--white);
    padding: 28px 18px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: #C7D2DB;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.ativo {
    background: var(--navy);
    color: var(--white);
}

.admin-main {
    flex: 1;
    padding: 36px;
    background: var(--sand);
}

/* Tabela Admin */
table.tabela-admin {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--sand-line);
    box-shadow: var(--shadow);
}

table.tabela-admin th,
table.tabela-admin td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--sand-line);
    font-size: 0.92rem;
}

table.tabela-admin th {
    background: #F4F1EA;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

table.tabela-admin tbody tr:hover {
    background-color: #FAF8F3;
    /* Destaque sutil na linha ao passar o mouse */
}

/* Badges de Status no Admin */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-disponivel {
    background: #E8F2EC;
    color: #23543F;
}

.badge-reservado {
    background: #FDF3E3;
    color: #825D15;
}

.badge-vendido,
.badge-alugado {
    background: #EFECE6;
    color: #555A62;
}

@media (max-width: 860px) {
    .busca-card {
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }

    .detalhe-visual-grid {
        grid-template-columns: 1fr;
    }

    .grid-imoveis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .galeria .foto-principal {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .miniaturas {
        grid-template-columns: repeat(4, minmax(92px, 1fr));
        grid-auto-rows: 82px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .busca-card {
        grid-template-columns: 1fr;
    }

    .grid-imoveis {
        grid-template-columns: 1fr;
    }

    .miniaturas {
        grid-template-columns: repeat(3, minmax(88px, 1fr));
    }

    .header-inner {
        justify-content: center;
        padding: 14px 18px 16px;
    }

    .logo {
        width: 100%;
        justify-content: center;
        gap: 9px;
        font-size: 1.05rem;
        text-align: left;
    }

    .logo img {
        width: 48px;
        height: 33px;
    }

    .nav-principal {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .nav-principal a {
        font-size: .84rem;
    }

    .btn-whatsapp {
        padding: 7px 12px !important;
    }

}

/* Ajuste preventivo para celulares: botão não expande no toque, só no hover de desktop */
@media (max-width: 560px) {
    .whatsapp-flutuante {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-flutuante:hover {
        width: 56px;
    }
}

/* Ajustes complementares de acessibilidade e paginação */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold, #B89C66);
    outline-offset: 2px;
}

.paginacao a {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.paginacao a:hover {
    border-color: var(--gold, #B89C66);
    color: var(--navy-deep, #441D1D);
}