/* ==========================================================================
   ARTISAN ESCAPE - CONVERSION ENHANCEMENTS
   Loaded on every page. Three self-contained pieces, all namespaced ae-*:
     1. Sticky WhatsApp button (all pages, appears after a short scroll)
     2. "Custom itinerary" lead pop-up (home page only - see ae-enhancements.js)
     3. Trip snapshot strip (journey 1-3 pages, static markup below the hero)
   Uses the brand tokens plus one addition: Pounamu Green (NZ greenstone),
   a deep, recognisably-WhatsApp green used for every WhatsApp CTA.
   Pōhutukawa Crimson stays the primary action colour; Champagne Gold the
   accent.
   ========================================================================== */

:root {
  --ae-crimson: #8B1E22;
  --ae-crimson-hover: #A1272C;
  --ae-pounamu: #1F7A57;        /* Pounamu Green - WhatsApp CTAs (white text 5.3:1) */
  --ae-pounamu-hover: #17694A;
  --ae-gold: #C6A87C;
  --ae-gold-light: #E4CFA6;
  --ae-ink: #1C1C1C;
  --ae-cream: #FDFBF7;
  --ae-line: rgba(198, 168, 124, 0.24);
  --ae-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ae-display: 'Cormorant Garamond', Georgia, serif;
  --ae-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   1. STICKY WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.ae-wa-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 150; /* above the nav (100), below lightboxes (200) */
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  min-width: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ae-pounamu);
  color: #fff;
  font-family: var(--ae-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.35s var(--ae-ease), transform 0.35s var(--ae-ease),
              visibility 0.35s, background-color 0.25s ease, gap 0.35s var(--ae-ease);
  -webkit-tap-highlight-color: transparent;
}
.ae-wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.ae-wa-fab:hover,
.ae-wa-fab:focus-visible {
  background: var(--ae-pounamu-hover);
  color: #fff;
}
.ae-wa-fab:focus-visible {
  outline: 2px solid var(--ae-gold-light);
  outline-offset: 3px;
}
.ae-wa-fab svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  margin: 0 -1px;
}
.ae-wa-fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s var(--ae-ease);
}
/* Desktop: the label slides out on hover so the button explains itself */
@media (hover: hover) and (min-width: 769px) {
  .ae-wa-fab:hover,
  .ae-wa-fab:focus-visible { gap: 10px; }
  .ae-wa-fab:hover .ae-wa-fab-label,
  .ae-wa-fab:focus-visible .ae-wa-fab-label { max-width: 180px; }
}
/* A soft one-off pulse when it first appears, to draw the eye once */
.ae-wa-fab.is-visible.ae-wa-fab--intro::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(31, 122, 87, 0.55);
  animation: aeWaPulse 1.8s ease-out 0.3s 2;
  pointer-events: none;
}
@keyframes aeWaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 122, 87, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(31, 122, 87, 0); }
}
/* Tuck the button away while a modal / lightbox is open */
body.ae-modal-open .ae-wa-fab,
body.ae-banner-open .ae-wa-fab,
body.ledger-scroll-locked .ae-wa-fab { opacity: 0; visibility: hidden; }

/* --------------------------------------------------------------------------
   2. CUSTOM ITINERARY POP-UP (home page)
   Bottom sheet on phones, centred card on larger screens.
   -------------------------------------------------------------------------- */
.ae-lead[hidden] { display: none; }
.ae-lead {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ae-lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ae-lead-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #161616;
  color: var(--ae-cream);
  border: 1px solid var(--ae-line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.45s var(--ae-ease);
  font-family: var(--ae-body);
}
.ae-lead.is-open .ae-lead-backdrop { opacity: 1; }
.ae-lead.is-open .ae-lead-card { transform: none; }

@media (min-width: 640px) {
  .ae-lead { align-items: center; padding: 24px; }
  .ae-lead-card {
    border-bottom: 1px solid var(--ae-line);
    border-radius: 18px;
    padding: 34px 32px 28px;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.45s var(--ae-ease), opacity 0.35s ease;
  }
  .ae-lead.is-open .ae-lead-card { opacity: 1; }
}

.ae-lead-grab {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(253, 251, 247, 0.22);
  margin: -12px auto 16px;
}
@media (min-width: 640px) { .ae-lead-grab { display: none; } }

.ae-lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(253, 251, 247, 0.14);
  background: rgba(253, 251, 247, 0.04);
  color: rgba(253, 251, 247, 0.75);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ae-lead-close:hover { background: rgba(253, 251, 247, 0.1); color: #fff; }
.ae-lead-close:focus-visible { outline: 2px solid var(--ae-gold); outline-offset: 2px; }

.ae-lead-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-gold);
  margin-bottom: 10px;
}
.ae-lead-title {
  font-family: var(--ae-display);
  font-weight: 400;
  font-size: clamp(26px, 6.4vw, 32px);
  line-height: 1.12;
  margin: 0 36px 10px 0;
  color: var(--ae-cream);
}
.ae-lead-title em { font-style: italic; color: var(--ae-gold-light); }
.ae-lead-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(253, 251, 247, 0.7);
  margin: 0 0 20px;
}

