* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
  overflow: hidden;
}

#cesiumContainer {
  width: 100%;
  height: 100%;
}

/* Panel lateral mejorado */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-320px);
}

.sidebar-header {
  background: linear-gradient(135deg, rgba(58,90,64,0.95) 0%, rgba(163,177,138,0.95) 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.sidebar-header h1 {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.sidebar-header p {
  opacity: 0.9;
  font-size: 0.9em;
}

.filter-section {
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.filter-section h3 {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  display: block;
  color: #2d3748;
  font-weight: 500;
  margin-bottom: 5px;
}

.filter-group select,
.filter-group input[type="range"] {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.range-display {
  background: #f7fafc;
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  color: #4a5568;
  margin-top: 5px;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.checkbox-item:hover {
  background: rgba(102, 126, 234, 0.05);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

/* Leyenda mejorada */
.legend {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.legend h4 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #4a5568;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.2);
}

/* Toggle button */
.sidebar-toggle {
  position: absolute;
  top: 20px;
  left: 370px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-toggle:hover {
  background: white;
  transform: scale(1.1);
}

.sidebar.collapsed + .sidebar-toggle {
  left: 20px;
}

/* Info panel mejorado */
.info-panel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  min-width: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: none;
}

.info-panel.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.info-panel h3 {
  color: #2d3748;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.info-detail .label {
  color: #718096;
}

.info-detail .value {
  color: #2d3748;
  font-weight: 600;
}

.price-highlight {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin: 10px 0;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-action {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.btn-details {
  background: #667eea;
  color: white;
}

.btn-video {
  background: #e53e3e;
  color: white;
}

.btn-action:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Contador de resultados */
.results-counter {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 10px 15px;
  margin: 15px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
    position: fixed;
    bottom: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(calc(100% - 60px));
  }

  .sidebar.expanded {
    transform: translateY(0);
  }

  .sidebar-toggle {
    top: auto;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Animaciones de carga */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 10px;
  z-index: 2000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}
/* Estilos adicionales para el botón Reservar */
.btn-reservar {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.btn-reservar:hover {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

/* Ajustar el grid de botones para 3 botones */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

/* Para mobile, mantener 2 columnas si es necesario */
@media (max-width: 480px) {
  .action-buttons {
    grid-template-columns: 1fr 1fr;
  }
  
  .btn-reservar {
    grid-column: 1 / -1; /* El botón reservar ocupará toda la fila en mobile */
  }
}
/* Botón de reservar a ancho completo */
.btn-reservar-full {
  width: 100%;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.btn-reservar-full:hover {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-reservar-full:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

/* Mantener el estilo original para los botones de acción */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}