/* Estilos generales del planificador */
.route-planner {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para los inputs de inicio/fin de ruta */
.route-endpoints .form-group {
  margin-bottom: 15px;
}

.route-endpoints input {
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Estilos para las pestañas */
.route-tabs .nav-tabs {
  border-bottom: 2px solid #f2f2f2;
}

.route-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 500;
  padding: 10px 20px;
}

.route-tabs .nav-link.active {
  border-bottom: 2px solid #ffc107;
  background: none;
}

/* Estilos para el selector de días */
.days-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.calendar-btn {
  padding: 8px 12px;
}

.day-pills {
  display: flex;
  gap: 5px;
  flex-grow: 1;
}

.day-pill {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-buttons {
  display: flex;
  gap: 5px;
}

/* Estilos para la lista de rutas */
.day-section {
  margin-bottom: 20px;
}

.day-header {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
}

.day-header h6 {
  margin: 0;
  flex-grow: 1;
}

.day-header .date {
  color: #666;
  margin-right: 10px;
}

/* Estilos para los items de ruta */
.route-item {
  display: flex;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin: 10px 0;
  gap: 15px;
}

.route-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.route-item img:not([src]),
.route-item img[src=""],
.route-item img.img-error {
  opacity: 0.5;
  background-color: #f5f5f5;
}

.route-info {
  flex-grow: 1;
}

.route-info h6 {
  margin: 0 0 5px 0;
  font-weight: 600;
}

.route-info p {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 10px 0;
}

.route-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85em;
  color: #666;
}

.route-stats i {
  color: #ffc107;
  margin-right: 5px;
}

.route-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.route-actions .btn-link {
  color: #666;
  padding: 5px;
}

.route-actions .btn-link i.active,
.route-actions .btn-link:hover i {
  color: #ffc107;
}

/* Estilos para los botones inferiores */
.bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bottom-actions .btn {
  padding: 10px;
}

/* Estilos para el aviso de rutas discontinuas */
.route-warning {
  background: #fff9e6;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
}

.route-warning p {
  margin: 5px 0;
  font-size: 0.9em;
}

.route-warning .btn-group {
  margin-top: 10px;
}

/* Estilos para los iconos de estado */
.fa-star.active {
  color: #ffc107;
}

.fa-times {
  color: #dc3545;
}

.fa-plus {
  color: #28a745;
}

.suggester {
  max-height: 40rem;
  overflow: auto;
}
.suggester .input-txt {
  width: 100%;
  padding: 1rem;
  border: 1px solid #f7d117;
  border-radius: 25px;
}
.suggester ._dots {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3; /* Limita a 3 líneas */
  text-overflow: ellipsis;
}

/* Estilos para los días */
.day-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.day-pill-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.day-pill {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.day-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.day-pill.active {
  background-color: #f7d117;
  border-color: #f7d117;
  color: #000;
}

.day-controls {
  display: flex;
  gap: 2px;
}

.move-day {
  padding: 2px 5px;
  font-size: 12px;
  color: #6c757d;
}

.move-day:hover:not(.disabled) {
  color: #f7d117;
}

.move-day.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Estilos para el contenedor de días */
.days-selector {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

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

.action-buttons .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Estilos para el scroll horizontal */
.day-pills::-webkit-scrollbar {
  height: 6px;
}

.day-pills::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.day-pills::-webkit-scrollbar-thumb {
  background: #f7d117;
  border-radius: 3px;
}

.day-pills::-webkit-scrollbar-thumb:hover {
  background: #e6c215;
}

.accordion .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 0.5rem;
}
.accordion .accordion-item .accordion-header {
  margin: 0;
}
.accordion .accordion-item .accordion-header .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  font-weight: bold;
  font-size: 1.2rem;
}
.accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
  color: #0c63e4;
  background-color: #f7d117;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.accordion .accordion-item .accordion-header .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}
.accordion .accordion-item .accordion-header .accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}
.accordion .accordion-item .accordion-collapse {
  border: 0;
}
.accordion .accordion-item .accordion-collapse .accordion-body {
  padding: 1rem;
}

.favorite-image {
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
}

.favorite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.favorite-image:hover img {
  transform: scale(1.05);
}

.favorite-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.favorite-image:hover::before {
  opacity: 1;
}

