/* ============================================================
   Pity Atitude - Plataforma
   Home, Mapa da Cidade e Publicações do Pity
   Usa os tokens de style.css (carregado antes deste arquivo)
   ============================================================ */
/* ---- Header com as três áreas ---- */
.header-center {
    max-width: 260px;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 4px 0;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-menu-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 1080px) {
    .header-center { display: none; }
    .mobile-search-toggle { display: flex; }
}

@media (max-width: 960px) {
    .header-nav { display: none; }
    .social-link--desktop { display: none; }
    .hamburger { display: flex; }
}

/* ---- Botões e utilitários ---- */
.btn-primary-lg,
.btn-ghost-lg,
.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn-primary-lg svg,
.btn-ghost-lg svg,
.btn-outline-lg svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary-lg {
    background: var(--primary);
    border: none;
    color: var(--white);
    box-shadow: none;
}

.btn-primary-lg:hover {
    color: var(--white);
    transform: translateY(-1px);
    background: var(--primary-dark);
    box-shadow: none;
}

.btn-ghost-lg {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: var(--white);
}

.btn-ghost-lg:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.btn-outline-lg {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-outline-lg:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-lg[hidden] { display: none; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--text-primary);
    font: 600 0.85rem var(--font-body);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost svg { width: 18px; height: 18px; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost--muted { color: var(--text-muted); }

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.eyebrow--light { color: var(--primary-light); }

.spinner-dark {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.empty-inline {
    padding: 28px 24px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.92rem;
}

.container--narrow {
    max-width: 680px;
}

/* ---- Cabeçalho de seção (título + link) ---- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-head p {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 0.95rem;
}

.section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.section-link svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.section-link:hover svg { transform: translateX(3px); }

/* ============================================================
   Home
   ============================================================ */
.hero--home {
    padding: 88px 0 132px;
}

.hero--home.hero--cover {
    padding: 104px 0 140px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Três frentes */
.pillars {
    margin-top: -84px;
    position: relative;
    z-index: 2;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar {
    --pillar-color: var(--primary);
    --pillar-soft: rgba(232, 97, 26, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 22px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pillar::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--pillar-color);
}

.pillar:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--pillar-soft);
}

.pillar--map    { --pillar-color: #2F80C9; --pillar-soft: rgba(47, 128, 201, 0.14); }
.pillar--social { --pillar-color: #16213E; --pillar-soft: rgba(22, 33, 62, 0.12); }

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pillar-soft);
    color: var(--pillar-color);
}

.pillar-icon svg { width: 26px; height: 26px; }

.pillar h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.pillar p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

.pillar-stat {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pillar-stat strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.pillar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    color: var(--pillar-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.pillar-cta svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.pillar:hover .pillar-cta svg { transform: translateX(4px); }

/* Seções */
.home-section {
    padding: 64px 0;
}

.home-section--map {
    background: var(--bg-secondary);
}

.home-map-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: start;
}

.home-map-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.home-map {
    height: 380px;
    background: #E8EEF2;
    isolation: isolate;
}

.home-map-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.home-map-stats strong {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.home-map-stats-official strong { color: var(--primary); }

.home-reports {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.report-cta:hover {
    color: var(--white);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.report-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-cta-icon svg { width: 22px; height: 22px; }
.report-cta strong { display: block; font-family: var(--font-heading); font-size: 1rem; }
.report-cta small { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* Publicações na Home */
.post-teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-teaser {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-teaser:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-teaser-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-secondary);
    overflow: hidden;
}

.post-teaser-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-teaser:hover .post-teaser-media img { transform: scale(1.05); }

.post-teaser-media--text {
    display: flex;
    align-items: center;
    padding: 24px;
    background: var(--accent);
}

.post-teaser-quote {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-teaser-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(232, 97, 26, 0.92);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.post-teaser-play svg { width: 26px; height: 26px; margin-left: 3px; }

.post-teaser-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
}

.post-teaser-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    flex: 1;
}

.post-teaser-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-teaser-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-teaser-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-teaser-foot span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-teaser-foot svg { width: 16px; height: 16px; }
.post-teaser-cta { color: var(--primary); font-weight: 700; }

/* Chamada final */
.home-cta {
    padding: 0 0 72px;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 40px;
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
}

.home-cta-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.home-cta-inner p { color: rgba(255,255,255,0.85); }

.home-cta-inner .btn-primary-lg {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: none;
}

.home-cta-inner .btn-primary-lg:hover { color: var(--primary-darker); }

/* ============================================================
   Etiquetas: categoria e selo oficial
   ============================================================ */
.cat-tag {
    --cat-color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    background: color-mix(in srgb, var(--cat-color) 12%, white);
    color: var(--cat-color);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cat-tag svg { width: 13px; height: 13px; }

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px 2px 7px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.official-badge svg { width: 12px; height: 12px; }

/* Item de registro (Home e lista do mapa) */
.report-item {
    display: flex;
    gap: 14px;
    width: 100%;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    font: inherit;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.report-item:hover {
    color: var(--text-primary);
    border-color: rgba(232, 97, 26, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.report-item--official {
    border-color: rgba(232, 97, 26, 0.35);
    background: #FFF8F4;
    box-shadow: inset 3px 0 0 var(--primary), var(--shadow-sm);
}

.report-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.report-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.report-item-thumb--icon {
    --cat-color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 12%, white);
    color: var(--cat-color);
}

.report-item-thumb--icon svg { width: 30px; height: 30px; }

.report-item-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.report-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.report-item-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.report-item-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Mapa da Cidade - tela cheia, tudo sobre o mapa
   ============================================================ */
body.page-map .site-footer { display: none; }

.map-app {
    background: #E8EEF2;
}

.map-wrap {
    position: relative;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 440px;
    overflow: hidden;
}

.city-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #E8EEF2;
}

.city-map.is-picking,
.city-map.is-picking .leaflet-interactive,
.city-map.is-picking .leaflet-grab {
    cursor: crosshair;
}

/* Elementos flutuantes deixam o mapa arrastável entre eles */
.map-top,
.map-bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 5;
    pointer-events: none;
}

.map-top > *,
.map-bottom > * {
    pointer-events: auto;
}

/* Durante a marcação do local só o aviso fica visível */
.map-wrap.is-picking .map-top,
.map-wrap.is-picking .map-bottom {
    display: none;
}

/* ---- Topo: título e filtros ---- */
.map-top {
    top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.map-title {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 10px 16px;
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.map-title-text { min-width: 0; }

.map-title h1 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    white-space: nowrap;
}

.map-title h1 span {
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    vertical-align: 2px;
}

.map-title p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-pin {
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #5F6B7A;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

.legend-pin--official {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(232, 97, 26, 0.35);
}

.map-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 920px;
}

.chip {
    --cat-color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 38px;
    padding: 6px 14px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    font: 600 0.84rem var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.chip svg {
    width: 16px;
    height: 16px;
    color: var(--cat-color);
}

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

.chip.active {
    background: var(--accent);
    color: var(--white);
}

.chip.active[data-filter-category]:not([data-filter-category=""]) {
    background: var(--cat-color);
}

.chip.active svg { color: var(--white); }

.chip-count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.chip-count[hidden] { display: none; }

.chip.active .chip-count {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

.chip--official svg { color: var(--primary); }
.chip--official.active { background: var(--primary); }

/* ---- Base: lista e registrar ---- */
.map-bottom {
    bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 10px;
}

.map-btn,
.map-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.map-btn {
    padding: 0 20px;
    background: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    font: 700 0.92rem var(--font-body);
}

.map-btn svg { width: 20px; height: 20px; }

.map-btn-count {
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
}

.map-btn-count:empty { display: none; }

.map-fab {
    padding: 0 26px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    font: 800 0.98rem var(--font-heading);
}

.map-fab svg { width: 22px; height: 22px; }

.map-btn:hover,
.map-fab:hover {
    transform: translateY(-2px);
}

/* ---- Carregando ---- */
.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(232, 238, 242, 0.85);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 7;
}

.map-loading[hidden] { display: none; }

/* ---- Aviso de marcação do local ---- */
.map-pick-banner {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 12px 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-xl);
    z-index: 6;
}

.map-pick-banner[hidden] { display: none; }

.map-pick-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.map-pick-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-pick-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ---- Gavetas: lista e registro ---- */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 250;
}

.sheet-overlay[hidden] { display: none; }

.map-sheet {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(0,0,0,0.15);
    z-index: 99;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 300ms ease, visibility 0s linear 300ms;
}

.map-sheet.open {
    transform: none;
    visibility: visible;
    transition: transform 300ms ease;
}

/* Com a gaveta aberta no desktop, os controles flutuantes ficam à esquerda dela */
.map-wrap.has-sheet .map-top,
.map-wrap.has-sheet .map-bottom {
    right: 436px;
}

.sheet-handle { display: none; }

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sheet-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.sheet-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sheet-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sheet-close svg { width: 18px; height: 18px; }
.sheet-close:hover { background: var(--danger-light); color: var(--danger); }

.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 28px;
    overscroll-behavior: contain;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Celular x computador ---- */
.only-mobile { display: none !important; }

/* ---- Botões do topo ---- */
.map-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--text-primary);
    font: 700 0.9rem var(--font-body);
    cursor: pointer;
    flex-shrink: 0;
}

.map-filter-btn svg { width: 20px; height: 20px; }

.map-clear {
    margin-left: 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font: 700 0.8rem var(--font-body);
    text-decoration: underline;
    cursor: pointer;
}

.map-clear[hidden] { display: none; }

/* ---- Onde estou ---- */
.map-locate {
    position: absolute;
    right: 16px;
    bottom: 96px;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--white);
    color: #2F80C9;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-locate svg { width: 24px; height: 24px; }
.map-locate.is-loading svg { animation: spin 1s linear infinite; }
.map-wrap.is-picking .map-locate { display: none; }

/* ---- Passo 1: marcar e confirmar o local ---- */
.map-pick-banner {
    flex-direction: column;
    align-items: stretch;
}

.map-pick-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-pick-step[hidden],
.map-pick-actions[hidden] { display: none; }

.map-pick-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font: 800 0.9rem var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-confirm-bar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.map-confirm-bar[hidden] { display: none; }
.map-confirm-bar .map-fab { min-width: 240px; }

/* ---- Rodapé fixo das gavetas ---- */
.sheet-footer {
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    background: var(--white);
}

.map-sheet--form form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ---- Gaveta de filtros ---- */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-tile {
    --cat-color: var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-primary);
    font: 600 0.88rem var(--font-body);
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
}

.filter-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    background: color-mix(in srgb, var(--cat-color) 12%, white);
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-tile-icon svg { width: 20px; height: 20px; }
.filter-tile-label { flex: 1; }

.filter-tile.active {
    border-color: var(--cat-color);
    background: var(--bg-primary);
    background: color-mix(in srgb, var(--cat-color) 8%, white);
    box-shadow: 0 0 0 1px var(--cat-color);
}

.filter-tile.active .filter-tile-icon {
    background: var(--cat-color);
    color: var(--white);
}

.filter-tile .chip-count {
    position: absolute;
    top: 6px;
    right: 8px;
}

.filter-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}

.filter-switch-text strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.filter-switch-text strong svg { width: 16px; height: 16px; color: var(--primary); }
.filter-switch-text small { font-size: 0.78rem; color: var(--text-muted); }

.filter-switch-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: var(--border);
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.filter-switch-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.filter-switch.active { border-color: var(--primary); }
.filter-switch.active .filter-switch-toggle { background: var(--primary); }
.filter-switch.active .filter-switch-toggle::after { transform: translateX(20px); }

/* ---- Gaveta de detalhes ---- */
.map-sheet--detail .sheet-body { padding: 0 0 calc(20px + env(safe-area-inset-bottom)); }

.sheet-close--float {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow-md);
}

.map-sheet--detail .pm-popup-photo {
    height: 190px;
}

.map-sheet--detail .pm-popup-body {
    padding: 16px 20px 0;
    gap: 10px;
    font-size: 0.95rem;
}

.map-sheet--detail .pm-popup-tags { padding-right: 48px; }

.author-line {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.author-line strong { color: var(--text-primary); }

.detail-route {
    width: 100%;
    margin-top: 4px;
}

.detail-route svg { width: 18px; height: 18px; }

.sent-box {
    padding: 36px 24px 8px;
    text-align: center;
}

.sent-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.sent-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.form-hint.form-hint--left { text-align: left; }

/* ---- Formulários públicos (registro e comentário) ---- */
.report-form .form-group,
.comment-form .form-group {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    min-width: 0;
}

.report-form label,
.report-form legend,
.report-form .label,
.comment-form label,
.captcha label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.report-form legend { padding: 0; }

.optional {
    font-weight: 400;
    color: var(--text-muted);
}

.report-form input[type="text"],
.report-form input[type="tel"],
.report-form textarea,
.comment-form input[type="text"],
.comment-form textarea,
.captcha-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px; /* evita zoom automático no iOS */
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    outline: none;
    resize: vertical;
}

.report-form input:focus,
.report-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.captcha-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--white);
}

