/* assets/css/route-detail.css - Estilos para detalles de ruta */

/* Estilos para la información del marcador */
.marker-info {
  padding: 0.5rem !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  font-family: var(
    --font-family,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  gap: 0.5rem !important;
}

.marker-info h6 {
  color: var(--primary-black, #1a1a1a);
  font-weight: 600;
  margin: 0 !important;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  flex-shrink: 0;
}

.marker-info p {
  color: var(--dark-gray, #666);
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.marker-info small {
  color: var(--light-gray, #888);
  font-size: 0.7rem;
  line-height: 1.1;
}

.marker-photo {
  width: 100%;
  height: 65px;
  margin-bottom: 0;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  flex-shrink: 0;
}

.marker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.marker-photo img:hover {
  transform: scale(1.02);
}

.marker-info .btn {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

.marker-info .btn i {
  font-size: 0.75rem;
}

/* Mejorar los botones en el popup */
.marker-actions {
  display: flex !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: none !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  flex-grow: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

.marker-actions * {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.marker-info .btn,
.marker-actions .btn,
.marker-actions button {
  font-size: 0.85rem !important;
  padding: 0.55rem 0.8rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  width: 100% !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  background: var(--accent-cyan, #00ffdd) !important;
  color: var(--primary-black, #1a1a1a) !important;
  border: 2px solid var(--accent-cyan, #00ffdd) !important;
  box-shadow: 0 2px 8px rgba(0, 255, 221, 0.4) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  margin: 0 !important;
  cursor: pointer !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 36px !important;
  max-height: none !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

.marker-info .btn:hover {
  background: var(--accent-cyan-dark, #00d4b8) !important;
  border-color: var(--accent-cyan-dark, #00d4b8) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.4) !important;
}

.marker-info .btn i {
  font-size: 0.7rem;
  margin-right: 0.2rem;
}

/* Breadcrumb */
.route-breadcrumb {
  margin-bottom: 2rem;
}

.route-breadcrumb .breadcrumb {
  background: rgba(0, 255, 221, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.route-breadcrumb .breadcrumb-item a {
  color: var(--accent-cyan-dark);
  text-decoration: none;
  transition: var(--transition);
}

.route-breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-cyan);
}

.route-breadcrumb .breadcrumb-item.active {
  color: var(--primary-black);
}

/* Ajuste específico para la página de route */
body:not(.index-page):not(.map-page) .main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Route Hero - Nueva versión simple */
.route-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #343a40 50%, #1a1a1a 100%);
  color: white;
  padding: 2rem 0;
  margin-top: 50px;
}

.route-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.route-navigation {
  margin-top: 1rem;
}

.route-navigation .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  body:not(.index-page):not(.map-page) .main-content {
    padding-top: 0 !important;
  }

  .route-hero {
    padding: 1rem 0;
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .route-hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .route-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .route-navigation {
    margin-top: 0.75rem;
  }

  .route-navigation .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body:not(.index-page):not(.map-page) .main-content {
    padding-top: 0 !important;
  }

  .route-hero {
    padding: 0.75rem 0;
    margin-top: 25px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .route-hero .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .route-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .route-navigation {
    margin-top: 0.5rem;
  }

  .route-navigation .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.meta-item i {
  color: var(--accent-cyan);
  width: 18px;
  text-align: center;
}

.difficulty-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-easy {
  background: rgba(40, 167, 69, 0.2);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.difficulty-medium {
  background: rgba(255, 193, 7, 0.2);
  color: #ff9800;
  border: 1px solid #ff9800;
}

.difficulty-hard {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid #f44336;
}

.route-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.route-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.route-actions .btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
}

.route-actions .btn-success:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.route-actions .btn-primary {
  background: var(--gradient-accent);
  color: var(--primary-black);
  border: none;
}

.route-actions .btn-primary:hover {
  background: var(--accent-cyan-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cyan);
}

.route-actions .btn-warning {
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  color: var(--primary-black);
  border: none;
}

.route-actions .btn-warning:hover {
  background: linear-gradient(135deg, #ff8f00, #e65100);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Content Section */
.route-content {
  padding: 3rem 0;
  background: var(--light-gray);
}

/* Description */
.route-description {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-cyan);
}

.route-description h3 {
  color: var(--primary-black);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.route-description p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Map Section */
.route-map-section {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-left: 4px solid var(--success);
}

.route-map-section h3 {
  color: var(--primary-black);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.map-container {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: pan-x pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: height 0.3s ease;
}

/* Aumentar tamaño del mapa cuando no hay descripción */
.route-map-section.no-description .map-container {
  height: 600px;
}

/* Descripción del mural en el popup */
.marker-description {
  color: var(--medium-gray, #777);
  font-size: 0.7rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  max-height: 35px;
  overflow: hidden;
  padding: 0.25rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 4px;
  border-left: 2px solid var(--accent-cyan, #00ffdd);
}

#map {
  width: 100%;
  height: 100%;
}

.map-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}

.map-control-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--medium-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
  user-select: none;
  font-size: 1.1rem;
}

.map-control-btn:hover,
.map-control-btn:active,
.map-control-btn.active {
  background: var(--accent-cyan);
  color: var(--primary-black);
  border-color: var(--accent-cyan);
  transform: scale(1.05);
  box-shadow: var(--shadow-cyan);
}

.map-control-btn:active {
  transform: scale(0.95);
}

/* Estilos específicos para el botón de tipo de mapa */
#map-type-btn {
  transition: all 0.3s ease;
}

#map-type-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

#map-type-btn i {
  transition: transform 0.3s ease;
}

#map-type-btn:hover i {
  transform: rotate(15deg);
}

/* Estilos personalizados para las ventanas de información de Google Maps */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.gm-style .gm-style-iw-d {
  overflow: visible !important;
  border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Asegurar que el contenido del InfoWindow sea visible */
.gm-style .gm-style-iw-d > div {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Eliminar padding-top del contenedor del InfoWindow */
.gm-style .gm-style-iw-ch {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
  height: auto !important;
  min-height: auto !important;
}

.gm-style .gm-style-iw-t::after {
  background: linear-gradient(
    45deg,
    transparent 33.333%,
    #fff 33.333%,
    #fff 66.667%,
    transparent 66.667%
  ) !important;
  background-size: 12px 12px !important;
}

.gm-style .gm-style-iw-tc::after {
  background: linear-gradient(
    45deg,
    transparent 33.333%,
    #fff 33.333%,
    #fff 66.667%,
    transparent 66.667%
  ) !important;
  background-size: 12px 12px !important;
}

/* Mejorar el scrollbar en la ventana de información */
.gm-style .gm-style-iw-d::-webkit-scrollbar {
  width: 6px;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Estilos responsivos para ventanas de información */
@media (max-width: 768px) {
  .marker-info {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    padding: 0.25rem;
  }

  .marker-photo {
    height: 60px;
    margin-bottom: 0.25rem;
  }

  .marker-info h6 {
    font-size: 0.7rem;
    margin: 0.1rem 0 0.35rem 0;
  }

  .marker-actions {
    margin-top: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .marker-info .btn {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.65rem !important;
    font-weight: 700 !important;
    background: var(--accent-cyan, #00ffdd) !important;
    color: var(--primary-black, #1a1a1a) !important;
    border: 2px solid var(--accent-cyan, #00ffdd) !important;
    box-shadow: 0 3px 10px rgba(0, 255, 221, 0.4) !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }

  .marker-info .btn:active {
    background: var(--accent-cyan-dark, #00d4b8) !important;
    border-color: var(--accent-cyan-dark, #00d4b8) !important;
  }
}

/* Controles de navegación móvil */
.mobile-map-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 1000;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.mobile-control-btn {
  padding: 0.75rem 1rem;
  background: rgba(26, 26, 26, 0.9);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-control-btn:hover,
.mobile-control-btn:active {
  background: var(--accent-cyan);
  color: var(--primary-black);
  transform: translateY(-2px);
}

.mobile-control-btn:active {
  transform: translateY(0);
}

/* Murals Section */
.route-murals-section {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-cyan);
}

.route-murals-section h3 {
  color: var(--primary-black);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.no-murals {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--medium-gray);
}

.no-murals h5 {
  color: var(--primary-black);
  margin-bottom: 1rem;
}

/* Murals Timeline */
.murals-timeline {
  position: relative;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.murals-timeline::-webkit-scrollbar {
  width: 6px;
}

.murals-timeline::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.murals-timeline::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

.murals-timeline::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan-dark);
}

.murals-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-cyan),
    var(--accent-cyan-light)
  );
  z-index: 1;
}

.mural-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-left: 40px;
}

.mural-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--gradient-accent);
  color: var(--primary-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 255, 221, 0.3);
}

.step-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.mural-card {
  background: rgba(0, 255, 221, 0.02);
  border-radius: 8px;
  padding: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0, 255, 221, 0.1);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mural-card:hover {
  background: rgba(0, 255, 221, 0.05);
  box-shadow: var(--shadow-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.mural-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border-gray);
}

.mural-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.mural-card:hover .mural-image img {
  transform: scale(1.05);
}

.mural-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 2rem;
  background: var(--border-gray);
}

.mural-info {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.mural-info h5 {
  color: var(--primary-black);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
}

.mural-artist {
  color: var(--accent-cyan-dark);
  margin-bottom: 0.2rem;
  font-weight: 500;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
}

.mural-address {
  color: var(--medium-gray);
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
}

.mural-description {
  color: var(--medium-gray);
  line-height: 1.2;
  font-size: 0.7rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mural-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: center;
}

/* Sidebar Cards */
.creator-card,
.route-stats-card,
.quick-actions-card,
.related-routes-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-cyan);
}

.creator-card h4,
.route-stats-card h4,
.quick-actions-card h4,
.related-routes-card h4 {
  color: var(--primary-black);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Creator Info */
.creator-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-black);
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-details h5 {
  margin-bottom: 0.25rem;
  color: var(--primary-black);
}

.creator-details p {
  margin-bottom: 0.25rem;
  color: var(--accent-cyan-dark);
}

.creator-details small {
  color: var(--medium-gray);
}

/* Similar Routes Styles */
.similar-routes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.similar-route-item {
  background: rgba(0, 255, 221, 0.02);
  border: 1px solid rgba(0, 255, 221, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: var(--transition);
}

.similar-route-item:hover {
  background: rgba(0, 255, 221, 0.05);
  border-color: rgba(0, 255, 221, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.similar-route-item .route-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.similar-route-item .route-title a {
  color: var(--primary-black);
  transition: var(--transition);
}

.similar-route-item .route-title a:hover {
  color: var(--accent-cyan-dark);
}

.route-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.route-stats {
  display: flex;
  align-items: center;
  color: var(--medium-gray);
  font-size: 0.85rem;
}

.route-author {
  margin-top: 0.5rem;
}

.no-similar-routes {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--medium-gray);
}

.no-similar-routes i {
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* Route Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(0, 255, 221, 0.05);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Panel de información del marcador mejorado - Estilos consolidados arriba */

/* Estilos de h6 consolidados arriba */

/* Estilos de p y small consolidados arriba */

/* Overlay de pantalla completa */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary-black);
  z-index: 10000;
  display: none;
}

.fullscreen-overlay.active {
  display: block;
}

.fullscreen-map {
  width: 100%;
  height: 100%;
}

.fullscreen-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
}

.fullscreen-close {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary-black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fullscreen-close:hover {
  background: var(--white);
  transform: scale(1.1);
}

/* Indicador de carga del mapa */
.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  color: var(--medium-gray);
}

.map-loading .spinner-border {
  color: var(--accent-cyan);
}

/* Toast notifications mejoradas */
.toast-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--primary-black);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
  backdrop-filter: blur(10px);
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: #dc3545;
}

.toast-warning {
  background: var(--warning);
  color: var(--primary-black);
}

.toast-info {
  background: #17a2b8;
}

/* Responsive Design */
@media (max-width: 991px) {
  .route-title {
    font-size: 2rem;
  }

  .route-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .creator-card,
  .route-stats-card,
  .quick-actions-card,
  .related-routes-card {
    margin-bottom: 2rem;
  }

  .mural-card {
    flex-direction: column;
    text-align: center;
  }

  .mural-image {
    width: 100%;
    height: 200px;
    align-self: center;
  }

  .mural-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .gm-style .gm-style-iw-c {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    min-height: 190px !important;
    max-height: none !important;
  }

  .gm-style .gm-style-iw-d {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .route-hero {
    padding: 2rem 0;
    margin-top: 30px; /* Compensar header más pequeño en móviles */
  }

  .route-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .route-navigation {
    margin-top: 0.5rem;
  }

  .route-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .route-actions {
    flex-direction: column;
    width: 100%;
  }

  .route-actions .btn {
    width: 100%;
    text-align: center;
  }

  .map-container {
    height: 350px;
    border-radius: 8px;
  }

  /* Aumentar tamaño del mapa cuando no hay descripción en móviles */
  .route-map-section.no-description .map-container {
    height: 500px;
  }

  .map-controls {
    top: 10px;
    right: 10px;
    gap: 0.4rem;
  }

  .map-control-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .mobile-map-controls {
    bottom: 10px;
    gap: 0.4rem;
  }

  .mobile-control-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .toast-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .creator-info {
    flex-direction: column;
    text-align: center;
  }

  .marker-info {
    max-width: 260px;
    padding: 0.75rem;
    max-height: 300px;
  }

  .marker-photo img {
    max-width: 220px;
    max-height: 150px;
  }

  .marker-info h6 {
    font-size: 0.7rem;
  }

  .marker-info p {
    font-size: 0.85rem;
  }

  .marker-info small {
    font-size: 0.75rem;
  }

  .marker-info .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .marker-info {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0.3rem;
  }

  .gm-style .gm-style-iw-c {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: auto !important;
    min-height: 180px !important;
    max-height: none !important;
  }

  .gm-style .gm-style-iw-d {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .route-hero {
    padding: 1.5rem 0;
    margin-top: 30px; /* Compensar header más pequeño en móviles */
  }

  .route-title {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }

  .route-navigation {
    margin-top: 0.3rem;
  }

  .route-content {
    padding: 1.5rem 0;
  }

  .route-description,
  .route-map-section,
  .route-murals-section,
  .creator-card,
  .route-stats-card,
  .quick-actions-card,
  .related-routes-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .route-title {
    font-size: 1.5rem;
  }

  .map-container {
    height: 250px;
  }

  /* Aumentar tamaño del mapa cuando no hay descripción en pantallas pequeñas */
  .route-map-section.no-description .map-container {
    height: 400px;
  }

  .route-murals-section {
    margin: 0.5rem 0;
    padding: 0.75rem;
  }

  .route-murals-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .murals-timeline {
    max-height: 350px;
  }

  .mural-step {
    padding-left: 35px;
    margin-bottom: 0.75rem;
  }

  .step-number {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .murals-timeline::before {
    left: 11px;
  }

  .mural-card {
    padding: 0.6rem;
    gap: 0.6rem;
    flex-direction: row;
    align-items: center;
  }

  .mural-image {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
  }

  .mural-info {
    flex: 1;
    min-width: 0;
  }

  .mural-info h5 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mural-artist {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mural-address {
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mural-description {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.2;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .map-container {
    height: 300px;
    border-radius: 6px;
  }

  .map-controls {
    gap: 0.3rem;
  }

  .map-control-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .mobile-map-controls {
    bottom: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
  }

  .marker-info {
    max-width: 230px;
    padding: 0.6rem;
    max-height: 260px;
  }

  .marker-photo img {
    max-width: 180px;
    max-height: 120px;
  }

  .marker-actions {
    flex-direction: column;
  }

  .marker-info .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .mobile-control-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    min-width: 60px;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.route-description,
.route-map-section,
.route-murals-section {
  animation: fadeInUp 0.6s ease-out;
}

.mural-step {
  animation: slideInLeft 0.5s ease-out;
}

.creator-card,
.route-stats-card,
.quick-actions-card,
.related-routes-card {
  animation: fadeInUp 0.4s ease-out;
}

/* Estados de fullscreen */
.map-container:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-black);
}

.map-container:fullscreen #map {
  width: 95vw;
  height: 95vh;
  border-radius: 0;
}

/* Mejoras visuales */
.route-hero {
  position: relative;
}

.route-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent);
}

.mural-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 45px;
  width: 10px;
  height: 2px;
  background: var(--accent-cyan);
  z-index: 2;
}

/* Estados de hover mejorados */
.mural-card:hover .step-number {
  background: var(--accent-cyan-dark);
  transform: scale(1.1);
}

.stat-item:hover .stat-value {
  color: var(--accent-cyan);
}

.creator-avatar:hover {
  transform: scale(1.05);
}

/* Efectos especiales */
.step-number {
  position: relative;
  overflow: hidden;
}

.step-number::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.step-number:hover::after {
  left: 100%;
}

/* Mejoras para táctil */
@media (hover: none) and (pointer: coarse) {
  .map-control-btn {
    width: 50px;
    height: 50px;
  }

  .mobile-control-btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .mural-card {
    padding: 1.2rem;
  }
}

/* Estados especiales del mapa */
.map-container.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 250, 0.9);
  z-index: 998;
  backdrop-filter: blur(2px);
}

/* Animaciones suaves */
.map-control-btn,
.mobile-control-btn {
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Accesibilidad mejorada */
.map-control-btn:focus,
.mobile-control-btn:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Efectos de vibración para móvil */
@media (max-width: 768px) {
  .map-control-btn:active,
  .mobile-control-btn:active {
    animation: tapFeedback 0.1s ease-out;
  }
}

@keyframes tapFeedback {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Alerta de ruta simplificada */
.route-info-alert {
  margin: 1rem 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border-left: 4px solid #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
  animation: slideInDown 0.4s ease-out;
}

/* Alerta de advertencia para ruta mínima */
.route-info-alert.alert-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  border-left: 4px solid #ff9800;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.route-info-alert .btn-close {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.route-info-alert .btn-close:hover {
  opacity: 1;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para la alerta */
@media (max-width: 768px) {
  .route-info-alert {
    margin: 0.75rem 0;
    font-size: 0.9rem;
  }

  .route-info-alert .btn-close {
    padding: 0.5rem;
  }
}

/* Ocultar el botón de cierre de Google Maps */
.gm-style .gm-style-iw-t button {
  display: none !important;
}

/* Indicador de scroll en el popup - Comentado para no interferir con el botón */
/* .marker-info::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
  border-radius: 0 0 8px 8px;
} */

/* ==================== ESTILOS PARA COMENTARIOS DE RUTAS ==================== */

.route-comments-section {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gray);
}

.route-comments-section h3 {
  color: var(--primary-black);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0.5rem;
}

.add-comment-form {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.9) 0%,
    rgba(241, 245, 249, 0.9) 100%
  );
  border-radius: 12px;
  border: 2px solid rgba(0, 255, 221, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.add-comment-form textarea {
  border: 2px solid rgba(0, 255, 221, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  min-height: 80px;
  resize: vertical;
}

.add-comment-form textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.3rem rgba(0, 255, 221, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 1);
}

.add-comment-form .form-text {
  text-align: right;
  font-size: 0.8rem;
  color: var(--medium-gray);
  margin-top: 0.5rem;
}

.add-comment-form .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.add-comment-form .btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-cyan-dark) 100%
  );
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 2px 8px rgba(0, 255, 221, 0.3);
}

.add-comment-form .btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--accent-cyan-dark) 0%,
    var(--accent-cyan) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.4);
}

.add-comment-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-prompt {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 255, 221, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(0, 255, 221, 0.2);
  margin-bottom: 1rem;
}

.login-prompt a {
  color: var(--accent-cyan-dark);
  font-weight: 500;
}

.login-prompt a:hover {
  text-decoration: underline !important;
  color: var(--accent-cyan);
}

.comments-list {
  max-height: 500px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 255, 221, 0.02);
  border: 1px solid rgba(0, 255, 221, 0.1);
  transition: all 0.3s ease;
}

.comment-item:hover {
  background: rgba(0, 255, 221, 0.05);
  border-color: rgba(0, 255, 221, 0.2);
  transform: translateX(3px);
}

.reply-item {
  margin-left: 2rem;
  margin-top: 1rem;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(241, 245, 249, 0.95) 100%
  );
  border-left: 4px solid var(--accent-cyan);
  position: relative;
  padding: 1rem;
}

.reply-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 221, 0.3), transparent);
}

.reply-item .comment-avatar {
  width: 32px;
  height: 32px;
  border-width: 2px;
}

.reply-item .comment-author-info strong {
  font-size: 0.85rem;
}

.reply-item .comment-author-info small {
  font-size: 0.7rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 255, 221, 0.2);
  object-fit: cover;
}