.popup-hover-travel {
  position: absolute;
  top: 0rem;
  margin: 2rem;
  z-index: 99;
  width: 20rem;
  display: none;
  background: white;
  border-radius: 15px;
  padding: 1rem;
}
.popup-hover-travel a {
  color: inherit; /* blue colors for links too */
  text-decoration: none !important; /* no underline */
}
.popup-hover-travel .rating > span {
  color: #f7d21a;
  font-size: 1rem;
  margin-top: 1rem;
}
.popup-hover-travel .result-text {
  max-height: 15rem;
  overflow: auto;
}
.popup-hover-travel .icons {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}
.popup-hover-travel .title {
  font-weight: bold;
}

/* Estilos para los días */
.day-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
  min-height: 60px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 0;
  flex: 1;
  justify-content: space-between;
}

.days {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  padding-right: 10px;
}

.day-pill-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.day-pill-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-pill {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
}

.day-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.day-pill.active {
  background-color: #f7d117;
  border-color: #f7d117;
  color: #000;
}

.day-controls {
  display: flex;
  gap: 2px;
}

.move-day {
  padding: 2px 5px;
  font-size: 12px;
  color: #6c757d;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.move-day:hover:not(.disabled) {
  color: #f7d117;
  transform: scale(1.1);
}

.move-day.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link.text-danger {
  color: #dc3545 !important;
  transition: all 0.2s ease;
  background: none;
  border: none;
  padding: 2px 5px;
  font-size: 12px;
}

.btn-link.text-danger:hover {
  color: #c82333 !important;
  transform: scale(1.1);
}

/* Estilos para el scroll horizontal */
.day-pills::-webkit-scrollbar {
  height: 6px;
}

.day-pills::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.day-pills::-webkit-scrollbar-thumb {
  background: #f7d117;
  border-radius: 3px;
}

.day-pills::-webkit-scrollbar-thumb:hover {
  background: #e6c215;
}

/* Estilos para el contenedor de días */
.days-selector {
  display: flex;
  flex-direction: row;
  transition: all 0.3s ease;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 10px;
}

.plan-header {
  margin: 0 !important;
}

.plan-title {
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  padding: 1rem;
}

.plan-title #planNameDisplay {
  font-weight: normal;
}

.plan-actions {
  display: flex;
  justify-content: flex-end;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

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

.action-buttons .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Estilos para las pestañas */
.route-tabs {
  width: 100%;
  margin-bottom: 1rem;
  /*background-color: #f7d117;*/
}

.route-tabs .nav {
  width: 100%;
  display: flex;
}

.route-tabs .nav-item {
  font-weight: bold;
  color: black;
  flex: 1;
  text-align: center;
}

.route-tabs .nav-link {
  width: 100%;
  padding: 10px;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.route-tabs .nav-link:hover {
  color: #495057;
}

.route-tabs .nav-link.active {
  margin-bottom: 0px;
  color: black !important;
}

/* Ajustar el contenedor principal */
.route-planner {
  padding: 0;
  width: 100%;
}

/* Ajustar el contenedor de las pestañas */
.tab-content {
  width: 100%;
}

/* Ajustar el contenedor de los días y el botón */
.days-selector {
  padding: 0;
  margin: 0 0 1rem 0;
  width: 100%;
}

/* Ajustar el contenedor de los días */
.day-pills {
  margin: 0;
  flex: 1;
}

/* Ajustar el botón de añadir día */
#addDayBtn {
  margin: 0;
  flex-shrink: 0;
}

/* Estilos para el contenedor de favoritos */
.favorites-section {
  transition: all 0.3s ease;
}

/* Estilos para el scroll horizontal */
.day-pills::-webkit-scrollbar {
  height: 6px;
}

.day-pills::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.day-pills::-webkit-scrollbar-thumb {
  background: #f7d117;
  border-radius: 3px;
}

.day-pills::-webkit-scrollbar-thumb:hover {
  background: #e6c215;
}

/* Estilos para el modal de favoritos */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  padding: 15px;
  max-height: 60vh;
  overflow-y: auto;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.favorite-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.favorite-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.favorite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-info {
  flex-grow: 1;
}

.favorite-info h6 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #495057;
}

.favorite-stats {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: #6c757d;
}

