/* ============================================================
   PLANIO — Tema claro do site público (landing, diretório e páginas
   de apoio). Camada por cima do index.css.
   ------------------------------------------------------------
   Objetivo: visual claro e arejado (fundo branco, tipografia
   geométrica forte, botões em pílula, cartões redondos e suaves)
   mantendo o dourado (#C9A96E) como cor de acento.

   Carregado DEPOIS de index.css, na landing (index.ejs, #page-landing)
   e no diretório (negocios.ejs, #page-hub). As regras vencem por
   ordem/especificidade; nada aqui é global, por isso o resto da app
   (que não carrega este ficheiro) fica intacto.
   ============================================================ */

/* ── Tokens ── */
#page-landing,
#page-hub,
.navbar-planio {
    --fr-bg: #FFFFFF;
    --fr-surface: #F6F5F2;      /* cinza quente muito claro */
    --fr-ink: #0E0E0E;          /* quase-preto para títulos */
    --fr-ink-soft: #3F3F3D;     /* corpo de texto */
    --fr-muted: #6E6E6B;        /* texto secundário */
    --fr-line: #ECEAE4;         /* linhas/bordas suaves */
    --gold: #C9A96E;
    --gold-dark: #A9843F;       /* dourado mais fundo (hovers/emphasis) */
    --gold-soft: #F6EEDD;
    --radius-card: 22px;
    --radius-sm: 16px;
    --radius-pill: 999px;
    --shadow-soft: 0 6px 24px rgba(15, 15, 15, 0.06);
    --shadow-lift: 0 18px 44px rgba(15, 15, 15, 0.12);
    --font-head: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ── Tipografia base ── */
#page-landing {
    background: var(--fr-bg);
}
#page-landing .hero-title,
#page-landing .section-title,
#page-landing .cta-title,
#page-landing .feature-title,
#page-landing .step-title,
#page-landing .hero-stat-value {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

/* ============================================================
   NAVBAR — botões em pílula, acento dourado
   ============================================================ */
.navbar-planio {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.navbar-planio.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 24px rgba(15, 15, 15, 0.06);
}
.navbar-planio .brand-tagline {
    color: var(--fr-muted);
}

/* Entrar — pílula subtil */
.navbar-planio .btn-nav-secondary {
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--fr-line);
    color: var(--fr-ink);
    padding: 9px 20px;
}
.navbar-planio .btn-nav-secondary:hover {
    border-color: var(--fr-ink);
    color: var(--fr-ink);
    background: #fff;
}

/* Entrar / Inscrever-se — ícone + texto, sem moldura de botão */
.navbar-planio .nav-login-link {
    color: var(--fr-ink);
}
.navbar-planio .nav-login-link i {
    color: var(--fr-muted);
}
.navbar-planio .nav-login-link:hover,
.navbar-planio .nav-login-link:hover i {
    color: var(--gold);
}

/* Começar agora — pílula dourada.
   O !important vence o utilitário .text-white do Bootstrap presente na
   versão mobile deste botão (branco sobre dourado tinha contraste fraco). */
.navbar-planio .btn-nav-primary {
    border-radius: var(--radius-pill);
    background: var(--gold);
    font-weight: 700;
    padding: 10px 22px;
}
.navbar-planio .btn-nav-primary,
.navbar-planio .btn-nav-primary i {
    color: #1A1408 !important;
}
.navbar-planio .btn-nav-primary:hover {
    background: #17130A;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(23, 19, 10, 0.28);
}
.navbar-planio .btn-nav-primary:hover,
.navbar-planio .btn-nav-primary:hover i {
    color: #fff !important;
}

/* Agendar serviço — pílula outline dourada */
.navbar-planio .nav-hub-pill {
    border-radius: var(--radius-pill);
    border-color: var(--gold);
}

/* ============================================================
   HERO — claro e arejado
   ============================================================ */
