/* Estilos para el selector de fechas con cards */
.daba-style .m-selectDates .m-dates-grid-container {
  margin-top: 1.5rem;
}

.daba-style .m-selectDates .m-dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.daba-style .m-selectDates .m-date-card {
  background: #fff;
  border: 0.12rem solid #d6d6d6;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100px;
}

.daba-style .m-selectDates .m-date-card:hover {
  border-color: #c39d63;
  box-shadow: 0 0.2rem 0.8rem rgba(195, 157, 99, 0.22);
  transform: translateY(-1px);
}

.daba-style .m-selectDates .m-date-card.m-date-card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.daba-style .m-selectDates .m-date-card.m-date-card-disabled:hover {
  border-color: #d0d5dd;
  box-shadow: none;
}

.daba-style .m-selectDates .m-date-badge {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  text-transform: uppercase;
  z-index: 3;
}

.daba-style .m-selectDates .m-date-badge.m-date-badge-completo {
  background: #999;
}

.daba-style .m-selectDates .m-date-badge.m-date-badge-available {
  background: #c39d63;
}

.daba-style .m-selectDates .m-date-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.daba-style .m-selectDates .m-date-fecha {
  font-size: 1.35rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.daba-style .m-selectDates .m-date-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

.daba-style .m-selectDates .m-date-label-inicio,
.daba-style .m-selectDates .m-date-label-fin {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  line-height: 1.3;
}

.daba-style .m-selectDates .m-date-inicio {
  font-size: 1.35rem;
  font-weight: 800;
  color: #333;
  line-height: 1.3;
}

.daba-style .m-selectDates .m-date-fin {
  font-size: 1.35rem;
  font-weight: 800;
  color: #333;
  line-height: 1.3;
}

.daba-style .m-selectDates .m-date-descripcion {
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  line-height: 1.3;
}

.daba-style .m-selectDates .m-date-card.m-date-card-disabled .m-date-fecha,
.daba-style
  .m-selectDates
  .m-date-card.m-date-card-disabled
  .m-date-descripcion {
  color: #999;
}

/* Card de fecha seleccionada */
.daba-style .m-selectDates .m-selected-date-container {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.daba-style .m-selectDates .m-selected-date-card {
  background: #c39d63;
  color: #fff;
  border-radius: 0.8rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.daba-style .m-selectDates .m-selected-date-info {
  flex: 1;
  min-width: 200px;
}

.daba-style .m-selectDates .m-selected-date-label {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.daba-style .m-selectDates .m-selected-date-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.daba-style .m-selectDates .m-selected-date-text {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.4;
}

.daba-style .m-selectDates .m-selected-date-description {
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.4;
}

.daba-style .m-selectDates .m-change-date-btn {
  background: #fff;
  color: #c39d63;
  border: 0.1rem solid #fff;
  border-radius: 0.8rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in;
  font-family: Martel, sans-serif;
}

.daba-style .m-selectDates .m-change-date-btn:hover {
  background: transparent;
  color: #fff;
}

.daba-style .m-selectDates .m-dates-empty {
  text-align: center;
  padding: 3rem 1.6rem;
  color: #666;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Cabeceras por mes */
.daba-style .m-selectDates .m-month-block {
  margin-bottom: 1.4rem;
}

.daba-style .m-selectDates .m-month-header {
  background: transparent;
  color: #333;
  border-bottom: 2px solid #c39d63;
  padding: 0rem 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daba-style .m-selectDates .m-month-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.daba-style .m-selectDates .m-month-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
}

/* Indicador de clic en tarjeta - solo círculo en esquina superior derecha */
.daba-style .m-selectDates .m-date-cta {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.daba-style .m-selectDates .m-date-cta-text {
  display: none;
}

.daba-style .m-selectDates .m-date-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: transparent;
  border: 0.15rem solid #c39d63;
  box-shadow: 0 0.2rem 0.4rem rgba(195, 157, 99, 0.2);
  transition: all 0.3s ease-in;
  animation: pulseDot 2s infinite;
}

.daba-style .m-selectDates .m-date-card:hover .m-date-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-color: #b89050;
  border-width: 0.18rem;
  box-shadow: 0 0.3rem 0.6rem rgba(195, 157, 99, 0.4);
  transform: scale(1.1);
}

.daba-style .m-selectDates .m-date-card.m-date-card-selected .m-date-dot {
  width: 1.4rem;
  height: 1.4rem;
  background: #c39d63;
  border-color: #c39d63;
  border-width: 0.2rem;
  box-shadow: 0 0.4rem 0.8rem rgba(195, 157, 99, 0.6);
  animation: none;
}

.daba-style .m-selectDates .m-date-card.m-date-card-selected {
  border-color: #c39d63;
  border-width: 0.2rem;
  background: #fefaf6;
  box-shadow: 0 0.3rem 1rem rgba(195, 157, 99, 0.25);
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0.2rem 0.4rem rgba(195, 157, 99, 0.3),
      0 0 0 0 rgba(195, 157, 99, 0.4);
  }
  70% {
    box-shadow: 0 0.2rem 0.4rem rgba(195, 157, 99, 0.3),
      0 0 0 8px rgba(195, 157, 99, 0);
  }
  100% {
    box-shadow: 0 0.2rem 0.4rem rgba(195, 157, 99, 0.3),
      0 0 0 0 rgba(195, 157, 99, 0);
  }
}

/* Plegado de info de cabinas */
.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible {
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible
  .description {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible:not(.expanded)
  .description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 5rem;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible.expanded
  .description {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: none;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible
  .description
  li {
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible
  .m-toggle-desc {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #c39d63;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  padding: 0;
  z-index: 2;
  background: transparent;
  border: 0;
  margin: 0;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible
  .m-toggle-desc:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.daba-style
  .m-results
  .m-resultsItems
  .m-item
  .m-card
  .m-card-text-collapsible
  .m-toggle-desc:focus-visible {
  outline: 2px solid #c39d63;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 960px) {
  .daba-style .m-selectDates .m-dates-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .daba-style .m-selectDates .m-selected-date-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .daba-style .m-selectDates .m-change-date-btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1300px) {
  .daba-style .m-selectDates .m-dates-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.9rem;
  }
}

/* Animación de desaparición */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

.daba-style .m-selectDates .m-date-card.fading-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Responsive para filtros y paginación */
@media (max-width: 960px) {
  .daba-style .m-selectDates .m-dates-filters {
    flex-direction: column;
    gap: 1.5rem;
  }

  .daba-style .m-selectDates .m-filter-group {
    width: 100%;
  }

  .daba-style .m-selectDates .m-filter-options {
    flex-direction: column;
  }

  .daba-style .m-selectDates .m-filter-btn {
    width: 100%;
    text-align: center;
  }
}

/* Estilos para labels de campos obligatorios */
.daba-style .m-field-wrapper {
  position: relative;
  width: 100%;
  margin: 1.2rem 0;
}

.daba-style .m-field-wrapper input,
.daba-style .m-field-wrapper select {
  margin: 0;
}

.daba-style .m-field-wrapper .m-required-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #c39d63;
  margin-top: 0.4rem;
  font-family: Martel, sans-serif;
}

.daba-style .m-field-wrapper .m-required-label strong {
  font-weight: 800;
}

/* Ajustes para campos en formularios */
.daba-style .m-form .m-field-wrapper {
  width: calc(50% - 1.75rem);
}

.daba-style .m-form .m-field-wrapper.m-small {
  width: calc((100% - 2.6rem) / 3);
}

@media (max-width: 960px) {
  .daba-style .m-form .m-field-wrapper {
    width: 100%;
  }

  .daba-style .m-form .m-field-wrapper.m-small {
    width: 100%;
  }
}

/* Sobrescribir padding del flag de intlTelInput */
.iti__selected-flag {
  padding: 0 6px 0 8px !important;
}

/* Padding inherit para .iti__country */
.iti__country {
  padding: 5px 10px !important;
}

/* Margin right importante para .iti__country-name y .iti__flag-box */
.iti__country-name,
.iti__flag-box {
  margin-right: 6px !important;
}

/* Ocultar paso Temporada cuando no hay múltiples temporadas (solo en móviles) */
@media (max-width: 960px) {
  .daba-style .m-progress .m-steps > .m-step.m-step-hidden-mobile {
    display: none !important;
  }
}

.daba-style .m-step-content.m-step-content-hidden-mobile {
  display: none !important;
}

.daba-style .m-step-content.m-step-content-hidden {
  display: none !important;
}

/* Padding inherit para .daba-style * */

/* Ocultar sidebar en desktop solo en pasos 1 y 2, mostrar desde paso 3 */
@media (min-width: 961px) {
  /* Ocultar sidebar en pasos 1 y 2 */
  .daba-style .mdl-content .m-resume[data-step='1'],
  .daba-style .mdl-content .m-resume[data-step='2'] {
    display: none !important;
  }

  /* Mostrar sidebar desde paso 3 en adelante */
  .daba-style .mdl-content .m-resume[data-step='3'],
  .daba-style .mdl-content .m-resume[data-step='4'],
  .daba-style .mdl-content .m-resume[data-step='5'],
  .daba-style .mdl-content .m-resume[data-step='6'] {
    display: block !important;
  }

  /* Cuando la sidebar está oculta (pasos 1 y 2), el contenido usa todo el ancho */
  .daba-style .mdl-content .m-row.step-1 .m-step-content,
  .daba-style .mdl-content .m-row.step-2 .m-step-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Cuando la sidebar está visible (paso 3+), el contenido usa ancho normal */
  .daba-style .mdl-content .m-row.step-3 .m-step-content,
  .daba-style .mdl-content .m-row.step-4 .m-step-content,
  .daba-style .mdl-content .m-row.step-5 .m-step-content,
  .daba-style .mdl-content .m-row.step-6 .m-step-content {
    max-width: 67% !important;
    width: 80.1rem !important;
  }

  /* Restaurar layout normal desde paso 3 */
  .daba-style .mdl-content .m-row.step-3,
  .daba-style .mdl-content .m-row.step-4,
  .daba-style .mdl-content .m-row.step-5,
  .daba-style .mdl-content .m-row.step-6 {
    justify-content: space-between !important;
  }

  /* Layout sin sidebar en pasos 1 y 2: usar layout normal */
  .daba-style .mdl-content .m-row.step-1,
  .daba-style .mdl-content .m-row.step-2 {
    justify-content: space-between !important;
  }
}

/* ================================
   Overrides selector de fechas (Step 2)
   ================================ */
.daba-style .m-selectDates .m-fechas-label {
  display: none !important;
}

.daba-style .m-selectDates .m-month-subtitle {
  display: none !important;
}

/* Subrayado fijo del mes: mismo largo que "Septiembre/September" (según idioma) */
.daba-style .m-selectDates .m-month-header {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.6rem !important; /* distancia línea → cajitas */
}

.daba-style .m-selectDates .m-month-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem; /* distancia mes → línea */
  --month-underline-width: 10ch;
  color: #c39d63; /* mismo color que la línea */
}

html[lang^="es"] .daba-style .m-selectDates .m-month-title {
  --month-underline-width: 10ch; /* "Septiembre" */
}

html[lang^="en"] .daba-style .m-selectDates .m-month-title {
  --month-underline-width: 11ch; /* "September" */
}

.daba-style .m-selectDates .m-month-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--month-underline-width);
  border-bottom: 2px solid #c39d63;
}

/* Línea "Fin: ..." dentro de la tarjeta */
.daba-style .m-selectDates .m-date-finline {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.daba-style .m-selectDates .m-date-finlabel {
  color: #666;
  font-weight: 700;
}

.daba-style .m-selectDates .m-date-duration {
  color: #666;
  font-weight: 700;
}

/* Quitar protagonismo a la fecha de "Fin" dentro de la tarjeta */
.daba-style .m-selectDates .m-date-finline .m-date-fin {
  font-size: 1.05rem;
  font-weight: 600;
  color: #666;
  line-height: 1.3;
}
