/* novo-layout.css - Estilos para a nova página inicial */

body.novo-bg {
    background: #f5f5ef url('../img/novo-bg.png') no-repeat center top fixed;
    background-size: cover;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.novo-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 0 0 0;
    background: transparent;
    position: relative;
}
.menu-superior {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    font-size: 1.12em;
    font-weight: 500;
    background: #5a97b8;
    color: #fff;
    border-radius: 32px;
    padding: 10px 60px;
    margin: 3rem 2rem 0 2rem;
    box-shadow: 0 2px 12px rgba(90,151,184,0.04);
    min-width: 320px;
    max-width: 900px;
    width: fit-content;
}
.menu-superior a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.08em;
}
.menu-superior a:hover {
    color: #e5e4d2;
}
.menu-sep {
    color: #fff;
    opacity: 0.4;
    font-size: 1.2em;
    margin: 0 10px;
    user-select: none;
}
.banner-mtur {
    position: absolute;
    right: -13rem;
    top: 0;
    margin-top: 0;
}
.banner-mtur img {
    height: 80px;
    max-width: 260px;
}

.titulo-principal {
    text-align: center;
    font-size: 2.7em;
    color: #45728a;
    margin-top: 32px;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.titulo-principal span {
    display: block;
    font-size: 0.7em;
    color: #444;
    font-weight: 400;
    letter-spacing: 0.25em;
    margin-top: 0.2em;
    margin-bottom: 0.7em;
}
.subtitulo {
    text-align: center;
    font-size: 1.1em;
    color: #444;
    margin-bottom: 24px;
    margin-top: 0;
    font-weight: 400;
}

/* Layout flexível para busca + mapa */
.main-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    min-height: 420px;
}
@media (max-width: 1000px) {
    .main-flex {
        flex-direction: column;
        align-items: center;
        gap: 0;
        min-height: unset;
    }
    .col-busca-banner {
        max-width: 98vw;
    }
}

/* Quadro de busca refinado */
.quadro-busca-tabela {
    min-width: 320px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    border: 1.5px solid #7ba6c4;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(90,151,184,0.10);
    background: #fff;
    padding: 0;
    overflow: hidden;
}
.busca-table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
}
.busca-row {
    display: table-row;
    height: 64px;
}
.busca-row:first-child .busca-cell {
    width: 32% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    vertical-align: middle !important;
    padding: 0 2px !important;
}
.busca-row:first-child .busca-cell select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1.08em !important;
    padding: 0 2px !important;
}
.busca-row:nth-child(2) .busca-cell {
    width: 50% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    vertical-align: middle !important;
    padding: 0 2px !important;
}
.busca-row:nth-child(2) .busca-cell select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1.08em !important;
    padding: 0 2px !important;
}
.busca-row:nth-child(3) .busca-cell {
    width: 50%;
}
.busca-cell {
    display: table-cell;
    border-bottom: 1.5px solid #7ba6c4;
    border-right: 1.5px solid #7ba6c4;
    padding: 0;
    vertical-align: middle;
    background: #fff;
    height: 64px;
}
.busca-cell:last-child {
    border-right: none;
}
.busca-row:last-child .busca-cell-periodo {
    border-bottom-left-radius: 22px;
    text-align: center;
    background: #fff;
    border-bottom: none;
    font-weight: 600;
    color: #bbb;
    font-size: 1.1em;
}
.busca-row:last-child .busca-cell-buscar {
    border-bottom-right-radius: 22px;
    background: #5a97b8;
    padding: 0;
    text-align: center;
    border-bottom: none;
}
.busca-cell-buscar .btn-buscar {
    width: 100%;
    height: 64px;
    font-size: 1.18em;
    font-weight: 800;
    border-radius: 0 0 22px 0;
    background: #5a97b8;
    color: #fff;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s;
}
.busca-table select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background: none;
    padding-right: 0;
    font-size: 1.08em;
    font-weight: 500;
}
.busca-table input[type="date"],
.busca-table input[type="text"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 22px;
    height: 64px;
    font-size: 1.13em;
    border-radius: 0;
    border: none;
    background: #f7fafc;
    color: #222;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: box-shadow 0.2s;
}
.busca-table input[type="text"]::placeholder {
    color: #b0b0b0;
    opacity: 1;
    text-align: center;
    font-weight: 400;
}
.busca-table input[type="text"] {
    text-align: center;
    font-weight: 500;
    color: #888;
    font-size: 1.12em;
    height: 64px;
}
.busca-table option {
    color: #444;
    font-size: 0.98em;
}
/* Remove borda preta do Chrome/Edge/Firefox */
.busca-table select, .busca-table input {
    border: none !important;
    box-shadow: none !important;
}
/* Remove borda azul do botão buscar no focus */
.busca-cell-buscar .btn-buscar:focus {
    outline: none;
    box-shadow: none;
}

/* Espaço extra entre linhas do quadro de busca */
.busca-row + .busca-row {
    border-top: 1.1em solid transparent;
}

