/* ===================================================
   ULUVIU HERO SEARCH FILTER BAR (MATURE & RESTRAINED)
   Information-first, typography-driven, clean pill
   =================================================== */

.uluviu-hero-filter-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.uluviu-hero-filter-wrapper.is-search-active {
  z-index: 1000;
}

/* Overlay Completely Disabled */
.hostex-search-backdrop-overlay {
  display: none !important;
  pointer-events: none !important;
}

/* Monolithic Clean Search Pill Bar */
.uluviu-filter-pill-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 10;
}

.uluviu-filter-pill-bar:hover,
.uluviu-hero-filter-wrapper.is-search-active .uluviu-filter-pill-bar {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.14);
}

/* Individual Filter Columns */
.filter-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  position: relative;
  cursor: pointer;
  flex: 1;
  border-radius: 9999px;
  transition: background 0.15s ease;
}

.filter-col:hover {
  background: #f8fafc;
}

/* Active field: restrained & borderless */
.filter-col.is-active-field {
  background: #f8fafc !important;
  box-shadow: none !important;
  border: none !important;
}

.filter-col.is-active-field .filter-label {
  color: #836647 !important;
  font-weight: 700 !important;
}

.filter-col.is-active-field .filter-icon {
  color: #836647 !important;
}

.filter-col-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  text-align: left;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8c9ba5;
  margin-bottom: 2px;
  pointer-events: none;
  line-height: 1.2;
}

.filter-input-wrap {
  display: flex;
  align-items: center;
}

.filter-select,
.filter-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-family: inherit;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
}

.filter-display-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-left: 8px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.filter-col:hover .filter-icon {
  color: #836647;
}

/* Subtle Vertical Divider */
.filter-divider {
  width: 1px;
  height: 26px;
  background: #ebeef2;
  flex-shrink: 0;
  margin: 0 4px;
}

/* Restrained Primary Search Button */
.filter-col-action {
  flex-shrink: 0;
  margin-left: 6px;
}

.uluviu-btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #836647;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
  font-family: inherit;
}

.uluviu-btn-search:hover {
  background: #6f5438;
  color: #ffffff;
}

.uluviu-btn-search:active {
  transform: translateY(1px);
}

/* ===================================================
   GUEST STEPPER POPOVER (LESS CONTAINERS, LESS BORDER)
   =================================================== */

.guest-popover-menu {
  display: none;
  position: absolute;
  right: 0;
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12);
  z-index: 10005;
  box-sizing: border-box;
}

.guest-popover-menu.is-active {
  display: block;
}

