﻿.hero-search-form {
  position: relative;
  z-index: 30;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) minmax(170px, 0.85fr) minmax(280px, 1.3fr) minmax(180px, 0.9fr) auto;
  gap: 0;
  align-items: stretch;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 38, 27, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 48px rgba(1, 11, 7, 0.34);
}

html:not(.site-settings-ready) [data-search-open="when"],
html.public-date-search-hidden [data-search-open="when"],
html.public-date-search-hidden [data-search-panel="when"] {
  display: none;
}

.search-segment {
  min-height: 64px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 1.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.65rem;
  justify-items: stretch;
  align-content: center;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.search-segment:hover,
.search-segment.is-active {
  background: rgba(232, 185, 35, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 185, 35, 0.2), 0 8px 18px rgba(1, 11, 7, 0.2);
}

.search-segment-label {
  font-size: 0.82rem;
  font-weight: 800;
}

.search-segment-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  justify-items: start;
}

.search-segment-value {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 700;
}

.search-segment.has-value .search-segment-value {
  color: var(--highlight);
}

.search-submit {
  min-height: 56px;
  margin-left: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  background: linear-gradient(135deg, var(--accent), #d9a914);
  color: #112015;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 140ms ease, transform 140ms ease;
}

/* Final MVP search polish: the compact search has four fields when dates are off. */
.search-bar:not(.has-date-search) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.95fr) auto;
}

.search-submit,
.search-submit:hover,
.search-submit:focus-visible,
.search-submit:active {
  color: #ffffff !important;
}

.search-submit-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.75' cy='6.75' r='4.75' stroke='white' stroke-width='2'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.search-segment-icon {
  display: inline-grid;
  position: static;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  grid-row: 1 / span 2;
  color: #b98020;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
}

.search-segment-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.search-segment::before { display: none; }

.search-segment[data-search-open="what"] .search-segment-icon-home {
  font-size: 1.5rem;
}

.search-bar.has-date-search {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.9fr) auto;
}

@media (max-width: 760px) {
  .search-bar,
  .search-bar.has-date-search,
  .search-bar:not(.has-date-search) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 1.35rem;
  }

  .search-submit {
    grid-column: 1 / -1;
    margin: 0;
  }
}

.search-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.search-submit-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  display: block;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.75' cy='6.75' r='4.75' stroke='%23112015' stroke-width='2'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%23112015' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
      center / contain no-repeat;
}

.search-submit-label {
  line-height: 1;
}

.search-popover {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  right: 0;
  padding: 1.25rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: rgba(9, 38, 27, 0.98);
  color: var(--text);
  box-shadow: 0 28px 54px rgba(1, 11, 7, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 220ms ease;
}

.search-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.search-panel-section {
  display: grid;
  gap: 1.2rem;
}

.search-panel-copy {
  display: grid;
  gap: 0.35rem;
}

.search-panel-kicker {
  margin: 0;
  color: var(--highlight);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel-section h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.destination-autocomplete {
  display: grid;
  gap: 0.85rem;
}

.destination-input-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(8, 34, 24, 0.84);
}

.destination-input-icon {
  color: var(--highlight);
  font-size: 1rem;
}

.destination-input-shell input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.destination-input-shell input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.destination-suggestions,
.type-suggestions {
  display: grid;
  gap: 0.55rem;
}

.type-suggestions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.destination-suggestion-btn,
.type-suggestion-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 0.9rem 1rem;
  background: rgba(8, 34, 24, 0.84);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.destination-suggestion-btn:hover,
.type-suggestion-btn:hover {
  filter: brightness(1.06);
}

.destination-suggestion-btn.is-active,
.type-suggestion-btn.is-active {
  border-color: rgba(232, 185, 35, 0.5);
  box-shadow: inset 0 0 0 1px rgba(232, 185, 35, 0.08);
}

.destination-suggestion-btn strong,
.type-suggestion-btn strong {
  display: block;
  font-size: 0.98rem;
}

.destination-suggestion-btn span,
.type-suggestion-btn span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.destination-empty-state {
  padding: 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.quick-night-chip,
.date-mode-tab,
.flex-duration-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, filter 140ms ease;
}

.quick-night-chip:hover,
.date-mode-tab:hover,
.flex-duration-chip:hover,
.calendar-nav-btn:hover,
.guest-step-btn:hover,
.flex-month-card:hover {
  filter: brightness(1.06);
}

.quick-night-chip.is-active,
.date-mode-tab.is-active,
.flex-duration-chip.is-active {
  border-color: rgba(232, 185, 35, 0.5);
  box-shadow: inset 0 0 0 1px rgba(232, 185, 35, 0.12);
  color: var(--highlight);
}

.date-mode-tabs {
  width: fit-content;
  margin: 0 auto;
  padding: 0.32rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 0.3rem;
}

.date-mode-tab {
  min-width: 110px;
  padding-inline: 1.2rem;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.date-mode-tab.is-active {
  background: rgba(232, 185, 35, 0.14);
}

.date-mode-body {
  display: grid;
  gap: 1rem;
}

.date-edit-context {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(8, 34, 24, 0.84);
}

.date-edit-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--highlight);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: filter 140ms ease, border-color 140ms ease;
}