@media (max-width: 700px) {
    .quadro-busca-tabela {
        max-width: 320px;
        width: 98vw;
        margin: 0 auto;
        border-radius: 18px;
    }
    .busca-cell-periodo, .busca-cell-buscar {
        min-width: 80px;
    }
    .busca-table select, .busca-table input[type="date"], .busca-table input[type="text"] {
        font-size: 0.95em;
        padding: 10px 8px 10px 8px;
    }
    .banner-mtur img {
        height: 48px;
        max-width: 160px;
    }
    .busca-row + .busca-row {
        border-top: 1.5em solid transparent;
    }

    .busca-row:last-child .busca-cell-buscar {
        border-bottom-right-radius: 22px;
        background: #5a97b8;
        padding: 0;
        text-align: center;
        border-bottom: none;
    }
    .busca-cell-buscar .btn-buscar {
        width: 100%;
        height: 64px;
        font-size: 1.18em;
        font-weight: 800;
        border-radius: 0 0 22px 0;
        background: #5a97b8;
        color: #fff;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        letter-spacing: 0.01em;
        transition: background 0.2s;
    }
}

/* Última linha do quadro de busca: célula vazia não ocupa espaço */
.busca-row:last-child .busca-cell-empty {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: table-cell;
}
.busca-row:last-child .busca-cell-periodo,
.busca-row:last-child .busca-cell-buscar {
    width: 50%;
}

/* Mapa do Brasil - círculo de fundo e estados cinza claro */
.mapa-brasil {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0 0 0;
    min-height: 340px;
    position: relative;
    overflow: visible;
}
#svg-mapa-brasil {
    width: 100%;
    max-width: 700px;
    min-height: 340px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}
#svg-mapa-brasil svg {
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    display: block;
    position: relative;
    z-index: 2;
    overflow: visible;
}
/* Círculo de fundo atrás do mapa */
#svg-mapa-brasil::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 520px;
    max-height: 520px;
    background: #e5e4d2;
    border-radius: 50%;
    z-index: 0;
}
/* Estados padrão em cinza claro */
#svg-mapa-brasil svg path {
    fill: #d3d3d3;
    stroke: #b0b0b0;
    stroke-width: 1;
    transition: fill 0.2s, filter 0.2s;
}
/* Destacar estado no hover no mapa SVG */
.estado-hover {
    fill: #45728a !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 0 6px #45728a55);
    transition: fill 0.2s, filter 0.2s;
}

/* Tooltip da sigla do estado */
.mapa-tooltip {
    background: #45728a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: absolute;
    white-space: nowrap;
}

