/* =====================================================================
   Privê Local — layout de desktop ("Veludo e ouro")
   Carregado só quando o layout novo está ligado (classe .d2 no <html>).
   Tudo aqui vale a partir de 1024px: o celular continua exatamente igual.
   Tokens: DESIGN.md. CSS escrito à mão (sem build do Tailwind).
   ===================================================================== */

:root {
  --gold: #fbbf24;
  --gold-deep: #f59e0b;
  --gold-light: #fcd34d;
  --gold-ink: #1a1408;
  --night: #0b0c10;
  --night-raised: #171d2b;
  --night-deep: #020617;
  --velvet: rgba(255, 255, 255, 0.035);
  --velvet-2: rgba(255, 255, 255, 0.06);
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.12);
  --ink: #f1f5f9;
  --mist: #94a3b8;
  --smoke: #64748b;
  --available: #34d399;
  --alert: #f87171;

  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --d-head: 64px;      /* cabeçalho público */
  --d-side: 248px;     /* barra lateral do admin */
  --d-wide: 1320px;    /* largura útil */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {

  /* ---------- Superfícies do navegador ---------- */
  html.d2 ::selection { background: rgba(251, 191, 36, 0.32); color: #fff; }
  html.d2 { scrollbar-color: rgba(255, 255, 255, 0.18) var(--night); accent-color: var(--gold); }
  html.d2 ::-webkit-scrollbar { width: 12px; height: 12px; }
  html.d2 ::-webkit-scrollbar-track { background: var(--night); }
  html.d2 ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border: 3px solid var(--night); border-radius: 999px; }
  html.d2 ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }
  html.d2 :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  html.d2 body { font-variant-numeric: tabular-nums; }
  /* "overflow-x: hidden" (layout.php) faz o body virar contêiner de rolagem e desliga o
     position: sticky das colunas. "clip" corta o excesso lateral sem esse efeito. */
  html.d2, html.d2 body { overflow-x: clip !important; }

  /* Sem manchas de brilho no fundo (DESIGN.md: plano por padrão) */
  html.d2 .bg-decor { display: none; }

  /* ---------- Cabeçalho público ---------- */
  html.d2 #site-header .mobile-top-bar,
  html.d2 #site-header .nav-header { display: none !important; }

  html.d2 .d2-head {
    height: var(--d-head);
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid var(--hair);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
  }
  html.d2 .d2-head-in {
    max-width: var(--d-wide);
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
  html.d2 .d2-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  html.d2 .d2-brand img { width: 44px; height: 44px; object-fit: contain; }
  html.d2 .d2-brand span { display: flex; flex-direction: column; line-height: 1; }
  html.d2 .d2-brand b { font-weight: 400; font-size: 30px; color: var(--gold); letter-spacing: 0; }
  html.d2 .d2-brand small { margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 191, 36, 0.78); }

  html.d2 .d2-nav { display: flex; align-items: center; gap: 4px; }
  html.d2 .d2-nav a {
    position: relative;
    display: inline-flex; align-items: center;
    height: 40px; padding: 0 14px;
    border-radius: var(--r-sm);
    font-size: 14.5px; font-weight: 600;
    color: var(--mist); text-decoration: none;
    transition: color 0.15s, background-color 0.15s;
  }
  html.d2 .d2-nav a:hover { color: var(--ink); background: var(--velvet-2); }
  html.d2 .d2-nav a[aria-current="page"] { color: var(--gold-light); }
  html.d2 .d2-nav a[aria-current="page"]::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: -12px;
    height: 2px; border-radius: 2px; background: var(--gold);
  }

  html.d2 .d2-actions { display: flex; align-items: center; gap: 8px; }
  html.d2 .d2-actions form { margin: 0; }

  /* Botões do sistema de desktop */
  html.d2 .d2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    font-size: 14px; font-weight: 700; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  }
  html.d2 .d2-btn.gold { background: var(--gold); color: var(--gold-ink); }
  html.d2 .d2-btn.gold:hover { background: var(--gold-deep); }
  html.d2 .d2-btn.ghost { background: var(--velvet); border-color: var(--hair-2); color: var(--ink); }
  html.d2 .d2-btn.ghost:hover { border-color: rgba(251, 191, 36, 0.4); }
  html.d2 .d2-btn.text { background: none; color: var(--mist); }
  html.d2 .d2-btn.text:hover { color: var(--ink); background: var(--velvet-2); }

  /* Conteúdo abaixo do cabeçalho */
  html.d2 #site-header ~ .relative { padding-top: var(--d-head) !important; }
  html.d2 main.fade-in {
    max-width: var(--d-wide) !important;
    padding: 32px 40px 56px !important;
  }

  /* ---------- Admin: estrutura com barra lateral ---------- */
  html.d2 body.d2-adm #site-header { display: none; }
  html.d2 body.d2-adm #site-header ~ .relative { padding-top: 0 !important; padding-left: var(--d-side); }
  html.d2 body.d2-adm main.fade-in {
    max-width: 1400px !important;
    margin: 0 !important;
    padding: 28px 40px 56px !important;
  }

  html.d2 .adm-side {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: var(--d-side);
    display: flex; flex-direction: column;
    padding: 20px 14px 16px;
    background: var(--night-deep);
    border-right: 1px solid var(--hair);
    overflow-y: auto;
  }
  html.d2 .adm-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 10px 22px;
    text-decoration: none;
  }
  html.d2 .adm-brand img { width: 36px; height: 36px; object-fit: contain; }
  html.d2 .adm-brand span { display: flex; flex-direction: column; line-height: 1; }
  html.d2 .adm-brand b { font-weight: 400; font-size: 24px; color: var(--gold); }
  html.d2 .adm-brand small { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); }

  html.d2 .adm-nav { display: flex; flex-direction: column; gap: 2px; }
  html.d2 .adm-link {
    display: flex; align-items: center; gap: 12px;
    width: 100%; min-height: 42px; padding: 0 12px;
    border: 0; border-radius: var(--r-sm);
    background: none;
    font: inherit; font-size: 14.5px; font-weight: 600; text-align: left;
    color: var(--mist); text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
  }
  html.d2 .adm-link svg { color: var(--smoke); flex-shrink: 0; transition: color 0.15s; }
  html.d2 .adm-link span { flex: 1; }
  html.d2 .adm-link:hover { background: var(--velvet-2); color: var(--ink); }
  html.d2 .adm-link:hover svg { color: var(--mist); }
  html.d2 .adm-link.is-active { background: rgba(251, 191, 36, 0.1); color: var(--gold-light); }
  html.d2 .adm-link.is-active svg { color: var(--gold); }
  html.d2 .adm-pend {
    min-width: 22px; height: 22px; padding: 0 7px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: var(--gold); color: var(--gold-ink);
    font-style: normal; font-size: 12px; font-weight: 800;
  }
  html.d2 .adm-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 2px; }
  html.d2 .adm-side-foot form { margin: 0; }

  /* ---------- Admin › Anúncios (admin/index.php) ---------- */
  html.d2 .av { max-width: none; }

  /* Topo: título e busca na mesma linha, filtros embaixo */
  html.d2 .av-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 400px;
    column-gap: 32px; row-gap: 18px; align-items: center;
    padding: 22px 24px;
  }
  html.d2 .av-hero-top { grid-column: 1; grid-row: 1; }
  html.d2 .av-hero h1 { font-size: 26px; letter-spacing: -0.02em; }
  html.d2 .av-hero-top p { font-size: 14px; margin-top: 4px; }
  html.d2 .av-hero-badge { display: none; }
  html.d2 .av-hero .av-search { grid-column: 2; grid-row: 1; margin-top: 0; }
  html.d2 .av-stats { grid-column: 1 / -1; grid-row: 2; margin-top: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html.d2 .av-search-hint { grid-column: 1 / -1; margin: -6px 0 0; }
  html.d2 .av-stat { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 60px; padding: 0 18px; }
  html.d2 .av-stat .n { font-size: 24px; }
  html.d2 .av-stat .l { font-size: 13.5px; }

  /* Lista em colunas */
  html.d2 .av-section { margin-top: 28px; }
  html.d2 .av-colhead,
  html.d2 .av-row {
    display: grid;
    grid-template-columns: 48px minmax(240px, 2.2fr) 110px 130px minmax(130px, 1fr) 100px;
    column-gap: 20px; align-items: center;
  }
  html.d2 .av-colhead {
    padding: 12px 16px; border-bottom: 1px solid var(--hair);
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke);
  }
  html.d2 .av-colhead + .av-row { border-top: 0; }
  html.d2 .av-row { grid-template-rows: auto auto; row-gap: 2px; padding: 10px 16px; transition: background-color 0.12s; }
  html.d2 .av-row:hover { background: rgba(255, 255, 255, 0.025); }
  html.d2 .av-row .av-thumb { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 60px; border-radius: 10px; }
  html.d2 .av-row .av-body,
  html.d2 .av-row .av-meta { display: contents; }
  html.d2 .av-row .av-name-line { grid-column: 2; grid-row: 1; align-self: end; }
  html.d2 .av-row .av-name-line .av-tag { display: none; }   /* situação tem coluna própria */
  html.d2 .av-row .av-email { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; font-size: 13px; }
  html.d2 .av-row .av-meta > span { grid-row: 1 / span 2; font-size: 13.5px; color: var(--ink); }
  html.d2 .av-row .av-meta > span:nth-child(1) { grid-column: 3; }
  html.d2 .av-row .av-meta > span:nth-child(2) { grid-column: 4; }
  html.d2 .av-row .av-meta b { display: none; }               /* o rótulo está no cabeçalho */
  html.d2 .av-row .av-tags { display: none; }
  html.d2 .av-row .av-sit { grid-column: 5; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  html.d2 .av-row .av-sit .av-tag { font-size: 12px; padding: 3px 10px; }
  html.d2 .av-row .av-sit small { font-size: 12px; color: var(--smoke); }
  html.d2 .av-row .av-actions { grid-column: 6; grid-row: 1 / span 2; flex-direction: row; justify-content: flex-end; }
  html.d2 .av-row .av-btn.icon { width: 40px; height: 40px; min-width: 40px; }
  html.d2 .av-row .av-btn svg { width: 18px; height: 18px; }

  /* Pendentes: uma linha, decisão à direita */
  html.d2 .av-prow { display: flex; align-items: center; gap: 24px; padding: 12px 16px; }
  html.d2 .av-prow-top { flex: 1; min-width: 0; }
  html.d2 .av-prow-top .av-thumb { width: 48px; height: 60px; }
  html.d2 .av-prow-actions { margin-top: 0; flex: 0 0 auto; }
  html.d2 .av-prow-actions .av-btn { flex: 0 0 auto; min-width: 128px; height: 40px; }

  html.d2 .av-pager { justify-content: center; gap: 20px; }

  /* ---------- Admin › Anúncio (admin/show.php) ----------
     Perfil fixo à esquerda (fotos, nome, situação, números); abas e trabalho à direita. */
  html.d2 section.md-page {
    display: grid !important;
    grid-template-columns: 360px minmax(0, 1fr);
    column-gap: 28px; row-gap: 0;
    align-items: start;
    max-width: 1280px; margin: 0;
  }
  html.d2 section.md-page > div.rounded-3xl { display: contents; }
  html.d2 section.md-page > div.rounded-3xl > *,
  html.d2 section.md-page > aside { grid-column: 2; margin-bottom: 12px; }
  html.d2 section.md-page > aside > div { margin-top: 0; }
  html.d2 section.md-page > aside > div + div { margin-top: 12px; }
  html.d2 section.md-page > div.rounded-3xl > .md-hero {
    grid-column: 1; grid-row: 1 / span 60;
    position: sticky; top: 24px;
    margin-bottom: 0;
  }
  html.d2 section.md-page .md-tabs { top: 12px; margin: 0 0 12px; }

  /* Galeria do perfil: grade de 3, rola dentro do cartão se houver muitas fotos */
  html.d2 .md-hero .md-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; max-height: 380px; overflow-x: hidden; overflow-y: auto;
    scrollbar-width: thin;
  }
  html.d2 .md-hero .md-shot img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  html.d2 .md-hero .md-shot:hover img { opacity: 0.88; }
  html.d2 .md-hero .md-name { font-size: 24px; letter-spacing: -0.02em; }
  html.d2 .md-hero .md-nums { gap: 12px 22px; }
  html.d2 .md-hero .md-btn { margin-left: 0; width: 100%; }

  /* ---------- Admin › comum ---------- */
  /* A barra lateral já leva de volta: os botões "voltar" das telas somem */
  html.d2 body.d2-adm .uv-back,
  html.d2 body.d2-adm .cv-back,
  html.d2 body.d2-adm .sv-back { display: none; }
  /* Telas de formulário (Avisos, Editar usuário): coluna de leitura alinhada à esquerda */
  html.d2 body.d2-adm main > section.max-w-3xl { margin-left: 0; max-width: 880px; }
  html.d2 body.d2-adm .cf-settings { max-width: 880px; }

  /* ---------- Admin › Usuários (admin/users.php) ---------- */
  html.d2 .uv { max-width: none; }
  html.d2 .uv-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 400px;
    column-gap: 32px; row-gap: 16px; align-items: center;
    padding: 22px 24px;
  }
  html.d2 .uv-hero-top { grid-column: 1; grid-row: 1; }
  html.d2 .uv-hero h1 { font-size: 26px; letter-spacing: -0.02em; }
  html.d2 .uv-hero-top p { font-size: 14px; margin-top: 4px; }
  html.d2 .uv-hero .uv-search { grid-column: 2; grid-row: 1; margin-top: 0; }
  html.d2 .uv-stats { grid-column: 1 / -1; margin-top: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  html.d2 .uv-stat { min-height: 60px; }
  html.d2 .uv-stat .n { font-size: 22px; }
  html.d2 .uv-types, html.d2 .uv-hint { grid-column: 1 / -1; margin-top: 0; }

  html.d2 .uv-section { margin-top: 28px; }
  html.d2 .uv-colhead,
  html.d2 .uv-row {
    display: grid;
    grid-template-columns: 48px minmax(260px, 2.4fr) 110px 120px minmax(150px, 1.2fr) 100px;
    column-gap: 20px; align-items: center;
  }
  html.d2 .uv-colhead {
    display: grid; padding: 12px 16px; border-bottom: 1px solid var(--hair);
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke);
  }
  html.d2 .uv-colhead + .uv-row { border-top: 0; }
  html.d2 .uv-row { grid-template-rows: auto auto; row-gap: 2px; padding: 10px 16px; transition: background-color 0.12s; }
  html.d2 .uv-row:hover { background: rgba(255, 255, 255, 0.025); }
  html.d2 .uv-row .uv-avatar { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 60px; border-radius: 10px; }
  html.d2 .uv-row .uv-body,
  html.d2 .uv-row .uv-meta { display: contents; }
  html.d2 .uv-row .uv-name-line { grid-column: 2; grid-row: 1; align-self: end; }
  html.d2 .uv-row .uv-email { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; font-size: 13px; }
  html.d2 .uv-row .uv-meta > span { grid-row: 1 / span 2; font-size: 13.5px; color: var(--ink); }
  html.d2 .uv-row .uv-meta > span:nth-child(1) { grid-column: 3; }
  html.d2 .uv-row .uv-meta > span:nth-child(2) { grid-column: 4; }
  html.d2 .uv-row .uv-meta b { display: none; }
  html.d2 .uv-row .uv-tags { grid-column: 5; grid-row: 1 / span 2; margin-top: 0; }
  html.d2 .uv-row .uv-tag { font-size: 12px; padding: 3px 10px; }
  html.d2 .uv-row .uv-actions { grid-column: 6; grid-row: 1 / span 2; flex-direction: row; justify-content: flex-end; }
  html.d2 .uv-row .uv-btn { width: 40px; height: 40px; }
  html.d2 .uv-row .uv-btn svg { width: 18px; height: 18px; }
  html.d2 .uv-pager { justify-content: center; gap: 20px; }
  html.d2 .uv-sheet.show { align-items: center; }
  html.d2 .uv-sheet-box { max-width: 440px; border-radius: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 12px; }
  html.d2 .uv-sheet-grip { display: none; }

  /* ---------- Admin › Comentários (admin/comments.php) ---------- */
  html.d2 .cv { max-width: none; }
  html.d2 .cv-head h1 { font-size: 26px; letter-spacing: -0.02em; }
  html.d2 .cv-filters { margin: 0; padding: 0; flex-wrap: wrap; }
  html.d2 .cv-search { max-width: 520px; }
  html.d2 .cv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  html.d2 .cv-pager { justify-content: center; gap: 20px; }
  html.d2 .cv-bulkbar { left: var(--d-side) !important; }

  /* ---------- Admin › Stories (admin/stories.php) ---------- */
  html.d2 .sv { max-width: none !important; }
  html.d2 .sv-head h1 { font-size: 26px; letter-spacing: -0.02em; }
  html.d2 .sv-filters { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  html.d2 .sv-search { max-width: 520px; }
  html.d2 .sv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.d2 .sv-row { border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
  html.d2 .sv-row:nth-child(-n+2) { border-top: 0; }
  html.d2 .sv-row:nth-child(odd) { border-left: 0; }
  html.d2 .sv-pager { justify-content: center; gap: 20px; }

  /* ---------- Formulário de local (admin e dono: partials/local_form.php) ---------- */
  html.d2 #localForm {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px; align-items: start;
  }
  html.d2 #localForm > * { margin: 0 !important; }
  html.d2 #localForm > input[type="hidden"] { display: none; }
  html.d2 #localForm > .flex { grid-column: 1 / -1; justify-content: flex-end; }
  html.d2 #localForm > .flex > * { flex: 0 0 auto; min-width: 200px; }

  /* ---------- Público › Home e páginas de cidade (public/home.php) ---------- */
  /* Garotas / Trans / Homens já estão no cabeçalho */
  html.d2 .tipo-tabs { display: none; }
  /* Vídeos dos stories: 4 por linha (com 5, sobravam linhas incompletas) */
  html.d2 .home-vstories > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* "Disponíveis agora": faixa de veludo com texto em ouro, sem brilho nem animação;
     ao rolar, fica presa logo abaixo do cabeçalho */
  html.d2 .disponivel-agora-cta {
    background: var(--night-raised);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: none;
    animation: none;
    padding: 12px 18px;
  }
  html.d2 .disponivel-agora-cta::before,
  html.d2 .disponivel-agora-cta-bell { display: none; }
  html.d2 .disponivel-agora-cta-text { color: var(--gold-light); text-shadow: none; font-size: 13px; font-weight: 800; }
  html.d2 .disponivel-agora-cta .cta-letter { animation: none; transform: none; opacity: 1; }
  html.d2 .disponivel-agora-cta-count { background: var(--gold); color: var(--gold-ink); border: 0; box-shadow: none; font-size: 12px; }
  html.d2 .disponivel-agora-cta:hover:not(.is-hidden) { border-color: var(--gold); }
  html.d2 .disponivel-agora-cta.is-sticky {
    top: var(--d-head);
    padding-top: 12px;
    background: rgba(23, 29, 43, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  /* ---------- Público › Anúncio (public/show.php, bloco .desktop-view) ----------
     Nome e galeria no alto; cachê e contato numa coluna que acompanha a rolagem. */
  html.d2 section.desktop-view {
    grid-template-columns: minmax(0, 1fr) 400px !important;
    gap: 28px !important;
    align-items: start;
  }
  html.d2 section.desktop-view > div.space-y-6 { display: flex; flex-direction: column; gap: 20px; }
  html.d2 section.desktop-view > div.space-y-6 > * { margin: 0 !important; }
  html.d2 section.desktop-view > div.space-y-6 > :first-child { order: -2; }
  html.d2 section.desktop-view .pl-gallery { order: -1; }
  html.d2 section.desktop-view .pl-gallery .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  html.d2 section.desktop-view .pl-laststories .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  html.d2 section.desktop-view .pl-gallery img:hover { transform: none; filter: brightness(1.06); }

  html.d2 section.desktop-view > aside.pl-side {
    position: sticky; top: calc(var(--d-head) + 20px);
    max-height: calc(100vh - var(--d-head) - 40px);
    overflow-y: auto; scrollbar-width: thin;
  }
  html.d2 section.desktop-view .pl-cache {
    background: var(--night-raised) !important;
    border: 1px solid rgba(251, 191, 36, 0.28) !important;
  }
  html.d2 section.desktop-view .pl-cache h3 { color: var(--gold-light) !important; }

  /* ---------- Público › Locais (public/locais.php) ---------- */
  /* Cabeçalho vira uma linha de título (sem o bloco em degradê dourado) */
  html.d2 .locais-header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px;
    margin: 0 0 28px !important; padding: 0 0 22px;
    background: none; border-radius: 0; text-align: left;
    border-bottom: 1px solid var(--hair);
  }
  html.d2 .locais-header h1 { grid-column: 1; margin: 0; font-size: 28px; letter-spacing: -0.02em; color: var(--ink); }
  html.d2 .locais-header p { grid-column: 1; margin: 4px 0 0; font-size: 15px; color: var(--mist); }
  html.d2 .locais-header .locais-cta {
    grid-column: 2; grid-row: 1 / span 2; margin: 0;
    height: 44px; min-height: 44px; border-radius: var(--r-md);
    background: var(--gold); color: var(--gold-ink);
  }
  html.d2 .locais-header .locais-cta:hover { background: var(--gold-deep); }
  html.d2 .locais-header + div { padding-left: 0; padding-right: 0; }

  /* ---------- Público › Local (public/local_show.php) ----------
     Fotos e detalhes à esquerda; nome, valores e contato numa coluna que acompanha a rolagem. */
  html.d2 section.local-page {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px;
    column-gap: 28px; align-items: start; min-height: 0;
  }
  html.d2 section.local-page > .local-content { display: contents; }
  html.d2 section.local-page .local-hero { grid-column: 1; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 20px; }
  html.d2 section.local-page .local-hero-img { height: 520px; opacity: 1; }
  html.d2 section.local-page .local-hero-back { display: none; }
  html.d2 section.local-page .local-section { grid-column: 1; margin-bottom: 20px; }
  html.d2 section.local-page .local-side {
    grid-column: 2; grid-row: 1 / span 20;
    position: sticky; top: calc(var(--d-head) + 20px);
    padding: 22px; border-radius: var(--r-xl);
    background: var(--night-raised); border: 1px solid var(--hair);
  }
  html.d2 section.local-page .local-title { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
  html.d2 section.local-page .local-side .local-price-box {
    margin-bottom: 16px;
    background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.28);   /* preço é ouro, não verde */
  }
  html.d2 section.local-page .local-price,
  html.d2 section.local-page .local-price-list dd { color: var(--gold); }
  html.d2 section.local-page .local-price small,
  html.d2 section.local-page .local-price-title { color: var(--gold-light); }
  html.d2 section.local-page .local-price-list div { border-top-color: rgba(251, 191, 36, 0.18); }
  html.d2 .local-side-cta {
    display: flex; align-items: center; justify-content: center;
    height: 48px; border-radius: var(--r-md);
    background: var(--gold); color: var(--gold-ink);
    font-size: 15px; font-weight: 800; text-decoration: none;
  }
  html.d2 .local-side-cta:hover { background: var(--gold-deep); }
  html.d2 section.local-page .local-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* ---------- Painel do dono de local (local_owner/index.php) ---------- */
  html.d2 .mlo { max-width: 1100px; }
  html.d2 .mlo-head h1 { font-size: 26px; letter-spacing: -0.02em; }
  html.d2 .mlo-box:has(.mlo-item) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  html.d2 .mlo-item + .mlo-item { margin-top: 0; }

  /* "Mais ações": no desktop vira janela central, não folha vinda de baixo */
  html.d2 .av-sheet.show { align-items: center; }
  html.d2 .av-sheet-box { max-width: 440px; border-radius: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 12px; }
  html.d2 .av-sheet-grip { display: none; }
}

/* A barra lateral e o cabeçalho de desktop não existem abaixo de 1024px */
@media (max-width: 1023.98px) {
  html.d2 .adm-side,
  html.d2 .d2-head { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.d2 .d2-nav a, html.d2 .d2-btn, html.d2 .adm-link, html.d2 .adm-link svg { transition: none; }
}
