/* CSS inline para evitar errores de archivos externos */
:root {
  /* Colores principales del logo GraffRoute */
  --primary-black: #1a1a1a;
  --accent-cyan: #00ffdd;
  --accent-cyan-dark: #00d4b8;
  --accent-cyan-light: #66fff0;

  /* Colores de apoyo */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --border-gray: #e9ecef;
  --dark-gray: #343a40;

  /* Colores semánticos */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Efectos */
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-cyan: 0 4px 20px rgba(0, 255, 221, 0.2);
  --transition: all 0.3s ease;

  /* Gradientes */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-black),
    var(--dark-gray)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--primary-black);
}

/* Removido - se usa la definición de main.css */

.map-container {
  display: flex;
  height: calc(100vh - 90px);
  margin-top: 40px;
}

/* Ajustar altura del mapa en móviles para ocupar toda la pantalla */
@media (max-width: 768px) {
  .map-container {
    height: 100vh;
    margin-top: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }
}

#map {
  flex: 1;
  height: 100%;
  border-radius: 0;
}

/* Asegurar que el mapa ocupe toda la altura en móviles */
@media (max-width: 768px) {
  #map {
    height: 100%;
    width: 100%;
    position: relative;
  }
}

/* Estilos para filtros */
.filters-section {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
}

.filters-section .form-select {
  font-size: 0.875rem;
  border-color: var(--border-gray);
}

.filters-section .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 221, 0.25);
}

/* Estilos para estadísticas */
.stats-section {
  background: linear-gradient(
    135deg,
    var(--accent-cyan-light),
    var(--accent-cyan)
  );
  color: var(--primary-black);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.stats-section small {
  color: var(--primary-black) !important;
  font-weight: 600;
}

/* Estilos para paginación */
.pagination-section {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow);
}

.pagination-section .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.pagination-section .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageInfo {
  font-weight: 500;
  color: var(--medium-gray);
}

/* Estilos para murales */
.mural-item {
  padding: 1rem;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  border-left: 3px solid transparent;
}

.mural-item:hover {
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
  border-left-color: var(--accent-cyan);
  background: rgba(0, 255, 221, 0.02);
}

.mural-item.active {
  border-color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: rgba(0, 255, 221, 0.05);
  box-shadow: var(--shadow-cyan);
}

/* Estilos para botones */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
}

.btn-primary:hover {
  background: var(--accent-cyan-dark);
  border-color: var(--accent-cyan-dark);
  color: var(--primary-black);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-outline-primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
}

/* Estilos para el sidebar */
.map-sidebar {
  width: 550px;
  background: var(--white);
  border-right: 1px solid var(--border-gray);
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  /* Mejorar el scroll en móviles */
  -webkit-overflow-scrolling: touch;
}

.map-sidebar h5 {
  color: var(--primary-black);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-cyan);
}

/* Estilos para búsqueda */
.input-group {
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.input-group .form-control {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.input-group .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-cyan);
}

.input-group .btn {
  border: none;
  padding: 0.75rem 1rem;
  background: var(--accent-cyan);
  color: var(--primary-black);
  font-weight: 600;
}

.input-group .btn:hover {
  background: var(--accent-cyan-dark);
  transform: none;
}

/* Estilos para galería */
.gallery-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--accent-cyan);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 1000;
  max-height: 40vh;
}

.gallery-section.active {
  transform: translateY(0);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border-gray);
}

.gallery-header h6 {
  margin: 0;
  color: var(--primary-black);
  font-weight: 600;
}

.gallery-close-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.gallery-container {
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  max-height: 30vh;
  overflow-y: auto;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilos para modal de imagen */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 20px;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Estilos responsive para modal de imagen */
@media (max-width: 768px) {
  .image-modal {
    padding: 10px;
  }

  .image-modal img {
    max-width: 100%;
    max-height: calc(100% - 80px);
  }

  .close-modal {
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
}

/* Estilos para notificaciones toast */
.toast-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast-notification.show {
  transform: translateX(0);
}

/* Estilos para botón móvil - Movido al header */

/* Estilos para loading */
.loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: var(--light-gray);
  color: var(--medium-gray);
}

.loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

.loading p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Estilos para errores */
.error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: var(--light-gray);
  color: var(--danger);
  text-align: center;
  padding: 2rem;
}