.favorite-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.favorite-actions {
  display: flex;
  align-items: center;
}

.favorite-actions .btn {
  padding: 5px 10px;
  border-radius: 6px;
}

/* Estilos para los tabs del modal */
#favoritesTab {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 20px;
}

#favoritesTab .nav-link {
  border: none;
  color: #6c757d;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#favoritesTab .nav-link:hover {
  color: #495057;
  border: none;
}

#favoritesTab .nav-link.active {
  color: #f7d117;
  border: none;
  border-bottom: 2px solid #f7d117;
  margin-bottom: -2px;
}

/* Estilos para el scroll del grid */
.favorites-grid::-webkit-scrollbar {
  width: 6px;
}

.favorites-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.favorites-grid::-webkit-scrollbar-thumb {
  background: #f7d117;
  border-radius: 3px;
}

.favorites-grid::-webkit-scrollbar-thumb:hover {
  background: #e6c215;
}

/* Estilos para el modal personalizado */
.modal-custom {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  overflow-y: auto;
}

.modal-custom-content {
  position: relative;
  background-color: #fff;
  margin: 50px auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
}

.modal-custom-title {
  margin: 0;
  font-size: 1.25rem;
  color: #495057;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #343a40;
}

.modal-custom-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-custom-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

/* Estilos para el scroll del modal */
.modal-custom-body::-webkit-scrollbar {
  width: 6px;
}

.modal-custom-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-custom-body::-webkit-scrollbar-thumb {
  background: #f7d117;
  border-radius: 3px;
}

.modal-custom-body::-webkit-scrollbar-thumb:hover {
  background: #e6c215;
}

/* Estilos para el contenedor ordenable */
.sortable-container {
  min-height: 50px;
  padding: 10px;
  position: relative;
}

.sortable-container .favorite-item {
  /*cursor: move;*/
  margin-bottom: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/*.sortable-container .favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}*/
.sortable-container .favorite-item.ui-sortable-helper {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  background: #fff;
}

.sortable-container .favorite-item.ui-sortable-placeholder {
  visibility: visible !important;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  opacity: 0.5;
  margin-bottom: 10px;
}

/* Estilos para la lista de favoritos del día */
.favorites-list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 20px;
  min-height: 100px;
  position: relative;
  max-height: 25rem;
  overflow: auto;
  overflow-x: hidden;
}

.favorites-list .favorite-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.favorites-list .favorite-item:last-child {
  margin-bottom: 0;
}

.favorites-list .favorite-item.ui-sortable-helper {
  border: 1px solid #f7d117;
  box-shadow: 0 4px 12px rgba(247, 209, 23, 0.2);
}

.favorites-list .favorite-item.ui-sortable-placeholder {
  border: 2px dashed #f7d117;
  background: rgba(247, 209, 23, 0.05);
  opacity: 0.7;
}

/* Estilos para el scroll del contenedor de favoritos */
.favorites-list::-webkit-scrollbar {
  width: 6px;
}

.favorites-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.favorites-list::-webkit-scrollbar-thumb {
  background: #f7d117;
  border-radius: 3px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
  background: #e6c215;
}

/* Estilos para el contenedor ordenable */
.sortable-container {
  min-height: 50px;
  padding: 10px;
  position: relative;
}

/* Estilos para los elementos favoritos */
.favorite-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.2s ease;
  cursor: default;
}