.form-hint {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-notice {
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text-muted);
    padding: 10px 12px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-lighter);
}

.form-notice a { color: var(--primary); text-decoration: underline; }

.report-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    background: var(--success-light);
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.report-location > svg {
    width: 26px;
    height: 26px;
    color: var(--success);
    flex-shrink: 0;
}

.report-location div { flex: 1; min-width: 0; }
.report-location strong { display: block; font-size: 0.88rem; }
.report-location span { font-size: 0.75rem; color: var(--text-secondary); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-option {
    --cat-color: var(--text-secondary);
    position: relative;
    cursor: pointer;
}

.report-form .category-option { margin: 0; }

.category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-option-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

.category-option-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    background: color-mix(in srgb, var(--cat-color) 12%, white);
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-option-icon svg { width: 18px; height: 18px; }

.category-option-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.category-option:hover .category-option-box { border-color: var(--cat-color); }

.category-option input:checked + .category-option-box {
    border-color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 8%, white);
    box-shadow: 0 0 0 1px var(--cat-color);
}

.category-option input:checked + .category-option-box .category-option-icon {
    background: var(--cat-color);
    color: var(--white);
}

.category-option input:focus-visible + .category-option-box {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.report-form .photo-drop {
    position: relative;
    display: block;
    margin: 0;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.photo-drop:hover { border-color: var(--primary); }

.photo-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-drop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    color: var(--text-secondary);
    text-align: center;
}

.photo-drop-empty[hidden] { display: none; }
.photo-drop-empty svg { width: 32px; height: 32px; color: var(--primary); }
.photo-drop-empty strong { font-size: 0.9rem; color: var(--text-primary); }
.photo-drop-empty small { font-size: 0.75rem; color: var(--text-muted); }

.photo-preview {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}

.photo-preview[hidden] { display: none; }
#btn-photo-remove { margin-top: 8px; font-size: 0.82rem; }
#btn-photo-remove[hidden] { display: none; }

/* CAPTCHA */
.captcha { margin-bottom: 16px; }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.captcha-img {
    width: 150px;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
}

.captcha-refresh {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.captcha-refresh:hover { color: var(--primary); border-color: var(--primary); }

.captcha-input {
    flex: 1;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* ============================================================
   Publicações do Pity
   ============================================================ */
.page-hero {
    background: var(--accent);
    color: var(--white);
    padding: 44px 0 40px;
}

.social-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.social-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--white);
    padding: 8px;
    box-shadow: 0 0 0 4px var(--primary), 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-profile-avatar img { width: 100%; height: 100%; object-fit: contain; }

.social-profile h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
}

.social-profile p {
    color: rgba(255,255,255,0.72);
    margin-top: 6px;
    font-size: 0.95rem;
}

.social-profile-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.social-profile-links a { color: var(--primary-light); font-weight: 600; }

.feed-section {
    padding: 32px 0 72px;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.post-card--pinned { border-color: rgba(232, 97, 26, 0.3); }

.post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 10px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 3px;
    flex-shrink: 0;
    display: flex;
}

.post-avatar img { width: 100%; height: 100%; object-fit: contain; }

.post-author strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
}