.date-edit-close:hover {
  filter: brightness(1.08);
}

.date-edit-copy {
  display: grid;
  gap: 0.14rem;
}

.date-edit-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.date-edit-current {
  color: var(--highlight);
  font-size: 0.92rem;
  font-weight: 800;
}

.date-mode-body[data-date-mode-panel="months"] {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 1.35rem 1.4rem 1.15rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 185, 35, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(8, 34, 24, 0.94) 0%, rgba(10, 47, 33, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(1, 11, 7, 0.18);
}

.calendar-nav-row,
.flexible-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 34, 24, 0.82);
  color: var(--highlight);
  font-size: 1.3rem;
  cursor: pointer;
  transition: filter 140ms ease, border-color 140ms ease;
}

.calendar-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calendar-month {
  display: grid;
  gap: 0.7rem;
}

.calendar-month-label {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.calendar-weekdays {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.calendar-day {
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.calendar-day:hover {
  background: rgba(232, 185, 35, 0.1);
}

.calendar-day.is-muted {
  visibility: hidden;
}

.calendar-day.is-disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.calendar-day.is-disabled:hover {
  background: transparent;
}

.calendar-day.is-start,
.calendar-day.is-end {
  background: var(--accent);
  color: #112015;
}

.calendar-day.is-edit-target {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 0 0 5px rgba(232, 185, 35, 0.28);
}

.calendar-day.is-in-range {
  background: rgba(232, 185, 35, 0.16);
}

.quick-night-row,
.flex-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.months-panel,
.flexible-panel {
  display: grid;
  gap: 1rem;
}

.months-copy,
.flexible-copy {
  text-align: center;
}

.months-panel {
  width: min(100%, 620px);
  margin: 0 auto;
  gap: 1.2rem;
}

.months-copy {
  display: grid;
  gap: 0.25rem;
}

.months-panel .search-panel-kicker {
  color: var(--highlight);
}

.months-copy h3,
.flexible-month-nav p {
  color: var(--text);
}

.flexible-month-nav p {
  margin: 0;
  font-weight: 800;
}

.months-dial {
  width: min(100%, 340px);
  margin: 0 auto;
  touch-action: none;
}

.months-meter {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at center, #ffffff 0 34%, transparent 35%),
    conic-gradient(
      from 0deg,
      #f9e79a 0deg,
      #f3ce48 calc(var(--months-progress, 90deg) * 0.35),
      #e8b923 calc(var(--months-progress, 90deg) * 0.68),
      #bf8612 var(--months-progress, 90deg),
      rgba(255, 255, 255, 0.14) var(--months-progress, 90deg),
      rgba(255, 255, 255, 0.14) 360deg
    );
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.14),
    inset 0 10px 18px rgba(255, 255, 255, 0.1);
}

.months-meter::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(249, 231, 154, 0.88) 0deg,
      rgba(243, 206, 72, 0.78) calc(var(--months-progress, 90deg) * 0.35),
      rgba(232, 185, 35, 0.76) calc(var(--months-progress, 90deg) * 0.68),
      rgba(191, 134, 18, 0.72) var(--months-progress, 90deg),
      transparent var(--months-progress, 90deg),
      transparent 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0 56%, #000 57% 69%, transparent 70%);
  mask: radial-gradient(circle, transparent 0 56%, #000 57% 69%, transparent 70%);
  filter: blur(6px);
  opacity: 0.66;
  pointer-events: none;
  z-index: 0;
}

.months-dial-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.months-dial-marker {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.months-dial-marker.is-active {
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(232, 185, 35, 0.18),
    0 0 8px rgba(232, 185, 35, 0.34);
  transform: translate(-50%, -50%) scale(1.05);
}

.months-dial-handle {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  box-shadow:
    0 0 0 5px rgba(232, 185, 35, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(232, 185, 35, 0.24);
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 3;
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.months-dial-handle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(17, 32, 21, 0.08);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.2) 40%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 237, 237, 0.92));
}

.months-dial-handle::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(232, 185, 35, 0.24);
  opacity: 0.75;
}

