/* Le Pouzat public availability - deliberately scoped to avoid altering the site or admin calendar. */
.gite-availability {
  padding-top: 20px;
  padding-bottom: 84px
}

.gite-availability-heading {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 30px
}

.gite-availability-heading h2 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: #243a2e;
  margin: 12px 0
}

.gite-availability-heading p:last-child {
  color: #64766a;
  line-height: 1.6
}

.gite-availability-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap
}

.gite-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: .85rem;
  color: #40564a
}

.gite-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px
}

.gite-cal-key {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #eef0eb;
  border: 1px solid #d8ddd5
}

.gite-cal-key.available {
  background: #d7ead6;
  border-color: #b7d4b5
}

.gite-cal-key.booked {
  background: #f2d3ce;
  border-color: #dfb1ab
}

.gite-cal-nav {
  display: flex;
  gap: 8px
}

.gite-cal-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid #d9dfd7;
  border-radius: 7px;
  background: white;
  color: #243a2e;
  cursor: pointer;
  font-size: 1.6rem
}

.gite-cal-nav button:disabled {
  opacity: .35;
  cursor: not-allowed
}

.gite-cal-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.gite-cal-month {
  border: 1px solid #dce2d9;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0
}

.gite-cal-month h3 {
  padding: 18px 18px 14px;
  margin: 0;
  font-size: 1.05rem;
  color: #243a2e;
  font-weight: 600
}

.gite-cal-weekdays,
.gite-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr))
}

.gite-cal-weekdays {
  background: #f4f5f0;
  border-top: 1px solid #e9ebe4;
  border-bottom: 1px solid #e9ebe4
}

.gite-cal-weekdays span {
  text-align: center;
  color: #66796c;
  font-size: .72rem;
  padding: 10px 0
}

.gite-cal-day {
  display: grid;
  place-items: center;
  min-height: 42px;
  font-size: .88rem;
  color: #40554b;
  border-bottom: 1px solid #f0f1ed;
  border-right: 1px solid #f0f1ed;
  position: relative;
  background: #f6f7f4
}

.gite-cal-day:nth-child(7n) {
  border-right: 0
}

.gite-cal-day.blank {
  background: #fff;
  color: transparent
}

.gite-cal-day.past {
  opacity: .45
}

.gite-cal-day.available {
  background: #d7ead6;
  color: #21462b
}

.gite-cal-day.booked {
  background: #f2d3ce;
  color: #763d35
}

.gite-cal-day.unknown {
  background: #f3f4f1;
  color: #56655d
}

.gite-cal-day.today:after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #91652f;
  position: absolute;
  bottom: 3px
}

.gite-cal-status {
  min-height: 22px;
  font-size: .85rem;
  color: #6b796f;
  margin: 18px 0
}

.gite-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e5e9e2;
  padding-top: 22px
}

.gite-cal-footer p {
  color: #66796c;
  max-width: 600px;
  font-size: .89rem;
  margin: 0;
  line-height: 1.5
}

@media(max-width:920px) {
  .gite-cal-months {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .gite-cal-month:nth-child(3) {
    display: none
  }
}

@media(max-width:620px) {
  .gite-availability {
    padding-top: 48px;
    padding-bottom: 58px
  }

  .gite-cal-months {
    grid-template-columns: 1fr
  }

  .gite-cal-month:nth-child(n+2) {
    display: none
  }

  .gite-cal-day {
    min-height: 46px
  }

  .gite-cal-footer {
    display: block
  }

  .gite-cal-footer .button {
    margin-top: 16px
  }
}