#page-landing .hero {
    min-height: 94vh;
    background:
        radial-gradient(1100px 620px at 50% -12%, #FBF5E9 0%, rgba(251, 245, 233, 0) 62%),
        var(--fr-bg);
    padding: 120px 40px 72px;
}
/* remove a grelha escura do hero */
#page-landing .hero-bg-grid {
    display: none;
}
#page-landing .hero-glow {
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.16) 0%, transparent 68%);
    top: 34%;
}
/* A variante .hero--photo (index.ejs) já não tem a faixa de estatísticas
   que preenchia os 94vh de about.ejs — sem isso ficava uma secção com uma
   folga vazia no fundo, por isso ajusta-se à altura do próprio conteúdo. */
#page-landing .hero--photo {
    min-height: 0;
    padding: 150px 40px 96px;
}
#page-landing .hero-content {
    max-width: 860px;
}

#page-landing .hero-eyebrow {
    background: #fff;
    border: 1px solid var(--fr-line);
    color: var(--gold-dark);
    box-shadow: var(--shadow-soft);
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 12.5px;
    padding: 8px 16px 8px 12px;
}

#page-landing .hero-title {
    font-size: clamp(40px, 6.4vw, 68px);
    font-weight: 800;
    color: var(--fr-ink);
    /* 1.04 era mais apertado do que o próprio tipo de letra a este peso —
       a caixa de cada linha ficava mais baixa do que a letra precisa, e o
       descendente do "g" (em "agenda", "negócio") era cortado. */
    line-height: 1.18;
    letter-spacing: -0.03em;
}
#page-landing .hero-title .gold-line {
    /* Sem isto, a área onde o gradiente é pintado segue a mesma caixa
       apertada da linha — e cortava-se aí, mesmo com o line-height já
       corrigido acima. padding-bottom alarga essa área só para baixo. */
    display: block;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#page-landing .hero-sub {
    font-size: 18px;
    color: var(--fr-muted);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 36px;
}

/* Botões do hero — pílulas */
#page-landing .btn-hero-primary {
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1A1408;
    font-weight: 700;
    font-size: 15.5px;
    padding: 15px 30px;
    box-shadow: 0 10px 26px rgba(201, 169, 110, 0.32);
}
#page-landing .btn-hero-primary:hover {
    background: #17130A;
    color: #fff;
    box-shadow: 0 14px 34px rgba(23, 19, 10, 0.30);
}
#page-landing .btn-hero-secondary {
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--fr-ink);
    border: 1.5px solid var(--fr-line);
    font-weight: 600;
}
#page-landing .btn-hero-secondary:hover {
    background: #fff;
    color: var(--fr-ink);
    border-color: var(--fr-ink);
    box-shadow: var(--shadow-soft);
}

/* Estatísticas do hero */
#page-landing .hero-stats {
    margin-top: 56px;
    gap: 44px;
}
#page-landing .hero-stat-value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 34px;
    color: var(--fr-ink);
    letter-spacing: -0.02em;
}
#page-landing .hero-stat-value span {
    color: var(--gold-dark);
}
#page-landing .hero-stat-label {
    color: var(--fr-muted);
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 13px;
}
#page-landing .hero-stat-divider {
    background: var(--fr-line);
}
#page-landing .hero-scroll {
    color: rgba(14, 14, 14, 0.35);
}
#page-landing .hero-scroll:hover {
    color: var(--gold);
}

/* A variante .hero--photo (ver index.css) é agora um fundo pastel claro —
   fica dentro do mesmo tema claro acima, por isso não precisa de overrides
   de cor de texto aqui: title/sub/stats já herdam o var(--fr-ink) certo. */

/* ============================================================
   CABEÇALHOS DE SECÇÃO
   ============================================================ */
#page-landing .section-eyebrow {
    color: var(--gold-dark);
    letter-spacing: 1.6px;
}
#page-landing .section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--fr-ink);
    line-height: 1.1;
}
#page-landing .section-sub {
    color: var(--fr-muted);
    font-size: 17px;
    max-width: 560px;
}

