.home-hero__background-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
}

.home-hero__mobile-menu {
  background: rgba(37, 37, 37, 0.95);
  backdrop-filter: blur(12px);
}

.home-hero__search-field {
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background-color: #1d1d1d;
  padding: 1rem;
  color: #cccccc;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hero__search-field:hover {
  background-color: #242424;
}

.home-hero__search-field.has-validation-error {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.home-hero__search-shell {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
}

.home-hero__search-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.search-validation-summary {
  grid-column: 1 / -1;
  border-radius: 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.42);
  padding: 0.75rem 1rem;
  color: #fee2e2;
  font-size: 0.86rem;
  font-weight: 600;
}

.home-hero__search-form > * {
  min-width: 0;
}

.home-hero__search-submit {
  justify-self: center;
  width: min(100%, 15rem);
  min-height: 3.5rem;
}

.home-hero__search-field[data-open="true"],
.home-hero__search-field:focus-within {
  position: relative;
  z-index: 30;
  border-color: rgba(196, 156, 116, 0.35);
  box-shadow: 0 0 0 2px #c49c74;
}

.home-hero__date-field {
  position: relative;
  min-width: 0;
}

.home-hero__date-field.has-validation-error,
.hero-dropdown.has-validation-error,
.guest-picker.has-validation-error {
  padding-bottom: 1.55rem;
}

.search-validation-error {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 600;
}

.home-hero__date-toggle {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.home-hero__date-toggle:focus {
  outline: none;
}

.home-hero__field-caption {
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-hero__field-value {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero__date-native {
  display: none;
}

.home-hero__date-copy {
  min-width: 0;
  pointer-events: none;
}

.home-hero__date-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: 45;
  width: min(21rem, calc(100vw - 3rem));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(29, 29, 29, 0.97);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  padding: 1rem;
}

.home-hero__calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.home-hero__calendar-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-hero__calendar-nav {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-hero__calendar-nav:hover,
.home-hero__calendar-nav:focus-visible {
  border-color: rgba(196, 156, 116, 0.45);
  background: rgba(196, 156, 116, 0.14);
  outline: none;
}

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

.home-hero__calendar-weekdays {
  margin-bottom: 0.45rem;
}

.home-hero__calendar-weekday {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__calendar-day {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-hero__calendar-day:hover:not(:disabled),
.home-hero__calendar-day:focus-visible {
  border-color: rgba(196, 156, 116, 0.42);
  background: rgba(196, 156, 116, 0.12);
  outline: none;
}

.home-hero__calendar-day.is-outside-month {
  color: rgba(255, 255, 255, 0.3);
}

.home-hero__calendar-day.is-today {
  border-color: rgba(255, 255, 255, 0.18);
}

.home-hero__calendar-day.is-selected {
  border-color: rgba(196, 156, 116, 0.75);
  background: #c49c74;
  color: #252525;
  font-weight: 700;
}

.home-hero__calendar-day:disabled,
.home-hero__calendar-day.is-disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.18);
}

.home-hero__calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero__calendar-action {
  color: #c49c74;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.home-hero__calendar-action:hover,
.home-hero__calendar-action:focus-visible {
  color: #ffffff;
  outline: none;
}

.home-hero__calendar-action:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.2);
}

.home-hero__date-value.is-placeholder {
  color: #cccccc;
}

@media (min-width: 768px) {
  .home-hero__search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-hero__search-form .hero-dropdown,
  .home-hero__search-form .guest-picker,
  .home-hero__search-submit {
    grid-column: 1 / -1;
  }

  .home-hero__search-field {
    min-width: 0;
    height: 100%;
    padding: 1rem 1.15rem;
  }

  .home-hero__date-toggle {
    height: 100%;
  }

  .home-hero__field-caption {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .home-hero__search-submit {
    min-height: 3.75rem;
  }
}

@media (min-width: 640px) {
  .home-hero__date-panel {
    left: 0;
    transform: none;
  }
}

@media (min-width: 1280px) {
  .home-hero__search-form {
    grid-template-columns: minmax(14rem, 1.55fr) minmax(9rem, 0.9fr) minmax(9rem, 0.9fr) minmax(12rem, 1.15fr) minmax(9rem, 0.75fr);
    gap: 0.85rem;
  }

  .home-hero__search-form .hero-dropdown,
  .home-hero__search-form .guest-picker,
  .home-hero__search-submit {
    grid-column: auto;
  }

  .home-hero__search-submit {
    min-width: 0;
    width: 100%;
    height: 100%;
    justify-self: stretch;
  }
}
