/* Shared premium dropdown + calendar (same as the homepage search) */
:root {
  --lx-navy: #0b2233;
  --lx-navy-2: #04131d;
  --lx-gold: #d8b26e;
  --lx-gold-soft: #f3d79c;
  --lx-ink: #0c1e2c;
  --lx-muted: #6d7680;
  --lx-line: #e9e0cf;
  --lx-cream: #fbf8f2;
  --lx-badge-bg: radial-gradient(circle at 30% 25%, #1c3647 0%, #0a1a26 78%);
  --lx-badge-border: 1px solid rgba(232, 207, 155, .34);
  --lx-badge-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 18px -8px rgba(2, 12, 20, .55);
  --lx-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------
   2. Form controls
   --------------------------------------------------------- */
html body .lx-native {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; pointer-events: none !important;
}
.lx-field { position: relative; cursor: pointer; }
.lx-field[data-lx="text"] { cursor: text; }
.lx-value {
  display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lx-value::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lx-value:focus { outline: none; }
.lx-field:has(.lx-value:focus-visible) { outline: 2px solid var(--lx-gold); outline-offset: 2px; }
.lx-value.is-placeholder { color: #8d8a84; font-weight: 500; }
.lx-chev { transition: transform .35s var(--lx-ease); }
.lx-field.is-open .lx-chev { transform: rotate(180deg); }
.lx-field.is-disabled { cursor: not-allowed; }
.lx-field.is-disabled .lx-value { cursor: not-allowed; color: #9b968d; }
.lx-field.is-disabled .lx-chev { opacity: .3; }
.lx-field.is-invalid { border-color: #c9573f !important; box-shadow: 0 0 0 4px rgba(201, 87, 63, .12) !important; }
.lx-field.is-invalid::before {
  content: attr(data-error); position: absolute; right: 10px; top: -9px; z-index: 2;
  padding: 2px 9px; border-radius: 99px; background: #c9573f; color: #fff;
  font: 600 10.5px/1.5 "Manrope", sans-serif; letter-spacing: .01em; white-space: nowrap; pointer-events: none;
}

/* Trip type segmented control */
.lx-trip {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: #f1e9da; box-shadow: inset 0 1px 2px rgba(12, 30, 44, .08);
}
html body .lx-trip label { position: relative; display: block; margin: 0; cursor: pointer; font-size: inherit; font-weight: inherit; }
.lx-trip input { position: absolute; opacity: 0; pointer-events: none; }
.lx-trip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  font: 700 13.5px/1 "Manrope", sans-serif; color: #5f5a50; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .35s var(--lx-ease), color .3s, box-shadow .35s;
}
.lx-trip span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55;
  transition: background-color .3s, border-color .3s, opacity .3s;
}
.lx-trip input:checked + span {
  background: linear-gradient(180deg, #12324a, var(--lx-navy-2)); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(4, 19, 29, .6);
}
.lx-trip input:checked + span::before { background: var(--lx-gold-soft); border-color: var(--lx-gold-soft); opacity: 1; }
.lx-trip input:focus-visible + span { outline: 2px solid var(--lx-gold); outline-offset: 2px; }

/* Popups */
.lx-pop {
  position: fixed; z-index: 2000; box-sizing: border-box;
  background: #fffdf8; color: var(--lx-ink); font-family: "Manrope", sans-serif;
  border: 1px solid #eadfca; border-radius: 20px; padding: 8px;
  box-shadow: 0 34px 80px -24px rgba(4, 16, 26, .5), 0 0 0 1px rgba(255, 255, 255, .7) inset;
  animation: lxIn .26s var(--lx-ease);
}
.lx-pop::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 178, 110, .9), transparent);
}
.lx-pop.is-above { animation-name: lxInUp; }
.lx-pop.is-leaving, .lx-scrim.is-leaving { opacity: 0; transition: opacity .18s; }
@keyframes lxIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes lxInUp { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.lx-options { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; overscroll-behavior: contain; }
.lx-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: none;
  font: 600 15px/1.3 "Manrope", sans-serif; color: var(--lx-ink); text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lx-opt svg { width: 18px; height: 18px; fill: none; stroke: var(--lx-gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--lx-ease); }
.lx-opt:hover, .lx-opt:focus { background: #f6efe1; outline: none; }
.lx-opt[aria-selected="true"] { background: linear-gradient(180deg, #12324a, var(--lx-navy-2)); color: #fff; }
.lx-opt[aria-selected="true"] svg { opacity: 1; transform: none; stroke: var(--lx-gold-soft); }

/* Calendar */
.lx-cal { padding: 18px 20px 14px; }
.lx-cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #f0e7d6; }
.lx-cal-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lx-cal-summary > span {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 700; color: var(--lx-ink); white-space: nowrap;
}
.lx-cal-summary > span.is-active { border-color: rgba(216, 178, 110, .6); background: #fbf3e3; }
.lx-cal-summary small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9a8665; }
.lx-cal-summary i svg { display: block; width: 16px; height: 16px; fill: none; stroke: var(--lx-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-nights { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--lx-navy); color: var(--lx-gold-soft); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.lx-cal-nav { position: relative; height: 0; z-index: 1; }
.lx-nav-btn {
  position: absolute; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid #eadfca; background: #fff; color: var(--lx-ink); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lx-nav-btn[data-nav="-1"] { left: 0; }
.lx-nav-btn[data-nav="1"] { right: 0; }
.lx-nav-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lx-nav-btn:hover:not(:disabled) { background: var(--lx-navy); color: #fff; border-color: var(--lx-navy); }
.lx-nav-btn:disabled { opacity: .3; cursor: default; }
.lx-months { display: grid; grid-template-columns: 1fr; gap: 28px; }
.lx-cal.is-double .lx-months { grid-template-columns: 1fr 1fr; }
.lx-month-name { height: 34px; display: grid; place-items: center; font-family: "Playfair Display", Georgia, serif; font-size: 17px; font-weight: 600; color: var(--lx-ink); }
.lx-week, .lx-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.lx-week { margin: 6px 0 4px; }
.lx-week span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #a08e70; text-transform: uppercase; padding: 4px 0; }
.lx-day {
  position: relative; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 14px/1 "Manrope", sans-serif; color: var(--lx-ink);
}
.lx-day.is-empty { cursor: default; }
.lx-day span {
  position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin: 1px auto;
  border-radius: 50%; transition: background-color .2s, color .2s, box-shadow .2s;
}
.lx-day:hover:not(:disabled) span, .lx-day:focus-visible span { background: #f3e8d2; outline: none; }
.lx-day:focus { outline: none; }
.lx-day.is-today span::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lx-gold); }
.lx-day.in-range::before, .lx-day.is-start::before, .lx-day.is-end::before {
  content: ""; position: absolute; top: 1px; bottom: 1px; left: 0; right: 0; background: #f6ecd6;
}
.lx-day.is-start::before { left: 50%; }
.lx-day.is-end::before { right: 50%; }
.lx-day.is-start.is-end::before, .lx-day.is-start:not(.has-range)::before { display: none; }
.lx-days:has(.is-end) .lx-day.is-start::before { display: block; }
.lx-day.is-start span, .lx-day.is-end span, .lx-day.is-selected span {
  background: linear-gradient(180deg, #14364f, var(--lx-navy-2)); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(4, 19, 29, .7), inset 0 0 0 1.5px rgba(243, 215, 156, .55);
}
.lx-day.is-today.is-start span::after, .lx-day.is-today.is-end span::after, .lx-day.is-today.is-selected span::after { background: var(--lx-gold-soft); }
.lx-day:disabled { cursor: not-allowed; color: #c9c3b8; }
.lx-day:disabled span { text-decoration: line-through; text-decoration-color: rgba(201, 195, 184, .7); }
.lx-cal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid #f0e7d6; }
.lx-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--lx-muted); }
.lx-key-today { width: 6px; height: 6px; border-radius: 50%; background: var(--lx-gold); }
.lx-clear { border: 0; background: none; padding: 6px 4px; font: 700 13px "Manrope", sans-serif; color: var(--lx-ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--lx-gold); text-underline-offset: 4px; }

/* Mobile bottom sheet */
.lx-scrim { position: fixed; inset: 0; z-index: 1999; background: rgba(2, 10, 16, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: lxFade .25s ease; }
@keyframes lxFade { from { opacity: 0; } }
.lx-pop.lx-sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 86dvh; overflow: auto;
  border-radius: 24px 24px 0 0; border-bottom: 0; padding: 6px 16px calc(16px + env(safe-area-inset-bottom));
  animation: lxSheet .38s var(--lx-ease);
}
@keyframes lxSheet { from { transform: translateY(100%); } }
.lx-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 12px; margin-bottom: 4px; background: #fffdf8; border-bottom: 1px solid #f0e7d6; }
.lx-sheet-head::before { content: ""; position: absolute; top: 4px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: #e2d7c3; }
.lx-sheet-head span { font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 600; color: var(--lx-ink); }
.lx-sheet-close { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid #eadfca; background: #fff; color: var(--lx-ink); cursor: pointer; }
.lx-sheet-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lx-sheet .lx-options { max-height: none; }
.lx-sheet .lx-opt { padding: 15px 14px; font-size: 16px; }
.lx-sheet.lx-cal { padding: 6px 16px calc(14px + env(safe-area-inset-bottom)); }
.lx-sheet .lx-cal-summary > span { font-size: 12.5px; padding: 7px 10px; }
.lx-sheet .lx-day { height: 44px; }
.lx-sheet .lx-day span { width: 40px; height: 40px; }


/* Calendar: centred under the date pair, pointer to the active field, tighter grid */
.lx-pop.lx-cal:not(.lx-sheet) { padding: 16px 20px 12px; border-radius: 22px; }
.lx-pop.lx-cal:not(.lx-sheet)::after {
  content: ""; position: absolute; top: -7px; left: calc(var(--caret-x, 50%) - 7px); width: 13px; height: 13px;
  background: #fffdf8; border-left: 1px solid #eadfca; border-top: 1px solid #eadfca; transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.lx-pop.lx-cal.is-above::after { top: auto; bottom: -7px; transform: rotate(225deg); }
.lx-pop.lx-cal:not(.lx-sheet) .lx-cal-top { padding-bottom: 12px; margin-bottom: 10px; }
.lx-pop.lx-cal:not(.lx-sheet) .lx-month-name { height: 36px; font-size: 16.5px; }
.lx-pop.lx-cal:not(.lx-sheet) .lx-week { margin: 2px 0 2px; }
.lx-pop.lx-cal:not(.lx-sheet) .lx-day { height: 38px; }
.lx-pop.lx-cal:not(.lx-sheet) .lx-day span { width: 36px; height: 36px; }
.lx-pop.lx-cal:not(.lx-sheet) .lx-nav-btn { top: 0; }
.lx-pop.lx-cal:not(.lx-sheet) .lx-cal-foot { margin-top: 6px; padding-top: 10px; }
.lx-cal.is-double .lx-months { gap: 36px; }
.lx-cal.is-double .lx-month + .lx-month { position: relative; }
.lx-cal.is-double .lx-month + .lx-month::before { content: ""; position: absolute; left: -18px; top: 44px; bottom: 6px; width: 1px; background: #f0e7d6; }