.months-dial-handle:active,
.months-dial.is-dragging .months-dial-handle {
  cursor: grabbing;
  filter: brightness(1.04);
  box-shadow:
    0 0 0 6px rgba(232, 185, 35, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(232, 185, 35, 0.28);
}

.months-meter-value {
  width: 58%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 245, 239, 0.98));
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.months-meter-value strong {
  display: block;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 0.86;
  font-weight: 800;
  color: #112015;
  font-variant-numeric: tabular-nums;
}

.months-meter-value span {
  display: block;
  margin-top: 0;
  color: #365341;
  font-size: 0.92rem;
  font-weight: 700;
}

.months-summary {
  width: auto;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--highlight);
  font-weight: 800;
  text-align: center;
}

.months-summary-button {
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.months-summary-button:hover {
  filter: brightness(1.08);
}

.months-summary-separator {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}

.flex-month-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.flex-month-card {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(8, 34, 24, 0.84);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 0.9rem 0.5rem;
  text-align: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.flex-month-card.is-active {
  border-color: rgba(232, 185, 35, 0.5);
  box-shadow: inset 0 0 0 1px rgba(232, 185, 35, 0.12);
}

.flex-month-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.flex-month-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.flex-month-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
}

.flex-month-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.guest-panel-rows {
  border-top: 1px solid var(--line);
  margin-top: 0.3rem;
}

.guest-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.guest-panel-row:last-child {
  border-bottom: none;
}

.guest-panel-row strong {
  display: block;
  font-size: 1rem;
}

.guest-panel-row span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.guest-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.guest-step-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 34, 24, 0.82);
  color: var(--highlight);
  font-size: 1.2rem;
  cursor: pointer;
  transition: filter 140ms ease, border-color 140ms ease;
}

.search-hidden-fields {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: 1.7rem;
  }

  .search-segment.search-segment-wide {
    grid-column: span 2;
  }

  .search-submit {
    grid-column: span 2;
    margin-left: 0;
  }

  .calendar-range-grid,
  .flex-month-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .search-bar {
    grid-template-columns: 1fr;
    border-radius: 1.5rem;
  }

  .search-segment.search-segment-wide,
  .search-submit {
    grid-column: auto;
  }

  .search-submit {
    margin-left: 0;
  }

  .calendar-range-grid,
  .flex-month-grid,
  .type-suggestions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .search-popover {
    padding: 0.9rem;
    border-radius: 1.4rem;
  }

  .search-segment {
    min-height: 58px;
    padding-inline: 1rem;
  }

  .flex-duration-row,
  .quick-night-row {
    justify-content: flex-start;
  }

  .date-mode-tab {
    min-width: 94px;
  }
}

.search-header-root {
  position: relative;
  width: 100%;
}

.search-component {
  width: 100%;
  transition:
    width 250ms ease,
    transform 250ms ease;
}

.search-overlay {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, visibility 250ms ease;
  z-index: 70;
}

.search-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-header-form {
  position: relative;
  z-index: 80;
  display: grid;
  gap: 0.6rem;
  transform-origin: top center;
  transition: transform 250ms ease;
}

.search-header-root.is-expanded .search-header-form {
  transform: translateY(2px) scale(1);
}

.search-expanded-header {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition:
    max-height 250ms ease,
    opacity 250ms ease,
    transform 250ms ease;
}

.search-header-root.is-expanded .search-expanded-header {
  max-height: 96px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.search-mode-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 0.05rem;
}

.search-mode-tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.search-mode-tab:hover {
  transform: translateY(-1px);
}

