/* =========================================================
   Aurelius Travel — site components
   Mobile menu, search, forms, filters, WhatsApp.
   Loads after the page styles so these rules win.
   ========================================================= */

:root {
  --aur-ink: #1a1a1a;
  --aur-taupe: #706f6c;
  --aur-primary: #705a4d;
  --aur-nude: #f5d7c6;
  --aur-mocha: #d6bfa9;
  --aur-line: #d2c4bc;
  --aur-paper: #fffefa;
  --aur-error: #9a3b2f;
  --aur-ok: #4f5e3a;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.aur-lock, html.aur-lock body { overflow: hidden; }
body { overflow-x: clip; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--aur-primary); outline-offset: 3px; }
.scroll-mt-28 { scroll-margin-top: 7rem; }

/* ---------- Nav: fit small phones ---------- */
@media (max-width: 420px) {
  .lm-nav .lm-logo { font-size: 15px; letter-spacing: 0.16em; }
  .lm-nav.is-scrolled .lm-logo { letter-spacing: 0.18em; }
}
@media (max-width: 359px) {
  .lm-nav .lm-logo { font-size: 13px; letter-spacing: 0.12em; }
}
/* zero specificity so Tailwind's xl:hidden still hides the menu button on desktop */
:where(.lm-nav) :where(a[aria-label], button[data-action]) { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 40px; }
.lm-nav .lm-nav-link { white-space: nowrap; }

/* ---------- Home hero: fixed heights on phones/tablets, 16:9 on desktop ---------- */
.aur-hero { height: 86vh; height: 86svh; min-height: 600px; max-height: 760px; }
@media (min-width: 640px) and (max-width: 1023.98px) { .aur-hero { height: 640px; } }
@media (min-width: 1024px) { .aur-hero { height: auto; min-height: 540px; max-height: 820px; aspect-ratio: 16 / 9; } }

/* ---------- Shared overlay shell (menu + search) ---------- */
.aur-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(255, 254, 250, 0.97);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms var(--lm-ease, ease), visibility 0s linear 420ms;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.aur-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms var(--lm-ease, ease), visibility 0s;
}
.aur-overlay__inner {
  min-height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .aur-overlay__inner { padding: 0 48px 56px; } }
.aur-overlay__top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(214, 191, 169, 0.35);
}
.aur-overlay__logo {
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aur-ink);
  text-decoration: none;
}
@media (max-width: 420px) { .aur-overlay__logo { font-size: 15px; letter-spacing: 0.16em; } }
.aur-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(214, 191, 169, 0.5);
  background: rgba(245, 215, 198, 0.25);
  color: var(--aur-ink);
  cursor: pointer;
  transition: background-color 300ms ease, transform 300ms ease;
}
.aur-icon-btn:hover { background: rgba(245, 215, 198, 0.55); }
.aur-icon-btn .material-symbols-outlined { font-size: 22px; }

/* ---------- Mobile menu ---------- */
.aur-menu__links {
  display: flex;
  flex-direction: column;
  padding: 28px 0 8px;
}
.aur-menu__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(214, 191, 169, 0.28);
  font-family: 'Noto Serif', serif;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--aur-ink);
  text-decoration: none;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 600ms var(--lm-ease, ease), transform 600ms var(--lm-ease, ease), color 300ms ease;
}
.aur-menu__links a::after {
  content: attr(data-index);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--aur-mocha);
}
.aur-menu__links a[aria-current="page"] { color: var(--aur-primary); font-style: italic; }
.aur-menu__links a:hover { color: var(--aur-primary); }
.aur-overlay.is-open .aur-menu__links a { opacity: 1; transform: none; }
.aur-menu__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.aur-menu__legal {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  gap: 24px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.aur-menu__legal a { color: var(--aur-taupe); text-decoration: none; }

/* ---------- Buttons used inside overlays & messages ---------- */
.aur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 9999px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}
.aur-btn--primary { background: var(--aur-primary); color: #fff; }
.aur-btn--primary:hover { background: #5f4b40; }
.aur-btn--ghost { background: rgba(245, 215, 198, 0.35); border-color: rgba(214, 191, 169, 0.6); color: var(--aur-primary); }
.aur-btn--ghost:hover { background: rgba(245, 215, 198, 0.7); }
.aur-btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Search ---------- */
.aur-search__field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--aur-primary);
}
.aur-search__field .material-symbols-outlined { font-size: 26px; color: var(--aur-primary); }
.aur-search__input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
  outline: none;
  font-family: 'Noto Serif', serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 400;
  color: var(--aur-ink);
}
.aur-search__input::placeholder { color: #b9aca4; font-style: italic; }
.aur-search__input::-webkit-search-cancel-button { display: none; }
.aur-search__hint {
  margin-top: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aur-taupe);
}
.aur-search__results { list-style: none; margin: 18px 0 0; padding: 0; }
.aur-search__results li { border-bottom: 1px solid rgba(214, 191, 169, 0.28); }
.aur-search__results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--aur-ink);
  border-radius: 8px;
  transition: background-color 200ms ease, padding 300ms var(--lm-ease, ease);
}
.aur-search__results a:hover,
.aur-search__results a.is-active { background: rgba(245, 215, 198, 0.35); padding-left: 14px; padding-right: 14px; }
.aur-search__title { font-family: 'Noto Serif', serif; font-size: 20px; line-height: 1.3; }
.aur-search__meta {
  display: block;
  margin-top: 4px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aur-primary);
}
.aur-search__results .material-symbols-outlined { color: var(--aur-mocha); font-size: 20px; flex: none; }
.aur-search__empty {
  margin-top: 28px;
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: #4f453f;
}
.aur-search__empty .aur-btn { margin-top: 18px; font-style: normal; }

