/*CUSTOM CSS*/

.web-description ul {
  list-style-type: disc !important;
  padding-left: 1.5em !important;
}

.web-description ul li {
  display: list-item !important;
}

.web-description ul li::before {
  content: "• " !important;
  color: inherit !important;
}

#day_by_day * {
  font-size: 16px !important;
}

.image-wrapper.bg-overlay-blue:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -100;
  width: 100%;
  height: 100%;
  background: rgba(19, 76, 129, 0.65);
}

.image-wrapper.bg-overlay-light:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -100;
  width: 100%;
  height: 100%;
  background: rgba(19, 76, 129, 0.65);
}

.input-group-text {
  background-color: white !important;
}

.cultural-activity-image {
  height: 250px !important;
  object-fit: contain !important;
}

.cultural-activity-image img {
  height: 250px !important;
}

.bg-contain {
  background-size: contain !important;
  background-position: top center !important;
}

.table-sticky-header {
  position: sticky;
  top: 80px;
  background-color: white;
  z-index: 100;
}

.post-meta li.no-content:before {
  display: none;
}

.post-meta li.no-content {
  margin-left: 10px;
}

.text-date {
  font-family: sans-serif !important;
  letter-spacing: normal !important;
}

a:hover span.text-date {
  color: #f5a623 !important;
}

article img {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url(../img/loader2.gif) no-repeat center;
}

.dropzone-body:hover {
  border: 3px dashed #000000;
  cursor: pointer;
}

.image-wrapper.bg-overlay.bg-overlay-800:before {
  background: rgba(30, 34, 40, 0.8) !important;
}

#chat {
  height: 300px;
  overflow-y: auto;
}

.whatsapp-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.3rem;
  height: 2.3rem;
  cursor: pointer;
  display: block;
  border-radius: 100%;
  z-index: 1010;
}

#infoMessage ul {
  list-style-type: none !important;
  padding: 0;
  margin: 0;
}

li::marker {
  content: "";
}

.text-black {
  color: #000000 !important;
}

#underline-euromind:after {
  background: #ee964c !important;
}

/* Estilo para las tarjetas de proyectos */
.project-image-container {
  height: 180px;
  overflow: hidden;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Estilos para el título superpuesto sobre la imagen */
.project-title-overlay {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Hover effect para mejor visibilidad */
.project-image-container:hover .project-title-overlay {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.idevelop-course {
  background-color: #ee964c !important;
  color: white !important;
}

.idevelop-text {
  color: #ee964c !important;
}

.idevelop-underline {
  text-decoration: underline !important;
  text-decoration-color: #ee964c !important;
}

/* Estilos para filtros de alojamiento */
.basic-filter ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.basic-filter ul li {
  margin-bottom: 15px !important;
  display: flex !important;
  align-items: center !important;
}

.basic-filter .filter-label {
  cursor: pointer !important;
  margin: 0 !important;
  width: 100% !important;
}

.basic-filter .filter-radio {
  accent-color: #3f78e0 !important;
  margin-right: 8px !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  clip: unset !important;
  transform: none !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
}

.basic-filter ul li a.filter-item {
  text-decoration: none !important;
  color: #6c757d !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  flex: 1 !important;
}

.basic-filter ul li a.filter-item.active {
  color: #3f78e0 !important;
  font-weight: 500 !important;
}

.basic-filter ul li a.filter-item:hover {
  color: #3f78e0 !important;
}

/* Estilos específicos para los títulos de las secciones de filtro */
.basic-filter h6.widget-title {
  color: #343a40 !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Ajustes responsive para filtros */
@media (max-width: 1199.98px) {
  .basic-filter ul.d-flex.flex-row {
    flex-wrap: wrap !important;
    gap: 15px !important;
  }

  .basic-filter .filter-label {
    padding: 8px 12px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 20px !important;
    background: #fff !important;
    margin: 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .basic-filter .filter-radio {
    display: none !important;
  }

  .basic-filter .filter-label:has(.filter-radio:checked) {
    background: #3f78e0 !important;
    border-color: #3f78e0 !important;
  }

  .basic-filter .filter-label:has(.filter-radio:checked) .filter-item {
    color: #fff !important;
  }

  .basic-filter .filter-label:hover {
    border-color: #3f78e0 !important;
    background: rgba(63, 120, 224, 0.1) !important;
  }
}

@media (min-width: 1200px) {
  .basic-filter ul.d-flex.flex-xl-column {
    flex-direction: column !important;
    gap: 0 !important;
  }
}

img.believe_in_experience {
  height: 150px !important; /* valor por defecto en escritorio */
}

@media (max-width: 768px) {
  img.believe_in_experience {
    height: 60px !important; /* en móvil */
  }
}

/* Ajustes extra para móviles pequeños: minimizar espaciado entre items de filtro */
@media (max-width: 767.98px) {
  /* Menos espacio vertical entre cada <li> cuando los filtros están en columna */
  .basic-filter ul li {
    margin-bottom: 6px !important;
  }

  /* Menos gap cuando los filtros usan flex-wrap (pills) */
  .basic-filter ul.d-flex.flex-row {
    gap: 4px !important;
  }

  /* Reducir padding de las "pills" para que queden más juntas en pantalla pequeña */
  .basic-filter .filter-label {
    padding: 6px 8px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  /* Ajustar tamaño de texto ligeramente si hace falta */
  .basic-filter ul li a.filter-item {
    font-size: 15px !important;
  }
}

.bg-euromind-yale {
  background-color: #9dcbee !important;
}

.text-euromind-yale {
  color: #0f4c81 !important;
}

.btn-primary-yale {
  background-color: #0f4c81 !important;
  border-color: #0f4c81 !important;
}

/* Estilos para imágenes del slider de alojamiento - dimensiones uniformes sin deformación */
.accommodation-slider-figure {
  width: 100% !important;
  height: 250px !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.accommodation-slider-figure a {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.accommodation-slider-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.accommodation-card-figure {
  width: 100% !important;
  height: 325px !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.project-card-figure {
  width: 100% !important;
  height: 300px !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ========================================
   FILTROS MÓVILES - MENÚ LATERAL
   ======================================== */

/* Overlay oscuro cuando el menú está abierto */
.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Menú lateral de filtros en móvil */
@media (max-width: 1199.98px) {
  .mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px; /* Oculto fuera de pantalla */
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }

  .mobile-filter-sidebar.active {
    left: 0; /* Visible en pantalla */
  }

  /* Ajustar padding superior para evitar que quede pegado arriba */
  .mobile-filter-sidebar .widget-title:first-of-type {
    margin-top: 10px;
  }
}

/* En desktop, mantener comportamiento normal */
@media (min-width: 1200px) {
  .filter-overlay {
    display: none !important;
  }

  .mobile-filter-sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
  }

  #filterToggleBtn,
  #applyFiltersBtn {
    display: none !important;
  }
}

/* Ajustes para projects que usa breakpoint lg (992px) en lugar de xl (1200px) */
@media (max-width: 991.98px) {
  #portfolio .mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }

  #portfolio .mobile-filter-sidebar.active {
    left: 0;
  }
}

@media (min-width: 992px) {
  #portfolio .filter-overlay {
    display: none !important;
  }

  #portfolio .mobile-filter-sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
  }
}
