/* Custom styles */

/* Estilos para la barra de navegación */
.navbar {
  background-color: #343a40;
  padding: 10px 20px;
}

.navbar-brand span {
  font-weight: bold;
  color: #fff;
}

.nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #1abc9c;
}

/* Estilos para el formulario de autenticación */
.auth-container {
  max-width: 400px;
  margin: 100px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .btn {
  width: 100%;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

/* Estilos para contenedores de formularios */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group textarea {
  height: 150px;
}

.form-group button {
  width: 100%;
}

/* Estilos para el mapa */
#map {
  height: 400px;
  margin-bottom: 20px;
}

/* Estilos para botones */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

#locationPermissionRequest button,
#jobs-list button,
.modal-content button[type="submit"] {
  background-color: #28a745;
  border-color: #28a745;
}

#locationPermissionRequest button:hover,
#jobs-list button:hover,
.modal-content button[type="submit"]:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

#categoria-select {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Estilos para tarjetas de vacantes */
#jobs-list .card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

#jobs-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

#jobs-list .card-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #34324b;
}

#jobs-list .card-text {
  color: #74718f;
}

#jobs-list .distance {
  color: #fd7576;
  font-weight: bold;
}

#jobs-list .distance i {
  color: #fd7576;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
      opacity: 1;
  }
  50% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

.modal-content {
  border-radius: 1rem;
}

.modal-header {
  background-color: #28a745;
  color: #000000;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.modal-title {
  font-weight: bold;
}

.nav-tabs .nav-link.active {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

.nav-tabs .nav-link {
  color: #28a745;
}

.form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

footer a:hover {
  color: #28a745 !important;
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: none;
}

.modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-content h5 {
  font-size: 24px;
  font-weight: 600;
}

.modal-content form {
  margin-top: 20px;
}

.modal-content label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.modal-content input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #e6e7e9;
  border-radius: 5px;
  font-size: 14px;
}

.modal-content button[type="submit"] {
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content button[type="submit"]:hover {
  background-color: #218838;
}

#addressInput {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
}

.autocomplete-results {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  z-index: 1000;
  width: 100%; /* Asegúrate de que coincida con el ancho del input */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto; /* Permite scroll si las sugerencias exceden el max-height */
  list-style-type: none; /* Remueve bullets de la lista */
  padding: 0;
  margin: 0;
  top: 100%; /* Posiciona justo debajo del input */
}
.autocomplete-results li {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.autocomplete-results li:last-child {
  border-bottom: none; /* No borde en el último elemento */
}
.autocomplete-results li:hover {
  background-color: #f0f0f0;
}

#addressInput, #autocompleteResults {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
}

#autocompleteResults {
  list-style: none;
  padding-left: 0;
  position: absolute;
  background: white;
  z-index: 1000;
}

#autocompleteResults li {
  padding: 8px 10px;
  cursor: pointer;
}

#autocompleteResults li:hover {
  background-color: #f0f0f0;
}

#searchResults {
  position: absolute;
  z-index: 1000;
  max-height: 200px; /* Ajusta según tus necesidades */
  width: calc(100% - 30px); /* Asegúrate de que coincida con el ancho del input */
  overflow-y: auto; /* Habilita el scroll */
  background: white;
  border: 1px solid #ccc;
  border-top: none;
}

#searchResults li {
  padding: 10px;
  cursor: pointer;
}

#searchResults li:hover {
  background-color: #f0f0f0;
}

#suggestions {
  position: absolute;
  background: white;
  width: 100%;
  max-height: 150px; /* Altura máxima antes de que aparezca el desplazamiento */
  overflow-y: auto; /* Activa el desplazamiento vertical si el contenido excede la altura máxima */
  border: 1px solid #ccc;
  border-top: none;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}

#suggestions li {
  padding: 10px;
  cursor: pointer;
}

#suggestions li:hover, #suggestions li:focus {
  background-color: #f0f0f0;
}

#manualAddressInput {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 4px;
}

#suggestions {
  display: none; /* Inicialmente oculto */
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  z-index: 1050;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  list-style-type: none;
  padding: 0;
  margin-top: 2px; /* Pequeño espacio entre el input y las sugerencias */
}
#suggestions li {
  padding: 10px;
  cursor: pointer;
}
#suggestions li:last-child {
  border-bottom: none; /* No borde en el último elemento */
}