.error h5 {
  color: var(--danger);
  margin-bottom: 1rem;
}

.route-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.route-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.route-card.active {
  border-color: #2196f3;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.route-cover {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.route-info {
  flex: 1;
  margin-left: 12px;
}

.route-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
  line-height: 1.3;
}

.route-meta {
  font-size: 12px;
  color: #666;
  margin: 4px 0;
}

.route-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #888;
}

.location-search-container {
  position: relative;
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.location-suggestion {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.location-suggestion:hover {
  background: #f8f9fa;
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-suggestion .icon {
  color: #2196f3;
  margin-right: 8px;
}

.route-details-modal .modal-body {
  padding: 0;
}

/* Estilos específicos para el modal de detalles de ruta en móviles */
@media (max-width: 768px) {
  .route-details-modal .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .route-details-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
  }

  .route-details-modal .modal-header {
    padding: 15px 20px;
  }

  .route-details-modal .modal-header .modal-title {
    font-size: 18px;
  }

  .route-details-modal .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .route-details-modal .modal-footer .btn {
    width: 100%;
    margin: 0;
  }

  .route-details-header {
    padding: 20px;
  }

  .route-details-header h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .route-details-content {
    padding: 20px;
  }

  .route-details-content .row {
    margin-bottom: 15px;
  }

  .route-details-content .col-6 {
    margin-bottom: 10px;
  }
}

.route-details-header {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.route-details-content {
  padding: 20px;
}

.mural-item-route {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mural-item-route:hover {
  background: #f8f9fa;
  border-color: #2196f3;
}

.mural-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 12px;
}

.mural-info {
  flex: 1;
}

.mural-title {
  font-weight: 600;
  margin: 0 0 4px 0;
  font-size: 14px;
}

.mural-artist {
  color: #666;
  font-size: 12px;
  margin: 0;
}

.anonymous-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 1000;
  max-width: 300px;
}

.anonymous-overlay h6 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.anonymous-overlay p {
  margin: 0 0 12px 0;
  font-size: 12px;
  opacity: 0.9;
}

.anonymous-overlay .btn {
  margin-right: 8px;
  font-size: 12px;
  padding: 6px 12px;
}

/* Ocultar desplegable de filtros en desktop */
.filters-dropdown-wrapper {
  display: none;
}

.filters-row {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn.active {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

.filter-btn:hover {
  border-color: #2196f3;
}

.loading-routes {
  text-align: center;
  padding: 20px;
  color: #666;
}

.no-routes {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-routes i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.markers-legend {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e9ecef;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.legend-icon svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.legend-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.legend-line {
  width: 20px;
  height: 3px;
  display: inline-block;
  border-radius: 2px;
}

.route-actions {
  position: fixed;
  bottom: 80px;
  left: calc(50% + 300px);
  /* Centrar en la mitad del mapa (sidebar = 320px) */
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 320px);
  max-width: 700px;
  min-width: 300px;
  background: linear-gradient(135deg, #00ffdd 0%, #2196f3 100%);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 255, 221, 0.3);
  animation: slideInUp 0.6s ease-out;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 16px 40px;
}

/* Estilos para botones dentro de route-actions */
.route-actions .btn {
  font-size: 13px;
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-actions .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  color: white;
}

.route-actions .btn-dark {
  background: rgba(255, 255, 255, 0.9);
  color: #2196f3;
  border-color: rgba(255, 255, 255, 0.9);
}

.route-actions .btn-dark:hover {
  background: white;
  color: #2196f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-floating {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 1001;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, #00ffdd 0%, #2196f3 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  color: white;
  transition: all 0.3s ease;
  animation: floatIn 0.5s ease-out;
}

.btn-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(0, 255, 221, 0.4);
  border-color: rgba(255, 255, 255, 1);
}

/* Botón de Mi Ubicación */
.my-location-btn {
  position: fixed;
  top: 120px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 1;
  visibility: visible;
}

.my-location-btn:hover {
  background: var(--accent-cyan);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-cyan);
}

.my-location-btn:active {
  transform: scale(0.95);
}

.my-location-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 221, 0.3);
}

/* Estilos para la lista de rutas */
#routesList {
  max-height: none; /* Permitir que crezca según el contenido */
  overflow-y: visible; /* No limitar el scroll aquí, que lo maneje el sidebar */
}

/* Mejorar el scroll en móviles para la lista de rutas */
@media (max-width: 768px) {
  #routesList {
    /* Asegurar que la lista sea scrolleable dentro del sidebar */
    overflow-y: visible;
    padding-bottom: 2rem; /* Espacio extra al final */
  }

  /* Mejorar el espaciado de las tarjetas de ruta en móviles */
  .route-card {
    margin-bottom: 1rem;
  }
}