.post-verified { width: 17px; height: 17px; color: var(--primary); }

.post-author > span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.post-author a { color: var(--text-muted); }
.post-author a:hover { color: var(--primary); text-decoration: underline; }

.post-pinned {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--primary);
    font-weight: 600;
}

.post-pinned svg { width: 12px; height: 12px; }

.post-content {
    padding: 0 18px 14px;
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.post-content a { text-decoration: underline; text-underline-offset: 2px; }

.post-content.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0;
}

.post-more {
    display: block;
    margin: 4px 18px 14px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font: 600 0.88rem var(--font-body);
    cursor: pointer;
}

.post-more:hover { color: var(--primary); }

.post-media { background: #0F1424; }

.post-video video,
.post-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    background: #0F1424;
    cursor: pointer;
    overflow: hidden;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity var(--transition), transform var(--transition-slow);
}

.video-facade:hover img { opacity: 1; transform: scale(1.03); }

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: transform var(--transition-fast);
}

.video-facade:hover .video-play { transform: scale(1.08); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }

.video-provider {
    position: absolute;
    left: 12px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 500;
}

.post-video + .post-gallery { margin-top: 2px; }

.post-gallery {
    display: grid;
    gap: 2px;
    background: var(--white);
}

.post-gallery--1 { grid-template-columns: 1fr; }
.post-gallery--2 { grid-template-columns: 1fr 1fr; }
.post-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-gallery--4 { grid-template-columns: 1fr 1fr; }

