/* Page centrée */
.step-date-page {
    display: flex;
    justify-content: center;
    padding: 32px 16px;
     min-height: calc(96vh - 150px);
    align-items: center; /* centre verticalement la carte */
        position: relative;
    background-image: url('/images/reservation/fond-step.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.checkout-search .calendar {
    min-width: 100%;
    font-size: 0.85rem;
}

.checkout-search .datepicker input {
  text-align: center;
  min-height: 55px;
  max-width: 40ch;
}
.datepicker input::placeholder {
    font-size: 0.9rem;
}
.datepicker input[type="text"] {
  width: 100%;
}
.checkout-search {
  width: 100%;
}
/* Overlay sombre doux */
.step-date-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* ajuste 0.25 → 0.45 */
}
/* La carte */
.booking-card {
    width: 100%;
    max-width: 520px;     /* ajuste selon ton goût */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
        position: relative;
    z-index: 1;
}

/* Sections pleine largeur, espacées */
.booking-card .card-section {
    width: 100%;
}

.booking-card .card-section + .card-section {
    margin-top: 16px;
     padding-top: 16px;
    border-top: 1px solid #f2f2f2;
}

/* Guests card prend toute la largeur (au cas où) */
.guests-card {
    width: 100%;
}

/* Bouton full width */
.btn--green {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}


.guests-card {
 
  width: 100%;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 12px;
  z-index: 50;
}

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

.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;
}

.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;
}
.kids-ages-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b00020;
}

.is-invalid {
  outline: 2px solid #b00020;
  outline-offset: 2px;
  border-radius: 6px;
}
@media (max-width: 350px){
  .guests-row,  .kid-age-row{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
 
}
.guests-row-title ,.guests-row-hint, .kids-ages-title,.kids-ages-help {
  text-align: center;
}
.datepicker input::placeholder {
    font-size: 0.7rem;
}
}

/* Modale */
.reservation-confirm-modal[hidden] {
  display: none;
}

.has-modal-open {
  overflow: hidden;
}

.reservation-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.reservation-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(8px);
}

.reservation-confirm-modal__dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 12vh auto 0;
  padding: 34px 30px 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
  text-align: center;
  animation: modalPop .22s ease-out;
}

.reservation-confirm-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.reservation-confirm-modal__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f5efe6;
  color: #8a5a2b;
  font-weight: 800;
  font-size: 26px;
}

.reservation-confirm-modal__dialog h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.reservation-confirm-modal__dialog p {
  margin: 0;
  color: #5f665f;
  line-height: 1.6;
}

.reservation-confirm-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.btn--light {
  background: #f3f4f6;
  color: #1f2937;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.checkout-search .datepicker .dates span.date.disabled,
.checkout-search .datepicker .dates span.disabled {
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative !important;
    opacity: 0.6 !important;
}

.checkout-search .datepicker .dates span.date.disabled::after,
.checkout-search .datepicker .dates span.disabled::after {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    height: 1px;
    background: currentColor;
    transform: rotate(-18deg);
}