/*
 * engine-modern.css - Phase 5c futuristic pass.
 *
 * Loaded AFTER engine.css so its rules win where they overlap. Keeps
 * engine.css as the working baseline and confines the aggressive
 * visual redesign to one file that can be pulled if needed.
 *
 * Design intent (Aug 2026):
 *  - Kill emojis. Use custom stroked SVG line icons.
 *  - Heavy geometric sans title, no serif.
 *  - Glass-morphism search bar (frosted over hero photo).
 *  - Cursor-follow radial highlight on the hero.
 *  - Micro-stats row: "97 villas . 4.8 avg . booked this month".
 *  - Live pulse dot on cards - green = "Available", amber = "Only X dates".
 *  - Gradient underlines on links inside the hero.
 *  - Dark micro chips option, tighter kerning everywhere.
 *  - Reduce visual noise: fewer emojis in chip rows, thinner strokes.
 */

/* ---------- Root palette additions ---------- */

:root {
  --mps-ink:        #131b2d;   /* deep body ink */
  --mps-ink-soft:   #354766;   /* current site navy, kept for continuity */
  --mps-glow:       #4f79ff;   /* electric accent - futuristic touch */
  --mps-glow-soft:  #7fa1ff;
  --mps-fx-warm:    #f4d488;   /* warm gold ghost accent */
  --mps-fx-cool:    #a7d3ff;   /* cool sky ghost accent */
}

/* ---------- Typography reset for the hero ---------- */

.engine-hero__eyebrow {
  /* Restrained caps eyebrow with a tiny live-dot */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #f4e7c8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.engine-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80; /* live green */
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.28);
  animation: mpsLivePulse 2400ms ease-out infinite;
}
@keyframes mpsLivePulse {
  0%   { box-shadow: 0 0 0 0px rgba(74, 222, 128, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.00); }
  100% { box-shadow: 0 0 0 0px rgba(74, 222, 128, 0.00); }
}
@media (prefers-reduced-motion: reduce) {
  .engine-hero__eyebrow::before { animation: none; }
}

.engine-hero__title {
  /* Geometric heavy sans replaces the classic serif. Fall back through
     Inter -> SF Pro Display -> Helvetica Neue. */
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Helvetica Neue", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.45);
  max-width: 14ch;
}

/* Gradient-underlined link inside the sub - the small "Why direct" nudge */
.engine-hero__sub a {
  position: relative;
  color: #fff !important;
  text-decoration: none !important;
  background-image: linear-gradient(90deg, var(--mps-fx-warm), var(--mps-fx-cool));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 2px;
  transition: background-size 240ms ease, letter-spacing 240ms ease;
}
.engine-hero__sub a:hover {
  background-size: 100% 4px;
  letter-spacing: 0.01em;
}

/* ---------- Cursor-follow spotlight on hero ---------- */

.engine-hero { --spot-x: 50%; --spot-y: 50%; }
.engine-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--spot-x) var(--spot-y),
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 280ms ease;
}
.engine-hero.has-cursor::before { opacity: 1; }
@media (hover: none) { .engine-hero::before { display: none; } }

/* ---------- Micro-stats row ---------- */

.engine-hero__stats {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.86);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.engine-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.engine-hero__stat b {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.engine-hero__stat + .engine-hero__stat::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
  margin-right: 1rem;
}
@media (max-width: 720px) {
  .engine-hero__stats { gap: 0.9rem; font-size: 0.72rem; }
  .engine-hero__stat + .engine-hero__stat::before { margin-right: 0.5rem; }
}

/* ---------- Glass-morphism search bar ---------- */