.ae-lead-form { display: grid; gap: 12px; }
.ae-field { display: grid; gap: 6px; }
.ae-field > label,
.ae-field > .ae-field-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.62);
}
.ae-input,
.ae-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(253, 251, 247, 0.16);
  background: rgba(253, 251, 247, 0.05);
  color: var(--ae-cream);
  font: 400 16px/1.2 var(--ae-body); /* 16px stops iOS zooming on focus */
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ae-input::placeholder { color: rgba(253, 251, 247, 0.35); }
.ae-input:focus,
.ae-select:focus {
  outline: none;
  border-color: var(--ae-gold);
  background: rgba(253, 251, 247, 0.08);
}
.ae-input[aria-invalid="true"] { border-color: #E07A7E; }
.ae-phone-row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; }
.ae-select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23C6A87C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.ae-select option { background: #1C1C1C; color: var(--ae-cream); }

.ae-pref { border: 0; padding: 0; margin: 2px 0 0; }
.ae-pref legend { padding: 0; margin-bottom: 8px; }
.ae-pref-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ae-pref-option { position: relative; }
.ae-pref-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.ae-pref-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(253, 251, 247, 0.16);
  font-size: 13.5px;
  color: rgba(253, 251, 247, 0.78);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ae-pref-option input:checked + span {
  border-color: var(--ae-gold);
  background: rgba(198, 168, 124, 0.14);
  color: var(--ae-cream);
}
.ae-pref-option input:focus-visible + span { outline: 2px solid var(--ae-gold); outline-offset: 2px; }

.ae-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: 500 15px/1 var(--ae-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, opacity 0.2s ease, border-color 0.25s ease;
}
.ae-btn:active { transform: scale(0.98); }
.ae-btn:focus-visible { outline: 2px solid var(--ae-gold-light); outline-offset: 3px; }
.ae-btn[disabled] { opacity: 0.6; cursor: progress; }
.ae-btn--primary { background: var(--ae-crimson); color: #fff; }
.ae-btn--primary:hover { background: var(--ae-crimson-hover); color: #fff; }
.ae-btn--wa { background: var(--ae-pounamu); color: #fff; }
.ae-btn--wa:hover { background: var(--ae-pounamu-hover); color: #fff; }
.ae-btn--ghost {
  background: transparent;
  color: var(--ae-cream);
  border: 1px solid rgba(253, 251, 247, 0.28);
}
.ae-btn--ghost:hover { border-color: var(--ae-gold); color: var(--ae-cream); }
.ae-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ae-lead-submit { width: 100%; margin-top: 6px; }

.ae-lead-fine {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(253, 251, 247, 0.45);
  text-align: center;
  margin: 2px 0 0;
}
.ae-lead-error {
  font-size: 13px;
  line-height: 1.45;
  color: #F0B4B6;
  margin: 0;
}
.ae-lead-error a { color: #fff; text-decoration: underline; }

.ae-lead-success { text-align: center; padding: 8px 0 4px; }
.ae-lead-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ae-gold);
  color: var(--ae-gold);
}
.ae-lead-success .ae-lead-title { margin-right: 0; }
.ae-lead-success .ae-btn { width: 100%; margin-top: 6px; }

/* --------------------------------------------------------------------------
   3. TRIP SNAPSHOT (journey 1-3 pages)
   -------------------------------------------------------------------------- */
.ae-snapshot {
  position: relative;
  background: linear-gradient(180deg, #171717 0%, var(--ae-ink) 100%);
  border-top: 1px solid var(--ae-line);
  border-bottom: 1px solid var(--ae-line);
  color: var(--ae-cream);
  font-family: var(--ae-body);
}
.ae-snapshot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: stretch;
}
.ae-snapshot-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-gold);
  margin-bottom: 18px;
}
.ae-snapshot-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ae-line);
}
.ae-fact {
  display: flex;
  gap: 12px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--ae-line);
}
.ae-fact-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ae-line);
  display: grid;
  place-items: center;
  color: var(--ae-gold);
}
.ae-fact-icon svg { width: 16px; height: 16px; }
.ae-fact-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.5);
  margin-bottom: 4px;
}
.ae-fact-value {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ae-cream);
}
.ae-fact--wide { grid-column: 1 / -1; }

