/* Página pública — detalhe de instituição (igreja, escola, associação) */

.inst-ver-profile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Hero com logo em destaque */
.inst-ver-hero {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.35rem;
    align-items: start;
    padding: 1.35rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(37, 99, 235, 0.06) 55%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

@media (max-width: 575.98px) {
    .inst-ver-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.inst-ver-hero-media {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.inst-ver-hero-media .card-icon,
.inst-ver-hero-media .inst-card-logo-wrap {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    font-size: 3rem;
}

.inst-ver-hero-media .inst-card-logo-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.inst-ver-hero-body {
    min-width: 0;
}

.inst-ver-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.35rem;
    color: var(--text-primary, #0f172a);
}

.inst-ver-hero-local {
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.85rem;
}

.inst-ver-hero-local i {
    color: var(--accent-primary, #0d6efd);
}

.inst-ver-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
    .inst-ver-badges {
        justify-content: center;
    }
}

.inst-ver-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #334155);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.inst-ver-badge--views i {
    color: #0369a1;
}

.inst-ver-resumo {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary, #475569);
    margin: 0;
}

/* Grid de informações */
.inst-ver-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .inst-ver-grid {
        grid-template-columns: 1fr;
    }
}

.inst-ver-tile {
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.inst-ver-tile--wide {
    grid-column: 1 / -1;
}

.inst-ver-tile-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.inst-ver-tile-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.inst-ver-tile-icon--address { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.inst-ver-tile-icon--hours { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.inst-ver-tile-icon--phone { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.inst-ver-tile-icon--email { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.inst-ver-tile-icon--site { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

.inst-ver-tile-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.inst-ver-tile-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary, #1e293b);
    margin: 0;
}

.inst-ver-tile-body a {
    color: inherit;
    text-decoration: none;
}

.inst-ver-tile-body a:hover {
    color: var(--accent-primary, #0d6efd);
}

.inst-ver-horarios-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.inst-ver-horario-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f766e;
}

.inst-ver-horario-dia {
    font-weight: 800;
    color: #0f766e;
    min-width: 6.5rem;
}

.inst-ver-horario-faixa {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #134e4a;
}

.inst-ver-horario-sep {
    opacity: 0.65;
    margin: 0 0.1rem;
}

/* Conteúdo longo */
.inst-ver-conteudo {
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    line-height: 1.65;
    font-size: 0.95rem;
}

.inst-ver-conteudo-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.75rem;
}

/* Mapa */
.inst-ver-map-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    background: var(--bg-card, #fff);
}

.inst-ver-map-card-head {
    padding: 1rem 1.15rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.inst-ver-map-card-head i {
    color: #dc2626;
}

.inst-ver-mapa-iframe {
    width: 100%;
    height: 340px;
    border: 0;
    display: block;
}

.inst-ver-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    background: var(--bg-secondary, #f8fafc);
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.inst-ver-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}

.inst-ver-map-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.inst-ver-map-btn--maps {
    background: #fff;
    border-color: #2563eb;
    color: #2563eb;
}

.inst-ver-map-btn--waze {
    background: #fff;
    border-color: #33ccff;
    color: #0099cc;
}

/* Compartilhar */
.inst-ver-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
}

.inst-ver-share-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted, #64748b);
    margin-right: 0.25rem;
}

.inst-ver-share-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #fff;
    font-size: 1rem;
    padding: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}

.inst-ver-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.inst-ver-share-btn--wa { color: #25d366; border-color: rgba(37, 211, 102, 0.35); }
.inst-ver-share-btn--tg { color: #0088cc; border-color: rgba(0, 136, 204, 0.35); }
.inst-ver-share-btn--fb { color: #1877f2; border-color: rgba(24, 119, 242, 0.35); }
.inst-ver-share-btn--ig { color: #e4405f; border-color: rgba(228, 64, 95, 0.35); }

/* Seções feed (postagens, eventos, escala) */
.inst-ver-section {
    padding: 1.35rem;
    border-radius: 18px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.inst-ver-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.inst-ver-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary, #0f172a);
}

.inst-ver-section-title i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.inst-ver-section-title--eventos i {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.inst-ver-section-title--escala i {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.inst-ver-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-primary, #0d6efd);
    color: #fff;
    border: none;
    transition: opacity 0.15s;
}

.inst-ver-section-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.inst-ver-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.inst-ver-feed-item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.inst-ver-feed-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
    transform: translateX(3px);
    color: inherit;
}

.inst-ver-feed-item--static:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color, #e2e8f0);
}

.inst-ver-feed-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #1e293b);
}

.inst-ver-feed-meta {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

.inst-ver-feed-meta i {
    margin-right: 0.15rem;
}

.inst-ver-back {
    margin-top: 0.5rem;
}
