/* Páginas públicas do Guia Itália + que ainda usavam o visual antigo (blog, locais e estabelecimentos,
   guias e coleções, sobre, página do profissional, convite de avaliação, páginas institucionais).
   Mesmo processo do painel: o mapa gerado (marketplace-public-gim-map.css) leva os azuis, degradês e
   cantos antigos para o visual limpo; aqui ficam os tokens e os ajustes à mão. Escopo: body.gim-site. */

body.gim-site {
    --gp: var(--gim-primary, #B42318);
    --gp-d: var(--gim-primary-dark, #8A1A12);
    --gp-s: var(--gim-primary-soft, #FDECEA);
    --gp-ink: var(--gim-soft-ink, #5C1D18);
    --gp-t: var(--gp);
    --gp-dt: var(--gp-d);
    --gp-ink-1: #141A22;
    --gp-mute: #5A6372;
    --gp-line: #E6E8EC;
    --gp-soft: #F6F7F9;
}

/* Rótulos acima dos títulos: discretos, sem caixa alta nem letras espaçadas. */
.gim-site :is(.mkp-blog, .mkp-places, .mkcd, .mkp-register-page, .mpp-public, .mkp-review-page, .mkp-static, .mkp-dr, .mkp-about, .mkp-prolanding) :is([class*="eyebrow"], [class*="kicker"], [class*="overline"]) {
    color: var(--gp-t);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* Modo escuro: tokens (as cores literais vêm de marketplace-public-gim-dark.css). */
.gim-site.dark-mode {
    --gp-t: color-mix(in srgb, var(--gp) 52%, #fff);
    --gp-dt: color-mix(in srgb, var(--gp) 42%, #fff);
    --gp-s: color-mix(in srgb, var(--gp) 24%, #1E2128);
    --gp-ink: color-mix(in srgb, var(--gp) 22%, #fff);
    --gp-ink-1: #E8EAED;
    --gp-mute: #A9B0BB;
    --gp-line: #2E333C;
    --gp-soft: #191C22;
}

/* Fundo das páginas: branco, como a home (o cinza-gelo fica só nos blocos). */
.gim-site :is(.mkp-blog, .mkcd, .mkp-places, .mkp-review-page, .mkp-static, .mkp-dr) { background: #fff; }
.gim-site.dark-mode :is(.mkp-blog, .mkcd, .mkp-places, .mkp-review-page, .mkp-static, .mkp-dr) { background: #15171C; }

/* Padrão da home: sem rótulos em caixa alta nem letras espaçadas. */
.gim-site :is(.mkp-blog, .mkp-places, .mkcd, .mkp-register-page, .mpp-public, .mkp-review-page, .mkp-static, .mkp-dr, .mkp-about, .mkp-prolanding) :where(span, small, strong, b, p, label, dt, th, h1, h2, h3, h4, h5, h6, a, legend, em) { text-transform: none; letter-spacing: normal; }

/* Locais: atalhos de categoria em botões discretos (antes eram links soltos). */
.gim-site .mkp-places .place-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.gim-site .mkp-places .place-actions a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--gp-line); border-radius: 6px; background: #fff; color: var(--gp-ink-1); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s, background-color .15s; }
.gim-site .mkp-places .place-actions a:hover { border-color: #C9CED6; background: var(--gp-soft); }
.gim-site.dark-mode .mkp-places .place-actions a { background: #1E2128; }

/* Tipografia única do Guia (a da home): Figtree em todo texto; ícones ficam com a fonte deles. */
body.gim-site { font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.gim-site :is(h1, h2, h3, h4, h5, h6, p, a, li, label, button, input, select, textarea, td, th, dt, dd, blockquote, figcaption, small, strong, b, em, span, div):not(.fa):not([class*="fa-"]):not([class*="icon"]):not([class*="Icon"]) { font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; }
.gim-site :is(h1, h2, h3, h4, h5, h6) { letter-spacing: -0.02em; }

/* Legendas sobre foto: fundo próprio, legíveis com ou sem a imagem carregada. */
.gim-site .mpl-story__caption { background: rgba(20, 26, 34, .72); border-radius: 6px; padding: 12px 14px; color: #fff; }
.gim-site .mpl-story__caption :is(strong, span, b, p) { color: #fff; }

/* ---------- Escala tipográfica única (a da página Sobre) ----------
   Todas as páginas estáticas do Guia usam os mesmos tamanhos, vindos das variáveis de fonte do admin
   (Configurações › Aparência): h1 = título da página, h2 = título de seção, h3 = título de cartão,
   texto = base, apoio = pequeno. No celular as variáveis já trocam sozinhas.
   Home, busca e anúncio têm escala própria e ficam de fora. */
body.gim-site :is(h1, h2, h3, p, li, small):not(:is(#header, #navMobile, #mkpGuideFooter, .gim-home, .gim-search-page, .gim-listing, .modal, .mkp-share-card) *) {
    font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.gim-site h1:not(:is(#header, #navMobile, #mkpGuideFooter, .gim-home, .gim-search-page, .gim-listing, .modal) *) {
    font-size: var(--mkp-font-page-title, 34px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
}
body.gim-site h2:not(:is(#header, #navMobile, #mkpGuideFooter, .gim-home, .gim-search-page, .gim-listing, .modal) *) {
    font-size: var(--mkp-font-section-title, 20px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
}
body.gim-site h3:not(:is(#header, #navMobile, #mkpGuideFooter, .gim-home, .gim-search-page, .gim-listing, .modal) *) {
    font-size: var(--mkp-font-card-title, 17px) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}
body.gim-site :is(p, li):not(:is(#header, #navMobile, #mkpGuideFooter, .gim-home, .gim-search-page, .gim-listing, .modal, .mkp-share-card, .mkp-about-panel-demo, .mpl-hero__panel, button, .btn, [class*="button"], [class*="badge"], [class*="chip"], [class*="tag"]) *):not([class*="note"], [class*="meta"], [class*="hint"], [class*="caption"], [class*="count"], [class*="updated"], [class*="small"]) {
    font-size: var(--mkp-font-base, 16px) !important;
    line-height: 1.7;
}
body.gim-site :is(small, [class*="note"], [class*="meta"], [class*="hint"], [class*="caption"], [class*="updated"]):not(:is(#header, #navMobile, #mkpGuideFooter, .gim-home, .gim-search-page, .gim-listing, .modal, .mkp-about-panel-demo, .mpl-hero__panel) *):not(h1, h2, h3) {
    font-size: var(--mkp-font-small, 14px) !important;
}

/* ---------- Faixa do topo única (formato da página Sobre) ----------
   Caixa cinza-gelo, borda fina, cantos de 6px, mesmo respiro em todas; altura pelo conteúdo; sem bolhas. */
body.gim-site :is(.mkp-about-hero-shell, .mkp-blog-hero, .place-hero, .mkp-static__hero, .mkcd-hero .mkcd-hero-copy, .mpl-hero__shell) {
    background: #F7F8FA !important;
    border: 1px solid var(--gp-line) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    min-height: 0 !important;
}
body.gim-site :is(.mkp-about-hero-shell, .mkp-blog-hero, .place-hero, .mkp-static__hero, .mkcd-hero .mkcd-hero-copy) { padding: 56px 64px !important; }
body.gim-site :is(.mkp-about-hero-shell, .mkp-blog-hero, .place-hero, .mkp-static__hero, .mkcd-hero, .mpl-hero__shell)::before,
body.gim-site :is(.mkp-about-hero-shell, .mkp-blog-hero, .place-hero, .mkp-static__hero, .mkcd-hero, .mpl-hero__shell)::after { display: none !important; }
/* Guias e coleções: a faixa de largura total vira a mesma caixa das outras páginas. */
body.gim-site .mkcd-hero { background: transparent !important; border-radius: 0 !important; padding: 24px 0 0 !important; overflow: visible; }
body.gim-site .mkcd-hero .mkcd-hero-copy { max-width: none; }
/* Painel Profissional: sem altura mínima artificial; texto com o mesmo respiro. */
body.gim-site .mpl-hero__content { padding: 56px 24px 56px 64px !important; }
body.gim-site .mpl-hero__media { min-height: 420px !important; }
.gim-site.dark-mode :is(.mkp-about-hero-shell, .mkp-blog-hero, .place-hero, .mkp-static__hero, .mkcd-hero .mkcd-hero-copy, .mpl-hero__shell) { background: #1E2128 !important; border-color: #2E333C !important; }
@media (max-width: 767px) {
    body.gim-site :is(.mkp-about-hero-shell, .mkp-blog-hero, .place-hero, .mkp-static__hero, .mkcd-hero .mkcd-hero-copy) { padding: 28px 20px !important; }
    body.gim-site .mpl-hero__content { padding: 28px 20px !important; }
    body.gim-site .mpl-hero__media { min-height: 260px !important; }
}
body.gim-site .mpl-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Guias e coleções: a busca fica abaixo da faixa (não por cima), como nas outras páginas. */
body.gim-site .mkcd-filter { margin-top: 20px !important; box-shadow: none !important; }
/* Locais: o rótulo acima do título segue o mesmo padrão dos outros rótulos. */
body.gim-site .place-hero > p:first-child { color: var(--gp-t) !important; font-size: 13px !important; font-weight: 600 !important; margin: 0 0 8px !important; }

/* Guias e coleções › filtro: busca + categoria + botão na 1ª linha, localização (3 campos) na 2ª. */
body.gim-site .mkcd-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
body.gim-site .mkcd-filter-grid > :nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
body.gim-site .mkcd-filter-grid > :nth-child(5) { grid-column: 4 / 6; grid-row: 1; }
body.gim-site .mkcd-filter-grid > :nth-child(6) { grid-column: 6 / 7; grid-row: 1; align-self: end; }
body.gim-site .mkcd-filter-grid > :nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
body.gim-site .mkcd-filter-grid > :nth-child(3) { grid-column: 3 / 5; grid-row: 2; }
body.gim-site .mkcd-filter-grid > :nth-child(4) { grid-column: 5 / 7; grid-row: 2; }
body.gim-site .mkcd-filter button { width: 100%; background: var(--gim-primary, #B42318); border-radius: 6px; font-weight: 700; box-shadow: none; }
body.gim-site .mkcd-filter button:hover { background: var(--gim-primary-dark, #8A1A12); }
@media (max-width: 767px) {
  body.gim-site .mkcd-filter-grid { grid-template-columns: 1fr; }
  body.gim-site .mkcd-filter-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  body.gim-site .mkcd-filter-grid > :nth-child(6) { order: 9; }
}

/* Painel Profissional (página pública): ícones centralizados no quadradinho e visíveis no fundo gelo. */
body.gim-site .mpl-proof__item .mpl-proof__icon { display: flex; align-items: center; justify-content: center; margin-top: 0; color: var(--gim-primary, #B42318); }
body.gim-site .mpl-panel__mark { color: var(--gim-primary, #B42318); }

/* Sobre › ilustração do painel: barra lateral sem quebras nem caixa alta, marca chapada na cor da paleta. */
@media (min-width: 768px) { body.gim-site .mkp-about-panel-demo { grid-template-columns: 196px minmax(0, 1fr); } }
body.gim-site .mkp-about-panel-group { margin: 16px 8px 6px; color: #5A6372; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
body.gim-site .mkp-about-panel-link { font-size: 12px; white-space: nowrap; }
body.gim-site .mkp-about-panel-brand span { background: var(--gim-primary, #B42318); color: #fff; border-radius: 6px; }
body.gim-site .mkp-about-panel-card strong { display: block; font-size: 13px; line-height: 1.3; }
body.gim-site .mkp-about-panel-demo .mkp-about-panel-card small, body.gim-site .mkp-about-panel-demo .mkp-about-panel-stat small { margin-top: 3px; color: #5A6372; font-size: 12px !important; line-height: 1.4; }
body.gim-site .mpl-panel__top > :last-child { white-space: nowrap; }

/* Sobre: botão principal e números dos passos chapados na cor da paleta (sem degradê). */
body.gim-site .mkp-about-button-primary { background: var(--gim-primary, #B42318) !important; box-shadow: none !important; color: #fff !important; }
body.gim-site .mkp-about-button-primary:hover { background: var(--gim-primary-dark, #8A1A12) !important; transform: none; }
body.gim-site .mkp-about-step-number { background: #fff !important; border: 1px solid #E6E8EC; box-shadow: none !important; color: var(--gim-primary, #B42318) !important; border-radius: 6px; }
.dark-mode body.gim-site .mkp-about-step-number, body.gim-site.dark-mode .mkp-about-step-number { background: #1E2128 !important; border-color: #2E333C; }

/* Locais: todo card começa pela mídia (sem foto: espaço gelo com ícone), botão sempre no pé do card. */
body.gim-site .place-grid > .place-card { display: flex; flex-direction: column; }
body.gim-site .place-grid > .place-card > .place-button { margin-top: auto; }
body.gim-site .place-photo--empty { display: grid; place-items: center; width: 100%; margin-bottom: 0; border: 1px solid #E6E8EC; border-radius: 6px; background: #F7F8FA; color: #9AA3AF; font-size: 34px; }
body.gim-site .place-actions .place-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: #4B5563; font-size: 14px; font-weight: 600; text-decoration: none; }
body.gim-site .place-actions .place-clear:hover { color: var(--gim-primary, #B42318); text-decoration: underline; text-underline-offset: 3px; }
.dark-mode body.gim-site .place-photo--empty, body.gim-site.dark-mode .place-photo--empty { background: #191C22; border-color: #2E333C; color: #5A6372; }

/* Sem caixa alta: rótulos da busca e do anúncio (o padrão do Guia é texto normal, peso 600). */
body.gim-site :is(.gim-field-label, .gim-bar label, .gim-search label, form[role="search"] label, .service-social-profiles-label, .service-offering-group-label, .service-safety-label, [class*="safety"] > span:first-child) { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600; }
body.gim-site :is(.service-safety-actions > span, .gim-bar-field label, .gim-filters label, .gim-refine label) { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600; }

/* Paginação: "Anterior" desativado legível (era 1,7:1); placeholder do seletor de categoria com contraste. */
body.gim-site .gim-pages .is-disabled { color: #6B7280; background: #F7F8FA; cursor: default; }
.dark-mode body.gim-site .gim-pages .is-disabled, body.gim-site.dark-mode .gim-pages .is-disabled { color: #7C8492; background: #191C22; }
body.gim-site .gim-search-page .mkp-hero-combobox-toggle:disabled { color: #6B7280; background: #F7F8FA; }