.ae-price-card {
  border: 1px solid var(--ae-line);
  border-radius: 16px;
  background: rgba(198, 168, 124, 0.06);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ae-price-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.55);
}
.ae-price-amount {
  font-family: var(--ae-display);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 48px);
  line-height: 1.05;
  color: var(--ae-gold-light);
  margin: 2px 0 0;
}
.ae-price-amount small {
  font-family: var(--ae-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ae-gold);
  margin-right: 6px;
  vertical-align: 0.9em;
}
.ae-price-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(253, 251, 247, 0.55);
  margin: 4px 0 16px;
}
.ae-price-card .ae-btn { width: 100%; }
.ae-price-card .ae-btn + .ae-btn { margin-top: 10px; height: 46px; }

@media (max-width: 960px) {
  .ae-snapshot-inner { grid-template-columns: 1fr; gap: 26px; padding: 32px 1.4rem; }
  .ae-snapshot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ae-snapshot-inner { padding: 28px 18px 30px; }
  .ae-snapshot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ae-fact { flex-direction: column; gap: 8px; padding: 16px 10px 16px 0; }
  .ae-fact-value { font-size: 14px; }
  .ae-fact-icon { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-wa-fab, .ae-lead-card, .ae-lead-backdrop { transition: none; }
  .ae-wa-fab.is-visible.ae-wa-fab--intro::after { animation: none; }
}

/* ---- Lead form extras (custom trip mode) -------------------------------- */
.ae-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ae-textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
  font-size: 16px;
}
.ae-lead-context {
  margin: -6px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--ae-line);
  font-size: 13px;
  color: rgba(253, 251, 247, 0.7);
}
.ae-lead-context strong { color: var(--ae-gold-light); font-weight: 500; }

/* ---- Custom trip call-out (journey pages, under the snapshot) ------------ */
.ae-custom-trip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--ae-line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(198, 168, 124, 0.12) 0%, rgba(198, 168, 124, 0) 60%),
    rgba(253, 251, 247, 0.02);
}
.ae-custom-trip-copy { flex: 1 1 320px; min-width: 0; }
.ae-custom-trip-title {
  font-family: var(--ae-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--ae-cream);
}
.ae-custom-trip-title em { color: var(--ae-gold-light); }
.ae-custom-trip-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(253, 251, 247, 0.66);
}
.ae-custom-trip .ae-btn {
  flex: 0 0 auto;
  background: var(--ae-gold);
  color: #1C1C1C;
  font-weight: 600;
}
.ae-custom-trip .ae-btn:hover { background: var(--ae-gold-light); color: #1C1C1C; }
@media (max-width: 520px) {
  .ae-custom-trip { padding: 20px 18px; }
  .ae-custom-trip .ae-btn { width: 100%; }
}

/* ---- Home hero: poster first, video fades in once it is really playing --- */
#hero-parallax-bg {
  background: #1C1C1C url("assets/hero-poster.webp") center / cover no-repeat;
}
.ae-js .hero-bg-iframe {
  opacity: 0;
  transition: opacity 0.9s ease;
  /* fail-safe: show the player anyway if it never reports playback */
  animation: aeHeroFailsafe 0s linear 9s forwards;
}
.ae-js .hero-bg-iframe.ae-playing { opacity: 1; }
@keyframes aeHeroFailsafe { to { opacity: 1; } }

.ae-fact--span2 { grid-column: span 2; }
@media (max-width: 960px) { .ae-fact--span2 { grid-column: 1 / -1; } }
.ae-lead-card:focus, .ae-lead-title:focus { outline: none; }

/* --------------------------------------------------------------------------
   4. HOME ITINERARY BANNER - docked, non-blocking (no overlay)
   Warm parchment card with a fanned "itinerary cards" visual, copy, and a
   compact form. Desktop: one horizontal strip. Phones: a compact strip
   that expands into the form when tapped.
   -------------------------------------------------------------------------- */