.engine-bar {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 12px rgba(19, 27, 45, 0.14),
    0 20px 60px rgba(19, 27, 45, 0.22) !important;
}
.engine-bar__field { color: var(--mps-ink) !important; }
.engine-bar__label {
  font-family: -apple-system, "Inter", sans-serif;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #6b7590 !important;
}
.engine-bar__value {
  font-family: -apple-system, "Inter", sans-serif;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--mps-ink) !important;
}
.engine-bar__go {
  background: linear-gradient(135deg, #131b2d 0%, #354766 100%) !important;
  color: #fff !important;
  min-height: 56px !important;
  padding: 0 1.6rem !important;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(53, 71, 102, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}
.engine-bar__go:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(53, 71, 102, 0.45);
}

/* ---------- Collections without emojis ---------- */

.engine-collection {
  border-radius: 14px !important;
  border-color: rgba(53, 71, 102, 0.08) !important;
}
.engine-collection__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 27, 45, 0.045);
  border: 1px solid rgba(19, 27, 45, 0.06);
  color: #354766;
  font-size: 0 !important;
  transition: background 200ms ease, transform 200ms ease;
}
.engine-collection:hover .engine-collection__icon {
  background: rgba(19, 27, 45, 0.08);
  transform: scale(1.06);
}
.engine-collection__icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Default icon slot - each collection overrides below */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/></svg>');
}
.engine-collection[data-collection-id="beach-access"] .engine-collection__icon::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2 20c3-3 7-3 10 0s7 3 10 0"/><path d="M12 3c-4 2-6 6-6 10"/><path d="M12 3c4 2 6 6 6 10"/><circle cx="12" cy="3" r="1.2"/></svg>');
}
.engine-collection[data-collection-id="sunset-hilltop"] .engine-collection__icon::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="14" r="4"/><path d="M2 21h20"/><path d="M12 6v2M4 10l1.4 1.4M20 10l-1.4 1.4"/></svg>');
}
.engine-collection[data-collection-id="seaview-all"] .engine-collection__icon::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12c2-2 4-2 6 0s4 2 6 0 4-2 6 0"/><path d="M2 18c2-2 4-2 6 0s4 2 6 0 4-2 6 0"/><path d="M2 6c2-2 4-2 6 0s4 2 6 0 4-2 6 0"/></svg>');
}
.engine-collection[data-collection-id="weddings"] .engine-collection__icon::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21s-7-4-7-11a4 4 0 0 1 7-3 4 4 0 0 1 7 3c0 7-7 11-7 11z"/></svg>');
}
.engine-collection[data-collection-id="family"] .engine-collection__icon::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="7" cy="8" r="2.5"/><circle cx="17" cy="8" r="2.5"/><path d="M2 20c1-3 3-4 5-4s4 1 5 4"/><path d="M12 20c1-3 3-4 5-4s4 1 5 4"/></svg>');
}
.engine-collection[data-collection-id="value"] .engine-collection__icon::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23354766" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20"/><path d="M17 6H9.5a3 3 0 0 0 0 6h5a3 3 0 0 1 0 6H6"/></svg>');
}
.engine-collection.is-active .engine-collection__icon {
  background: rgba(255, 255, 255, 0.12);
}
.engine-collection.is-active .engine-collection__icon::before {
  filter: brightness(0) invert(1);
}
.engine-collection__label {
  font-family: -apple-system, "Inter", sans-serif;
  letter-spacing: -0.005em;
  font-weight: 600;
}
.engine-collection__desc {
  letter-spacing: 0.002em;
  color: #7a8496;
}

.engine-collections__title {
  font-family: -apple-system, "Inter", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: #6b7590;
}
.engine-collections__sub { display: none; } /* drop the italic "or let us pick" */

/* ---------- Quick chips: kill emojis, refine ---------- */

.engine-quick__chip {
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-family: -apple-system, "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: -0.005em;
  font-weight: 500;
  background: #fff;
  border-color: rgba(53, 71, 102, 0.10);
  color: var(--mps-ink);
}
.engine-quick__chip > span[aria-hidden="true"] { display: none; } /* drop the emoji */
.engine-quick__chip:hover {
  border-color: var(--mps-ink);
  background: var(--mps-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(19, 27, 45, 0.15);
}
.engine-quick__chip.is-active {
  background: linear-gradient(135deg, #131b2d 0%, #354766 100%);
  border-color: #131b2d;
  color: #fff;
}

/* ---------- Card refinements ---------- */

.villa-card { position: relative; }

/* Phase 5r: villa card hidden by real availability filter.
   `hidden` alone is beaten by `.villa-card { display: block/flex }`,
   so we force display:none. */
.villa-card[hidden] { display: none !important; }

/* Availability summary line above the grid — tells the guest how many
   villas were removed from view because their dates conflict. */
.availability-summary {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbf8f1 0%, #f7f2e7 100%);
  border: 1px solid #eee6d3;
  color: #354766;
  font-size: 0.9rem;
  font-family: -apple-system, "Inter", sans-serif;
}

/* Phase 5r: fake availability pill is deprecated. Kept CSS for safety
   in case any cached page paints it, but hide it. */
.villa-live-dot { display: none !important; }
.villa-card .villa-live-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(19, 27, 45, 0.72);
  color: #fff;
  font-family: -apple-system, "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.villa-card .villa-live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.24);
  animation: mpsLivePulse 2400ms ease-out infinite;
}

/* Best-for pill: kill the beige, go monochrome + tiny */
.villa-bestfor {
  background: rgba(19, 27, 45, 0.06) !important;
  border-color: rgba(19, 27, 45, 0.08) !important;
  color: var(--mps-ink) !important;
  font-family: -apple-system, "Inter", sans-serif;
  font-size: 0.7rem !important;
  padding: 0.2rem 0.55rem !important;
  letter-spacing: -0.005em;
}

/* ---------- All filters / Grid / Map: icon-only pill row ---------- */

.engine-actions {
  gap: 0.4rem !important;
}
.filter-panel--engine > summary {
  border-radius: 999px !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid rgba(19, 27, 45, 0.1) !important;
  background: #fff !important;
  color: var(--mps-ink);
  font-family: -apple-system, "Inter", sans-serif;
  font-size: 0.82rem !important;
  font-weight: 500;
  transition: all 160ms ease;
}
.filter-panel--engine > summary:hover {
  background: var(--mps-ink) !important;
  color: #fff;
}
.view-toggle--engine .pill {
  border-radius: 999px !important;
  font-family: -apple-system, "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Cookie banner: minimize to a corner chip on this page only ---------- */

.consent-modal, [class*="cookie"][class*="modal"], [class*="cookie"][class*="banner"] {
  max-width: 380px !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(19, 27, 45, 0.18) !important;
  font-size: 0.82rem !important;
}