#showSidebarBtn {
  font-size: 12px;
  padding: 8px 12px;
}

@media (max-width: 768px) {
  #showSidebarRow {
    display: none; /* Solo se muestra cuando se selecciona una ruta */
  }

  #showSidebarBtn {
    font-size: 11px;
    padding: 6px 10px;
  }
}

#map .my-location-btn {
  position: absolute !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Modal discreto para usuarios anónimos */
.anonymous-notification {
  position: fixed;
  bottom: 80px;
  left: calc(50% + 300px);
  /* Centrar en la mitad del mapa (sidebar = 320px) */
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 320px);
  max-width: 700px;
  min-width: 300px;
  background: linear-gradient(135deg, #00ffdd 0%, #2196f3 100%);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 255, 221, 0.3);
  animation: slideInUp 0.6s ease-out;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.notification-content {
  padding: 20px 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.notification-text {
  flex: 1;
  color: white;
  text-align: center;
}

.notification-text h6 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
  font-weight: 500;
}

.notification-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.notification-actions .btn {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.notification-actions .btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.notification-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.notification-actions .btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: #2196f3;
  border-color: rgba(255, 255, 255, 0.9);
}

.notification-actions .btn-light:hover {
  background: white;
  color: #2196f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-close-notification {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.btn-close-notification:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Panel de información del mural - Rediseñado con colores principales */
.mural-info-panel {
  position: fixed;
  top: 50%;
  right: -450px;
  width: 450px;
  height: auto;
  max-height: 85vh;
  background: var(--white);
  border: 2px solid var(--accent-cyan);
  border-radius: 16px;
  box-shadow: -8px 0 30px rgba(0, 255, 221, 0.2),
    0 0 0 1px rgba(0, 255, 221, 0.1);
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-50%);
}

.mural-info-panel * {
  max-width: 100%;
  box-sizing: border-box;
}

.mural-info-panel.show {
  right: 30px !important;
  display: block !important;
}

.mural-info-header {
  position: relative;
  padding: 25px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 14px 14px 0 0;
  border-bottom: 3px solid var(--accent-cyan);
  overflow-x: hidden;
}

.mural-info-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(0, 255, 221, 0.2);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.mural-info-close:hover {
  background: var(--accent-cyan);
  color: var(--primary-black);
  transform: scale(1.1);
  box-shadow: var(--shadow-cyan);
}

.mural-cover-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

.mural-thumbnails {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  max-width: 100%;
}

.mural-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.mural-thumbnail:hover,
.mural-thumbnail.active {
  border-color: var(--accent-cyan);
  transform: scale(1.05);
  box-shadow: var(--shadow-cyan);
}

.mural-info-content {
  padding: 25px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mural-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-black);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mural-description {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mural-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.mural-action-btn {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mural-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--medium-gray);
}

.mural-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
}

.mural-meta-item i {
  color: var(--accent-cyan);
  font-size: 16px;
}