.comment-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 255, 221, 0.4);
}

.comment-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.comment-author-info strong {
  font-weight: 600;
  color: var(--primary-black);
  font-size: 0.9rem;
  line-height: 1.2;
}

.comment-author-info small {
  font-size: 0.75rem;
  color: var(--medium-gray);
  font-weight: 400;
}

.comment-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.comment-username {
  font-weight: 600;
  color: var(--accent-cyan-dark);
  font-size: 0.85rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--medium-gray);
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.comment-actions .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.comment-actions .btn-outline-secondary {
  background: rgba(108, 117, 125, 0.1);
  border-color: rgba(108, 117, 125, 0.2);
  color: var(--medium-gray);
}

.comment-actions .btn-outline-secondary:hover {
  background: rgba(108, 117, 125, 0.2);
  border-color: rgba(108, 117, 125, 0.3);
  color: var(--primary-black);
  transform: translateY(-1px);
}

.comment-actions .btn-outline-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.comment-actions .btn-outline-danger:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
  transform: translateY(-1px);
}

.comment-content {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-black);
  margin-bottom: 0.5rem;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--primary-black);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
  white-space: pre-wrap;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.comment-reply {
  margin-top: 0.5rem;
}

.reply-btn {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  background: rgba(0, 255, 221, 0.1);
  border: 1px solid rgba(0, 255, 221, 0.2);
  color: var(--accent-cyan-dark);
  transition: var(--transition);
}

