:root {
  --hillside-gold: #c9a84c;
  --hillside-gold-deep: #9b742e;
  --hillside-stone: #292524;
  --hillside-surface: #fffdf9;
}

.hillside-date-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hillside-date-field {
  position: relative;
}

.hillside-date-trigger,
.hillside-guests select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgb(231 229 228);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #292524;
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hillside-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  text-align: left;
  cursor: pointer;
}

.hillside-date-trigger:hover,
.hillside-date-trigger:focus-visible,
.hillside-guests select:focus {
  border-color: var(--hillside-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.16);
  outline: none;
}

.hillside-date-trigger[data-empty="true"] {
  color: #a8a29e;
}

.hillside-date-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--hillside-gold-deep);
  flex: 0 0 auto;
}

.hillside-calendar {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  width: min(344px, calc(100vw - 2rem));
  padding: 14px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 20px 44px rgba(41, 37, 36, 0.2);
  backdrop-filter: blur(14px);
}

.hillside-calendar[hidden] {
  display: none;
}

.hillside-calendar__header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin-bottom: 12px;
}

.hillside-calendar__period {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hillside-calendar__select-wrap {
  position: relative;
  min-width: 0;
}

.hillside-calendar__select-wrap::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--hillside-gold-deep);
  border-bottom: 1.5px solid var(--hillside-gold-deep);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.hillside-calendar__select {
  height: 34px;
  min-width: 0;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #292524;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 0 22px 0 8px;
  text-align: center;
  text-transform: capitalize;
}

.hillside-calendar__select:hover,
.hillside-calendar__select:focus-visible {
  border-color: rgba(201, 168, 76, 0.34);
  background: rgba(201, 168, 76, 0.09);
  outline: none;
}

.hillside-calendar__select--month {
  width: 142px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
}

.hillside-calendar__select--year {
  width: 78px;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.hillside-calendar__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hillside-calendar__nav {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #57534e;
  cursor: pointer;
}

.hillside-calendar__nav:hover,
.hillside-calendar__nav:focus-visible {
  background: rgba(201, 168, 76, 0.14);
  color: var(--hillside-gold-deep);
  outline: none;
}

.hillside-calendar__nav:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.hillside-calendar__week,
.hillside-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.hillside-calendar__week {
  margin-bottom: 5px;
}

.hillside-calendar__weekday {
  color: #a8a29e;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  text-transform: uppercase;
}

.hillside-calendar__day {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #44403c;
  font: inherit;
  font-size: 0.79rem;
  cursor: pointer;
}

.hillside-calendar__day:hover:not(:disabled),
.hillside-calendar__day:focus-visible:not(:disabled) {
  background: rgba(201, 168, 76, 0.17);
  color: #704f16;
  outline: none;
}

.hillside-calendar__day:disabled {
  color: #d6d3d1;
  cursor: not-allowed;
}

.hillside-calendar__day--selected {
  background: linear-gradient(135deg, #c9a84c, #a77a2c);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(167, 122, 44, 0.28);
}

.hillside-calendar__day--today:not(.hillside-calendar__day--selected)::after {
  position: absolute;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hillside-gold-deep);
  content: "";
}

.hillside-guests {
  position: relative;
}

.hillside-guests::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--hillside-gold-deep);
  border-bottom: 1.5px solid var(--hillside-gold-deep);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.hillside-guests select {
  appearance: none;
  padding: 0 42px 0 15px !important;
}

@media (max-width: 639px) {
  .hillside-calendar {
    position: fixed;
    top: 50%;
    right: 1rem;
    bottom: auto;
    left: 1rem;
    width: auto;
    max-width: none;
    max-height: calc(100svh - 2rem);
    overflow-y: auto;
    transform: translateY(-50%);
  }

  .hillside-calendar__select--month {
    width: 128px;
    font-size: 1.1rem;
  }

  .hillside-calendar__select--year {
    width: 72px;
    font-size: 0.78rem;
  }
}