@media (max-width: 768px) {
  .mural-info-panel {
    width: 95%;
    right: -95%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
  }

  .mural-info-panel.show {
    right: 2.5% !important;
  }

  .mural-info-header {
    padding: 20px;
  }

  .mural-info-content {
    padding: 20px;
  }

  .mural-title {
    font-size: 20px;
  }

  .mural-description {
    font-size: 14px;
  }

  .mural-actions {
    flex-direction: column;
    gap: 10px;
  }

  .mural-action-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Estilos específicos para tablets/iPads */
@media (min-width: 769px) and (max-width: 1024px) {
  .map-container {
    height: calc(100vh - 80px);
    margin-top: 0;
  }

  .map-sidebar {
    width: 400px;
    padding: calc(80px + 1.5rem) 1.5rem 1.5rem 1.5rem;
    height: calc(100vh - 80px);
    position: fixed;
    left: -100%;
    top: 80px;
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .map-sidebar.show {
    left: 0;
  }

  #map {
    height: calc(100vh - 80px);
    width: 100%;
  }

  /* Ajustar botones para tablets */
  .my-location-btn {
    top: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .btn-floating {
    bottom: 140px;
    right: 25px;
    width: 60px;
    height: 60px;
    font-size: 22px;
  }

  .route-actions {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    min-width: 400px;
    padding: 16px 30px;
  }

  .route-actions .btn {
    font-size: 12px;
    padding: 12px 8px;
    height: 50px;
  }

  /* Mejorar el diseño de las tarjetas de ruta para tablets */
  .route-card {
    padding: 18px;
    margin-bottom: 15px;
  }

  .route-cover {
    width: 90px;
    height: 70px;
  }

  .route-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .route-meta {
    font-size: 13px;
    margin: 6px 0;
  }

  .route-stats {
    font-size: 12px;
    gap: 15px;
    margin-top: 10px;
  }

  /* Mejorar filtros para tablets */
  .filters-row {
    gap: 10px;
    margin-bottom: 18px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Mejorar el sistema de pestañas para tablets */
  .route-tab-btn {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .routes-tab-content {
    min-height: 450px;
  }

  .route-tab-panel {
    padding: 25px;
    min-height: 450px;
  }

  /* Mejorar el panel de información del mural para tablets */
  .mural-info-panel {
    width: 400px;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    max-height: 80vh;
  }

  .mural-info-panel.show {
    right: 20px !important;
  }

  .mural-info-header {
    padding: 30px;
  }

  .mural-info-content {
    padding: 30px;
  }

  .mural-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .mural-description {
    font-size: 17px;
    margin-bottom: 25px;
  }

  .mural-actions {
    gap: 15px;
    margin-top: 25px;
  }

  .mural-action-btn {
    padding: 16px 20px;
    font-size: 15px;
  }

  /* Mejorar la galería para tablets */
  .gallery-section {
    max-height: 45vh;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.2rem;
    max-height: 35vh;
  }

  /* Mejorar la notificación anónima para tablets */
  .anonymous-notification {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    min-width: 400px;
  }

  .notification-content {
    padding: 25px 50px;
  }

  .notification-text h6 {
    font-size: 20px;
  }

  .notification-text p {
    font-size: 15px;
  }

  .notification-actions .btn {
    font-size: 14px;
    padding: 12px 24px;
  }
}

/* Estilos específicos para tablets en modo landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .map-container {
    height: calc(100vh - 70px);
  }

  .map-sidebar {
    width: 350px;
    height: calc(100vh - 70px);
    padding: calc(70px + 1.2rem) 1.2rem 1.2rem 1.2rem;
    position: fixed;
    left: -100%;
    top: 70px;
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .map-sidebar.show {
    left: 0;
  }

  #map {
    height: calc(100vh - 70px);
    width: 100%;
  }

  .route-actions {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    min-width: 350px;
    bottom: 80px;
    padding: 14px 25px;
  }

  .route-actions .btn {
    font-size: 11px;
    padding: 10px 6px;
    height: 45px;
  }

  .btn-floating {
    bottom: 120px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .my-location-btn {
    top: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  /* Ajustar tarjetas de ruta para landscape */
  .route-card {
    padding: 15px;
    margin-bottom: 12px;
  }

  .route-cover {
    width: 80px;
    height: 60px;
  }

  .route-title {
    font-size: 14px;
  }

  .route-meta {
    font-size: 12px;
  }

  .route-stats {
    font-size: 11px;
    gap: 12px;
  }

  /* Ajustar panel de mural para landscape */
  .mural-info-panel {
    width: 350px;
    right: -350px;
    max-height: 85vh;
  }

  .mural-info-panel.show {
    right: 15px !important;
  }

  .mural-info-header {
    padding: 25px;
  }

  .mural-info-content {
    padding: 25px;
  }

  .mural-title {
    font-size: 24px;
  }

  .mural-description {
    font-size: 16px;
  }

  .mural-action-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  /* Ajustar galería para landscape */
  .gallery-section {
    max-height: 40vh;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 30vh;
  }

  /* Ajustar notificación para landscape */
  .anonymous-notification {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    min-width: 350px;
    bottom: 80px;
  }

  .notification-content {
    padding: 20px 40px;
  }

  .notification-text h6 {
    font-size: 18px;
  }

  .notification-text p {
    font-size: 14px;
  }

  .notification-actions .btn {
    font-size: 13px;
    padding: 10px 20px;
  }
}

/* Estilos específicos para tablets grandes (iPad Pro) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .map-container {
    height: calc(100vh - 90px);
    margin-top: 0;
  }

  .map-sidebar {
    width: 450px;
    padding: calc(90px + 2rem) 2rem 2rem 2rem;
    height: calc(100vh - 90px);
    position: fixed;
    left: -100%;
    top: 90px;
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .map-sidebar.show {
    left: 0;
  }

  #map {
    height: calc(100vh - 90px);
    width: 100%;
  }

  /* Ajustar botones para tablets grandes */
  .my-location-btn {
    top: 100px;
    right: 30px;
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .btn-floating {
    bottom: 160px;
    right: 30px;
    width: 65px;
    height: 65px;
    font-size: 24px;
  }

  .route-actions {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 700px;
    min-width: 450px;
    padding: 18px 35px;
  }

  .route-actions .btn {
    font-size: 13px;
    padding: 14px 10px;
    height: 55px;
  }

  /* Mejorar el diseño de las tarjetas de ruta para tablets grandes */
  .route-card {
    padding: 20px;
    margin-bottom: 18px;
  }

  .route-cover {
    width: 100px;
    height: 80px;
  }

  .route-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .route-meta {
    font-size: 14px;
    margin: 8px 0;
  }

  .route-stats {
    font-size: 13px;
    gap: 18px;
    margin-top: 12px;
  }

  /* Mejorar filtros para tablets grandes */
  .filters-row {
    gap: 12px;
    margin-bottom: 20px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* Mejorar el sistema de pestañas para tablets grandes */
  .route-tab-btn {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .routes-tab-content {
    min-height: 500px;
  }

  .route-tab-panel {
    padding: 30px;
    min-height: 500px;
  }

  /* Mejorar el panel de información del mural para tablets grandes */
  .mural-info-panel {
    width: 450px;
    right: -450px;
    top: 50%;
    transform: translateY(-50%);
    max-height: 85vh;
  }

  .mural-info-panel.show {
    right: 25px !important;
  }

  .mural-info-header {
    padding: 35px;
  }

  .mural-info-content {
    padding: 35px;
  }

  .mural-title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .mural-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .mural-actions {
    gap: 18px;
    margin-top: 30px;
  }

  .mural-action-btn {
    padding: 18px 22px;
    font-size: 16px;
  }

  /* Mejorar la galería para tablets grandes */
  .gallery-section {
    max-height: 50vh;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    max-height: 40vh;
  }

  /* Mejorar la notificación anónima para tablets grandes */
  .anonymous-notification {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 700px;
    min-width: 450px;
  }

  .notification-content {
    padding: 30px 60px;
  }

  .notification-text h6 {
    font-size: 22px;
  }

  .notification-text p {
    font-size: 16px;
  }

  .notification-actions .btn {
    font-size: 15px;
    padding: 14px 28px;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .map-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1200; /* Aumentado para estar por encima del mapa */
    transition: left 0.3s ease;
    /* Asegurar scroll suave en móviles */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Mejorar el padding para móviles - agregar espacio para el header */
    padding: calc(70px + 1rem) 1rem 1rem 1rem;
    /* Asegurar que el scroll funcione correctamente */
    touch-action: pan-y;
    overscroll-behavior: contain;
    /* Asegurar que el sidebar esté por encima del mapa */
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .map-sidebar.show {
    left: 0;
  }

  /* Prevenir scroll del mapa cuando el sidebar está abierto */
  body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Asegurar que el mapa no haga scroll cuando el sidebar está abierto */
  .map-container.sidebar-open #map {
    pointer-events: none;
    touch-action: none;
  }

  .gallery-section {
    max-height: 50vh;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .filters-section .row {
    margin: 0;
  }

  .filters-section .col-6 {
    padding: 0 0.25rem;
  }
}

@media (max-width: 480px) {
  .map-sidebar {
    padding: 1rem;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
  }

  .pagination-section .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Estilos para clustering de marcadores */
.cluster {
  background: var(--accent-cyan);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--primary-black);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-cyan);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: var(--shadow-cyan);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 255, 221, 0.3);
  }
  100% {
    box-shadow: var(--shadow-cyan);
  }
}

.mural-item {
  animation: fadeIn 0.3s ease-out;
}

/* Animación sutil para el botón móvil */
.mobile-toggle:focus {
  animation: buttonPulse 2s infinite;
  outline: none;
}

/* Estilos para scrollbar personalizado */
.map-sidebar::-webkit-scrollbar {
  width: 6px;
}

.map-sidebar::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.map-sidebar::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

.map-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan-dark);
}

/* Mejorar la barra de scroll en móviles */
@media (max-width: 768px) {
  .map-sidebar::-webkit-scrollbar {
    width: 4px; /* Más delgada en móviles */
  }

  .map-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 221, 0.6); /* Más sutil en móviles */
  }

  .map-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
  }
}