.banners {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0 0 0;
    flex-wrap: wrap;
}
.banner-evento {
    background: url('../img/banner-evento.jpg') center/cover no-repeat;
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    padding: 32px 36px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    min-width: 220px;
    text-align: center;
}
.banner-evento:hover {
    transform: scale(1.04);
}
.banner-brasil {
    background: url('../img/banner-brasil.jpg') center/cover no-repeat;
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    padding: 32px 36px;
    border-radius: 12px;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.banner-brasil span {
    display: block;
    font-size: 1em;
    font-weight: 400;
    margin-top: 8px;
}

.novo-footer {
    background: #f5f5ef;
    padding: 18px 0 8px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}
.rodape-links {
    margin-bottom: 8px;
}
.rodape-links a {
    color: #4a7b97;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}
.redes-sociais {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    color: #444;
}
.redes-sociais span {
    font-weight: 600;
    margin-right: 8px;
}
.redes-sociais a {
    color: #4a7b97;
    transition: color 0.2s;
}
.redes-sociais a:hover {
    color: #1a3c4a;
}

/* Responsividade */
@media (max-width: 1080px) {
    .titulo-principal {
        margin-top: 5px;
    }
    .banner-mtur {
        position: static !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        z-index: 2;
    }
    .banner-mtur img {
        max-width: 240px;
        margin: 0 auto;
    }

    .novo-header, .mainWrap, .novo-main {
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .novo-header {
        position: static !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        padding: 16px 0;
    }

    .banners {
        flex-direction: column;
        gap: 18px;
    }
    #svg-mapa-brasil {
        max-width: 98vw;
    }
    .main-flex {
        flex-direction: column;
        align-items: center;
        gap: 0;
        min-height: unset;
    }
    .quadro-busca-tabela {
        max-width: 98vw;
    }
    .banner-img-responsive {
        max-width: 98vw;
    }
}
@media (max-width: 700px) {
    .novo-header {
        position: static !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        padding: 16px 0;
    }
    .menu-superior {
        background: #5a97b8;
        color: #fff;
        border-radius: 32px;
        padding: 4px 2vw;
        margin: 0 auto;
        box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        align-items: center;
        min-width: unset;
        max-width: 95vw;
        width: auto;
        font-size: 0.85em;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        overflow-x: unset;
        white-space: normal;
        margin-top: 0;
    }
    .menu-superior a {
        color: #fff;
        font-weight: 400;
        font-size: 1em;
        padding: 0 2px;
    }
    .menu-sep {
        color: #fff;
        opacity: 0.4;
        font-size: 1.2em;
        margin: 0 4px;
    }
    .banner-mtur {
        position: static !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        z-index: 2;
    }
    .banner-mtur img {
        max-width: 240px;
        margin: 0 auto;
    }
    .main-flex {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100vw;
        min-height: unset;
    }
    .col-busca-banner {
        width: 100vw;
        max-width: 98vw;
        align-items: center;
    }
    .banner-unico {
        width: 100vw;
        justify-content: center;
        margin: 0 0 18px 0;
    }
    .banners {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        width: 100vw;
        margin: 0 auto;
    }
    .banner-evento, .banner-brasil {
        width: 98vw;
        max-width: 420px;
        margin: 0 auto;
        padding: 12px 0;
        font-size: 1em;
    }
    .quadro-busca-tabela {
        max-width: 98vw;
        border-radius: 14px;
    }
    .busca-cell-periodo, .busca-cell-buscar {
        min-width: 80px;
    }
    .banner-img-responsive {
        max-width: 98vw;
    }
    .mapa-brasil {
        max-width: 320px;
        width: 98vw;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    #svg-mapa-brasil {
        max-width: 320px;
        width: 98vw;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
}

.col-busca-banner {
    max-width: 480px;
    width: 100%;
    gap: 24px;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.banner-unico {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-top: 32px;
}
.banner-img-responsive {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(90,151,184,0.10);
}
@media (max-width: 1080px) {
    .banner-img-responsive {
        max-width: 98vw;
    }
}

.header-flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
@media (max-width: 700px) {
    .header-flex-col {
        align-items: center;
    }
}

/* ESPAÇAMENTO ENTRE ELEMENTOS */
.novo-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.main-flex {
    margin-bottom: 18px;
}
.banner-unico {
    margin-top: 32px;
}

/* Ajuste específico para o select de município */
#municipio {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 2px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    font-size: 1.08em !important;
    height: 48px !important;
    display: block !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Remove setas duplas do select de município se aparecerem */
#municipio::-ms-expand {
    display: none;
}
#municipio option {
    text-align: center;
}

/* Garante que o mapa fique visível e não seja afetado por overflow */
.mapa-brasil, #svg-mapa-brasil {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 600px !important;
    min-width: 520px !important;
    min-height: 520px !important;
    overflow: visible !important;
}

/* Estilos para o loading do mapa */
.loading-mapa {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f5f5f5;
    color: #666;
    font-size: 1.2em;
}

.loading-mapa::after {
    content: '';
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilo para mensagem de erro do mapa */
.erro-mapa {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px;
}

/* Otimizações de performance */
.mapa-brasil {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mapa-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform;
}

/* Otimizações para imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Otimizações para selects */
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #3498db;
}

/* Otimizações para botões */
.btn-buscar {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buscar:hover {
    background-color: #2980b9;
}

/* Otimizações para o layout principal */
.novo-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-flex {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.col-busca-banner {
    flex: 1;
    min-width: 0;
}

.mapa-brasil {
    flex: 1;
    min-width: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-flex {
        flex-direction: column;
    }
    
    .col-busca-banner,
    .mapa-brasil {
        width: 100%;
    }
}

/* Otimizações de performance para animações */
.estado-hover {
    transition: fill 0.3s ease;
    fill: #3498db !important;
}

/* Otimizações para o header */
.novo-header {
    position: relative;
    top: 0;
    left: -13rem;
    z-index: 100;
}

/* Otimizações para o footer */
.novo-footer {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.redes-sociais {
    margin-top: 20px;
}

.redes-sociais a {
    margin: 0 10px;
    color: #666;
    text-decoration: none;
}

.redes-sociais a:hover {
    color: #3498db;
}

/* Banners lado a lado */
.banners-ajuste {
    display: none !important;
}

/* Inputs e selects maiores */
.busca-table select, .busca-table input[type="text"] {
    height: 48px !important;
    font-size: 1.18em !important;
}
.busca-cell-buscar .btn-buscar {
    height: 64px !important;
    font-size: 1.18em !important;
}

/* Faixa decorativa à esquerda */
.faixa-decorativa {
    position: fixed;
    left: 0;
    top: 0;
    width: 64px;
    height: 100vh;
    background: url('../img/faixa-decorativa.png') repeat-y left top;
    z-index: 1;
    opacity: 0.7;
}

@media (max-width: 1200px) {
  .main-flex { gap: 32px; }
  .col-busca-banner { max-width: 98vw; width: 98vw; }
  .mapa-brasil, #svg-mapa-brasil { min-width: 320px !important; min-height: 320px !important; }
}

@media (max-width: 1080px) {
  .faixa-decorativa { display: none; }
} 