/* ============================================================
   PREVIEW (mockup do painel)
   ============================================================ */
#page-landing .preview-section {
    background: var(--fr-bg);
    padding: 96px 40px;
}
#page-landing .dashboard-preview {
    border-radius: var(--radius-card);
    box-shadow: 0 30px 70px rgba(15, 15, 15, 0.16);
}

/* ============================================================
   FUNCIONALIDADES — cartões redondos e suaves
   ============================================================ */
#page-landing .features-section {
    background: var(--fr-surface);
    padding: 104px 40px;
}
#page-landing .feature-card {
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-card);
    padding: 34px;
    box-shadow: var(--shadow-soft);
}
#page-landing .feature-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
    border-color: var(--gold-soft);
}
#page-landing .feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 24px;
}
#page-landing .feature-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--fr-ink);
}
#page-landing .feature-desc {
    color: var(--fr-muted);
    font-size: 14.5px;
}
/* ============================================================
   COMO FUNCIONA — convertido para claro
   ============================================================ */
#page-landing .how-section {
    background: var(--fr-bg);
    padding: 104px 40px;
}
#page-landing .how-section::before {
    display: none;                 /* remove grelha escura */
}
#page-landing .how-section .section-title {
    color: var(--fr-ink);
}
#page-landing .how-section .section-sub {
    color: var(--fr-muted);
}
#page-landing .how-section .section-eyebrow {
    color: var(--gold-dark);
}
#page-landing .step-card {
    background: var(--fr-surface);
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-card);
    padding: 30px 26px;
    height: 100%;
}
#page-landing .step-number {
    font-family: var(--font-head);
    border: 1.5px solid var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
}
#page-landing .step-title {
    color: var(--fr-ink);
    font-weight: 700;
    font-size: 18px;
}
#page-landing .step-desc {
    color: var(--fr-muted);
}
/* palavras em destaque dentro dos passos: dourado mais legível */
#page-landing .step-desc span[style*="--gold"] {
    color: var(--gold-dark) !important;
}

/* ============================================================
   SETORES — chips em pílula
   ============================================================ */
#page-landing .sectors-section {
    background: var(--fr-surface);
    padding: 96px 40px;
}
#page-landing .sector-chip {
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-pill);
    color: var(--fr-ink);
    box-shadow: var(--shadow-soft);
    padding: 11px 20px;
    font-size: 14px;
}
#page-landing .sector-chip:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-soft);
}
#page-landing .sector-chip i {
    color: var(--gold-dark);
}

/* ============================================================
   PREÇOS
   ============================================================ */
#page-landing .pricing-section {
    background: var(--fr-bg);
    padding: 104px 40px;
}

/* ============================================================
   FAQ — cartões redondos
   ============================================================ */
#page-landing .faq-section {
    background: var(--fr-surface);
    padding: 104px 40px;
}
#page-landing .faq-item {
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-soft);
}
#page-landing .faq-item[open] {
    border-color: var(--gold-soft);
    box-shadow: var(--shadow-lift);
}
#page-landing .faq-question {
    color: var(--fr-ink);
    font-weight: 700;
}
#page-landing .faq-icon {
    color: var(--gold-dark);
}
#page-landing .faq-cta a {
    color: var(--gold-dark);
}

/* ============================================================
   CTA FINAL — banda escura de acento
   ============================================================ */
#page-landing .cta-section {
    background: #101010;
    padding: 108px 40px;
}
#page-landing .cta-section::before {
    background-image:
        linear-gradient(rgba(201, 169, 110, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 110, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
}
#page-landing .cta-title {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 800;
}
#page-landing .cta-title .gold {
    color: var(--gold);
}
#page-landing .btn-cta {
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1A1408;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 32px;
    box-shadow: 0 10px 26px rgba(201, 169, 110, 0.28);
}
#page-landing .btn-cta:hover {
    background: #fff;
    color: #101010;
    transform: translateY(-2px);
}