.gallery-container::-webkit-scrollbar {
  height: 6px;
}

.gallery-container::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.gallery-container::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

/* Estilos adicionales para responsive y botones */
@media (max-width: 768px) {
  .route-actions {
    bottom: 80px; /* Aumentado de 30px para que no tape el navbar (60px) + espacio (20px) */
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-width: none;
    min-width: auto;
    transform: none;
    padding: 12px 3px;
    animation: slideInUpMobile 0.6s ease-out;
    z-index: 1100; /* Por encima del mapa pero por debajo del sidebar */
  }

  .route-actions .btn {
    font-size: 10px;
    padding: 10px 4px;
    height: 44px;
  }

  .btn-floating {
    bottom: 170px; /* Aumentado de 120px para que quede por encima del navbar y route-actions */
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 20px;
    z-index: 1100; /* Por encima del mapa pero por debajo del sidebar */
  }

  .my-location-btn {
    top: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 16px;
    z-index: 1100; /* Por encima del mapa pero por debajo del sidebar */
  }
}

/* Ajuste adicional para pantallas pequeñas donde el navbar tiene 55px */
@media (max-width: 575px) {
  .route-actions {
    bottom: 75px; /* Navbar de 55px + espacio de 20px */
  }

  .btn-floating {
    bottom: 155px; /* Por encima del navbar y route-actions */
  }
}