/* Placement Dropdown */
.guest-popover-menu.is-dropdown {
  top: calc(100% + 10px) !important;
  bottom: auto !important;
  animation: uluviuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Placement Dropup */
.guest-popover-menu.is-dropup {
  bottom: calc(100% + 10px) !important;
  top: auto !important;
  animation: uluviuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.guest-row:not(:last-child) {
  border-bottom: 1px solid #f8fafc;
}

.guest-info {
  display: flex;
  flex-direction: column;
}

.guest-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.guest-desc {
  font-size: 11.5px;
  color: #8c9ba5;
  margin-top: 1px;
}

.guest-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  user-select: none;
  line-height: 1;
}

.stepper-btn:hover {
  border-color: #836647;
  color: #836647;
}

.stepper-btn:active {
  transform: scale(0.96);
}

.stepper-count {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  min-width: 20px;
  text-align: center;
}

.guest-popover-footer {
  padding-top: 12px;
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.guest-apply-btn {
  background: #836647;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.guest-apply-btn:hover {
  background: #6f5438;
}

/* ===================================================
   DUAL-MONTH DATE PICKER POPOVER (TYPOGRAPHY-DRIVEN)
   =================================================== */

.uluviu-datepicker-popover {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  max-width: calc(100vw - 24px);
  z-index: 10005;
  box-sizing: border-box;
}

/* Placement Dropdown */
.uluviu-datepicker-popover.is-dropdown {
  top: calc(100% + 10px) !important;
  bottom: auto !important;
  animation: uluviuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Placement Dropup */
.uluviu-datepicker-popover.is-dropup {
  bottom: calc(100% + 10px) !important;
  top: auto !important;
  animation: uluviuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes uluviuFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uluviu-datepicker-popover.is-dropdown {
  animation: uluviuFadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.uluviu-datepicker-popover.is-dropup {
  animation: uluviuFadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes uluviuFadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes uluviuFadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.uluviu-datepicker-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.12);
  padding: 22px 26px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}

/* Header */
.dp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.dp-header-text {
  flex: 1;
  min-width: 0;
}

.dp-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.dp-subtitle {
  font-size: 12.5px;
  color: #8c9ba5;
  margin: 3px 0 0;
  line-height: 1.4;
}

/* Check-in / Check-out Switcher: Less Containers */
.dp-switcher-box {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dp-tab {
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 110px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.dp-tab.is-active {
  background: #ffffff;
  border-color: #836647;
}

.dp-tab-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8c9ba5;
}

.dp-tab.is-active .dp-tab-label {
  color: #836647;
}

.dp-tab-val {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1px;
}

/* Dual Calendar Container */
.dp-calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  margin-bottom: 16px;
}

.dp-nav-btn {
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #836647;
  transition: border-color 0.15s ease;
  z-index: 10;
  padding: 0;
}

.dp-nav-btn svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  stroke: #836647 !important;
  stroke-width: 2.2px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
  pointer-events: none;
}

.dp-nav-prev {
  left: 2px;
}

.dp-nav-next {
  right: 2px;
}

.dp-nav-btn:hover {
  border-color: #836647;
  background: #fdfbf9;
}

/* Month Grid */
.dp-month {
  position: relative;
}

.dp-month-title {
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
}

.dp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}

.dp-day {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  position: relative;
  border-radius: 0;
  transition: background 0.12s ease;
}

.dp-day.is-empty {
  cursor: default;
  pointer-events: none;
}

.dp-day.is-disabled,
.dp-day.is-unavailable,
.dp-day.is-blocked-span {
  color: #cbd5e1 !important;
  background: transparent !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
  text-decoration-color: #cbd5e1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.dp-day.is-start {
  background: #836647 !important;
  color: #ffffff !important;
  border-radius: 50% 0 0 50% !important;
  font-weight: 600;
}

.dp-day.is-end {
  background: #836647 !important;
  color: #ffffff !important;
  border-radius: 0 50% 50% 0 !important;
  font-weight: 600;
}

.dp-day.is-start.is-end {
  border-radius: 50% !important;
}

.dp-day.is-range {
  background: #f5efe8 !important;
  color: #5c442c !important;
}

.dp-day:not(.is-disabled):not(.is-empty):hover {
  border-radius: 50%;
  outline: 1px solid #836647;
}

/* Footer */
.dp-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: 8px;
}

.dp-footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.dp-btn-clear {
  background: transparent;
  border: none;
  color: #64748b;
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.dp-btn-clear:hover {
  color: #836647;
  text-decoration: underline;
}

.dp-btn-close {
  background: #836647;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 7px 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dp-btn-close:hover {
  background: #6f5438;
}

/* ===================================================
   RESPONSIVE ADJUSTMENTS
   =================================================== */

@media (max-width: 860px) {
  .uluviu-filter-pill-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 14px;
    align-items: stretch;
  }

  .filter-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }

  .filter-col {
    padding: 8px 10px;
  }

  .filter-col-action {
    margin-top: 10px;
    margin-left: 0;
  }

  .uluviu-btn-search {
    width: 100%;
    padding: 12px;
  }

  .guest-popover-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .dp-calendar-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #dpMonth2 {
    display: none;
  }

  .dp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .uluviu-datepicker-popover {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .uluviu-datepicker-popover.is-dropdown {
    top: calc(100% + 10px) !important;
    bottom: auto !important;
    animation: uluviuFadeIn 0.2s ease forwards;
  }

  .uluviu-datepicker-popover.is-dropup {
    bottom: calc(100% + 10px) !important;
    top: auto !important;
    animation: uluviuFadeIn 0.2s ease forwards;
  }

  .uluviu-datepicker-card {
    padding: 18px 16px;
    border-radius: 16px;
    max-height: calc(100vh - 100px);
  }
}