/* ============================================================
   RÉGUAS DOURADAS — subtis, para a página respirar em branco
   ============================================================ */
#page-landing .gold-rule {
    opacity: 0.18;
}
/* esconde a régua imediatamente antes do CTA escuro e do footer */
#page-landing .cta-section + .gold-rule,
#page-landing .gold-rule:has(+ .cta-section) {
    display: none;
}

/* ============================================================
   /NEGOCIOS — Diretório
   ============================================================ */
#page-hub {
    background: var(--fr-bg);
}

/* ── Hero do diretório: escuro → claro ── */
#page-hub .hub-hero {
    position: relative;
    z-index: 10;
    /* overflow TEM de ficar visible: o dropdown de Localidade ultrapassa o
       fundo desta secção. Não usar overflow-x:hidden aqui para conter o glow
       — com um eixo hidden, o outro passa a computar como `auto` (regra do
       CSS), a secção vira contentor de scroll e corta o dropdown a meio.
       O glow é contido pelo max-width dele próprio, mais abaixo. */
    overflow: visible;
    min-height: auto;
    background:
        radial-gradient(1100px 560px at 50% -18%, #FBF5E9 0%, rgba(251, 245, 233, 0) 60%),
        var(--fr-bg);
    padding: 128px 40px 52px;
}
#page-hub .hub-hero-bg-grid {
    display: none;
}
#page-hub .hub-hero-glow {
    background: radial-gradient(circle, rgba(201, 169, 110, 0.16) 0%, transparent 68%);
    top: 30%;
    /* Tem largura fixa (500px) e fica centrado com translate(-50%): em ecrãs
       estreitos sangrava para fora e dava scroll horizontal à página. Limitar
       aqui evita isso sem precisar de cortar a secção inteira. */
    max-width: 100%;
}

/* eyebrow (pílula branca, como na landing) */
#page-hub .hero-eyebrow {
    background: #fff;
    border: 1px solid var(--fr-line);
    color: var(--gold-dark);
    box-shadow: var(--shadow-soft);
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 12.5px;
    padding: 8px 16px 8px 12px;
}
#page-hub .hero-eyebrow .dot {
    background: var(--gold-dark);
}

#page-hub .hub-hero-title {
    font-family: var(--font-head);
    font-size: clamp(34px, 5.4vw, 56px);
    font-weight: 800;
    color: var(--fr-ink);
    letter-spacing: -0.03em;
    line-height: 1.05;
}
#page-hub .hub-gold-line {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#page-hub .hub-hero-sub {
    color: var(--fr-muted);
    font-size: 17px;
}

/* ── Barra de pesquisa segmentada ── */
#page-hub .hub-search-bar {
    position: relative;
    z-index: 15;
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: 44px;
    padding: 6px 6px 6px 8px;
    box-shadow: var(--shadow-lift);
    gap: 4px;
    max-width: 720px;
    margin: 0 auto 24px;
    width: 100%;
}
#page-hub .hub-search-seg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-radius: 40px;
    transition: background 0.15s ease;
    min-width: 0;
}
#page-hub .hub-search-seg--main {
    flex: 1 1 auto;
}
#page-hub .hub-search-seg--loc {
    flex: 0 1 240px;
    position: relative;
}
#page-hub .hub-search-seg:hover {
    background: var(--fr-surface);
}
#page-hub .hub-seg-icon {
    color: var(--gold-dark);
    font-size: 18px;
    flex-shrink: 0;
}
#page-hub .hub-seg-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}
#page-hub .hub-seg-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fr-ink);
    line-height: 1;
    margin-bottom: 3px;
}
#page-hub .hub-seg-field .hub-search-input,
#page-hub .hub-seg-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--fr-ink-soft);
    padding: 0;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
#page-hub .hub-seg-field .hub-search-input {
    cursor: text;
}
#page-hub .hub-seg-field .hub-search-input::placeholder {
    color: var(--fr-muted);
}
#page-hub .hub-seg-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236E6E6B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 18px;
}