@media (max-width: 768px) {
  .mural-info-panel {
    width: 90%;
    right: -90%;
    top: 50%;
    transform: translateY(-50%);
  }

  .mural-info-panel.show {
    right: 5% !important;
  }
}

@keyframes slideInUp {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUpMobile {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  to {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
}

@keyframes slideOutDownMobile {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100px);
    opacity: 0;
  }
}

@keyframes floatIn {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .anonymous-notification {
    bottom: 60px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-width: none;
    min-width: auto;
    transform: none;
    animation: slideInUpMobile 0.6s ease-out;
  }

  .notification-content {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .notification-text h6 {
    font-size: 16px;
  }

  .notification-text p {
    font-size: 13px;
  }

  .notification-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .notification-actions .btn {
    width: 100%;
    font-size: 12px;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .anonymous-overlay {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  /* Ocultar filtros desktop en móviles */
  .desktop-filters,
  .desktop-stats {
    display: none !important;
  }

  /* Mostrar desplegable de filtros solo en móviles */
  .filters-dropdown-wrapper {
    display: block;
  }

  .filters-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border: 2px solid var(--accent-cyan);
    background: var(--white);
    color: var(--primary-black);
  }

  .filters-dropdown-toggle:hover {
    background: var(--accent-cyan);
    color: var(--primary-black);
  }

  .filters-dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .filters-dropdown-toggle[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
  }

  .filters-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-btn {
    text-align: center;
    width: 100%;
    padding: 0.75rem;
  }

  /* Hacer tabs más visibles en móviles */
  .routes-tabs-header {
    background: var(--white);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 255, 221, 0.2);
    margin-bottom: 1rem;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .route-tab-btn {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--light-gray);
    color: var(--primary-black);
    transition: var(--transition);
  }

  .route-tab-btn:hover {
    background: rgba(0, 255, 221, 0.2);
    transform: translateY(-2px);
  }

  .route-tab-btn.active {
    background: var(--gradient-accent);
    color: var(--primary-black);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 255, 221, 0.3);
  }

  .route-tab-btn i {
    font-size: 1.1rem;
  }
}

