fieldset:disabled,
.disabled-fieldset {
  background-color: #f0f0f0;
  border-color: #ccc;
  color: #aaa;
  opacity: 0.6;
  pointer-events: none;
}

#poi-type-wrapper {
  margin-top: 0;
}

/* Fieldset POI */
.poi-fieldset {
  border: 1px solid var(--primary-color, #007bff);
  border-radius: 12px;
  padding: 16px;
  background-color: #ffffff;
  margin: 0;
}

.poi-fieldset legend {
  font-size: 1em;
  font-weight: bold;
  color: var(--primary-color, #007bff);
  padding: 0 6px;
  margin-bottom: 10px;
}

.poi-fieldset .checkbox-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}


#ev-slider {
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
}

#sidebar-ve label[for="ev-dropdown"],
#traffic-slider-wrapper label[for="traffic-hour-slider"] {
    color: #79bdeb;
}

#traffic-slider-wrapper {
    padding: 16px 16px !important;
}

.enabled {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
      opacity: 0.5;
      transform: scale(0.98);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.form-card {
  background-color: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.form-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.form-card.disabled-card {
  opacity: 0.6;
  filter: grayscale(0.4);
  pointer-events: none;
}

/* Botón flotante */
.sidebar-toggle {
  position: absolute;
  top: 50px;
  right: 20px;
  z-index: 1000;
  background-color:  var(--secondary-color);
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 8999;
}

/* Sidebar lateral */
.sidebar {
position: fixed;
top: 0;
right: 0;
left: auto;
width: 340px;
height: 100%;
padding: 20px;
overflow-y: auto;
z-index: 9999;

background: rgba(30, 30, 30, 0.85);
backdrop-filter: blur(10px);
border-left: 1px solid rgba(255, 255, 255, 0.1);

transform: translateX(100%);
transition: transform 0.3s ease, background-color 0.3s ease;
}

.sidebar select {
  width: 100%;
  padding: 10px 14px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, border 0.3s;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar select:focus {
  border-color: #29a1f1;
  outline: none;
  box-shadow: 0 0 6px rgba(41, 161, 241, 0.3);
}


.sidebar.show {
  transform: translateX(0);
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.sidebar-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

/* Secciones del sidebar */
.sidebar-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-section:hover {
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sidebar-section.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Estilo para mantener visual consistente */
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.sidebar-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-group legend {
  font-size: 1rem;
  font-weight: 600;
  color:#79bdeb;
  margin-bottom: 12px;
}

.custom-select {
  position: relative;
}

.custom-select select {
  width: 100%;
  padding: 10px 14px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #333;
  appearance: none;
}

.custom-select i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999;
  font-size: 0.9rem;
}

.custom-select select:focus {
  border-color: var(--primary-color, #29a1f1);
  outline: none;
  box-shadow: 0 0 6px rgba(41, 161, 241, 0.3);
}

#sidebar .checkbox-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#sidebar .checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#sidebar .checkbox-wrapper:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

#sidebar .checkbox-item {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color, #29a1f1);
  flex-shrink: 0;
}

#sidebar .checkbox-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

#main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: margin-right 0.3s ease;
  margin-right: 0;
}

#main-content.sidebar-open {
margin-right: 360px; /* mismo ancho que el sidebar */
}

@media (max-width: 768px) {
#main-content.sidebar-open {
  margin-right: 0; /* que lo tape encima */
}
}

.highlight-section {
  animation: glowEffect 0.8s ease-in-out 0s 2;
}

@keyframes glowEffect {
  0%   { box-shadow: 0 0 0 rgba(41, 161, 241, 0.2); }
  50%  { box-shadow: 0 0 12px rgba(41, 161, 241, 0.6); }
  100% { box-shadow: 0 0 0 rgba(41, 161, 241, 0.2); }
}