/* Botão que substitui o <select> nativo de Localidade — o popup de opções
   nativo não é estilizável de forma consistente entre browsers/SO (aparecia
   com o azul de seleção padrão do Windows), por isso o dropdown é montado
   à mão em .hub-loc-dropdown. */
#page-hub .hub-seg-select-btn {
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
#page-hub .hub-loc-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    max-width: 320px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    padding: 6px;
    z-index: 20;
    display: none;
}
#page-hub .hub-loc-dropdown.show {
    display: block;
}
#page-hub .hub-loc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--fr-ink-soft);
    cursor: pointer;
    white-space: nowrap;
}
#page-hub .hub-loc-item:hover {
    background: var(--fr-surface);
}
#page-hub .hub-loc-item.is-active {
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-weight: 700;
}
#page-hub .hub-loc-count {
    color: var(--fr-muted);
    font-size: 12px;
    flex-shrink: 0;
}
#page-hub .hub-loc-item.is-active .hub-loc-count {
    color: var(--gold-dark);
}
#page-hub .hub-search-divider {
    width: 1px;
    align-self: center;
    height: 34px;
    background: var(--fr-line);
    flex-shrink: 0;
}
#page-hub .hub-search-btn {
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1A1408;
    font-weight: 700;
    padding: 0 26px;
    height: 52px;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
#page-hub .hub-search-btn:hover {
    background: #17130A;
    color: #fff;
}

/* ── Pesquisa em ecrã inteiro (telemóvel) ──
   No telemóvel o campo "Serviço ou negócio" é só um gatilho (fica readonly
   via JS): tocá-lo abre este painel por cima de tudo, com campo grande,
   serviços populares e sugestões ao vivo. Só é aberto abaixo dos 768px —
   a regra de min-width no fim garante que nunca aparece em ecrã grande,
   mesmo que a janela seja redimensionada com o painel aberto. */
#page-hub .hub-msearch {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    flex-direction: column;
    background: var(--fr-bg);
}
#page-hub .hub-msearch.show {
    display: flex;
}
body.hub-msearch-open {
    overflow: hidden;
}
#page-hub .hub-seg-field .hub-search-input[readonly] {
    cursor: pointer;
}

#page-hub .hub-msearch-head {
    padding: 12px 10px 0;
    flex-shrink: 0;
}
#page-hub .hub-msearch-back {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: var(--fr-ink);
    font-size: 21px;
    cursor: pointer;
}
#page-hub .hub-msearch-back:active {
    background: var(--fr-surface);
}

#page-hub .hub-msearch-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin: 6px 16px 0;
    padding: 14px 16px;
    background: var(--fr-surface);
    border-radius: 14px;
}
#page-hub .hub-msearch-field > i {
    color: var(--fr-muted);
    font-size: 18px;
    flex-shrink: 0;
}
#page-hub .hub-msearch-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    /* Abaixo de 16px o iOS dá zoom à página ao focar o campo. */
    font-size: 16px;
    color: var(--fr-ink);
}
#page-hub .hub-msearch-field input::placeholder {
    color: var(--fr-muted);
}
#page-hub .hub-msearch-clear {
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--fr-muted);
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

#page-hub .hub-msearch-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 40px;
}
#page-hub .hub-msearch-section {
    font-size: 13px;
    font-weight: 600;
    color: var(--fr-muted);
    margin: 0 0 12px;
}
#page-hub .hub-msearch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#page-hub .hub-msearch-chip {
    border: none;
    background: var(--fr-surface);
    color: var(--fr-ink);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}
#page-hub .hub-msearch-chip:active {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

