.vcr-calendar {
  --vcr-gold: #b48a42;
  --vcr-gold-dark: #9a7434;
  --vcr-gold-soft: #f4ead8;
  --vcr-ink: #302a26;
  --vcr-muted: #756d64;
  --vcr-line: #e8ded0;
  --vcr-soft: #fbf6ef;
  --vcr-cream: #fffdf9;
  --vcr-danger: #b4532a;
  --vcr-success: #6f7d45;
  color: var(--vcr-ink);
  font-family: "Montserrat", Arial, sans-serif;
  max-width: 1080px;
  margin: 0 auto;
}

.vcr-calendar *,
.vcr-calendar *::before,
.vcr-calendar *::after {
  box-sizing: border-box;
}

.vcr-calendar__shell {
  background: var(--vcr-cream);
  border: 1px solid var(--vcr-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(63, 48, 35, 0.16);
  padding: 30px;
}

.vcr-calendar__loading {
  color: var(--vcr-muted);
  padding: 20px;
  text-align: center;
}

.vcr-calendar__header {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.vcr-calendar__eyebrow {
  align-items: center;
  color: var(--vcr-gold);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.vcr-calendar__eyebrow::after {
  background: var(--vcr-gold);
  content: "";
  display: inline-block;
  height: 1px;
  opacity: 0.65;
  width: 48px;
}

.vcr-calendar__title {
  color: var(--vcr-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 10px;
}

.vcr-calendar__subtitle {
  color: var(--vcr-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}

.vcr-calendar__nav {
  align-items: center;
  border-top: 1px solid var(--vcr-line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 14px;
}

.vcr-calendar__nav::before {
  color: var(--vcr-gold-dark);
  content: "Browse months";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: auto;
  text-transform: uppercase;
}

.vcr-calendar__nav-button,
.vcr-calendar__icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--vcr-line);
  border-radius: 2px;
  color: var(--vcr-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 1px;
  line-height: 1;
  min-height: 38px;
  min-width: 108px;
  padding: 0 14px;
  text-transform: uppercase;
}

.vcr-calendar__nav-button:hover,
.vcr-calendar__icon-button:hover {
  background: var(--vcr-gold-soft);
  border-color: var(--vcr-gold);
  color: var(--vcr-gold-dark);
}

.vcr-calendar__fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.vcr-calendar__field {
  display: grid;
  gap: 7px;
}

.vcr-calendar__field span {
  color: var(--vcr-gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vcr-calendar__field input {
  background: #fff;
  border: 1px solid var(--vcr-line);
  border-radius: 6px;
  color: var(--vcr-ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.vcr-calendar__field input:focus {
  border-color: var(--vcr-gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 66, 0.16);
  outline: none;
}

.vcr-calendar__months {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 340px;
  opacity: 1;
  transition: opacity 160ms ease;
}

.vcr-calendar__months.is-loading {
  opacity: 0.58;
}

.vcr-calendar__month {
  background: var(--vcr-soft);
  border: 1px solid var(--vcr-line);
  border-radius: 8px;
  padding: 16px;
}

.vcr-calendar__month-title {
  color: var(--vcr-gold-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 12px;
}

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

.vcr-calendar__weekday {
  color: var(--vcr-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 0;
  text-align: center;
  text-transform: uppercase;
}

.vcr-calendar__day {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--vcr-line);
  border-radius: 6px;
  color: var(--vcr-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.vcr-calendar__day:hover:not(:disabled) {
  background: var(--vcr-gold-soft);
  border-color: var(--vcr-gold);
  color: var(--vcr-gold-dark);
}

.vcr-calendar__day:focus-visible {
  border-color: var(--vcr-gold);
  box-shadow: 0 0 0 3px rgba(180, 138, 66, 0.16);
  outline: none;
}

.vcr-calendar__day--blank {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.vcr-calendar__day.is-booked,
.vcr-calendar__day:disabled {
  background: #f3eee7;
  color: #c5b9ab;
  cursor: not-allowed;
  text-decoration: line-through;
}

.vcr-calendar__day.is-available {
  background: #fff;
}

.vcr-calendar__day.is-unknown {
  background: #fff;
  border-style: dashed;
  color: var(--vcr-muted);
}

.vcr-calendar__day.is-in-range {
  background: var(--vcr-gold-soft);
  border-color: rgba(180, 138, 66, 0.45);
}

.vcr-calendar__day.is-selected-start,
.vcr-calendar__day.is-selected-end {
  background: var(--vcr-gold);
  border-color: var(--vcr-gold);
  color: #fff;
  text-decoration: none;
}

.vcr-calendar__footer {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1.2fr auto;
  margin-top: 20px;
}

.vcr-calendar__legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vcr-calendar__legend-item {
  align-items: center;
  color: var(--vcr-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
}

.vcr-calendar__legend-dot {
  border-radius: 999px;
  display: inline-flex;
  height: 10px;
  width: 10px;
}

.vcr-calendar__legend-dot--available {
  background: #fff;
  border: 1px solid var(--vcr-line);
}

.vcr-calendar__legend-dot--booked {
  background: #d8cfc4;
}

.vcr-calendar__legend-dot--selected {
  background: var(--vcr-gold);
}

.vcr-calendar__summary {
  color: var(--vcr-muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 22px;
}

.vcr-calendar__summary--error {
  color: var(--vcr-danger);
}

.vcr-calendar__summary--success {
  color: var(--vcr-success);
  font-weight: 700;
}

.vcr-calendar__cta {
  background: var(--vcr-gold);
  border: 1px solid var(--vcr-gold);
  border-radius: 2px;
  box-shadow: 0 12px 26px rgba(154, 116, 52, 0.22);
  color: #fff;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  min-height: 48px;
  min-width: 220px;
  padding: 12px 18px;
  text-transform: uppercase;
}

.vcr-calendar__cta:hover:not(:disabled) {
  background: var(--vcr-gold-dark);
  border-color: var(--vcr-gold-dark);
}

.vcr-calendar__cta:disabled {
  background: #cfc6bc;
  border-color: #cfc6bc;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .vcr-calendar__shell {
    padding: 20px;
  }

  .vcr-calendar__title {
    font-size: 34px;
  }

  .vcr-calendar__fields,
  .vcr-calendar__months,
  .vcr-calendar__footer {
    grid-template-columns: 1fr;
  }

  .vcr-calendar__nav {
    align-items: stretch;
    flex-direction: column;
  }

  .vcr-calendar__nav::before {
    margin-right: 0;
  }

  .vcr-calendar__cta {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .vcr-calendar__shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 14px;
  }

  .vcr-calendar__grid {
    gap: 4px;
  }

  .vcr-calendar__day {
    border-radius: 5px;
    font-size: 12px;
  }
}
