#memorias-list-container,
#lojas-list-container {
    padding-top:40px;
}

#map-container {
    padding-top:40px;
    position: relative;
}

#map-no-results {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* não bloqueia o mapa */
    z-index: 500;
}

#map-no-results .alert {
    pointer-events: auto;
    max-width: 420px;
}

.video-placeholder {
    cursor: pointer;
}

.video-placeholder img {
    display: block;
}

.play-button {
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.select-reset-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* spinner ou overlay para quando estamos a carregar os pontos para o mapa */
#map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);  /* semi-transparente */    /* rgba(0, 0, 0, 0.5); overlay escuro  */
    display: none; /* comeÃ§a escondido */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: all; /* bloqueia cliques no mapa */
}
  
#map-loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top: 5px solid #1C222B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
  
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* FIM spinner ou overlay para quando estamos a carregar os pontos para o mapa */

.leaflet-container .map-popup-memoria {
  width: 260px;
}
/* thumbnail da infobox */
.map-popup-memoria .ratio img {
    object-fit: cover;
}

/* titulo */
.map-popup-memoria .titulo {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.map-popup-memoria .categorias {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

/*  -------------- paginador  ---------------- */
.memorias .a,
.lojas-com-historias .a {
    padding: 12px;
    width: 40px;
    height: 40px;
    outline: 0;
    margin: 0;
    border: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.memorias .a.active,
.lojas-com-historias .a.active {
    background-color: #1C222B;
    color: #FAFAFA;
}

.memorias .a.previous-page,
.lojas-com-historias .a.previous-page {
    background-image: url('../../../_assets/fbd086277289c830376535e37e006784/Icons/chevron_right_24.svg');
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(180deg);
}

.memorias .a.next-page,
.lojas-com-historias .a.next-page {
    background-image: url("../../../../_assets/fbd086277289c830376535e37e006784/Icons/chevron_right_24.svg");
    background-repeat: no-repeat;
    background-position: center;   
}

.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: black;
}
/*  -------------- fim paginador  ---------------- */



#map {
    height: 490px;
    width: 100%;
}


/*  -------------- para sair, cópia de estilização já existente site  ---------------- */
.tmp_select {
  width: auto;
  min-width: 200px;
  cursor: pointer;
  padding: 11px 16px;
  padding-right: 28px;
  border: 1px solid #AFBACA;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.4rem;
  line-height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23313131' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  background-color: white;
  appearance: none;
}

.espaco-view-switcher {
    position: relative;
    border: 1px solid #1C222B;
    height: 48px;
}

.view-switcher-container {
	gap: 12px;
}

.switcher-option {
width: 48px;
  height: 48px;
}
/* ----    */
.espaco-view-switcher {
    position:relative;
    border:1px solid #1C222B;
  }
.espaco-view-switcher:has(.map-option)::before {
    width:calc(100% / 3)
}
.espaco-view-switcher:not(:has(.map-option))::before {
    width:50%
}
.espaco-view-switcher::before {
    width:calc(100% / 3);
    height:100%;
    position:absolute;
    content:"";
    display:block;
    top:0;
    left:0;
    background-color:#1C222B;
    z-index:-1;
    transition:all 0.2s ease-in-out
}
.espaco-view-switcher.left-selected::before {
    transform:translateX(0)
}
.espaco-view-switcher.mid-selected::before,
.espaco-view-switcher.right-selected:not(:has(.map-option))::before {
    transform:translateX(100%)
}
.espaco-view-switcher.right-selected:has(.map-option)::before {
    transform:translateX(200%)
}
.espaco-view-switcher .switcher-option {
    padding:12px;
    cursor:pointer
}
.espaco-view-switcher .switcher-option svg path {
    transition:all 0.2s ease-in-out
}
.espaco-view-switcher .switcher-option.active svg path {
    fill:#FAFAFA
}
.espaco-view-switcher.disabled {
    pointer-events:none;
    border-color:#cfcfcf
}
.espaco-view-switcher.disabled::before {
    background-color:#cfcfcf
}
.espaco-view-switcher.disabled .switcher-option:not(.active) svg path {
    fill:#cfcfcf
}
