/* General Styling for Lists and Containers */
.destination-item {
  display: flex;
  justify-content: space-between; /* Distribuir elementos: texto a la izquierda, botón a la derecha */
  align-items: center;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s, box-shadow 0.3s;
  color: #000; /* Color del texto */
}

.destination-item:hover {
  background-color: #e0e0e0;
}

.destination-item span {
  flex-grow: 1; /* Ocupa el espacio restante en la fila */
  font-weight: bold;
  color: #000;
  margin-right: 10px; /* Espacio entre texto y botón */
}

.destination-item span:last-child {
  flex-grow: 0; /* Evita que el botón crezca */
  background-color: #28a745; /* Fondo verde */
  color: #fff; /* Texto blanco */
  padding: 5px 15px; /* Tamaño compacto */
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap; /* Evitar salto de línea */
  font-size: 14px;
}

.destination-item:hover span:last-child {
  background-color: #218838; /* Fondo más oscuro al hacer hover */
}

.destination-item span:last-child:hover {
  cursor: pointer; /* Mostrar puntero en el hover */
}

/* Headers */
h2 {
  font-size: 28px;
  color: #004080;
  border-bottom: 3px solid #ff0000;
  margin-bottom: 20px;
}

h3.table-title {
  font-size: 22px;
  color: #004080;
  margin-top: 30px;
  border-bottom: 2px solid #004080;
  padding-bottom: 5px;
  text-align: left;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

thead {
  color: white;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
  background-color: #e6f7ff;
}

tbody tr:hover {
  background-color: #d0e6f9;
}

/* Logo Styling */
.logo-cell img {
  max-width: 50px;
  height: auto;
}

/* Volver Button Styling */
.btn-volver {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

.btn-volver:hover {
  background-color: #0056b3;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px;
  }

  .destination-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .destination-item span:last-child {
    align-self: flex-end;
    margin-top: 10px;
  }

  h2 {
    font-size: 24px;
  }

  h3.table-title {
    font-size: 18px;
  }
}