.post-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 1 / 1;
}

.post-gallery-item[hidden] { display: none; }

.post-gallery--1 .post-gallery-item { aspect-ratio: auto; max-height: 560px; }
.post-gallery--1 .post-gallery-item img { max-height: 560px; }
.post-gallery--3 .post-gallery-item:first-child { grid-row: span 2; aspect-ratio: auto; }

.post-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-gallery-item:hover img { transform: scale(1.03); }

.post-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 36, 0.55);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.post-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 18px 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.post-link-card:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: var(--white);
}

.post-link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-link-icon svg { width: 20px; height: 20px; }

.post-link-text {
    flex: 1;
    min-width: 0;
}

.post-link-text strong {
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-link-text small { font-size: 0.76rem; color: var(--text-muted); }
.post-link-arrow { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.post-foot {
    display: flex;
    gap: 4px;
    margin-top: 14px;
    padding: 6px 10px;
    border-top: 1px solid var(--border-light);
}

.post-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-secondary);
    font: 600 0.86rem var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.post-action svg { width: 19px; height: 19px; }
.post-action:hover { background: var(--primary-glow); color: var(--primary); }
.post-action--muted { color: var(--text-muted); cursor: default; }
.post-action--muted:hover { background: none; color: var(--text-muted); }

.feed-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Comentários */
.comments {
    margin-top: 24px;
    padding: 22px 18px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.comments h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.comments-count {
    min-width: 26px;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

.comments-closed,
.comments-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 8px 0 16px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 2px var(--radius-lg) var(--radius-lg) var(--radius-lg);
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.comment-head strong { font-size: 0.88rem; }
.comment-head time { font-size: 0.74rem; color: var(--text-muted); }

.comment-body p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.comment--new .comment-body {
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.comment-form {
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.comment-form h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Galeria em tela cheia */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 20, 0.94);
}

.lightbox.show { display: flex; }

.lightbox-img {
    max-width: calc(100% - 32px);
    max-height: calc(100% - 96px);
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }

.lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 64px;
    margin-top: -32px;
    border-radius: var(--radius-md);
    font-size: 40px;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox--single .lightbox-nav { display: none; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 900px) {
    .pillars-grid,
    .post-teasers {
        grid-template-columns: 1fr 1fr;
    }

    .pillar--social,
    .post-teaser:nth-child(3) {
        grid-column: 1 / -1;
    }

    .home-map-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .only-mobile { display: inline-flex !important; }
    .only-desktop { display: none !important; }

    /* Gavetas sobem de baixo, com cantos arredondados */
    .map-sheet {
        top: auto;
        left: 0;
        width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -12px 40px rgba(0,0,0,0.2);
        z-index: 260;
        transform: translateY(105%);
    }

    /* Formulário ocupa quase a tela toda, com o botão de enviar sempre visível */
    .map-sheet--form {
        height: 94vh;
        height: 94dvh;
        max-height: none;
    }

    /* Detalhes: metade de baixo, o mapa continua visível em cima */
    .map-sheet--detail {
        max-height: 72vh;
        max-height: 72dvh;
    }

    .sheet-handle {
        display: block;
        width: 44px;
        height: 5px;
        margin: 10px auto 0;
        border-radius: 3px;
        background: var(--border);
        flex-shrink: 0;
    }

    .map-sheet--detail .sheet-handle {
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -22px;
        z-index: 2;
        background: rgba(255,255,255,0.8);
    }

    .sheet-header { padding: 10px 18px 12px; }
    .sheet-body { padding: 16px 18px 24px; }
    .sheet-footer { padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }

    /* Topo: um cartão só, com o botão Filtros */
    .map-top,
    .map-bottom,
    .map-confirm-bar {
        left: 10px;
        right: 10px;
    }

    .map-top { top: 10px; }

    .map-title {
        align-self: stretch;
        justify-content: space-between;
        padding: 8px 8px 8px 14px;
    }

    .map-title h1 { font-size: 1rem; }
    .map-title p { font-size: 0.78rem; }

    /* Base: botões grandes, fáceis de tocar */
    .map-bottom,
    .map-confirm-bar { bottom: calc(14px + env(safe-area-inset-bottom)); }

    .map-btn,
    .map-fab { min-height: 56px; }

    .map-fab { flex: 1; }
    .map-confirm-bar .map-fab { min-width: 0; }

    .map-locate {
        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .map-wrap.has-sheet .map-top,
    .map-wrap.has-sheet .map-bottom {
        right: 10px;
    }

    /* Aviso do passo 1 */
    .map-pick-banner {
        top: 10px;
        width: calc(100% - 20px);
        gap: 12px;
        padding: 14px;
    }

    .map-pick-actions .btn-ghost {
        flex: 1;
        justify-content: center;
        min-height: 48px;
        font-size: 0.9rem;
    }

    /* Formulário */
    .category-option-box { min-height: 58px; }

    .report-form .btn-sign,
    .map-sheet .btn-sign {
        min-height: 54px;
    }
}

@media (max-width: 680px) {
    .hero--home,
    .hero--home.hero--cover {
        padding: 48px 0 96px;
    }

    .hero-actions { flex-direction: column; align-items: stretch; }

    .pillars { margin-top: -64px; }

    .pillars-grid,
    .post-teasers {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pillar { padding: 20px 18px 18px; }

    .home-section { padding: 44px 0; }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .home-map { height: 280px; }

    .home-cta { padding-bottom: 48px; }

    .home-cta-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 22px;
        text-align: center;
    }

    .page-hero { padding: 28px 0; }
    .social-profile { gap: 16px; }

    .social-profile-avatar {
        width: 68px;
        height: 68px;
        padding: 5px;
    }

    .social-profile p { font-size: 0.88rem; }

    .feed-section { padding: 20px 0 56px; }
    .feed-section > .container--narrow { padding: 0 10px; }

    .post-card,
    .comments { border-radius: var(--radius-md); }

    .report-item-thumb { width: 64px; height: 64px; }
}

@media (max-width: 400px) {
    .category-grid { gap: 6px; }
    .category-option-box { padding: 6px 8px; gap: 8px; }
    .category-option-icon { width: 28px; height: 28px; }
    .category-option-label { font-size: 0.75rem; }
    .captcha-img { width: 135px; height: 45px; }
    .map-title h1 span { display: none; }
}

@media print {
    .map-top,
    .map-bottom,
    .map-pick-banner,
    .map-sheet,
    .sheet-overlay,
    .comment-form,
    .post-foot {
        display: none !important;
    }
}

/* ============================================================
   Ícones Phosphor e animações Lottie
   ============================================================ */
/* Tamanho padrão só quando nada mais define (especificidade zero) */
:where(.ph:not([width])) {
    width: 1em;
    height: 1em;
}

.ph { flex-shrink: 0; }

.lottie-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lottie-box > svg {
    width: 100% !important;
    height: 100% !important;
}

.lottie-box.is-lottie-ready > .lottie-fallback { display: none; }

.lottie-box--success {
    width: 96px;
    height: 96px;
    margin: 0 auto 8px;
}

.lottie-box--success .success-icon { margin: 0; }

.lottie-box--pin {
    width: 64px;
    height: 64px;
}

.map-loading {
    flex-direction: column;
    gap: 4px;
}

/* ============================================================
   Busca do site (sugestões e página de resultados)
   ============================================================ */
mark {
    background: rgba(232, 97, 26, 0.18);
    color: inherit;
    border-radius: 2px;
    padding: 0;
}

/* ---- Sugestões enquanto digita ---- */
.search-bar,
.mobile-search form,
.search-page-form {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 380px);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    text-align: left;
}

.search-suggest[hidden] { display: none; }

.suggest-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.suggest-group-icon svg { width: 14px; height: 14px; display: block; }

.suggest-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
}

.suggest-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.suggest-item span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item:hover,
.suggest-item.is-active,
.suggest-all:hover,
.suggest-all.is-active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.suggest-empty {
    padding: 12px 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.suggest-all {
    display: block;
    margin-top: 4px;
    padding: 10px;
    border-top: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-search .search-suggest {
    width: 100%;
    max-height: 60vh;
}

/* ---- Página de resultados ---- */
.container--search { max-width: 820px; }

.search-hero {
    padding: 40px 0 24px;
    background: var(--accent);
    color: var(--white);
}

.search-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
}

.search-hero > .container > p {
    color: rgba(255,255,255,0.72);
    margin-top: 4px;
}

.search-page-form {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.search-page-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px 0 44px;
    border: none;
    border-radius: var(--radius-md);
    font: 16px var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    outline: none;
}

.search-page-form input:focus { box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.45); }

.search-page-form .btn-primary-lg { min-height: 52px; }

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.search-tab svg { width: 16px; height: 16px; }
.search-tab:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.search-tab--total { background: none; padding-left: 0; color: rgba(255,255,255,0.72); }
.search-tab--empty { opacity: 0.55; }

.search-tab-count {
    min-width: 22px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--accent);
    font-size: 0.75rem;
    text-align: center;
}

.search-results { padding: 28px 0 72px; }

.search-group { scroll-margin-top: calc(var(--header-height) + 16px); }
.search-group + .search-group { margin-top: 36px; }

.search-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.search-group-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.search-group-head h2 svg { width: 22px; height: 22px; color: var(--primary); }

.search-group-head h2 span {
    padding: 0 7px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.search-none {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-item:hover {
    color: var(--text-primary);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.search-item--official { box-shadow: inset 3px 0 0 var(--primary); }

.search-item-thumb {
    --cat-color: var(--primary);
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-item-thumb svg { width: 32px; height: 32px; }

.search-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.search-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.3;
}

.search-item-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.search-item-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.search-item-text--lead { color: var(--text-primary); }

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.search-item-meta svg { width: 14px; height: 14px; }

.search-empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

@media (max-width: 680px) {
    .search-hero { padding: 24px 0 18px; }
    .search-page-form .btn-primary-lg { padding: 0 16px; }
    .search-item-thumb { width: 60px; height: 60px; }
    .search-tab--total { width: 100%; }
}

/* ============================================================
   Mapa: problemas resolvidos (verde)
   ============================================================ */
:root {
    --resolved: #1E8E50;
    --resolved-bg: #E7F5EC;
}

.resolved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 6px;
    border-radius: var(--radius-sm);
    background: var(--resolved);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.resolved-badge svg { width: 11px; height: 11px; }

.resolved-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--resolved-bg);
    color: var(--resolved);
    font-size: 0.8rem;
}

.resolved-banner > svg { width: 20px; height: 20px; flex-shrink: 0; }
.resolved-banner strong { display: block; font-size: 0.86rem; }
.resolved-banner span { color: #3E6B50; }

.pm-popup--resolved { border-top: 4px solid var(--resolved); }

.report-item--resolved {
    border-color: rgba(30, 142, 80, 0.3);
    background: #F6FBF8;
}

.report-item--resolved .report-item-thumb--icon { --cat-color: var(--resolved); }

.legend-pin--resolved {
    background: var(--resolved);
    box-shadow: 0 0 0 2px rgba(30, 142, 80, 0.3);
}

.chip--open svg { color: var(--status-open, #D64533); }
.chip--resolved svg { color: var(--resolved); }
.chip--resolved.active { background: var(--resolved); }
.chip--open.active { background: #D64533; }

/* Gaveta de filtros (celular) */
.filter-label {
    margin: 4px 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-label + .filter-grid { margin-bottom: 4px; }

.filter-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-seg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-primary);
    font: 600 0.9rem var(--font-body);
    cursor: pointer;
}

.filter-seg svg { width: 20px; height: 20px; color: #D64533; }
.filter-seg--resolved svg { color: var(--resolved); }
.filter-seg.active { border-color: #D64533; background: #FCEDEB; box-shadow: 0 0 0 1px #D64533; }
.filter-seg--resolved.active { border-color: var(--resolved); background: var(--resolved-bg); box-shadow: 0 0 0 1px var(--resolved); }

.filter-help {
    margin: 8px 0 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Home */
.home-map-stats-resolved strong { color: var(--resolved); }

/* ============================================================
   Avisos legais (rodapé, termos, política)
   ============================================================ */
.footer-disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.75;
}

.legal-summary {
    margin: 0 0 28px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.92rem;
    line-height: 1.65;
}

.legal-summary strong { color: var(--text-primary); }
.legal-summary ul { margin: 8px 0 0 18px; }
.legal-summary li { margin-bottom: 4px; }

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 0.85rem;
}

.legal-toc a {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

/* ============================================================
   Celular: legibilidade, toque e largura
   ============================================================ */

/* Colunas de grid não podem ser alargadas por textos que não quebram */
.home-map-layout > * { min-width: 0; }
.report-item-body { min-width: 0; }

/* Textos enviados por usuários (links e palavras longas) sempre quebram */
.post-content, .post-body, .comment-body, .post-link-text, .report-item-desc, .pm-popup-desc, .search-item-text {
    overflow-wrap: anywhere;
}

/* Autorização da assinatura: texto normal, legível, e caixa maior */
.sign-form .lgpd-consent {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin-bottom: 16px;
}

.lgpd-consent-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.lgpd-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0;
}

@media (max-width: 768px) {
    /* 16px evita o zoom automático do iPhone ao tocar num campo */
    input[type="text"],
    input[type="search"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    input[type="url"],
    input:not([type]),
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Alvos de toque de pelo menos 44px */
    .card-cta,
    .section-link,
    .search-tab,
    .legal-toc a,
    .back-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .logo {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer-links { gap: 0; }

    .footer-links a {
        min-height: 44px;
    }

    .footer-cta { min-height: 48px; }

    .post-author a,
    .post-head time {
        display: inline-block;
        padding: 4px 0;
    }

    /* Etiquetas com no mínimo 12px */
    .hero-badge,
    .card-status,
    .cat-tag,
    .official-badge,
    .resolved-badge,
    .video-provider,
    .search-item-meta {
        font-size: 0.75rem;
    }
}