.ae-banner[hidden] { display: none; }
.ae-banner {
  --ae-parch: #F7EFE5;
  --ae-parch-deep: #EFE2D1;
  --ae-ink-soft: #4A4540;
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 190;
  width: min(1160px, calc(100% - 32px));
  color: var(--ae-ink);
  font-family: var(--ae-body);
  background:
    radial-gradient(90% 140% at 0% 100%, rgba(198, 168, 124, 0.22) 0%, rgba(198, 168, 124, 0) 55%),
    linear-gradient(180deg, var(--ae-parch) 0%, var(--ae-parch-deep) 100%);
  border: 1px solid rgba(198, 168, 124, 0.55);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.6s var(--ae-ease), opacity 0.4s ease;
}
.ae-banner.is-open { opacity: 1; transform: translate(-50%, 0); }

.ae-banner-inner {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) minmax(400px, 470px);
  align-items: center;
  gap: 26px;
  padding: 22px 54px 20px 18px;
}

.ae-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ae-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ae-banner-close:hover { background: #fff; transform: rotate(90deg); }
.ae-banner-close:focus-visible { outline: 2px solid var(--ae-crimson); outline-offset: 2px; }

/* ---- the fanned cards ---- */
.ae-banner-visual { position: relative; height: 176px; }
.ae-fan { position: absolute; top: 0; left: 14px; width: 230px; height: 176px; transform-origin: 0 0; }
.ae-fan-card {
  position: absolute;
  top: 8px;
  width: 112px;
  height: 152px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(28, 28, 28, 0.28), 0 0 0 3px #fff;
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ae-ease);
  overflow: hidden;
}
.ae-fan-card--back  { left: 4px;   transform: rotate(-13deg); }
.ae-fan-card--mid   { left: 52px;  transform: rotate(-4deg) translateY(-6px); }
.ae-fan-card--front { left: 104px; transform: rotate(7deg); background: #FDFBF7; }
.ae-banner.is-open .ae-fan-card--back  { transform: rotate(-16deg) translateX(-4px); }
.ae-banner.is-open .ae-fan-card--front { transform: rotate(9deg) translateX(4px); }
.ae-fan-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 7px;
  font-family: var(--ae-display);
  font-style: italic;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}
.ae-doc-photo {
  height: 50px;
  background-size: cover;
  background-position: center 30%;
}
.ae-doc-body { padding: 7px 9px 0; display: flex; flex-direction: column; gap: 3px; }
.ae-doc-brand {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ae-gold);
}
.ae-doc-title {
  font-family: var(--ae-display);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.05;
  color: var(--ae-ink);
  margin-bottom: 2px;
}
.ae-doc-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 7.5px;
  color: var(--ae-ink-soft);
}
.ae-doc-row b { color: var(--ae-crimson); font-weight: 700; }
.ae-doc-row i { flex: 1; border-bottom: 1px dotted rgba(28, 28, 28, 0.3); transform: translateY(-2px); }
.ae-doc-stamp {
  position: absolute;
  right: 6px;
  top: 40px;
  background: #FDFBF7;
  padding: 2px 5px;
  border: 1px solid var(--ae-crimson);
  border-radius: 3px;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ae-crimson);
  transform: rotate(-6deg);
}

/* ---- copy ---- */
.ae-banner-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9A7B4F;
  margin-bottom: 8px;
}
.ae-banner-title {
  font-family: var(--ae-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--ae-ink);
}
.ae-banner-title em { font-style: italic; font-weight: 400; color: var(--ae-crimson); }
.ae-banner-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ae-ink-soft);
  max-width: 440px;
}
.ae-banner-expand { display: none; }

