
/* Estilos para esconder o mapa no mobile inicialmente */
#map-container {
    margin-top: 40px;
    /*display: none;   depende!...  */
}

#map {
    height: 490px;
    width: 100%;
}

/* no mobile, a lista começa visível e o mapa escondido  REVER ISTO*/
@media (max-width: 767px) {
    #map-container {
        display: none; /* Começa escondido no mobile */
    }
}

/*  ***************  */
.leaflet-container {
	font-family: inherit;
}

.leaflet-sidebar-tabs {
	background-color: transparent;
}

/*.leaflet-sidebar-tabs > ul {
    border:2px solid rgba(0,0,0,0.2);
}*/

.leaflet-sidebar-tabs > ul > li:not(.active):hover {
	background-color: #e9efdb;
}


.leaflet-sidebar.leaflet-touch {
	border: 0;
}

.leaflet-sidebar-tabs .disabled{
	opacity: 0.2;
}

.leaflet-sidebar-tabs ul {
	background-color: white;
}

.leaflet-sidebar-content {
    overflow: hidden;
}

.leaflet-sidebar-content label {
  font-size: 1.3rem;
  font-weight: 300;
}

.leaflet-sidebar-content .list-group-item {
  border: none;
}


.leaflet-sidebar-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.leaflet-sidebar-header {
    font-size: 1.3rem;
    margin-bottom: 20px;

    flex: 0 0 auto; /* altura fixa, não participa no scroll */
  position: sticky;
  top: 0;
}

.leaflet-sidebar-body {
    /*height: 100%;*/
    height: calc(100% - 40px); /* 40px = altura do header */
    overflow-y: auto;
 
    /* Firefox */
  scrollbar-width: thin;          /* fino */
  scrollbar-color: #999 #f0f0f0;  /* polegar + trilho */
}

/* Chrome, Edge, Safari */
.leaflet-sidebar-body::-webkit-scrollbar {
  width: 6px;   /* largura do scroll */
}

.leaflet-sidebar-body::-webkit-scrollbar-track {
  background: #f0f0f0;  /* trilho */
}

.leaflet-sidebar-body::-webkit-scrollbar-thumb {
  background-color: #999;   /* cor do polegar */
  border-radius: 4px;
}

.leaflet-sidebar-body::-webkit-scrollbar-thumb:hover {
  background-color: #666;   /* hover mais escuro */
}

.leaflet-sidebar-body .list-group .list-group-item {
  padding: 0.3rem 1rem !important;
}

.leaflet-sidebar-tabs > ul > li.active, .leaflet-sidebar-header {
	background-color: #B4D755;
	color: #1C222B;
}

@media (max-width: 460px) {
  .leaflet-sidebar-left .leaflet-sidebar-content {
    max-width: calc(100% - 60px);
    height: calc(100% - 20px);
    top: 10px;
    left:50px;
  }

  .leaflet-sidebar-left .leaflet-sidebar-tabs {
    left: 10px;
    top: 10px;
  }

  .leaflet-sidebar.collapsed {
    width: 50px;
  }

  .leaflet-sidebar-left.collapsed ~ .leaflet-control-container .leaflet-left {
    left: 0;
  }
}

.layer-list-opcoes h4 {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 300;
  padding: 0 0 1.0rem 0;
  margin: 0;
}

#p-range {
    margin-top: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding-left: 10px;
    /*border-left: 3px solid #cecece;*/
    padding-right: 10px;
}

#p-range.show {
    max-height: 100px;
    opacity: 1;
}

#p-range .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;  
}
#p-range .form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.select-reset-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* espaço entre select e botão */
}

#selArvoredo{
    margin-top: 8px;
    flex: 1; /* ocupa todo o espaço disponível */
    max-width: 100%;
}

/*.resetButton {
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid #AFBACA;
  background: white;
  cursor: pointer;
  transition: background 0.2s;

    margin-top: 8px;
  display: flex;
}*/

#btn_reset_search {
    cursor: pointer;
}


/*  ***************  */