.favorite-item:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.favorite-item.dragging {
  opacity: 0.8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Estilos para el icono de mover */
.move-handle {
  cursor: move;
  color: #666;
  font-size: 1.2em;
  padding: 5px;
  margin-left: 10px;
  transition: color 0.2s ease;
}

.move-handle:hover {
  color: #333;
}

/* Estilos para el placeholder durante el arrastre */
.favorite-item-placeholder {
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  height: 60px;
}

/* Estilos para la lista de favoritos */
.favorites-list {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para el scrollbar personalizado */
.favorites-list::-webkit-scrollbar {
  width: 8px;
}

.favorites-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.favorite-item ._dots {
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Número máximo de líneas */
  -webkit-box-orient: vertical; /* Orientación vertical para el texto */
  overflow: hidden;
}

/* Estilos para los botones de acción de día */
.day-actions {
  display: none;
  gap: 5px;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
}

.day-actions .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.day-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.day-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-overlay-travel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.tp-header-intro {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.tp-header-intro h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tp-header-intro h4 {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.tp-header-intro p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.m-legenPanelExtra-travel {
  opacity: 0;
  background: white !important;
  width: 15rem;
  text-align: right;
  padding: 1rem;
  background: transparent !important;
  border: 2px solid #f7d117 !important;
  box-shadow: none !important;
}
.m-legenPanelExtra-travel span {
  text-align: center;
  font-weight: bold;
  color: black;
  font-size: 12px;
  cursor: pointer;
}
.m-legenPanelExtra-travel span i {
  padding: 0 0.5rem;
  font-size: 1.25rem;
}
.m-legenPanelExtra-travel span i:hover {
  cursor: pointer;
}
.m-legenPanelExtra-travel .col-12 {
  display: flex;
}
.m-legenPanelExtra-travel .ml-color {
  width: 1rem;
  height: 1rem;
}
.m-legenPanelExtra-travel label {
  padding-left: 1rem;
  font-weight: bold;
  font-size: 0.8rem;
  text-align: left;
}

.m-legenBaseLayers {
  padding: 1rem;
  min-width: 15rem;
}

button.btn.btn-primary {
  padding: 5px 10px !important;
  font-size: 1rem !important;
}

#div-contenedor-locator > #m-ignsearch-panel > #m-ignsearchlocator-clean-button {
  border: none !important;
  height: 100% !important;
  width: 3rem !important;
}
#div-contenedor-locator > #m-ignsearch-panel > #m-ignsearchlocator-clean-button i {
  font-weight: 100 !important;
}

#div-contenedor-locator > #m-ignsearch-panel > #m-ignsearchlocator-search-input {
  padding: 1rem;
  width: 90% !important;
}

#m-ignsearchlocator-locate-button {
  display: none !important;
}

#m-ignsearch-panel, #m-infocatastro-panel, #m-xylocator-panel {
  width: 240px !important;
}

div.m-area.m-top.m-right > div.m-plugin-locator.m-panel.opened > button.m-panel-btn {
  font-family: g-cartografia !important;
  background: #f7d117 !important;
  color: black !important;
}

#div-contenedor-locator > #m-ignsearch-panel > #m-ignsearchlocator-clean-button {
  background: #f7d117 !important;
  color: black !important;
  height: 100%;
  background: #f7d117 !important;
  color: black !important;
  height: 96%;
  position: absolute;
  right: 0;
  margin: 0 !important;
}

.m-areas > div.m-area > div.m-panel.m-panel-attributions #m-attributions-container {
  background-color: #f7d117 !important;
}

.m-areas > div.m-area > div.m-panel.m-panel-attributions > .m-panel-controls > #m-attributions-container > div > a {
  color: black !important;
  font-weight: bold;
}

#m-ignsearch-panel, #m-infocatastro-panel, #m-xylocator-panel {
  padding: 0 !important;
  height: 40px !important;
}

#m-locator-title {
  display: none !important;
}

#m-locator-previews {
  display: none !important;
}

#div-contenedor-locator > #m-ignsearch-panel > #m-ignsearchlocator-results {
  min-width: 100%;
}

/* Estilos encapsulados para el bloque */
#travel-plan-card .card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(22, 28, 37, 0.08);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  align-items: center;
}

#travel-plan-card .title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

#travel-plan-card .subtitle {
  font-size: 0.9rem;
  color: #58607a;
  margin-bottom: 12px;
}

#travel-plan-card .stats {
  display: flex;
  justify-content: space-between; /* reparte el espacio */
  align-items: center; /* centra verticalmente */
  width: 100%;
}

#travel-plan-card .stat {
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 110px;
  text-align: center;
}

#travel-plan-card .stat .num {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}

#travel-plan-card .stat .label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}

#travel-plan-card .right {
  text-align: right;
}

#travel-plan-card .km-big {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

#travel-plan-card .progress {
  height: 8px;
  background: #eef2ff;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

#travel-plan-card .progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Responsive */
@media (max-width: 600px) {
  #travel-plan-card .card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  #travel-plan-card .right {
    text-align: left;
  }
}
#travel-plan-card {
  background: #f1f1f1;
  padding: 1rem;
}

.planes-select select {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 15px;
}