.reply-btn:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  transform: translateY(-1px);
}

.reply-form {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 255, 221, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 221, 0.1);
}

.reply-form textarea {
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  padding: 0.4rem;
  font-size: 0.85rem;
  transition: var(--transition);
  background: var(--white);
}

.reply-form textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 221, 0.25);
  outline: none;
}

.reply-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.reply-actions .btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

.comment-replies {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(0, 255, 221, 0.2);
  position: relative;
}

.comment-replies::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -0.5rem;
  width: 3px;
  height: 1rem;
  background: linear-gradient(180deg, rgba(0, 255, 221, 0.4), transparent);
}

.no-comments {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--medium-gray);
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.8) 0%,
    rgba(241, 245, 249, 0.8) 100%
  );
  border-radius: 12px;
  border: 2px dashed rgba(0, 255, 221, 0.3);
  margin: 1rem 0;
}

.no-comments i {
  display: block;
  margin-bottom: 1rem;
  opacity: 0.6;
  color: var(--accent-cyan);
  font-size: 3rem;
}

.no-comments p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: var(--primary-black);
}

/* Responsive para comentarios */
@media (max-width: 768px) {
  .route-comments-section {
    margin: 0.75rem 0;
    padding: 0.75rem;
  }

  .route-comments-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .add-comment-form {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .add-comment-form textarea {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .comment-item {
    padding: 0.6rem;
    margin-bottom: 0.75rem;
  }

  .comment-item.reply-item {
    margin-left: 1rem;
    margin-top: 0.5rem;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0;
    border-bottom: none;
  }

  .comment-actions {
    align-self: flex-end;
  }

  .comment-avatar {
    width: 28px;
    height: 28px;
  }

  .comment-username {
    font-size: 0.8rem;
  }

  .comment-date {
    font-size: 0.7rem;
  }

  .comment-content {
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
  }

  .comment-text {
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
  }

  .comment-replies {
    padding-left: 0.5rem;
    margin-top: 0.5rem;
  }

  .reply-btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .reply-form {
    padding: 0.6rem;
    margin-top: 0.5rem;
  }

  .reply-form textarea {
    padding: 0.35rem;
    font-size: 0.8rem;
  }

  .reply-actions {
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.4rem;
  }

  .reply-actions .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .no-comments {
    padding: 1.5rem 0.75rem;
  }
}

/* Animaciones para comentarios */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-item {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reply-item {
  animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reply-form {
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-comment-form {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estados de carga */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==================== ESTILOS ADICIONALES DESDE ROUTE.PHP ==================== */

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 999;
}

.map-control-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  margin: 2px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.map-control-btn.active {
  background: #00ffdd;
  color: #1a1a1a;
}

/* Estilos para el botón de cerrar en popups de murales */
.close-marker-btn {
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-marker-btn:hover {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
  transform: scale(1.1);
}

.close-marker-btn:active {
  transform: scale(0.95);
}

/* Mejorar el botón en móviles */
@media (max-width: 768px) {
  .close-marker-btn {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .marker-actions .btn {
    margin: 2px;
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* Estilos para móviles */
@media (max-width: 991px) {
  .route-actions .btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .route-actions .btn-group {
    width: 100%;
  }

  .route-actions .btn-group .dropdown-toggle {
    width: 100%;
  }

  .route-actions .btn-group .dropdown-menu {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .route-actions {
    margin-top: 1rem;
  }

  .route-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .route-actions .btn i {
    margin-right: 0.25rem;
  }
}

/* ==================== CORRECCIONES PARA RESPONSIVE MÓVIL ==================== */

/* Prevenir scroll horizontal en móviles */
@media (max-width: 768px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* Equilibrar márgenes laterales */
  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Asegurar que el contenedor principal esté centrado */
  .main-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Asegurar que el contenido principal no cause overflow */
  .route-hero {
    padding: 1rem 0;
    overflow-x: hidden;
  }

  .route-content {
    padding: 1rem 0;
    overflow-x: hidden;
  }

  /* Corregir el título para que no se desborde */
  .route-title {
    font-size: 1.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  /* Botón de navegación responsive */
  .route-navigation .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .route-navigation .btn i {
    font-size: 1rem;
  }

  /* Mejorar las tarjetas de información */
  .route-description,
  .route-map-section,
  .route-murals-section,
  .creator-card,
  .route-stats-card,
  .quick-actions-card,
  .related-routes-card {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  /* Asegurar que las filas de Bootstrap no tengan márgenes desiguales */
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col-lg-8,
  .col-lg-4 {
    padding-left: 0;
    padding-right: 0;
  }

  /* Corregir el contenedor del mapa */
  .map-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  /* Mejorar los controles del mapa */
  .map-controls {
    top: 8px;
    right: 8px;
    gap: 0.3rem;
  }

  .map-control-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    margin: 1px;
  }

  /* Corregir las acciones de la ruta */
  .route-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .route-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
  }

  /* Mejorar la información del creador */
  .creator-info {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .creator-avatar {
    align-self: center;
  }

  /* Corregir la grid de estadísticas */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
  }

  .stat-item {
    padding: 0.75rem;
    text-align: center;
  }

  /* Mejorar los botones de acciones rápidas */
  .quick-actions-card .d-grid {
    gap: 0.5rem;
  }

  .quick-actions-card .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Corregir la sección de murales */
  .murals-timeline {
    max-height: 300px;
    padding-right: 0;
    margin-right: 0;
  }

  /* Compensar el scrollbar para equilibrar márgenes */
  .murals-timeline::-webkit-scrollbar {
    width: 4px;
  }

  .murals-timeline::-webkit-scrollbar-track {
    background: transparent;
  }

  .murals-timeline::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
  }

  .mural-step {
    padding-left: 30px;
    margin-bottom: 0.6rem;
  }

  .step-number {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    left: 0;
  }

  .murals-timeline::before {
    left: 10px;
  }

  .mural-card {
    padding: 0.4rem;
    gap: 0.4rem;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mural-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .mural-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .mural-info h5 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mural-artist {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mural-address {
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mural-description {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.2;
    margin-bottom: 0.3rem;
  }

  .mural-actions {
    flex-direction: column;
    gap: 0.3rem;
    align-self: flex-start;
  }

  .mural-actions .btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: auto;
  }

  /* Corregir las notificaciones toast */
  .toast-notification {
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
  }

  /* Mejorar los comentarios */
  .route-comments-section {
    margin: 0.5rem 0;
    padding: 0.6rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  /* Compensar scrollbar en comentarios */
  .comments-list {
    padding-right: 0;
    margin-right: 0;
  }

  .comments-list::-webkit-scrollbar {
    width: 4px;
  }

  .comments-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .comments-list::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
  }

  .comment-item {
    padding: 0.5rem;
    margin-bottom: 0.6rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .comment-item.reply-item {
    margin-left: 0.75rem;
    margin-top: 0.5rem;
  }

  .comment-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0.25rem 0;
  }

  .comment-text {
    padding: 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 2px solid var(--accent-cyan);
  }

  /* Corregir los formularios */
  .add-comment-form,
  .reply-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .add-comment-form textarea,
  .reply-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Rutas similares responsive */
  .similar-route-item {
    padding: 0.75rem;
  }

  .route-meta {
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .similar-route-item .route-title {
    font-size: 0.9rem;
  }
}

/* Correcciones adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }

  .route-hero {
    padding: 1rem 0;
    margin-top: 25px; /* Compensar header más pequeño en móviles pequeños */
  }

  .route-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }

  .route-navigation {
    margin-top: 0.25rem;
  }

  .route-navigation .btn i {
    font-size: 0.9rem;
  }

  .route-description,
  .route-map-section,
  .route-murals-section,
  .creator-card,
  .route-stats-card,
  .quick-actions-card,
  .related-routes-card {
    padding: 0.6rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .map-container {
    height: 250px;
  }

  .map-control-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .mural-card {
    padding: 0.4rem;
    gap: 0.4rem;
  }

  .mural-image {
    width: 45px;
    height: 45px;
  }

  .mural-info h5 {
    font-size: 0.75rem;
  }

  .mural-artist {
    font-size: 0.65rem;
  }

  .mural-address {
    font-size: 0.6rem;
  }

  .mural-description {
    font-size: 0.6rem;
  }

  .mural-actions .btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  /* Reducir aún más los márgenes en pantallas muy pequeñas */
  .route-comments-section {
    padding: 0.5rem;
    margin: 0.4rem 0;
  }

  .comment-item {
    padding: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .add-comment-form,
  .reply-form {
    padding: 0.5rem;
  }

  /* Asegurar equilibrio perfecto en pantallas muy pequeñas */
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Rutas similares en pantallas muy pequeñas */
  .similar-route-item {
    padding: 0.6rem;
  }

  .similar-route-item .route-title {
    font-size: 0.85rem;
  }

  .route-stats {
    font-size: 0.8rem;
  }
}

/* Controles del propietario de la ruta */
.owner-controls-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.owner-controls-card h4 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-controls-card .alert {
  border: none;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.owner-controls-card .alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.owner-controls-card .alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #a8e6cf 100%);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.owner-controls-card .alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.owner-controls-card .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.owner-controls-card .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.owner-controls-card .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.owner-controls-card .btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  border: none;
  color: #212529;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.owner-controls-card .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  color: #212529;
}

.owner-controls-card .btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.owner-controls-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.owner-controls-card .btn-outline-primary {
  border: 2px solid #007bff;
  color: #007bff;
  background: transparent;
  transition: all 0.3s ease;
}

.owner-controls-card .btn-outline-primary:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

@media (max-width: 480px) {
  .owner-controls-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .owner-controls-card .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