.map-popup {
    width: 300px;
    max-width: 100%;
}
.map-popup h5 {
    line-height: 1.8rem;
}
.popup-image {
    height: 150px;
    object-fit: cover;
    width: 100%;
}
.location-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.address-container {
    display: flex;
    align-items: flex-start; /* alinha no topo */
}
.address-text {
    line-height: 1.2; 
}
.leaflet-popup-content p {margin: 4px 4px;}


/* 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 */
  

#espacos-list-container {
    margin-top: 40px;
}

.container-facets {
    flex-wrap: nowrap; 
    scrollbar-width: thin; /* para browsers Firefox */
    scrollbar-color: #888 transparent; /* para browsers Firefox */
    /*width: 80%;*/
    /* margin-top:30px; */
}

.container-facets::-webkit-scrollbar {
    height: 6px; /* altura da barra de scroll */
}

.container-facets::-webkit-scrollbar-thumb {
    background-color: #888; /* cor do "ponteiro" da barra de scroll */
    border-radius: 3px; /* borda arredondada */
}

.container-facets::-webkit-scrollbar-track {
    background-color: transparent;
}

/* em mobile aumenta a largura contentor do plugin "agenda" */
@media (max-width: 767px) {
    .container-facets {
        width: 100%;
    }
    .container-contactos {
        width: 100%;
    }
}

.d-esp-facets {  
    padding: 7px 8px;
    /*width: fit-content;*/
    border-radius: 4px;
    /* background-color: #8897AE; */
    font-size: 12px;
    line-height: 16px;
    margin: 0;
    color: #1C222B;
    white-space: nowrap;
}
.d-esp-facets a {
    color: black !important;
    text-decoration: none !important;
}
/* Quando o link está ativo, alteramos o PAI (.d-esp-facets) */
.d-esp-facets:has(> a.facet-link.active) {
    background-color: black !important; /* Cor de fundo do container quando ativo */
    padding: 7px 8px; /* Mantém o mesmo padding para não alterar layout */
    color: white;
}

.facet-link {
    display: block; /* Para preencher todo o container pai */
    color: #1C222B;
    text-decoration: none;
    font-size: 12px;
    line-height: 16px;
    /* Adicionado para preencher o espaço do container */
    margin: -7px -8px; /* Compensa o padding do container */
    padding: 7px 8px; /* Reaplica o padding original */
    border-radius: 4px; /* Mantém o mesmo border-radius */
}

.facet-link.active {
    color: #fff !important;
    background-color: black; /* Fundo do próprio link */
}

@media (min-width: 768px) {
    .d-esp-facets .badge {
        margin-left:10px;
        padding: 2px 8px;
        font-size: unset;
        line-height: unset;
    }
    .d-esp-facets .bg-secondary{
        background-color: white !important;
    }
}

@media (max-width: 767px) {
    .d-esp-facets .badge {
        margin-left:10px;
        padding: 2px 8px;
        font-size: unset;
        line-height: unset;
    }
    .d-esp-facets .bg-secondary{
        background-color: white !important;
    }
}

.d-esp-subcats {  
    padding: 7px 8px;
    width: fit-content;
    border-radius: 4px;
    background-color: white;
    font-size: 12px;
    line-height: 16px;
    color: #1C222B;
    white-space: nowrap;
    border:solid 1px #1C222B;
}
.d-esp-subcats a {
    color: black !important;
    text-decoration: none !important;
}
/* .subcats {margin-bottom: 40px;} */

/* ------------------------  */
.pagination {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: black;
}

.pagination a.active {
    color: #fff;
    background-color: black;
    border-color: black;
}

.pagination-container {
    height: 45px;
}

.lbl-paginacao {
    margin-top: 25px;
}

/* ---  sobrepôr alguns estilos do layout base do site --- */
.espacos .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.espacos .container-fluid .row {
    padding-left: 0;
}

.espacos .container-fluid ul {
    margin-left: 0;
}

.espacos .espaco-container .tab-pane .espaco-header {
  gap: 0;
}

.tabs-carousel > .btn::after {
    content: none; /* remove o conteúdo do ::after */
    display: none; /* remove a exibição do pseudo-elemento */
}


/* --- cards da lista --- */
.espacos-card {
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom:10px;
}

