/* =====================================================================
   AQUA HUB — public/assets/css/site.css
   Estilo compartilhado das páginas PÚBLICAS (home, marketplace de
   classificados, marketplace de fotos, portal de notícias, perfil de
   fotógrafo). Usa a variável --cor (cor primária do tenant, injetada
   inline por layouts/site.php) para o site continuar "com a cara" de
   cada operador, mesmo em multi-tenant.
   ===================================================================== */

body.site-body { background: #eef3f7; color: #1f2d36; }

/* ---- Navegação ---- */
.site-nav {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.site-brand {
    display: flex; align-items: center;
    font-weight: 700; color: var(--cor) !important;
}
.site-nav .nav-link { color: #47586a; font-weight: 500; }
.site-nav .nav-link:hover { color: var(--cor); }

/* ---- Botões / chips na cor do tenant ---- */
.btn-cor { background: var(--cor); border-color: var(--cor); color: #fff; }
.btn-cor:hover { filter: brightness(.92); color: #fff; }
.btn-outline-cor { border-color: var(--cor); color: var(--cor); }
.btn-outline-cor:hover { background: var(--cor); color: #fff; }
.text-cor { color: var(--cor) !important; }
.chip {
    display: inline-block; padding: .3rem .8rem; border-radius: 999px;
    font-size: .82rem; text-decoration: none; border: 1px solid #cdd9e1;
    color: #4a5b6c; background: #fff; white-space: nowrap;
}
.chip.ativo { background: var(--cor); color: #fff; border-color: var(--cor); }

/* ---- Hero da home ---- */
.hero {
    background: linear-gradient(135deg, var(--cor), #08404f);
    color: #fff; padding: 3rem 0 4rem;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.hero .lead { opacity: .92; }
.hero-search {
    background: #fff; border-radius: 14px; padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.hero-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero-stats strong { display: block; font-size: 1.3rem; }
.hero-stats span { font-size: .8rem; opacity: .85; }

/* ---- Cards de anúncio (classificados) ---- */
.mk-card { transition: transform .12s ease, box-shadow .12s ease; height: 100%; border-color: #e3e9ee; }
.mk-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.mk-card a { text-decoration: none; color: inherit; }
.mk-thumb { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #dde6ec; }
.mk-thumb-vazio {
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
    background: #dde6ec; color: #98a6b3; font-size: 2rem;
}
.mk-preco { color: var(--cor); font-weight: 700; }
.mk-destaque { box-shadow: 0 0 0 2px #f0ad4e inset; }
.mk-selo {
    position: absolute; top: 8px; left: 8px; background: #f0ad4e; color: #3a2a00;
    font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}

/* ---- Cards de evento fotográfico ---- */
.ev-card { transition: transform .12s ease, box-shadow .12s ease; height: 100%; border-color: #e3e9ee; overflow: hidden; }
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.ev-card a { text-decoration: none; color: inherit; }
.ev-thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #16303a; }
.ev-thumb-vazio {
    aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
    background: #16303a; color: #7fa9b5; font-size: 2rem;
}
.ev-badge-qtd {
    position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, .65); color: #fff;
    font-size: .74rem; padding: .2rem .55rem; border-radius: 999px;
}

/* ---- Grade de fotos dentro de um evento ---- */
.foto-grid-item { position: relative; border-radius: 8px; overflow: hidden; background: #16303a; }
.foto-grid-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.foto-grid-preco {
    position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .7); color: #fff;
    font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px;
}
.foto-grid-item .btn-comprar-foto {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(11, 110, 135, 0); opacity: 0; transition: all .15s ease; color: #fff; text-decoration: none;
}
.foto-grid-item:hover .btn-comprar-foto { background: rgba(11, 110, 135, .55); opacity: 1; }

/* ---- Perfil público do fotógrafo ---- */
.fotografo-capa {
    height: 220px; background: linear-gradient(135deg, var(--cor), #08404f);
    background-size: cover; background-position: center; border-radius: 14px;
}
.fotografo-avatar {
    width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff;
    background: #dde6ec; object-fit: cover; margin-top: -60px;
}

/* ---- Cartão de "torne-se fotógrafo" / CTAs ---- */
.cta-card {
    border: 1px dashed #cdd9e1; border-radius: 14px; padding: 1.75rem;
    background: #fff; text-align: center;
}

.site-footer { background: #fff; border-top: 1px solid #e3e9ee; margin-top: 3rem; }
.site-footer a { color: #47586a; text-decoration: none; }
.site-footer a:hover { color: var(--cor); }

/* ---- Detalhe do anúncio ---- */
.mk-foto-principal {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 8px; background: #dde6ec;
}
.mk-foto-vazia {
    width: 100%; aspect-ratio: 4/3; border-radius: 8px; background: #dde6ec;
    display: flex; align-items: center; justify-content: center;
    color: #98a6b3; font-size: 3rem;
}
.mk-miniatura {
    width: 72px; height: 72px; object-fit: cover; border-radius: 6px;
    cursor: pointer; border: 2px solid transparent;
}
.mk-miniatura.ativa { border-color: var(--cor); }
.mk-preco-grande { color: var(--cor); font-weight: 700; font-size: 1.8rem; }
.btn-zap { background: #25d366; border-color: #25d366; color: #fff; }
.btn-zap:hover { filter: brightness(.93); color: #fff; }

/* ---- Portal de notícias ---- */
.pt-card { transition: transform .12s ease, box-shadow .12s ease; height: 100%; }
.pt-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.1); }
.pt-capa { height: 180px; object-fit: cover; width: 100%; }
.pt-capa-vazia {
    height: 180px; display: flex; align-items: center; justify-content: center;
    background: #dde6ec; color: #9fb1bd; font-size: 2.5rem;
}
.pt-destaque-faixa {
    background: #ffc107; color: #3a2f00; font-size: .72rem;
    font-weight: 600; padding: .15rem .5rem; border-radius: .25rem;
}
a.pt-link, a.pt-link:hover { text-decoration: none; color: inherit; }
.pt-capa-full { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; }
.pt-corpo { font-size: 1.02rem; line-height: 1.7; }
.pt-corpo p { margin-bottom: 1rem; }
.pt-mini-capa { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

@media (max-width: 767px) {
    .hero { padding: 2rem 0 2.5rem; }
}
