/*
Theme Name: Ponto da Cidade
Author: OVZ
Author URI: https://ovz.com.br/
Description: Template inicial
Version: 1.5.3
Text Domain: pontodacidade
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

    :root {
        --amarelo: var(--ovz-portal-cor-primaria, #f7b107);
        --escuro: var(--ovz-portal-cor-secundaria, #111827);
        --fundo: var(--ovz-portal-cor-fundo, #f4f6f8);
        --borda: #e5e7eb;
        --texto: var(--ovz-portal-cor-texto, #1f2937);
        --muted: #6b7280;
    }

    body {
        background: var(--fundo);
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: var(--texto);
        padding-bottom: 92px;
    }

    .topo {
        background: #fff;
        border-bottom: 1px solid var(--borda);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .logo {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: var(--amarelo);
        color: var(--escuro);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
    }
    .logo-img-portal {
        width: 200px;
        height: 70px;
        max-width: min(200px, 52vw);
        border-radius: 0;
        object-fit: contain;
        background: transparent;
        border: 0;
        padding: 0;
        flex-shrink: 0;
        display: block;
    }

    .portal-brand-area {
        min-height: 70px;
    }

    @media (max-width: 575.98px) {
        .logo-img-portal {
            width: 150px;
            height: auto;
            max-height: 52px;
        }

        .portal-brand-area {
            min-height: 52px;
        }
    }


    .hero-compacto,
    .busca-box {
        background: #fff;
        border-bottom: 1px solid var(--borda);
    }

    .busca-box {
        position: sticky;
        top: 63px;
        z-index: 999;
    }

    .form-control,
    .form-select {
        border-radius: 14px;
        border-color: var(--borda);
        padding: 11px 14px;
        font-size: 15px;
    }

    .btn-publicar {
        background: var(--amarelo);
        color: var(--escuro);
        font-weight: 800;
        border: none;
        border-radius: 14px;
    }

    .categoria-chip {
        border: 1px solid var(--borda);
        background: #fff;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 14px;
        white-space: nowrap;
        cursor: pointer;
    }

    .categoria-chip.active {
        background: var(--escuro);
        color: #fff;
        border-color: var(--escuro);
    }

    .feed {
        max-width: 620px;
        margin: 0 auto;
    }

    .post-card,
    .ad-banner {
        background: #fff;
        border: 1px solid var(--borda);
        border-radius: 22px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .post-card.destacado {
        box-shadow: 0 0 0 4px rgba(247, 177, 7, .45);
    }

    .post-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .avatar {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #fef3c7;
        color: #92400e;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        flex-shrink: 0;
    }

    .badge-cat {
        background: #fef3c7;
        color: #92400e;
        border-radius: 999px;
        padding: 6px 11px;
        font-size: 12px;
        font-weight: 800;
    }

    .post-title {
        font-weight: 900;
        font-size: 1.1rem;
        margin: 10px 0 6px;
    }

    .post-texto {
        font-size: 15.5px;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .post-meta {
        color: var(--muted);
        font-size: 13px;
    }

    .post-actions {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .post-actions .btn {
        border-radius: 14px;
        font-weight: 700;
    }

    .post-img-unica {
        width: 100%;
        height: 310px;
        object-fit: cover;
        border-radius: 18px;
        margin: 12px 0;
        background: #e5e7eb;
    }

    .galeria-grid {
        display: grid;
        gap: 6px;
        margin: 12px 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-grid img {
        width: 100%;
        height: 165px;
        object-fit: cover;
        border-radius: 14px;
        background: #e5e7eb;
    }

    .imagem-lightbox {
        cursor: zoom-in;
    }

    #modalLightbox .carousel-item img {
        width: 100%;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 18px;
    }

    .ad-banner {
        border-style: dashed;
        text-align: center;
        background: linear-gradient(135deg, #fff, #fff8df);
    }

    .ad-banner small {
        color: var(--muted);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .5px;
        font-weight: 800;
    }

    .editor-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        border: 1px solid var(--borda);
        border-bottom: 0;
        padding: 8px;
        border-radius: 14px 14px 0 0;
        background: #f9fafb;
    }

    .editor-toolbar button {
        border: 1px solid var(--borda);
        background: #fff;
        border-radius: 10px;
        width: 38px;
        height: 34px;
    }

    .editor-area {
        border: 1px solid var(--borda);
        min-height: 150px;
        padding: 12px;
        border-radius: 0 0 14px 14px;
        outline: none;
        background: #fff;
    }

    .dias-opcao {
        border: 1px solid var(--borda);
        border-radius: 14px;
        padding: 10px 12px;
        cursor: pointer;
        background: #fff;
        text-align: center;
        font-weight: 800;
    }

    .dias-opcao input {
        display: none;
    }

    .dias-opcao:has(input:checked) {
        background: var(--escuro);
        color: #fff;
        border-color: var(--escuro);
    }

    .preview-imagens {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    .preview-imagens img {
        width: 100%;
        height: 65px;
        object-fit: cover;
        border-radius: 10px;
    }

    .barra-anuncio-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 74px;
        background: #111827;
        z-index: 1300;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-top: 3px solid var(--amarelo);
    }

    .anuncio-bottom-item {
        position: absolute;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .5s ease, transform .5s ease;
        width: 100%;
        max-width: 760px;
        padding: 0 14px;
    }

    .anuncio-bottom-item.active {
        opacity: 1;
        transform: translateY(0);
    }

    .anuncio-bottom-card {
        height: 56px;
        border-radius: 16px;
        background: linear-gradient(135deg, #f7b107, #ffcf4d);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 14px;
        color: #111827;
        font-weight: 900;
    }

    .anuncio-bottom-card img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        object-fit: cover;
        background: #fff;
    }



    .btn-menu-portal {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        border: 1px solid var(--borda);
        background: #fff;
        color: var(--escuro);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
    }

    .btn-menu-portal:hover {
        background: var(--escuro);
        color: #fff;
        border-color: var(--escuro);
    }

    .menu-portal-lateral {
        z-index: 3050;
        border-left: 0;
        border-radius: 24px 0 0 24px;
    }

    .menu-portal-lateral .offcanvas-header {
        border-bottom: 1px solid var(--borda);
    }

    .menu-portal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .menu-portal-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 14px;
        border-radius: 14px;
        color: var(--texto);
        text-decoration: none;
        font-weight: 800;
        background: #fff;
        border: 1px solid var(--borda);
    }

    .menu-portal-links a:hover {
        background: var(--amarelo);
        color: var(--escuro);
        border-color: var(--amarelo);
    }

    .bottom-publicar {
        position: fixed;
        bottom: 88px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1200;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    }

    .carregando-feed {
        max-width: 620px;
        margin: 0 auto 20px;
        text-align: center;
        color: var(--muted);
        font-size: 14px;
    }

    .modal {
        z-index: 3000;
    }

    .modal-backdrop {
        z-index: 2990;
    }

    body.modal-open .barra-anuncio-bottom,
    body.modal-open .bottom-publicar {
        display: none !important;
    }

    .modal-dialog {
        max-height: calc(100vh - 32px);
    }

    .modal-content {
        max-height: calc(100vh - 32px);
        overflow: hidden;
    }

    .modal-body {
        overflow-y: auto;
    }

    @media (max-width: 768px) {
        .busca-box {
            top: 61px;
        }

        .post-card,
        .ad-banner {
            border-radius: 0;
            border-left: 0;
            border-right: 0;
        }

        .container-mobile {
            padding-left: 0;
            padding-right: 0;
        }

        .feed {
            max-width: 100%;
        }

        .post-img-unica {
            height: 260px;
            border-radius: 14px;
        }

        .galeria-grid img {
            height: 130px;
        }

        .preview-imagens {
            grid-template-columns: repeat(3, 1fr);
        }

        .anuncio-bottom-card {
            font-size: 13px;
        }
    }
.barra-anuncio-bottom:empty{display:none!important;}


/* Seleção pública de cidade */
.ovz-city-select-wrap{min-height:calc(100vh - 95px);display:flex;align-items:center;justify-content:center;padding:40px 16px;background:var(--fundo)}
.ovz-city-select-card{width:min(760px,100%);background:#fff;border:1px solid var(--borda);border-radius:28px;box-shadow:0 20px 55px rgba(7,20,38,.08);padding:30px}
.ovz-city-select-card h1{font-weight:900;color:var(--escuro);margin-bottom:6px}
.ovz-city-select-card p{color:var(--muted);margin-bottom:24px}
.btn-menu-portal{width:44px;height:44px;border-radius:14px;border:1px solid var(--borda);background:#fff;color:var(--escuro);display:inline-flex;align-items:center;justify-content:center}
.btn-menu-portal:hover{background:var(--escuro);color:#fff}

/* Ajustes SaaS multi-cidades */
body.pontodacidade-home-selector {
    min-height: 100vh;
    padding-bottom: 0;
    background:
        linear-gradient(120deg, rgba(7,20,38,.58), rgba(7,20,38,.18)),
        url('img/cidade-brasileira-bg.svg') center/cover no-repeat fixed !important;
}

body.pontodacidade-home-selector .ovz-city-select-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    background: transparent !important;
}

.ovz-city-select-inner {
    width: min(760px, 100%);
}

.ovz-city-selector-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.ovz-city-selector-logo {
    width: 260px;
    max-width: 74vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 32px rgba(0,0,0,.26));
}

.ovz-city-selector-logo-text {
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.05em;
    color: #fff;
    text-shadow: 0 12px 35px rgba(0,0,0,.35);
}

.ovz-city-selector-logo-text span {
    color: var(--amarelo);
}

.ovz-city-select-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(7,20,38,.28);
    padding: clamp(24px, 4vw, 38px);
    backdrop-filter: blur(12px);
}