/* .espacos-card-img {
    flex: 1;
} */

/* .espacos-card-content {
    padding: 8px 0 10px 0;
} */

.espacos-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    /*color: #333;*/
    margin-top: 0;
    margin-bottom: auto;
}

.espacos-card-address {
    font-size: 0.9rem;
    /*color: #666;*/
    margin-bottom: 0;
    margin-top: auto;
}

/* ---  cenas da lista -- */

 .espacos-filters {
    padding:0;
} 

.espacos-filters-search {
    padding: 11px 16px;
    display: flex;
    align-items: center;
    /*gap: 8px;*/
    border: 1px solid #D7DFE9;
    background-color: #FFFFFF;
    width: fit-content !important; /* Faz a div ter o tamanho do conteúdo */
}

@media (max-width: 767px) {
	#espaco-filters .filters-container {
        gap:0 !important;
	}
}

/* impedir que as tags ultrapassem a viewport no mobile */
@media (max-width: 767px) {
  .espacos-filters-main .subcats {
     max-width: calc(100vw - 40px) !important;
  }
}


.input-search {
    flex-grow: 1; /* Ocupa todo o espaço restante */
    border: none; /* Remove a borda padrão */
    outline: none; /* Remove o outline ao focar */
    padding: 0; /* Remove o padding padrão */
    margin: 0; /* Remove a margem padrão */
    /*min-width: 150px;  Define um tamanho mínimo para o input */
    
}

@media (max-width: 767px) {
    .input-search {
        width:100%;
    }
}

.clearSearch,
.espacos-btn-serach {
    flex-shrink: 0; /* Impede que os ícones encolham */
    display: flex;
    align-items: center;
    justify-content: center;
}

.espacos-btn-serach {
    background-color: transparent;
    outline: 0;
    border: 0;
    padding: 0;
}
.espacos-filters-elements {
    border:0;
    background-color: #FFFFFF;
    font-size:1.4rem;
    line-height: 21px;
    color: #8897AE;
}

@media screen and (max-width: 800px) {
    .espacos-filters-elements {
        width:100%;
    }
}

/* .espacos-nome {
    padding-top: 20px;
    padding-bottom: 20px;
} */

/* ==================================================================================   */

/* estilos repelicados dos CSS do site!... para remover */
.cenaCopied {
    outline: 0;
  border: 1px solid #1C222B;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: #1C222B;
  min-height: 52px;
  min-width: 52px;
}

.espacos-buttons {
    outline: 0;
    border: 1px solid #1C222B;
    background-color: #FAFAFA;
    display: flex;
    align-items: center;
    font-size:1.4rem;
    font-weight: 400;
    line-height: 21px;
    color: #1C222B;
    padding: 8px 16px;
}
.clear-filters {
    border:0;
}

.tab-navigation .nav-tabs .nav-link {
    border: none;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    border-bottom: 2px solid transparent !important;
    border-bottom-color: transparent;
  }
  .tab-navigation .nav-tabs .nav-link.active {
    border-color: transparent !important;
    background-color: transparent !important;
    border-color: #B4D755 !important;
    font-weight: 700 !important;
  }
 #tabEventos.nav-link {
    padding: 0 !important;
  }

.tabs-wrapper {
  display: flex;
  align-items: stretch;
  visibility: hidden; /* controlado via JS */
  gap: 8px; /* opcional */
}

.tabs-wrapper.ready {
  visibility: visible;
}

/* 
    Tabs scrolláveis - OLD (mas ficaram alguns nomes...) afinal não vamos ter um carroussel nos tabs 
    Vamos ter uma div colapsável com oss tabs do detalhe 
*/
.tabs-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  flex-grow: 1; /* isto é importante para ocupar o resto do espaço */
  transition: max-height 0.2s ease-in-out;
  max-height: 48px;
  overflow: hidden;
}

.tabs-carousel::-webkit-scrollbar {
  display: none;
}

.tabs-carousel.ready {
  visibility: visible;
}

