/* ============================================================
   HERO  ·  Shivoham Retreat
   ============================================================ */

body:has(.hero)::before { display: none; }


.hero {
  position: relative;
  height: 88vh;
  min-height: 580px;
  overflow: hidden;
  margin: 1rem;
  width: calc(100% - 2rem);
  border-radius: 16px;
}

/* Gradient overlay — dark from left, fades right */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 45%,
    transparent 70%
  );
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}

/* ── Slideshow ───────────────────────────────── */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.06);
  animation: none;
}

.hero__slide.is-active {
  opacity: 1;
  animation: slideZoom 7s ease-out forwards;
}

@keyframes slideZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0);  }
}

/* ── Hero text ───────────────────────────────── */
.hero__text {
  position: absolute;
  bottom: 11rem;
  left: clamp(1.5rem, 4vw, 3rem);
  z-index: 10;
  text-align: left;
  pointer-events: none;
  max-width: 600px;
}

.hero__eyebrow {
  display: block;
  font-family: var(--f-sans, sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero__headline {
  font-family: var(--f-sans, sans-serif);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .hero__text { bottom: 13rem; }
  .hero__headline { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* ── Slide dots ──────────────────────────────── */
.hero__dots {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__dot {
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.hero__dot.is-active {
  background: var(--gold, #C8A96E);
  width: 44px;
}

/* ── Booking bar ─────────────────────────────── */
.booking-bar {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  padding-inline: var(--wrap-pad, clamp(1.25rem, 4vw, 3rem));
}

.booking-bar__inner {
  max-width: 100%;
  margin: 0 auto;
  background: #FAF8F2;
  border-radius: 8px;
  box-shadow: 0 8px 40px -8px rgba(0, 0, 0, 0.22), 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

/* ── Individual field ───────────────────────── */
.bb-field {
  flex: 1;
  min-width: 0;
  padding: 2rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 10px;
}

.bb-field:hover {
  background: var(--ivory, #FAF7F2);
}

.bb-field label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-sans, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1C3228;
  margin-bottom: 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}

.bb-field label svg {
  color: #1C3228;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

/* Combined date range field */
.bb-field--dates { flex: 1.8; }

/* ── Flatpickr overrides ─────────────────────── */
.flatpickr-calendar {
  border-radius: 12px !important;
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.18) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  font-family: var(--f-sans, sans-serif) !important;
}

/* Header bar */
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays {
  background: #FAF8F2 !important;
  color: #1C3228 !important;
}
.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #1C3228 !important;
}
span.flatpickr-weekday {
  color: #7A6C5C !important;
  font-weight: 600 !important;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  fill: #1C3228 !important;
}

/* Normal day */
.flatpickr-day {
  color: #1C3228 !important;
  border-radius: 6px !important;
}

/* Hover */
.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
  background: #E2D9CA !important;
  border-color: transparent !important;
}

/* Today */
.flatpickr-day.today {
  border-color: #1C3228 !important;
  color: #1C3228 !important;
  background: transparent !important;
}

/* Selected start & end dots — black circle */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #B8882A !important;
  border-color: #1C3228 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

/* In-range days — light grey fill, NO box-shadow */
.flatpickr-day.inRange {
  background: #E0D8CA !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #1C3228 !important;
  border-radius: 0 !important;
}

/* Remove the side box-shadows flatpickr uses for continuous range bg */
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  box-shadow: none !important;
}

/* Disabled days */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: #B0A090 !important;
  background: transparent !important;
}

.bb-field input,
.bb-field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--f-sans, sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--forest, #1C3829);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.bb-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.3;
  cursor: pointer;
}

.bb-field select option {
  color: var(--ink, #151510);
}

/* ── Divider ────────────────────────────────── */
.bb-divider {
  width: 1px;
  height: 4rem;
  background: rgba(0, 0, 0, 0.09);
  flex-shrink: 0;
}

/* ── Search button ──────────────────────────── */
.bb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0.85rem 0.85rem 1.1rem;
  padding: 1.3rem 2.5rem;
  background-image: linear-gradient(to right, #1C3228 50%, #B8882A 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: #ffffff;
  font-family: var(--f-sans, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-position 0.38s ease, box-shadow 0.22s ease, transform 0.22s ease;
  text-decoration: none;
}

.bb-btn:hover {
  background-position: left center;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .booking-bar {
    bottom: 1.5rem;
    padding-inline: 1.25rem;
  }

  .booking-bar__inner {
    flex-wrap: wrap;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 28px -8px rgba(0,0,0,0.18);
  }

  .bb-field {
    flex: 0 0 calc(50% - 0.5rem);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .bb-field:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,0.06);
  }

  .bb-divider { display: none; }

  .bb-btn {
    flex: 1 0 100%;
    justify-content: center;
    margin: 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 72vh;
    min-height: 420px;
  }
  .bb-field { flex: 0 0 100%; border-right: 0 !important; }
}
