/* Shared guest picker — Home / Browse Rooms / Booking.
   Scoped to .guest-picker / .home-guest-picker so global 11px and
   booking-compact field rules cannot crush the trigger or stepper. */

.guest-picker,
.home-guest-picker {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.guest-picker *,
.home-guest-picker * {
  box-sizing: border-box;
}

.home-guest-picker__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  width: 100% !important;
  text-align: left;
  padding: 0.875rem 1rem !important;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: #f1f5f9;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: hsl(var(--foreground));
  cursor: pointer;
  min-height: 3rem !important;
  height: auto !important;
  max-height: none !important;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-guest-picker__value {
  flex: 1 1 auto !important;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.home-guest-picker__chevron {
  flex-shrink: 0;
  font-size: 0.7rem !important;
  color: hsl(var(--foreground) / 0.45);
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-guest-picker.is-open .home-guest-picker__chevron {
  transform: rotate(180deg);
  color: hsl(var(--primary));
}

.home-guest-picker__icon {
  flex-shrink: 0;
  color: hsl(var(--foreground) / 0.4);
  font-size: 0.95rem !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

.home-guest-picker__btn:hover,
.home-guest-picker.is-open .home-guest-picker__btn {
  border-color: hsl(var(--primary));
  background: #fff;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.home-guest-picker__panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  min-width: 17.5rem;
  top: calc(100% + 0.45rem);
  z-index: 80;
  background: #fff;
  border: 1px solid hsl(var(--primary) / 0.18);
  border-radius: 1.1rem;
  padding: 0.95rem 1rem 1rem !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  animation: homePopoverIn 0.18s ease-out;
  text-align: left;
}

@media (min-width: 640px) {
  .home-guest-picker__panel {
    min-width: 19rem;
  }
}

@keyframes homePopoverIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-guest-picker.is-open .home-guest-picker__panel {
  display: block;
}

.guest-picker .home-guest-row,
.home-guest-picker .home-guest-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 0.55rem 0.15rem !important;
  margin: 0 !important;
}

.home-guest-row--divider {
  border-top: 1px solid hsl(var(--border) / 0.85);
  margin-top: 0.15rem !important;
  padding-top: 0.75rem !important;
}

.home-guest-row__label {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  min-width: 0;
}

.guest-picker .home-guest-row__title,
.home-guest-picker .home-guest-row__title {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: hsl(var(--foreground)) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.guest-picker .home-guest-row__hint,
.home-guest-picker .home-guest-row__hint {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: hsl(var(--foreground) / 0.45) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.guest-picker .home-guest-stepper,
.home-guest-picker .home-guest-stepper {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  flex-shrink: 0;
}

.guest-picker .home-guest-stepper__btn,
.home-guest-picker .home-guest-stepper__btn {
  width: 2.125rem !important;
  height: 2.125rem !important;
  min-width: 2.125rem !important;
  min-height: 2.125rem !important;
  max-width: 2.125rem !important;
  max-height: 2.125rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid hsl(var(--border)) !important;
  background: #fff !important;
  color: hsl(var(--foreground) / 0.72) !important;
  cursor: pointer;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: border-color 0.15s, color 0.15s, background 0.15s, opacity 0.15s;
}

.home-guest-stepper__btn:hover:not(:disabled) {
  border-color: hsl(var(--primary) / 0.45) !important;
  color: hsl(var(--primary)) !important;
  background: hsl(var(--primary) / 0.05) !important;
}

.home-guest-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.guest-picker .home-guest-stepper__value,
.home-guest-picker .home-guest-stepper__value {
  min-width: 1.75rem !important;
  width: auto !important;
  height: auto !important;
  padding: 0 0.15rem !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  color: hsl(var(--foreground)) !important;
  display: inline-block !important;
}

.guest-picker .home-guest-picker__done,
.home-guest-picker .home-guest-picker__done {
  display: block !important;
  width: 100% !important;
  margin-top: 0.85rem !important;
  padding: 0.7rem 1rem !important;
  border: none !important;
  border-radius: 0.85rem !important;
  background: hsl(var(--primary)) !important;
  color: #fff !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.home-guest-picker__done:hover {
  filter: brightness(1.05);
}

.home-guest-picker__done:active {
  transform: scale(0.98);
}

/* Browse Rooms — sit in the 36px filter row, Home-style trigger */
.search-filter-card .guest-picker,
.search-filter-card .home-guest-picker,
.search-ff--guests {
  min-width: 0;
  width: 100%;
}

.search-ff--guests {
  justify-content: flex-start;
}

.search-filter-card .home-guest-picker__btn {
  height: auto !important;
  min-height: 2.75rem !important;
  max-height: none !important;
  padding: 0.55rem 0.7rem !important;
  gap: 0.45rem !important;
  border-radius: 0.5rem;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: hsl(var(--background));
}

.search-filter-card,
.search-ff--guests {
  overflow: visible;
}

.search-filter-card .home-guest-picker__panel {
  min-width: 17.5rem;
  right: auto;
}

.search-filter-card .search-ff--guests > span {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 2px;
  color: rgba(15, 23, 42, 0.55);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-filter-card .search-ff--guests .home-guest-picker.is-open {
  z-index: 30;
}

@media (max-width: 767px) {
  .search-filter-card .search-ff--guests .home-guest-picker.is-open .home-guest-picker__panel {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0.4rem !important;
    animation: none !important;
  }
}

@media (min-width: 768px) {
  .search-filter-card .search-ff--guests {
    position: relative;
    z-index: 5;
  }

  .search-filter-card .search-ff--guests .home-guest-picker.is-open {
    z-index: 40;
  }

  .search-filter-card .search-ff--guests .home-guest-picker__panel {
    left: 0;
    right: auto;
    width: max(17.5rem, 100%);
  }
}

/* Booking card — collapsed gray bar; expanded inline panel like the guest mockup */
.property-booking-field.property-booking-guests,
.property-booking-guests {
  position: relative;
  z-index: 6;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.property-booking-guests > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.property-booking-guests:has(.home-guest-picker.is-open) {
  border: 1px solid #d5dde8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 0.45rem 0.8rem 0.7rem !important;
}

.property-booking-guests:has(.home-guest-picker.is-open) > label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  padding: 0 0 0.2rem !important;
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: rgba(10, 22, 40, 0.48) !important;
}

.property-booking-guests .guest-picker,
.property-booking-guests .home-guest-picker {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.property-booking-guests .home-guest-picker__btn {
  min-height: 3rem !important;
  height: auto !important;
  max-height: none !important;
  padding: 0.7rem 0.85rem !important;
  gap: 0.55rem !important;
  border-radius: 12px;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #0b1428 !important;
  background: #eef2f6 !important;
  border: 1px solid #d5dde8 !important;
  box-shadow: none !important;
}

.property-booking-guests .home-guest-picker__chevron {
  margin-left: auto;
}

.property-booking-guests .home-guest-picker.is-open .home-guest-picker__btn {
  background: transparent !important;
  border: none !important;
  padding: 0.15rem 0 0.45rem !important;
  min-height: 0 !important;
  border-radius: 0;
}

.property-booking-guests .home-guest-picker__panel {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.1rem 0 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  background: transparent !important;
}

.property-booking-guests .home-guest-row--stack,
.property-booking-guests .home-guest-row {
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.45rem !important;
  padding: 0.15rem 0 0.25rem !important;
}

.property-booking-guests .home-guest-row__title {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

.property-booking-guests .home-guest-stepper {
  justify-content: flex-start !important;
  gap: 0.85rem !important;
}

.property-booking-guests .home-guest-picker__done {
  background: transparent !important;
  color: #0b1428 !important;
  width: auto !important;
  margin: 0.15rem 0 0.35rem !important;
  padding: 0.25rem 0 !important;
  text-align: left !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
}

.property-booking-guests .home-guest-picker__icon {
  font-size: 0.95rem !important;
  color: #64748b !important;
}

.property-booking-guests .property-booking-hint {
  display: none !important;
}

.property-booking-guests:has(.home-guest-picker.is-open) .property-booking-hint {
  display: block !important;
  padding: 0.5rem 0 0.1rem !important;
  margin: 0.35rem 0 0 !important;
  border-top: 1px solid #e8edf2;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.property-booking-card,
.property-booking-card:has(.home-guest-picker),
.property-booking-checkin-guests:has(.home-guest-picker),
.property-booking-checkin-guests:has(.home-guest-picker) > .property-booking-guests,
.property-booking-field.property-booking-guests:has(.home-guest-picker) {
  overflow: visible !important;
}

@media (max-width: 767px) {
  .property-booking-checkin-guests,
  .property-booking-checkin-guests > .property-booking-guests {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    height: auto !important;
    max-height: none !important;
  }

  .property-booking-guests .home-guest-picker__btn {
    min-height: 2.85rem !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .property-booking-guests .home-guest-picker.is-open .home-guest-picker__btn {
    min-height: 0 !important;
    padding: 0.15rem 0 0.45rem !important;
  }

  .property-booking-guests .home-guest-picker__panel {
    position: static !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