/* Premium light search shell used across home and listing surfaces. */
.search-bar {
  grid-template-columns:
    minmax(210px, 1.05fr)
    minmax(150px, 0.8fr)
    minmax(240px, 1.15fr)
    minmax(160px, 0.85fr)
    auto;
  gap: 0;
  padding: 0.72rem 0.84rem;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1c1917;
  backdrop-filter: blur(16px);
  box-shadow:
    0 20px 48px rgba(28, 25, 23, 0.16),
    0 2px 10px rgba(28, 25, 23, 0.06);
}

.search-segment {
  position: static;
  min-height: 58px;
  border-radius: 0;
  color: #1c1917;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.65rem;
  align-items: center;
  padding: 0.72rem 1.25rem;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.search-segment::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.72rem;
  bottom: 0.72rem;
  width: 1px;
  background: rgba(28, 25, 23, 0.1);
}

.search-segment:hover,
.search-segment.is-active {
  background: #ffffff;
  color: #1c1917;
  box-shadow:
    inset 0 0 0 1px rgba(185, 128, 32, 0.22),
    0 8px 20px rgba(28, 25, 23, 0.1);
}

.search-segment:hover::after,
.search-segment.is-active::after,
.search-segment:last-of-type::after {
  opacity: 0;
}

.search-segment-label {
  color: #78716c;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.search-segment-value {
  color: #1c1917;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-segment.has-value .search-segment-value {
  color: #1c1917;
}

.search-submit {
  min-height: 52px;
  margin-left: 0.7rem;
  border-radius: 0.5rem;
  padding: 0.88rem 1.55rem;
  background: linear-gradient(135deg, #c38a2e 0%, #a66f1d 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 20px rgba(166, 111, 29, 0.28);
}

.search-submit-icon {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.75' cy='6.75' r='4.75' stroke='%23ffffff' stroke-width='2'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
      center / contain no-repeat;
}

.search-popover {
  border-color: rgba(28, 25, 23, 0.08);
  background: #ffffff;
  color: #1c1917;
  box-shadow:
    0 26px 70px rgba(28, 25, 23, 0.16),
    0 2px 10px rgba(28, 25, 23, 0.06);
}

.search-panel-kicker,
.destination-input-icon,
.date-edit-close,
.calendar-nav-btn,
.guest-step-btn {
  color: #b98020;
}

.search-panel-section h3,
.date-edit-copy h3,
.calendar-month-label,
.months-copy h3,
.flexible-copy h3,
.flexible-month-nav p,
.guest-panel-row strong {
  color: #1c1917;
}

.destination-input-shell,
.destination-suggestion-btn,
.type-suggestion-btn,
.date-edit-context,
.date-mode-body[data-date-mode-panel="months"],
.flex-month-card {
  border-color: rgba(28, 25, 23, 0.08);
  background: #f7f3ec;
  color: #1c1917;
}

.date-mode-tabs,
.quick-night-chip,
.date-mode-tab,
.flex-duration-chip,
.calendar-nav-btn,
.guest-step-btn {
  border-color: rgba(28, 25, 23, 0.1);
  background: #ffffff;
  color: #1c1917;
}

.destination-input-shell input {
  color: #1c1917;
}

.destination-input-shell input::placeholder {
  color: #a8a29e;
}

.destination-suggestion-btn span,
.type-suggestion-btn span,
.destination-empty-state,
.guest-panel-row span,
.months-summary-separator,
.flex-month-card span,
.calendar-weekdays {
  color: #78716c;
}

.destination-suggestion-btn.is-active,
.type-suggestion-btn.is-active,
.quick-night-chip.is-active,
.date-mode-tab.is-active,
.flex-duration-chip.is-active,
.flex-month-card.is-active {
  border-color: rgba(185, 128, 32, 0.42);
  color: #1c1917;
  box-shadow: inset 0 0 0 1px rgba(185, 128, 32, 0.14);
}

.date-mode-tab.is-active {
  background: #f6ead8;
}

.date-mode-body[data-date-mode-panel="months"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 138, 46, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f9f5ee 100%);
}

.calendar-day {
  color: #1c1917;
}

.calendar-day:hover,
.calendar-day.is-in-range {
  background: rgba(195, 138, 46, 0.13);
}

.calendar-day.is-start,
.calendar-day.is-end {
  background: #c38a2e;
  color: #ffffff;
}

.date-edit-current,
.months-summary,
.months-summary-button {
  color: #8b5d18;
}

.flex-month-icon {
  color: #b98020;
}
