.rangeMode .flatpickr-day {
  margin-top: 1px;
  height: 60px;
  width: 60px;
  max-width: 100%;
  padding: 5px;
  font-weight: bold;
  line-height: 1.3;
  display: flex;
  min-width: 60px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Make each month wider */
.flatpickr-days .dayContainer {
  width: 440px !important; /* adjust this */
  min-width: 440px !important;
  max-width: 440px !important;
}

/* Make the overall calendar wider */
.flatpickr-calendar {
  width: 880px !important; /* 2 x 340 */
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: #ab8a6270;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #222;
  border: none;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.flatpickr-day.flatpickr-disabled {
  color: #222;
  opacity: 0.4;
  text-decoration: line-through;
}

.price-tag {
  display: block;
  font-size: 0.7em;
  color: #222;
  line-height: 1;
}

.price-tag {
  display: block;
  font-size: 0.7em;
  color: var(--primary-color);
}

.past-date {
  background: #eee !important;
  color: #aaa !important;
  pointer-events: none;
}

.past-date {
  background: none !important;
  color: #aaa !important;
  pointer-events: none;
  border: none !important;
}

.flatpickr-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flatpickr-footer button {
  background: #ff6600;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.today-date {
  border: 2px solid #ff6600;
}

#datepicker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9;
}
.overlay-hidden {
  display: none;
}

.flatpickr-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 11;
}

#guests-picker {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 12;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  right: 0;
  left: initial;
  width: 300px;
  padding: 30px;
  border-radius: 6px;
}

#guests-picker button {
  width: 30px;
  height: 30px;
}

.input-form img {
  max-width: 20px;
  opacity: 0.88;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
}

.input-form {
  position: relative;
}

.input-form .form-control {
  padding-left: 40px;
  padding: 12px;
  padding-left: 40px;
  background: #fff;
  border: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.07);
}

button.btn-search {
  background: var(--primary-color);
  border: none;
  color: #fff;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

section.booking-form-container {
  background: #f9f9f9;
}

#booking-form {
  position: relative;
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
}

span.pets {
  font-size: 12px;
  font-weight: 400;
}

.guest-row label {
  font-weight: 600;
  font-size: 15px;
}

.gr-item {
  border: 1px solid #ddd;
  padding: 5px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
}

.guest-row .guest-input {
  width: 40px;
  text-align: center;
  border: none;
  border-radius: 4px;
  text-align: center;
  font-weight: 300;
  font-size: 13px;
}

.guest-row button {
  width: 30px;
  height: 30px;
  border: none;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}

#guests-picker #guests-done {
  width: max-content;
  background: orange;
  border: none;
  background: #ff6600;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  height: auto;
}

.guest-row .form-switch .form-check-input {
  height: 1.5rem;
  width: 3rem;
  margin-left: 1rem;
}

.guest-row .pets-label {
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
  }
  .flatpickr-days {
    flex-direction: column;
    width: 100% !important;
    overflow: auto;
    height: 400px;
  }
  .flatpickr-days .dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 30px;
  }
  .flatpickr-rContainer {
    width: 100%;
  }
  .flatpickr-weekdays .flatpickr-weekdaycontainer:last-child {
    display: none;
  }
  .rangeMode .flatpickr-day {
    height: 46px;
    width: calc(100% / 7);
    max-width: 100%;
    padding: 5px;
    min-width: initial;
    font-size: 16px;
  }
  .flatpickr-months .flatpickr-month {
    height: 50px;
  }
  .flatpickr-current-month {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .price-tag {
    font-size: 9px;
  }
}