/* ---- form ---- */
.ae-banner-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ae-bspan { grid-column: 1 / -1; }
.ae-bfield {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: #fff;
  color: var(--ae-ink);
  font: 400 16px/1.2 var(--ae-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ae-bfield::placeholder { color: #8A847D; }
.ae-bfield:focus { outline: none; border-color: var(--ae-gold); box-shadow: 0 0 0 3px rgba(198, 168, 124, 0.25); }
.ae-bfield[aria-invalid="true"] { border-color: #C0484D; }
.ae-bselect {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231C1C1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.ae-bphone { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px; }
.ae-bphone .ae-bselect { padding: 0 22px 0 10px; background-position: right 8px center; }
.ae-bpref {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ae-bpref-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.ae-bpref-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A736C;
}
.ae-bpref label { position: relative; cursor: pointer; }
.ae-bpref input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ae-bpref label span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.14);
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  color: var(--ae-ink-soft);
  transition: all 0.2s ease;
}
.ae-bpref input:checked + span { background: var(--ae-ink); border-color: var(--ae-ink); color: #fff; }
.ae-bpref input:focus-visible + span { outline: 2px solid var(--ae-gold); outline-offset: 2px; }
.ae-banner-form .ae-lead-submit { height: 48px; align-self: end; padding: 0 14px; }
.ae-banner .ae-lead-error { color: #A3262B; font-size: 12.5px; }
.ae-banner .ae-lead-error a { color: var(--ae-ink); }
.ae-banner-fine {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #7A736C;
  text-align: center;
}
.ae-banner-success { display: grid; gap: 8px; }
.ae-banner-success-title {
  font-family: var(--ae-display);
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.ae-banner-success-title em { color: var(--ae-crimson); }
.ae-banner-success .ae-btn { margin-top: 6px; }

/* ---- tablet ---- */
@media (max-width: 1080px) {
  .ae-banner-inner { grid-template-columns: 210px minmax(0, 1fr); gap: 18px 24px; padding: 20px 24px 22px 14px; }
  .ae-banner-visual { width: 190px; height: 150px; }
  .ae-fan { transform: scale(0.84); }
  .ae-banner-side { grid-column: 1 / -1; }
}

/* ---- phones: compact strip, tap to expand ---- */
@media (max-width: 640px) {
  .ae-banner {
    width: calc(100% - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 16px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ae-banner-inner { grid-template-columns: 124px minmax(0, 1fr); gap: 4px 10px; padding: 14px 14px 14px 8px; align-items: start; }
  .ae-banner-visual { height: 96px; width: 124px; margin-top: 4px; }
  .ae-fan { transform: scale(0.5); left: 4px; }
  .ae-banner-eyebrow-more { display: none; }
  .ae-banner-copy { min-width: 0; }
  .ae-banner-eyebrow { font-size: 9px; letter-spacing: 0.18em; margin: 0 28px 4px 0; }
  .ae-banner-title { font-size: 21px; margin: 0 26px 6px 0; }
  .ae-banner-text { display: none; }
  .ae-banner-expand { display: inline-flex; height: 40px; padding: 0 16px; font-size: 13.5px; }
  .ae-banner-side { display: none; grid-column: 1 / -1; padding: 6px 4px 2px 8px; }
  .ae-banner.is-expanded .ae-banner-side { display: block; }
  .ae-banner.is-expanded .ae-banner-expand { display: none; }
  .ae-banner.is-expanded .ae-banner-text { display: block; font-size: 13px; margin-top: 2px; }
  .ae-banner-form { grid-template-columns: 1fr; }
  .ae-bphone { grid-template-columns: 100px minmax(0, 1fr); }
  .ae-bpref label span { height: 32px; }
  .ae-bpref-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-banner, .ae-fan-card { transition: none; }
}

/* --------------------------------------------------------------------------
   5. "FREE ITINERARY" MINI BUTTON (home page, after the banner is closed)
   Docked with the WhatsApp button: in its spot while WhatsApp is hidden
   (top of the page), lifted directly above it once WhatsApp shows.
   -------------------------------------------------------------------------- */
.ae-mini-cta {
  --ae-mini-lift: 0px;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(198, 168, 124, 0.7);
  background: linear-gradient(180deg, #F7EFE5 0%, #EFE2D1 100%);
  color: var(--ae-ink);
  font: 600 13.5px/1 var(--ae-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(14px - var(--ae-mini-lift))) scale(0.9);
  transform-origin: right bottom;
  transition: opacity 0.35s var(--ae-ease), transform 0.45s var(--ae-ease), visibility 0.35s, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.ae-mini-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(calc(0px - var(--ae-mini-lift))); }
/* WhatsApp is 56px tall + a 12px gap */
body.ae-fab-up .ae-mini-cta { --ae-mini-lift: 68px; }
.ae-mini-cta:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38); }
.ae-mini-cta:focus-visible { outline: 2px solid var(--ae-gold); outline-offset: 3px; }
.ae-mini-cta-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: url("assets/lead/lead-card-tekapo.webp") center / cover no-repeat;
  box-shadow: 0 0 0 2px #fff;
  flex: 0 0 auto;
}
.ae-mini-cta-text { white-space: nowrap; }
.ae-mini-cta-text::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ae-crimson);
  vertical-align: 0.15em;
}
body.ae-banner-open .ae-mini-cta,
body.ae-modal-open .ae-mini-cta,
body.ledger-scroll-locked .ae-mini-cta { opacity: 0; visibility: hidden; }
@media (max-width: 640px) {
  .ae-mini-cta { height: 42px; font-size: 13px; padding-right: 14px; }
  .ae-mini-cta-thumb { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .ae-mini-cta { transition: none; } }

/* Price: "per person" sits right beside the figure */
.ae-price-pp {
  font-family: var(--ae-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(253, 251, 247, 0.72);
  margin-left: 6px;
  white-space: nowrap;
}