#suggestions li:hover, #suggestions li:focus {
  background-color: #f0f0f0; /* Resalta al pasar el ratón o seleccionar */
}

#changeAddressButton, #updateLocationButton, #cancelButton {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  text-align: center;
  border-radius: 4px;
}

#updateLocationButton {
  margin-top: 20px;
}

#categoria-select {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 4px;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  cursor: pointer;
}

#categoria-select:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#footer {
  background-color: #343a40;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
}

#footer a {
  color: #ffffff;
  transition: color 0.3s ease;
}

#footer a:hover {
  color: #1abc9c;
}

.social-icons a {
  margin: 0 10px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #1abc9c;
}

/* Ajustes de CSS para dispositivos móviles */
@media (max-width: 768px) {
.auth-container, .form-container {
  margin: 20px auto;
  padding: 20px;
}

#map {
  height: 300px;
}

.navbar-nav {
  text-align: center;
}
}
/* Ajusta el color del texto del menú desplegable */
.navbar-light .navbar-nav .nav-link {
    color: #0b0b0b;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #1abc9c;
}

.navbar-light .navbar-nav .nav-item.show .nav-link,
.navbar-light .navbar-nav .dropdown-menu {
    background-color: #343a40;
}

.navbar-light .navbar-nav .dropdown-menu .dropdown-item {
    color: #ba1e1e;
}

.navbar-light .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-light .navbar-nav .dropdown-menu .dropdown-item:focus {
    color: #1abc9c;
    background-color: transparent;
}
/* Añadir media queries para mejorar la experiencia en dispositivos móviles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .form-container {
    padding: 20px;
  }
  
  #map {
    height: 300px;
  }
  
  .navbar-nav {
    text-align: center;
  }
}
#addressInput {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  position: relative;
}

.autocomplete-results {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  z-index: 1050;
  width: calc(100% - 22px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  list-style-type: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 10px;
}

.autocomplete-results li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.autocomplete-results li:last-child {
  border-bottom: none;
}

.autocomplete-results li:hover, .autocomplete-results li.active {
  background-color: #f0f0f0;
}

.autocomplete-results li.no-results {
  text-align: center;
  color: #999;
}

.loading-spinner {
  text-align: center;
  padding: 10px;
}

/* Custom styles */

/* Estilos para la página de Mis Vacantes */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-body {
  text-align: left;
}

.card-footer {
  background-color: #f8f9fa;
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
}
/* Custom styles */

/* Custom styles */

/* Custom styles */

/* Estilos para la página de Mis Vacantes */
.list-group-item {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #f8f9fa;
  padding: 1rem;
}

.list-group-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.vacante-info {
  flex-grow: 1;
  min-width: 60%;
}

.vacante-buttons {
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.btn-primary {
  background-color: #007bff; /* Azul */
  border-color: #007bff;
}

.btn-secondary {
  background-color: #6c757d; /* Gris */
  border-color: #6c757d;
}

h5 {
  color: #343a40; /* Negro */
}

p {
  color: #6c757d; /* Gris */
}

p.text-truncate {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
}

@media (max-width: 576px) {
  .list-group-item {
      flex-direction: column;
      align-items: flex-start;
  }

  .vacante-buttons {
      width: 100%;
      justify-content: space-between;
  }

  .vacante-info {
      width: 100%;
      margin-bottom: 0.5rem;
  }
}
body {
  background-color: #f8f9fa;
}

#map {
  width: 100%;
  height: 300px;
}

.list-group-item {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
}

.list-group-item h5 {
  margin-bottom: 0.5rem;
}

.list-group-item p {
  margin-bottom: 0.25rem;
}

.card {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
}
.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 5px;
}

.list-group-item .fw-bold {
  font-size: 1.2em;
}

.list-group-item .badge {
  font-size: 0.9em;
  margin-left: 5px;
}

.list-group-item button {
  margin: 5px 0;
}

@media (max-width: 576px) {
  .list-group-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .list-group-item .btn {
    width: 100%;
  }
}
