.booking-wrapper {
  position: absolute;
  top: calc(50% + 210px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 32px);
}

.booking-box {
  background: var(--vert-color);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: max-content;
  max-width: 100%;
}

.booking-form {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  width: auto;
  max-width: 100%;
}
.home-search .calendar {
    font-size: 0.9rem;
    width: 100%;
    min-width: 580px;
    left: -15px;
}
.home-search .datepicker input {
  width: 100%;
  max-width: 100%;
  min-height: 55px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.booking-field,
.btn--primary {
  border-radius: 8px;
  box-sizing: border-box;
}

/* Dates */
.booking-field--dates {
  position: relative;
  flex: 0 0 310px;
  width: 310px;
  max-width: 310px;
  background: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
}

.booking-field--dates input[type="text"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Voyageurs */
.booking-field.guests {
  position: relative;
  flex: 0 0 297px;
  width: 297px;
  max-width: 297px;
  min-width: 0;
  background: #fff;
  padding: 0;
}

.guests-trigger {
  width: 100%;
  height: 100%;
  min-height: 56px;
  border: none;
  border-radius: 8px;
  background: #fff;
  padding: 8px 14px;
  text-align: left;
  cursor: pointer;
}

.guests-trigger-label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.guests-trigger-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bouton */
.btn--booking {
  flex: 0 0 auto;
  min-width: 120px;
  border: none;
  padding: 0 24px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

/* Popovers */
.calendar,
.guests-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  z-index: 2100;
}
.booking-field .guests-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 12px;
}
/* Ajuste la carte voyageurs */

.booking-field .guests-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
   min-width: 0;
}

.guests-row + .guests-row {
  border-top: 1px solid #f0f0f0;
}

.guests-row-title {
  font-weight: 700;
  text-align: left;
}

.guests-row-hint {
  font-size: 12px;
  opacity: .7;
   text-align: left;
}

.guests-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dcdcdc;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.guests-row-left {
  min-width: 0;
}

.guests-row-right {
  flex-shrink: 0;
}
.stepper-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

.stepper-value {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.guests-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

.guests-done {
  border: 1px solid #dcdcdc;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}
.kids-ages {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.kids-ages-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.kids-ages-list {
  display: grid;
  gap: 8px;
}

.kid-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kid-age-row label {
  font-size: 13px;
  font-weight: 600;
}

.kid-age-row select {
  width: 160px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  background: #fff;
}

.kids-ages-help {
  font-size: 12px;
  opacity: .7;
  margin-top: 8px;
}
.guests-card,
.guests-card * {
  touch-action: manipulation;
}

.stepper-btn,
.guests-trigger,
.guests-done,
.kid-age-row select {
  pointer-events: auto;
  touch-action: manipulation;
}

/* Responsive */
@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 3rem;
    justify-content: flex-start;
  }

  .hero-content {
    bottom: auto;
    margin-bottom: 2rem;
  }

 .booking-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 50;
    width: min(590px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    margin: 0 auto;
  }
 .booking-box {
    width: 100%;
    max-width: 100%;
  }

  .booking-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

.booking-field--dates,
  .booking-field.guests,
  .btn--booking {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .home-search,
  .datepicker {
    width: 100%;
  }

  .home-search .calendar {
    width: 100%;
    min-width: 0;
    left: 0;
    z-index: 50;
  }

  .btn--booking {
    min-height: 52px;
  }

  .guests-card {
    min-width: 100%;
    width: 100%;
  }
}

@media (max-width: 350px) {
.datepicker input::placeholder {
    font-size: 0.7rem;
}
.guests-trigger-value {
  font-size: 0.7rem;
}
}
@media (max-width: 768px) {
  .booking-wrapper,
  .booking-box,
  .booking-form,
  .booking-field.guests {
    overflow: visible;
  }

  .booking-field.guests {
    position: relative;
    z-index: 9999;
  }

  .booking-field.guests .guests-card {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 99999;
  }
}