.mural-action-btn.primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: 2px solid var(--primary-black);
}

.mural-action-btn.primary:hover {
  background: var(--accent-cyan);
  color: var(--primary-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan);
  border-color: var(--accent-cyan);
}

.mural-action-btn.secondary {
  background: var(--white);
  color: var(--primary-black);
  border: 2px solid var(--accent-cyan);
}

.mural-action-btn.secondary:hover {
  background: var(--accent-cyan);
  color: var(--primary-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan);
}

/* Estilos para el sistema de pestañas */
.routes-tabs-container {
  margin-bottom: 20px;
}

.routes-tabs-header {
  display: flex;
  background: var(--light-gray);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gray);
}

.route-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.route-tab-btn:hover {
  background: rgba(0, 255, 221, 0.1);
  color: var(--primary-black);
}

.route-tab-btn.active {
  background: var(--accent-cyan);
  color: var(--primary-black);
  font-weight: 600;
}

.route-tab-btn.active i {
  color: var(--primary-black);
}

.route-tab-btn:not(.active) i {
  color: var(--medium-gray);
}

.routes-tab-content {
  background: white;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-gray);
  border-top: none;
  min-height: 400px;
}

.route-tab-panel {
  display: none;
  padding: 20px;
  min-height: 400px;
}

.route-tab-panel.active {
  display: block;
}

.my-routes-filters {
  margin-bottom: 15px;
}

.my-routes-filters .form-select {
  font-size: 0.85rem;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  background: white;
  width: 100%;
}

/* Estilo para el prompt de login */
.login-prompt-content {
  text-align: center;
  padding: 40px 20px;
  color: var(--medium-gray);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-prompt-content i {
  font-size: 64px;
  color: var(--medium-gray);
  opacity: 0.3;
  margin-bottom: 20px;
}

.login-prompt-content p {
  margin: 0 0 20px 0;
  font-size: 1rem;
  max-width: 200px;
}

.my-route-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-gray);
  cursor: pointer;
  transition: var(--transition);
}

.my-route-card:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.my-route-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.3);
  background: rgba(0, 255, 221, 0.05);
}

.my-route-cover {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.my-route-cover img {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-route-cover i {
  color: var(--accent-cyan-dark);
  font-size: 28px;
}

.my-route-info {
  flex: 1;
  min-width: 0;
}

.my-route-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--primary-black);
  line-height: 1.3;
}

.my-route-card.active .my-route-title {
  color: var(--accent-cyan-dark);
}

.my-route-meta {
  margin-bottom: 6px;
}

.route-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.route-status i {
  font-size: 0.7rem;
}

.status-empty {
  background: #fff3cd;
  color: #856404;
}

.status-incomplete {
  background: #d1ecf1;
  color: #0c5460;
}