/* collapse por default */
.tabs-carousel.collapsed {
  max-height: 40px; /* altura de uma linha */
  /* overflow-x: hidden;  flex-wrap: nowrap;  */
  overflow: hidden;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .tabs-carousel.collapsed {
    max-height: 40px;
  }
}

/* div colapsável expandida, mostra tudo */
.tabs-carousel.expanded {
  /*max-height: 1000px;  suficientemente alto para conter todos os botões dos tabs */
  /* overflow-x: visible;  */
  max-height: none; /* sem limite */
  overflow: visible; 
  flex-wrap: wrap;
}

/* Botões */
.tabs-carousel .btnSeparador {
  padding: 8px 20px;
  white-space: nowrap;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* botão "ver mais tabs" */
.see-more-tabs {
  display: none; /* flex;  por esconder por defeito */
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #000;
}

.see-more-tabs.visible {
  display: flex;
  opacity: 1;
}

.tabs-carousel.expanded + .see-more-tabs svg {
  transform: rotate(90deg);
}

/* ==================================================================================   */

/* Ajustes para Layout e Exibição */
.form-fields {
    flex: 1;
}

/* .form-fields {
    padding-right: 1rem;
} */

.form-fields .form-select, .form-fields .form-control, .form-fields .form-check {
    margin-bottom: 0;
}


/* Desktop: Formulário sempre visível */
@media (min-width: 768px) {
    #form-container {
        display: flex !important;
    }
    #mobile-controls {
        display: none;
    }
}

/* Mobile: Formulário colapsado */
@media (max-width: 767px) {
    #form-container {
        display: none;
    }
    #form-container.collapse.show {
        display: flex;
    }
}

/*  botão switcher lista/mapa em mobile */
.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:13px;
    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
}

.filtros-btn-container {
    border: 1px solid #1C222B;
}

.filtros-btn-container > .btn-outline-secondary {
    --bs-btn-color: none !important;
    --bs-btn-border-color: none !important;
}

.filtros-btn-container .btn:not(.no-arrow)::after {
    display: none;
}

@media (min-width: 768px) {
    .filtros-btn-container .btn {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        letter-spacing: 0.08px;
        padding: 12px 20px;
        gap: 0;
    }
}
/* em mobile, o botão q expande/colapsa os filtros não tem etiqueta; ajustamentos */
@media (max-width: 767.98px) {
    .filtros-btn-container .btn {
        padding: 24px 23px;
    }
}

/* Container do botão (q expande/contrai Filtro da lista) */
.filtros-btn-container button {
    position: relative;
    padding-left: 40px; 
}

/* estilos para os ícones SVG  */
.filtros-btn-container svg {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 10px; 
    transform: translateY(-50%);
    width: 24px; 
    height: 24px;
}

/* ícone de filtros (inicialmente visível) e a animação de rotação */
.filtros-btn-container .icon-filtros {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

/* ícone "X" (inicialmente oculto) e a animação de rotação */
.filtros-btn-container .icon-x {
    opacity: 0;
    transform: translateY(-50%) rotate(-180deg);
}

/* quando a div está expandida, o ícone de filtros desaparece e o "X" aparece */
.filtros-btn-container button[aria-expanded="true"] .icon-filtros {
    opacity: 0;
    transform: translateY(-50%) rotate(180deg);
}

.filtros-btn-container button[aria-expanded="true"] .icon-x {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

/* 
    o "botão" dos filtros qdo expande a div com os filtros propriamente ditos deve ficar com o fundo preto
    o atributo "aria-expanded" é automaticamente gerido pelo Bootstrap e indica se o elemento  div#espaco-filters está expandida (true) ou recolhida (false) 
*/
.filtros-btn-container button[aria-expanded="true"] {
    background-color: #1C222B; 
    color: white; 
}

.btn-filters-etiqueta {
    margin-left: 18px; /* espaço entre o ícone e o texto */
    font-family: "Poppins", sans-serif;
    font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

/* botões no interior do filtro colapsável */
#espaco-filters .btn {
    min-width: 100px; 
}

#espaco-filters select {
    width: 100% !important; 
}

/* espaçamento entre as selects do filtro no modo mobile (listagem) */
/* @media (max-width: 767.98px) {
    #espaco-filters select {
        margin-bottom: 16px; 
    }
} */

/* ajustes para mobile */
@media (max-width: 767.98px) {
    #espaco-filters .btn {
        width: 100%; /* botões a ocuparem a largura total? */
        margin-bottom: 8px;
    }
}