.ovz-city-select-card h1 {
    font-weight: 950;
    color: var(--escuro);
    letter-spacing: -.04em;
    margin-bottom: 6px;
}

.ovz-city-select-card p {
    color: #475467;
    margin-bottom: 24px;
}

.ovz-city-switcher .dropdown-toggle::after {
    margin-left: .45rem;
}

.ovz-city-switcher-btn {
    min-height: 42px;
    border: 1px solid var(--borda);
    background: #fff;
    color: var(--texto);
    border-radius: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 26px rgba(7,20,38,.05);
}

.ovz-city-switcher-menu {
    min-width: 230px;
    max-height: 360px;
    overflow: auto;
    border-radius: 18px;
}

.ovz-city-switcher-menu .dropdown-item {
    font-weight: 700;
    padding: 10px 12px;
}

.ovz-city-switcher-menu .dropdown-item.active,
.ovz-city-switcher-menu .dropdown-item:active {
    background: var(--amarelo);
    color: var(--escuro);
}

@media (max-width: 767.98px) {
    .topo .container {
        flex-wrap: wrap;
    }

    .topo-acoes {
        gap: 6px !important;
    }

    .ovz-city-switcher-btn span {
        max-width: 118px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}


/* Ajustes seletor de cidade e botão entrar */
.btn-entrar-cidade,
.pdc-btn-entrar-cidade{
    height:46px !important;
    min-height:46px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 32px !important;
    border-radius:12px !important;
    font-weight:700 !important;
}

.ovz-city-switcher,
.ovz-city-switcher .btn,
.ovz-city-switcher button{
    border:none !important;
    box-shadow:none !important;
}

.ovz-city-switcher .btn:hover,
.ovz-city-switcher button:hover{
    box-shadow:none !important;
}



/* Ajustes Ponto da Cidade 1.5.3 - tela inicial */
body.pontodacidade-home-selector .ovz-city-selector-logo{
    width:min(360px, 82vw) !important;
    height:auto !important;
    max-height:140px !important;
    object-fit:contain !important;
    image-rendering:auto !important;
    filter:none !important;
}
body.pontodacidade-home-selector .ovz-city-selector-logo-wrap{
    margin-bottom:26px !important;
}
body.pontodacidade-home-selector .pdc-btn-entrar-cidade,
body.pontodacidade-home-selector .btn-entrar-cidade,
body.pontodacidade-home-selector .ovz-city-select-card .btn-publicar{
    height:46px !important;
    min-height:46px !important;
    padding:0 32px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    border-radius:12px !important;
    white-space:nowrap !important;
}
body.pontodacidade-home-selector .ovz-city-select-card .form-select{
    height:46px !important;
    min-height:46px !important;
}
.ovz-city-cta-wrap{
    width:100%;
    text-align:center;
    margin-top:18px;
}
.ovz-city-cta-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:900;
    color:var(--escuro) !important;
    text-decoration:none !important;
}
.ovz-city-cta-link:hover{
    color:var(--amarelo) !important;
}
@media (max-width: 767px){
    body.pontodacidade-home-selector .ovz-city-select-card .btn-publicar{
        width:100% !important;
        margin-top:6px !important;
    }
}