.status-private {
  background: #f8d7da;
  color: #721c24;
}

.status-public {
  background: #d4edda;
  color: #155724;
}

.my-route-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--medium-gray);
}

.my-route-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.my-route-stats span i {
  color: var(--accent-cyan-dark);
  font-size: 0.8rem;
}

.my-route-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.my-route-actions .btn {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.my-route-actions .btn-outline-primary {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-dark);
}

.my-route-actions .btn-outline-primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
}

.my-route-actions .btn-success {
  background: var(--gradient-accent);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
}

.my-route-actions .btn-success:hover {
  background: var(--accent-cyan-dark);
  border-color: var(--accent-cyan-dark);
  transform: translateY(-1px);
}

.my-route-actions .btn-outline-secondary {
  border-color: var(--border-gray);
  color: var(--medium-gray);
}

.my-route-actions .btn-outline-secondary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
}

.no-my-routes {
  text-align: center;
  padding: 20px;
  color: var(--medium-gray);
}

.no-my-routes i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-my-routes p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
}

.loading-my-routes {
  text-align: center;
  padding: 20px;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.loading-my-routes i {
  color: var(--accent-cyan);
}

/* Responsive para el sistema de pestañas */
@media (max-width: 768px) {
  .routes-tabs-container {
    margin-bottom: 15px;
  }

  .route-tab-btn {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .route-tab-btn i {
    font-size: 1rem;
  }

  .routes-tab-content {
    min-height: 350px;
  }

  .route-tab-panel {
    padding: 15px;
    min-height: 350px;
  }

  /* Mejorar estructura de my-route-card en móviles - más compacta */
  .my-route-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-gray);
  }

  .my-route-card .d-flex {
    flex-direction: column;
    gap: 0.75rem;
  }

  .my-route-cover {
    width: 100%;
    height: 100px;
    margin-right: 0;
  }

  .my-route-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .my-route-cover i {
    font-size: 1.75rem;
    color: var(--accent-cyan-dark);
  }

  .my-route-info {
    width: 100%;
  }

  .my-route-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--primary-black);
  }

  .my-route-card.active .my-route-title {
    color: var(--accent-cyan-dark);
  }

  .my-route-meta {
    margin-bottom: 0.5rem;
  }

  .route-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
  }

  .my-route-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 8px;
  }

  .my-route-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-gray);
  }

  .my-route-stats span i {
    font-size: 0.85rem;
    color: var(--accent-cyan-dark);
  }

  .my-route-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .my-route-actions .btn {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .my-route-actions .btn i {
    font-size: 0.9rem;
  }

  .login-prompt-content {
    padding: 30px 15px;
    min-height: 280px;
  }

  .login-prompt-content i {
    font-size: 48px;
  }

  .login-prompt-content p {
    font-size: 0.9rem;
  }
}

/* Estilos para la pestaña de Usuarios */
.user-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.user-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.user-avatar-small {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-black);
  font-weight: 600;
  font-size: 0.9rem;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
  line-height: 1.3;
}

.user-info small {
  display: block;
  font-size: 11px;
  color: #666;
  margin: 2px 0;
}

.user-actions {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.user-card:hover .user-actions {
  color: var(--accent-cyan);
}

.user-routes-menu {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  animation: slideDown 0.3s ease;
}

.user-route-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-route-item:hover {
  background: rgba(0, 255, 221, 0.1);
  transform: translateX(4px);
}

.user-route-info {
  flex: 1;
  min-width: 0;
}

.user-route-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

.user-route-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #666;
}

.user-route-meta span {
  display: flex;
  align-items: center;
}

.user-route-item i.fa-chevron-right {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
}

.loading-users,
.no-users,
.loading-user-routes,
.no-user-routes,
.error-user-routes {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
}

.loading-users i,
.loading-user-routes i {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--accent-cyan);
}

.no-users i,
.no-user-routes i,
.error-user-routes i {
  font-size: 48px;
  margin-bottom: 12px;
  color: #ccc;
}

.error-user-routes i {
  color: #dc3545;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