#btn-aply-filtro{
    outline: 0;
  border: 1px solid #1C222B;
  background-color: #FAFAFA;
  margin: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #1C222B;
  transition: all 0.2s ease-in-out;
  width: fit-content;
  justify-content: center;
}

.esp-reset-button {
	outline: 0;
  background-color: white;  /* #FAFAFA; */
  margin: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #1C222B;
  width: fit-content;
  justify-content: center;
  border: none;
}
.esp-reset-button::before {
	content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-image: url("../Icons/filter_remove.svg");
}

.mt-badge-filtro {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #3C87C8;
    border-radius: 50%;
    display: none;
    z-index: 10;
  }

/*
.esp-list-link:hover {
    text-decoration:none;
    color:rgba(0, 0, 0, 0.75);
    background-color:#f2f2f2;
    border-color:#d9d9d9;
}
*/
.espacos-card:hover{
    background-color: #e7e4e4; /*#d4d1d1*/
}

/* ==========   estilos do detalhe  ========== */
/*
.tabs-carousel {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; Firefox 
}
.tabs-carousel::-webkit-scrollbar {
    display: none;  Chrome/Safari 
}
*/

/* 
    as propriedades da .tabs-carousel abaixo são importantes para o deslizar automático do scroll quando é clicado
    um marker no mapa e o separador não está visível no display
*/
/* .tabs-carousel { 
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
} */
/*
.imgs-carousel {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}
.imgs-carousel img {
    margin-right: 20px;
}*/
.imgs-carousel img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}
.imgs-carousel {
    margin: 0 auto;
    width: 100%;
}
/* #espacoTabsContent {
    margin-top:20px;
} */


.espacos-carousel-item {
    position: relative;
}


.espacos-carousel-item .nome-comum {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 20px); /* ajustar automaticamente a largura com base no elemento pai */
    background: rgba(0, 0, 0, 0.5); 
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
}

#tabsArvoreEvento-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
}

.local-event {
    font-size: 1.3rem;
}

.espaco-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.leaflet-popup-content {
    font-family: "Poppins",sans-serif;
    font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1C222B;
  margin: 13px 24px 13px 20px;
}

.leaflet-control{
    font-family: "Poppins",sans-serif !important;
    font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1C222B;
  box-shadow: none !important;
}

#filterEspecie {
    font-family: "Poppins",sans-serif;
}

#filterEspecie option {
    font-family: "Poppins",sans-serif;
}

/* estilos da ListHorarios.html */
.horario-grid {
    display: grid;
    grid-template-columns: auto 1fr auto auto; /* ícone, tipoHorário, horário, botão */
    gap: 1px; 
    align-items: center;
}


.horario-observacoes {
    padding: 0.6rem; 
}

.horario-icon,
.horario-horas {
    padding: 4px 2px 4px 0; 
}

.horario-icon {
    grid-column: 1;
}

.horario-tipo {
    grid-column: 3;
}

.horario-horas {
    grid-column: 2;
}

.horario-observacoes {
    grid-column: 4;
}

.observacoes-container {
    grid-column: 1 / -1; /* ocupa todas as colunas */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px; 
}

.btn-observacoes {
    display: flex;
    align-items: center;
    gap: 1px;
    background: none;
    border: none;
    color: #666; /*#1f1f1f;*/
    cursor: pointer;
    padding: 0;
}

.btn-observacoes svg {
    transition: transform 0.3s ease;
}

.observacoes-texto {
    color: #666;
}


/* spinner ou overlay para quando estamos a carregar dados para o mapa */
#espaco-map {
    position: relative; /* garante que fica restrito ao espaço da div#espaco-map */
}

#map-loading-overlay {
    display: none; /* começa escondido */
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    /*display: flex;             centraliza */
    align-items: center;      /* vertical */
    justify-content: center;  /* horizontal */
    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;
}





