.card-title {
  font-size: 1.1rem; /* Tamaño base */
  white-space: normal; /* Permitimos que el texto se divida en varias líneas si es necesario */
  word-wrap: break-word; /* Permite que las palabras largas se dividan si es necesario */
  hyphens: auto; /* Permite la separación de palabras si el texto es largo */
}

/* Estilo general de las tarjetas */
.card {
  width: 10.5rem; /* Ancho más pequeño para las tarjetas */
  height: 250px; /* Altura más pequeña */
 
}

.tarjeta-destino {
  height: 300px;          /* Altura fija para todas las tarjetas */
  width: 100%;            /* Ocupa todo el ancho del swiper slide */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.img-tarjeta {
  height: 120px;          /* Altura uniforme para todas las imágenes */
  object-fit: cover;
  width: 100%;
}


.highlight {
  border: 2px solid #ff9900de; /* Un borde azul, por ejemplo */
  box-shadow: 0 0 10px rgba(255, 174, 0, 0.89); /* Sombra suave */
}

/* Estilo personalizado para el botón "Siguiente" */
#btn-siguiente {
  background-color: #ff9900de;
  border-color: #ff9900de;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  transition: transform 0.3s ease;
}

#btn-siguiente:hover {
  transform: scale(1.05);
}

#btn-siguiente:active {
  background-color: #ff9900de;
}

.text-orange {
  color: #f57c00;
}

.btn-outline-secondary {
  border-color: #f57c00;
  color: #f57c00;
}

.btn-outline-secondary:hover {
  background-color: #f57c00;
  color: white;
}


#miRuta {
  min-height: 600px;              /* ✅ Tamaño inicial atractivo */
  max-height: 900px;               /* ✅ Límite máximo antes de scroll */
  overflow-y: auto;               /* ✅ Aparece scroll si hay muchos ítems */
  padding-right: 6px;             /* Espacio para que no tape la barra */
  transition: all 0.3s ease;      /* Suaviza el crecimiento */
}

#miRuta::-webkit-scrollbar {
  width: 8px;
}

#miRuta::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#miRuta::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}


/*modal login*/
.auth-card {
  transition: all 0.3s ease;
}

.auth-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.auth-header i {
  color: #f57c00;
}

.text-small {
  font-size: 0.85rem;
}

.modal-content {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
}

.modal-body {
  position: relative;
  min-height: 400px;
}

.auth-header h5 {
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Estilo principal del Offcanvas */
#infoLateral {
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#infoLateral .offcanvas-header {
    border-bottom: 2px solid #b96e0b;
}

#infoLateral .offcanvas-body {
    padding: 20px 10px;
}

/* Botón de Cerrar */
#infoLateral .btn-close {
    border: none;
    background-color: transparent;
    font-size: 1.5rem;
}

/* Imagen */
#infoImg {
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Secciones de información */
.info-section {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Títulos y texto */
.info-section p {
    margin: 0;
}

.info-section .fw-bold {
    color: #333;
    font-size: 1.1rem;
}

.info-section .descripcion {
    font-size: 1rem;
    color: #555;
    text-align: justify;
}

/* Categoría */
#infoCategoria {
    font-size: 1rem;
    color: #ff9900; /* Color destacado */
}

/* Animación para mostrar el offcanvas */
#infoLateral {
    transition: transform 0.3s ease-in-out;
}

#infoLateral.show {
    transform: translateX(0);
}

#infoLateral:not(.show) {
    transform: translateX(100%);
}

.mapboxgl-popup-content {
    padding: 12px 16px !important;
    font-family: 'Bahnschrift', sans-serif;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    background: #fff;
    max-width: 280px;
    position: relative;
}

.custom-popup h3 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.popup-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #ff5500;
    border: none;
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease;
}

.popup-close-btn:hover {
    background: #e04000;
}