/* ---------- Forms ---------- */
.aur-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.aur-form-status { min-height: 1.4em; margin: 0; font-family: 'Be Vietnam Pro', sans-serif; line-height: 1.6; }
.aur-form-status.is-ok { color: var(--aur-ok); }
.aur-form-status.is-error { color: var(--aur-error); }
.aur-form-status.is-busy { color: var(--aur-taupe); }
.lm-input-group.is-invalid { border-bottom-color: var(--aur-error) !important; }
.lm-input-group.is-invalid label { color: var(--aur-error) !important; }
input.is-invalid { box-shadow: 0 1px 0 0 var(--aur-error) !important; }
button[disabled], button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.aur-success {
  text-align: center;
  padding: 36px 24px;
  border-radius: 1rem;
  border: 1px solid rgba(214, 191, 169, 0.45);
  background: rgba(245, 215, 198, 0.3);
}
.aur-success h3 { font-family: 'Noto Serif', serif; font-size: 28px; font-weight: 400; color: var(--aur-ink); margin: 0 0 10px; }
.aur-success p { color: #4f453f; font-size: 15px; margin: 0 auto; max-width: 34rem; }
.aur-success .aur-btn { margin-top: 20px; }

/* native date inputs inherit the design */
input[data-date-input]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }

/* invisible native select laid over a designed control */
.aur-select { position: relative; }
.aur-select select {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* stops iOS zoom */
  margin: 0 !important;
  padding: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}
.aur-select:focus-within { border-color: var(--aur-primary) !important; }

/* hidden helpers that beat utility display classes */
[data-wa-only][hidden], [data-dest][hidden], [data-dest-empty][hidden] { display: none !important; }

/* ---------- Destination filters ---------- */
.aur-dest-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: #4f453f;
}
.aur-dest-empty button, .aur-dest-empty a {
  font-style: normal;
  color: var(--aur-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-style: normal;
}

/* ---------- Floating WhatsApp button ---------- */
.aur-wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 8000;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aur-ink);
  background: rgba(245, 215, 198, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(214, 191, 169, 0.6);
  box-shadow: 0 18px 40px -18px rgba(112, 90, 77, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 400ms var(--lm-ease, ease), box-shadow 400ms ease, opacity 400ms ease;
  text-decoration: none;
}
.aur-wa-float:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -18px rgba(112, 90, 77, 0.6); }
.aur-wa-float svg { width: 26px; height: 26px; }
.aur-wa-float__label {
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 9999px;
  background: var(--aur-paper);
  border: 1px solid rgba(214, 191, 169, 0.5);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aur-primary);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}
.aur-wa-float:hover .aur-wa-float__label { opacity: 1; transform: none; }
html.aur-lock .aur-wa-float { opacity: 0; pointer-events: none; }

/* ---------- Small-screen polish ---------- */
@media (max-width: 1023.98px) {
  /* sideways reveal slides pushed the page wider than the phone until scrolled */
  [data-reveal="left"], [data-reveal="right"] { transform: translate3d(0, 24px, 0); }
}
@media (max-width: 767px) {
  /* keep long uppercase labels from forcing sideways scroll */
  .lm-btn { max-width: 100%; white-space: normal; }
}
