.availability-page .section-heading {
  margin-bottom: 16px;
}

.availability-lead {
  max-width: 640px;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.availability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.availability-card,
.availability-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(30, 30, 30, 0.08);
}

.availability-card {
  padding: 28px 28px 22px;
}

.availability-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.availability-toolbar p {
  margin: 0;
  color: #885e3e;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.cal-nav {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f6f3ee;
  color: #1e1e1e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cal-nav:hover:not(:disabled) {
  background: #5e753d;
  color: #fff;
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-nav svg {
  width: 18px;
  height: 18px;
}

.cal-status {
  background: #fbf6f1;
  color: #885e3e;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cal-month h3 {
  margin: 0 0 14px;
  text-align: center;
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 600;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-weekday {
  text-align: center;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1e1e1e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.cal-day.is-empty {
  pointer-events: none;
}

.cal-day:hover:not(:disabled):not(.is-edge) {
  background: #f3f7ec;
}

.cal-day.is-today:not(.is-edge) {
  box-shadow: inset 0 0 0 1.5px #5e753d;
}

.cal-day.is-past {
  color: #d0d0d0;
  cursor: default;
}

.cal-day.is-busy:not(.is-edge):not(.is-preview-in):not(.is-preview-bad) {
  background: #f8efe9;
  color: #b08978;
}

.cal-day.is-busy:not(.is-edge):not(.is-checkout-ok) {
  cursor: not-allowed;
}

.cal-day.is-busy.is-checkout-ok {
  cursor: pointer;
}

.cal-day.is-in,
.cal-day.is-preview-in {
  background: #e7f3d8;
  color: #1e1e1e;
  border-radius: 8px;
}

.cal-day.is-edge {
  background: #5e753d;
  color: #fff;
  cursor: pointer;
}

.cal-day.is-preview-bad {
  background: #fdecea;
  color: #9a4032;
}

.cal-day:focus-visible,
.cal-nav:focus-visible,
.availability-clear:focus-visible,
.availability-book:focus-visible {
  outline: 2px solid #885e3e;
  outline-offset: 2px;
}

.availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f0ece6;
  color: #5c5c5c;
  font-size: 13px;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  display: inline-block;
}

.swatch-free {
  box-shadow: inset 0 0 0 1.5px #d9d9d9;
}

.swatch-busy {
  background: #f8efe9;
  box-shadow: inset 0 0 0 1.5px #e7d5cb;
}

.swatch-today {
  box-shadow: inset 0 0 0 1.5px #5e753d;
}

.swatch-stay {
  background: #5e753d;
}

.availability-panel {
  padding: 28px 24px;
  position: sticky;
  top: 110px;
}

.availability-panel h3 {
  margin: 0 0 18px;
  color: #885e3e;
  font-size: 22px;
}

.stay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece6;
  color: #6b6b6b;
  font-size: 14px;
}

.stay-row strong {
  color: #1e1e1e;
  font-weight: 600;
  text-align: right;
}

.availability-hint {
  min-height: 48px;
  margin: 16px 0 8px;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.55;
}

.availability-book {
  display: block;
  text-align: center;
  background: #1e1e1e;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  height: 46px;
  line-height: 46px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.availability-book:hover {
  background: #5e753d;
  color: #fff;
}

.availability-book.is-disabled {
  background: #d9d9d9;
  color: #fff;
  pointer-events: none;
}

.availability-clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #885e3e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}

.guest-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece6;
}

.guest-label {
  display: block;
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 600;
}

.guest-label sup,
.pet-field sup {
  color: #5e753d;
  font-size: 10px;
}

.guest-help {
  display: block;
  margin-top: 2px;
  color: #8a8a8a;
  font-size: 12px;
}

.guest-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guest-stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f6f3ee;
  color: #1e1e1e;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.guest-stepper button:hover:not(:disabled) {
  background: #5e753d;
  color: #fff;
}

.guest-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.guest-stepper strong {
  min-width: 18px;
  text-align: center;
  color: #1e1e1e;
  font-size: 16px;
}

.pet-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  color: #1e1e1e;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.pet-field input {
  margin-top: 3px;
  accent-color: #5e753d;
}

.availability-note {
  margin: 12px 0 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.5;
}

.availability-note a {
  color: #5e753d;
  font-weight: 600;
}

.guest-stepper button:focus-visible,
.pet-field input:focus-visible {
  outline: 2px solid #885e3e;
  outline-offset: 2px;
}

.stay-essentials {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #efe8df;
}

.stay-essentials h3 {
  margin: 0 0 16px;
  color: #885e3e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stay-essentials ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
}

.stay-essentials li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stay-essentials strong {
  color: #1e1e1e;
  font-size: 15px;
  font-weight: 600;
}

.stay-essentials span {
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.55;
}

.stay-policies {
  display: inline-block;
  margin-top: 18px;
  color: #5e753d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.stay-policies:hover {
  color: #885e3e;
}

@media (max-width: 991px) {
  .availability-layout {
    grid-template-columns: 1fr;
  }

  .availability-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .availability-card {
    padding: 18px 14px 16px;
    border-radius: 18px;
  }

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

  .availability-toolbar p {
    font-size: 15px;
  }

  .cal-grid {
    gap: 4px;
  }

  .cal-day {
    border-radius: 10px;
    font-size: 13px;
  }

  .stay-essentials ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
