/* Par défaut : rien avant recherche */
.price-zone {
  display: none;
}

/* Quand la carte est marquée disponible ou indisponible après recherche */
.chambre-card.available .price-zone,
.chambre-card.unavailable .price-zone {
  display: block;
}

.chambre-card.available { order: 1; }
.chambre-card.unavailable { order: 2; }

/* Styles des prix */
.prix {
  background-color: #e9f4ed;
  color: #37443a;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.2;
  display: block;
  flex-direction: column;
  margin-top: 6px;
  margin-bottom: 6px;
}

.label-apartir {
  font-size: 14px;
  font-weight: 500;
}

.tarif {
  font-size: 22px;
  font-weight: 700;
}

.periode {
  font-size: 12px;
  font-weight: 500;
}

.mention {
  font-size: 10px;
  color: #5f6b63;
}

.prix-barre {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
  display: inline-block;
}

.promo-label {
  font-size: 12px;
  font-weight: 700;
  color: #b2974a;
  background-color: #f3eee8;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

.prix-indispo {
  font-size: 12px;
  font-weight: 500;
  color: #881e00;
  background-color: #ffeaea;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.4;
  display: block;
  margin-top: 6px;
}

.DateRangePicker-calendar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e3e3;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 300px;
  max-height: 50px;
  background-color: #fff;
  box-sizing: border-box;
}

/* Bordure rouge en cas d’erreur */
.DateRangePicker-calendar.Search-datepicker--error {
  border-color: #ff2929 !important;
  box-shadow: 0 0 5px #ff2929 !important;
}

.DateRangePicker-button {
  background: #fff;
  border: none;
  cursor: pointer;
  padding: 0 0 0 6px;
  font-size: 14px;
  width: 100px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.DateRangePicker-button.active {
  font-weight: bold;
}

.DateRangePicker-clearButton {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #e3dacd;
  font-size: 14px;
}

.DateRangePicker-dateValue {
  font-weight: normal;
  color: #212121;
}

.DateRangePicker-dayValue {
  font-size: 12px;
  color: #e3dacd;
}

.DateRangePicker-icon,
.DateRangePicker-arrowIcon {
  width: 18px;
  height: 12px;
  fill: #e3dacd;
}

/* ========================= */
/*        FLATPICKR UI       */
/* ========================= */

.flatpickr-day {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  height: 32px;
  width: 32px;
  line-height: 32px;
  box-sizing: border-box;
  max-width: none !important;
}

.flatpickr-calendar .flatpickr-day.selected.startRange {
  background: #e3dacd !important;
  color: #000 !important;
  border-radius: 100% 0 0 100% !important;
}

.flatpickr-calendar .flatpickr-day.selected.endRange {
  background: #e3dacd !important;
  color: #000 !important;
  border-radius: 0 100% 100% 0 !important;
}

.flatpickr-calendar .flatpickr-day.inRange {
  background: #f3eee8 !important;
  color: #000 !important;
  box-shadow: -5px 0 0 #f3eee8, 5px 0 0 #f3eee8 !important;
}

.flatpickr-calendar .flatpickr-day:hover {
  background: #e3dacd !important;
  color: #000 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: #f3eee8 !important;
  color: #000 !important;
  border-color: #f3eee8 !important;
  box-shadow: none !important;
}

/* Neutralisation du gris par défaut */
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  background: #f3eee8 !important;
  border-color: #f3eee8 !important;
  color: #000 !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.badge-icon {
  width: 16px;
  height: 16px;
}

.badge--green {
  background: #49554c;
}

.badge--orange {
  background: #b2974a;
}

.badge--red {
  background: #881e00;
}

.dispo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 400;
  color: white;
}
