/* ========== FORÇA LARGURA TOTAL (QUEBRA O CONTAINER DO TEMA) ========== */
.pv-igrejas-busca,
.pv-igrejas-grid,
.pv-cadastro-form,
.pv-igreja-single {
    width: 100vw;
    max-width: 1300px;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
}

/* Esconde metadados do tema na página de igrejas */
.page .entry-meta,
.page .post-meta,
.page .entry-categories,
.page .reading-time,
.page .author-info,
.page .post-author,
.page .post-date,
.page .entry-header .meta,
.page .breadcrumb,
.page .post-thumbnail {
    display: none !important;
}

/* Esconde título "Encontrar Igrejas" duplicado do tema (deixa só o do plugin) */
.page-id-329 .entry-title,
.page-template-default .entry-title {
    display: none !important;
}

/* ========== BUSCA ========== */
.pv-busca-header {
    text-align: center;
    margin-bottom: 30px;
}
.pv-busca-header h2 {
    color: #b8860b;
    margin-bottom: 10px;
    font-size: 32px;
}
.pv-busca-header p {
    color: #666;
    font-size: 16px;
}
.pv-busca-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.pv-busca-form input {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
.pv-busca-form input:focus {
    border-color: #b8860b;
    outline: none;
}
.pv-busca-form button {
    padding: 14px 22px;
    background: #b8860b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.pv-busca-form button:hover {
    background: #9a7209;
}
#pv-geo-btn {
    background: #2c3e50;
}
#pv-geo-btn:hover {
    background: #1a252f;
}

#pv-mapa {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== RESULTADOS ========== */
.pv-resultados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.pv-resultado-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pv-resultado-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.pv-resultado-foto {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
}
.pv-resultado-info {
    padding: 18px;
}
.pv-resultado-info h3 {
    margin: 0 0 12px;
    color: #2c3e50;
    font-size: 20px;
}
.pv-resultado-info h3 a {
    color: inherit;
    text-decoration: none;
}
.pv-resultado-info h3 a:hover {
    color: #b8860b;
}
.pv-resultado-info p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}
.pv-distancia {
    background: #b8860b;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}
.pv-resultado-acoes {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.pv-resultado-acoes a {
    padding: 9px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.pv-btn-ver-mais { background: #b8860b; color: #fff; }
.pv-btn-rota-mini { background: #4285f4; color: #fff; }
.pv-btn-wpp-mini { background: #25d366; color: #fff; }

/* ========== GRID LISTAGEM ========== */
.pv-igrejas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.pv-igreja-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pv-igreja-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.pv-igreja-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.pv-igreja-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pv-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 70px;
}
.pv-igreja-info {
    padding: 18px;
}
.pv-igreja-info h3 {
    margin: 0 0 10px;
    font-size: 19px;
}
.pv-igreja-info h3 a {
    color: #2c3e50;
    text-decoration: none;
}
.pv-igreja-info h3 a:hover {
    color: #b8860b;
}
.pv-btn-ver {
    display: inline-block;
    margin-top: 12px;
    color: #b8860b;
    font-weight: 600;
    text-decoration: none;
}

/* ========== SINGLE ========== */
.pv-igreja-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #b8860b;
}
.pv-igreja-header h1 {
    color: #b8860b;
    margin: 0;
    font-size: 36px;
}
.pv-igreja-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .pv-igreja-content { grid-template-columns: 1fr; }
    .pv-igreja-header h1 { font-size: 26px; }
}
.pv-cultos-box, .pv-mapa-box, .pv-info-box, .pv-descricao {
    background: #f9f9f9;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #b8860b;
}
.pv-cultos-box h3, .pv-mapa-box h3, .pv-info-box h3, .pv-descricao h3 {
    color: #b8860b;
    margin-top: 0;
    font-size: 20px;
}
.pv-cultos-box ul {
    list-style: none;
    padding: 0;
}
.pv-cultos-box li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}
.pv-btn-rota, .pv-btn-whatsapp {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 22px;
    background: #4285f4;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}
.pv-btn-whatsapp { background: #25d366; }
.pv-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pv-social a {
    padding: 10px 14px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.pv-social a:hover { background: #f0f0f0; }

/* ========== FORM CADASTRO ========== */
.pv-cadastro-form {
    max-width: 850px !important;
}
.pv-cadastro-form h2 {
    color: #b8860b;
    text-align: center;
    font-size: 30px;
}
.pv-cadastro-form > p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}
.pv-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}
.pv-form input, .pv-form textarea, .pv-form select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.pv-form input:focus, .pv-form textarea:focus {
    border-color: #b8860b;
    outline: none;
}
.pv-form .pv-row {
    display: flex;
    gap: 15px;
}
.pv-form .pv-row > div {
    flex: 1;
}
.pv-form h3 {
    margin-top: 30px;
    color: #b8860b;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 8px;
    font-size: 20px;
}
.pv-btn-submit {
    margin-top: 30px;
    width: 100%;
    padding: 16px;
    background: #b8860b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pv-btn-submit:hover { background: #9a7209; }
.pv-alert {
    padding: 18px;
    border-radius: 8px;
    margin: 20px 0;
}
.pv-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .pv-igrejas-busca,
    .pv-igrejas-grid,
    .pv-cadastro-form,
    .pv-igreja-single {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        transform: none;
        padding: 15px;
    }
    .pv-busca-form { flex-direction: column; }
    .pv-busca-form input,
    .pv-busca-form button { width: 100%; }
    .pv-form .pv-row { flex-direction: column; }
}