#page-hub .hub-msearch-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 12px 4px;
    cursor: pointer;
}
#page-hub .hub-msearch-row + .hub-msearch-row {
    border-top: 1px solid var(--fr-line);
}
#page-hub .hub-msearch-row:active {
    background: var(--fr-surface);
}
#page-hub .hub-msearch-row-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: var(--fr-surface);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--fr-muted);
}
#page-hub .hub-msearch-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
#page-hub .hub-msearch-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--fr-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#page-hub .hub-msearch-row-sub {
    font-size: 12.5px;
    color: var(--fr-muted);
}
#page-hub .hub-msearch-empty {
    padding: 34px 4px;
    text-align: center;
    font-size: 14px;
    color: var(--fr-muted);
}

@media (min-width: 768px) {
    #page-hub .hub-msearch.show {
        display: none;
    }
}

/* ── Filtros/atalhos em pílula: branco-sobre-escuro → pílulas claras.
   Também usados fora do /negocios (ex.: atalhos do /support) — daí o
   #page-landing partilhar o mesmo estilo. ── */
#page-hub .hqf,
#page-landing .hqf {
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-pill);
    color: var(--fr-ink-soft);
    box-shadow: var(--shadow-soft);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
#page-hub .hqf:hover,
#page-landing .hqf:hover {
    background: var(--gold-soft);
    color: var(--gold-dark);
    border-color: var(--gold-soft);
}
#page-hub .hqf.active,
#page-landing .hqf.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #1A1408;
    font-weight: 700;
}

/* ── Corpo / toolbar ── */
#page-hub .hub-body {
    background: var(--fr-bg);
    padding: 44px 40px 88px;
}
#page-hub .hub-sort-select {
    border-radius: var(--radius-pill);
    border-color: var(--fr-line);
    padding: 9px 16px;
}
#page-hub .hub-sort-select:focus {
    border-color: var(--gold);
}
#page-hub .hvt {
    border-radius: 12px;
    border-color: var(--fr-line);
}
#page-hub .hvt.active {
    background: var(--fr-ink);
    border-color: var(--fr-ink);
    color: #fff;
}

/* ── Cartões de negócio (venue cards) ── */
#page-hub .hub-grid {
    gap: 24px;
}
#page-hub .hub-card {
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 34px rgba(15, 15, 15, 0.11);
}
#page-hub .hub-card:hover {
    box-shadow: 0 26px 56px rgba(15, 15, 15, 0.18);
    transform: translateY(-4px);
    border-color: var(--gold-soft);
}
#page-hub .hub-card-top {
    height: 132px;
}
#page-hub .hub-card-cat {
    background: rgba(255, 255, 255, 0.92);
    color: var(--fr-ink-soft);
    border-radius: var(--radius-pill);
}
#page-hub .hub-card-badge {
    background: var(--gold);
    color: #1A1408;
    border-radius: var(--radius-pill);
}
#page-hub .hub-card-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 17px;
    color: var(--fr-ink);
    letter-spacing: -0.01em;
}
#page-hub .hub-service-tag {
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    color: var(--gold-dark);
}
#page-hub .hub-service-more {
    background: var(--fr-surface);
    color: var(--fr-muted);
}
#page-hub .hub-card-footer {
    border-top: 1px solid var(--fr-line);
}

/* Botões "Marcar" — pílula dourada */
#page-hub .hub-card-btn {
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1A1408;
    font-weight: 700;
    padding: 10px 18px;
}
#page-hub .hub-card-btn:hover {
    background: #17130A;
    color: #fff;
}

/* ── Vista em lista ── */
#page-hub .hub-list-row {
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 34px rgba(15, 15, 15, 0.11);
}
#page-hub .hub-list-row:hover {
    box-shadow: 0 26px 56px rgba(15, 15, 15, 0.18);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}
#page-hub .hub-list-cat {
    border-radius: var(--radius-pill);
    border-color: var(--fr-line);
}

/* ── Estado vazio ── */
#page-hub .hub-empty-icon {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

