/*
 Theme Name:   Mapa de Conflitos Blocksy
 Theme URI:    http://eita.coop.br
 Description:  Tema para o Mapa de Conflitos - baseado em Blocksy
 Author:       EITA Cooperativa
 Author URI:   http://eita.coop.br
 Template:     blocksy
 Version:      1.0.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         map
 Text Domain:  mapadeconflitos
*/


/* MENU */
.menu {
    background-image: url('./img/cabecalho.png');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.menu>li>a {
    height: 40px !important;
}

[data-menu]>ul>li {
    align-items: flex-end !important;
}

/* MAPA */
#mainmap {
    height: 500px;
    width: 100%;
}

#singlemap {
    height: 500px;
}




/* SINGLE CONFLITO */

/* Offset da âncora */
:target:before {
    content: "";
    display: block;
    height: 90px;
    margin: -90px 0 0;
}

.single-conflito h1::before {
    background-image: url('./img/icone-ponto-de-conflito-selecionado.svg');
    width: 100px;
    height: 100px;
    content: "";
    background-size: 100px;
    display: block;
    float: left;
    margin-right: 20px;
}

#conflito_meta p {
    margin-bottom: 10px;
}

.menu_conflito {
    display: block;
    padding-left: 0px;
    text-align: center;
    background: rgba(256, 256, 256, 0.95);
}

.menu_conflito li {
    display: inline-block;
    background: var(--theme-palette-color-2);
    color: white;
    border-radius: 33px;
    padding: 10px 35px;
    margin: 30px 10px 10px;
}

.menu_conflito li a {
    color: white;
    text-decoration: none;
}

/* Menu fixo na página do conflito (substitui o plugin Sticky Menu) */
@media (min-width: 1000px) {
    .single-conflito .menu_conflito {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .admin-bar.single-conflito .menu_conflito {
        top: 32px;
    }
}

@media (min-width: 1000px) {
    .single-conflito main {
        background-image: url('/wp-content/uploads/2021/05/background_single.png');
        background-position: top left;
        background-repeat: repeat-y;
    }

    .single-conflito .ct-container {
        background: white;
        padding: 0 10px;
    }
}

/* HOME HERO (substitui a seção do Getwid) */
.home-hero {
    min-height: 933px;
    padding: 1em;
    background-image: url('/wp-content/uploads/2021/05/topo.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* HOME FILTRO */

.mapa_filtro p.pesquisar {
    margin-bottom: 10px;
    margin-top: 20px;
}

.mapa_filtro.wp-block-columns {
    gap: 0;
    margin-bottom: 0;
    align-items: stretch;
}

.mapa_filtro>.wp-block-column.coluna_filtro {
    flex: 0 0 400px;
}

.mapa_filtro>.wp-block-column.coluna_mapa {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
}

.mainmap-wrap {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 500px;
}

.mainmap-wrap #mainmap {
    flex: 1 1 auto;
    height: 100%;
    min-height: 500px;
}

@media (max-width: 781px) {
    .mapa_filtro>.wp-block-column.coluna_mapa {
        order: 1;
    }

    .mapa_filtro>.wp-block-column.coluna_filtro {
        order: 2;
        flex-basis: 100%;
    }
}

.coluna_filtro {
    background: #F6F6F6;
}

.form_filtro_mapa ul {
    list-style-type: none;
    padding-left: 0px;
    text-align: center;
}

.form_filtro_mapa ul li {
    margin-bottom: 10px;
}

.form_filtro_mapa select,
.form_filtro_mapa input,
input.search_map,
input.search_map:focus {
    width: 300px !important;
    background-color: white !important;
    border-radius: 29px !important;
    border: 1px solid #707070 !important;
    font-size: 17px !important;
    color: #707070 !important;
    height: 50px !important;
    padding-left: 20px !important;
}

/* Termo selecionado em preto; placeholder (nada selecionado) em cinza. */
.form_filtro_mapa select {
    color: #000 !important;
}

.form_filtro_mapa select.is-placeholder {
    color: #707070 !important;
}

.form_filtro_mapa input[type="submit"] {
    background: var(--theme-palette-color-1) !important;
    color: white !important;
}

.form_filtro_mapa input[type="reset"] {
    color: #707070 !important;
    cursor: pointer;
}

input.search_map {
    z-index: 9999;
    display: block;
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
}

.conflitos_count {
    font-weight: bold;
    color: var(--paletteColor1);
    margin-top: 40px !important;
}

.coluna_filtro {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#mainmap {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* LOADING DO FILTRO */
.coluna_filtro {
    position: relative;
}

.mdc-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
}

.mdc-loading.is-visible {
    display: flex;
}

.mdc-loading--fixed {
    position: fixed;
}

.mdc-loading img {
    width: 60px;
    height: 60px;
}

/* CLUSTERS */
.marker-cluster-small div {
    background-color: unset !important;
}

.marker-cluster-small {
    background-color: unset !important;
    background-image: url('./img/Agrupamento-de-pontos-laranja.png');
    background-position: center;
    background-size: 48px;
    background-repeat: no-repeat;
    color: white;
}

.marker-cluster-medium div {
    background-color: unset !important;
}

.marker-cluster-medium {
    background-color: unset !important;
    background-image: url('./img/Agrupamento-de-pontos-vermelho.png');
    background-position: center;
    background-size: 48px;
    background-repeat: no-repeat;
    color: white;
}


/* TABLE */

#maintable {
    margin-top: 30px;
}

.dt-button.buttons-html5 {
    background: var(--theme-palette-color-2);
    color: white;
    width: 100px;
    text-align: center;
    border-radius: 33px;
}

#table_filter input {
    border-radius: 33px;
    font-size: 18px;
    padding-left: 20px;
}

label {}

.dt-button.buttons-html5 {
    height: 66px;
}

#table_filter input {
    height: 66px;
}

#table {
    border-spacing: 8px;
    border: 0px
}

#table td,
#table th {
    border: 1px solid #70707055;
    border-radius: 11px;
    border-spacing: 11px;
}

#table th {
    background: #4B4B4B;
    color: white
}

td:nth-child(8),
th:nth-child(8) {
    display: none;
}









/*

.site-content {
  padding-top: 0em;
}

.article-wrapper {
    background: white;
}

.main-navigation {
  border-bottom: 0px !important;
}

p {
  margin-bottom: 0.5em;
}

.wrapper {
    padding: 0px;
}

.site-title {
    font-size: 1.25rem;
    letter-spacing: 3px;
    background-color: rgba(150, 150, 150, 0.7);
}

.top-area {
    padding: 44px 0;
} */

/* PUBLICAÇÕES RELACIONADAS (exibidas na página do conflito) */
.conflito-publicacoes {
    margin-top: 50px;
}

.conflito-publicacoes h2 {
    margin-bottom: 20px;
}

.conflito-publicacoes-mais {
    margin-top: 25px;
    text-align: right;
}

.conflito-publicacoes-mais a {
    font-weight: bold;
}

.conflito-publicacoes-voltar {
    margin-bottom: 20px;
}

.conflito-publicacoes-vazio {
    font-style: italic;
    color: #555;
}