/* São João no Porto styles */
.sao-joao-porto-section {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Para dispositivos móveis, posiciona a seção abaixo do mapa */
@media (max-width: 768px) {
  .sao-joao-porto-section {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(46, 38, 255, 0.8);
    width: 100%;
    border-radius: 10px;
  }
}

.sao-joao-flags {
  display: inline-flex;
  margin-bottom: 5px;
  position: relative;
}

.sao-joao-title {
  color: #ffffff;
  font-family: 'Mouse Memoirs', sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
  margin: 5px 0;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.ver-eventos-btn {
  font-family: 'Inter', sans-serif;
  background-color: #cdff40;
  color: #000000;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ver-eventos-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* Classes para controle de visibilidade em desktop/mobile */
.desktop-only {
  display: flex;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.mobile-only {
  display: none;
}

/* Para dispositivos móveis */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background-color: #2e26ff;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .mobile-only .sao-joao-title {
    font-size: 24px;
    margin: 8px 0;
  }
  
  .mobile-only .ver-eventos-btn {
    margin-top: 5px;
    font-size: 14px;
    padding: 8px 20px;
  }
  
  .mobile-only .sao-joao-flags img {
    width: 60px;
    height: 25px;
  }
}

/* Porto Modal Styles */
.porto-eventos-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.porto-eventos-content {
  background-color: #2e26ff;
  color: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

.close-porto-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.eventos-porto-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
}

.eventos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.evento-item {
  margin-bottom: 16px;
}

.evento-title {
  color: #cdff40;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}

.evento-location {
  color: #ffffff;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .eventos-list {
    grid-template-columns: 1fr;
  }
  
  .sao-joao-porto-section {
    bottom: 10px;
    right: 10px;
  }
  
  .sao-joao-title {
    font-size: 22px;
  }
}