/* ── Modal de detalhe ── */
#page-hub .hub-modal-card {
    border-radius: var(--radius-card);
}
#page-hub .hub-modal-cta {
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1A1408;
    font-weight: 700;
}
#page-hub .hub-modal-cta:hover {
    background: #17130A;
    color: #fff;
    box-shadow: 0 10px 24px rgba(23, 19, 10, 0.24);
}

/* ── Vista de mapa (Google Maps) ── */
#page-hub .hub-map-view {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    height: 620px;
}
#page-hub .hub-map-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--fr-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 0;
}
#page-hub .hub-map-panel-head {
    padding: 15px 18px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--fr-muted);
    border-bottom: 1px solid var(--fr-line);
    flex-shrink: 0;
}
#page-hub .hub-map-list {
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#page-hub .hub-map-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: inherit;
}
#page-hub .hub-map-item:hover {
    background: var(--fr-surface);
}
#page-hub .hub-map-item.is-active {
    background: var(--gold-soft);
    border-color: var(--gold);
}
#page-hub .hub-map-item-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}
#page-hub .hub-map-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#page-hub .hub-map-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
#page-hub .hub-map-item-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--fr-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#page-hub .hub-map-item-meta {
    font-size: 11.5px;
    color: var(--fr-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#page-hub .hub-map-item-meta i {
    color: var(--gold-dark);
    font-size: 10px;
    flex-shrink: 0;
}
#page-hub .hub-map-item-go {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-dark);
    flex-shrink: 0;
    transition: var(--transition);
}
#page-hub .hub-map-item-go:hover {
    background: var(--gold);
    color: #1A1408;
}
#page-hub .hub-map-empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--fr-muted);
    font-size: 13.5px;
}
#page-hub .hub-map-frame {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--fr-line);
    box-shadow: var(--shadow-soft);
    background: var(--fr-surface);
    min-height: 400px;
}
#page-hub .hub-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
#page-hub .hub-map-open {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--fr-ink);
    border: 1px solid var(--fr-line);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-pill);
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    z-index: 2;
}
#page-hub .hub-map-open:hover {
    background: var(--gold);
    color: #1A1408;
    border-color: var(--gold);
}
#page-hub .hub-map-open i {
    color: var(--gold-dark);
}
#page-hub .hub-map-open:hover i {
    color: #1A1408;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 991px) {
    #page-hub .hub-hero {
        padding: 108px 20px 44px;
    }
    #page-hub .hub-body {
        padding: 36px 20px 72px;
    }
    /* Barra de pesquisa: empilha os segmentos */
    #page-hub .hub-search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        padding: 8px;
        gap: 2px;
    }
    #page-hub .hub-search-seg--loc {
        flex-basis: auto;
    }
    /* Colado ao campo de Localidade (como em desktop) e a acompanhar a
       largura dele, que aqui é a da barra empilhada. Fica por cima do botão
       "Pesquisar" logo abaixo — é um menu aberto, tapa o que está por baixo. */
    #page-hub .hub-loc-dropdown {
        left: 0;
        right: 0;
        min-width: 0;
        max-width: none;
    }
    #page-hub .hub-search-divider {
        width: auto;
        height: 1px;
        align-self: stretch;
        margin: 2px 16px;
    }
    #page-hub .hub-search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
    /* Vista de mapa: mapa em cima, lista por baixo */
    #page-hub .hub-map-view {
        grid-template-columns: 1fr;
        height: auto;
    }
    #page-hub .hub-map-frame {
        order: -1;
        height: 340px;
    }
    #page-hub .hub-map-panel {
        max-height: 360px;
    }
    #page-landing .hero {
        min-height: auto;
        padding: 108px 22px 64px;
    }
    #page-landing .features-section,
    #page-landing .how-section,
    #page-landing .pricing-section,
    #page-landing .faq-section,
    #page-landing .sectors-section,
    #page-landing .cta-section {
        padding: 76px 22px;
    }
    #page-landing .feature-card {
        padding: 26px;
        border-radius: 18px;
    }
    #page-landing .hero-stats {
        gap: 26px;
    }
}
