/**
 * Event Nexus theme styles.
 *
 * Layered on top of Bootstrap 5 — keep custom CSS to small, targeted overrides
 * and prefer Bootstrap utility classes in markup whenever possible.
 *
 * Organized roughly:
 *   1. Tokens + base
 *   2. Focus ring + view transitions (cross-cutting)
 *   3. Opportunity card (container-queried)
 *   4. Filters sidebar
 *   5. Archive page (header, chips, pagination, empty state)
 *   6. Single opportunity (gallery, lightbox, inline editing)
 *   7. Front page (hero, stats, pills, category, locations, cta)
 *   8. Site chrome (footer)
 */

/* ============================================================
 * 1. Tokens + base
 * ============================================================ */

:root {
  /* --en-card-radius: 0.875rem;
  --en-card-radius-sm: 0.5rem; */
  --en-card-radius: 0;
  --en-card-radius-sm: 0;
  --en-navy: #0a1628;
  --en-navy-mid: #112240;
  --en-navy-light: #1a3a5c;
  --en-gold: #c8a84b;
  --en-gold-light: #e2c97e;
  --en-gold-dark: #8b7330;
  /* Contact Sales / enquire orange — see .btn-enquire. */
  --en-enquire: rgb(255, 164, 28);
  --en-enquire-light: rgb(255, 199, 124);
  --en-enquire-dark: rgb(230, 144, 0);
  --en-available: #16a34a;
  --en-hold: #d97706;
  --en-sold: #dc2626;
  --en-muted: #627083;
  --en-line: rgba(10, 22, 40, 0.08);
  --en-line-strong: rgba(10, 22, 40, 0.16);
  --en-shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 3px rgba(10, 22, 40, 0.06);
  --en-shadow-md: 0 10px 24px rgba(10, 22, 40, 0.08);
  --en-shadow-lg: 0 18px 40px rgba(10, 22, 40, 0.14);
  --en-ring: 0 0 0 3px rgba(200, 168, 75, 0.35);
}

body {
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.site-header .navbar-brand {
  letter-spacing: 0.02em;
}

/* ============================================================
 * 2. Focus ring + view transitions
 * ============================================================ */

:where(a, button, .btn, input, select, textarea, summary, .form-check-input):focus-visible {
  outline: none;
  box-shadow: var(--en-ring);
  border-radius: 0.375rem;
}

.btn:focus-visible {
  box-shadow: var(--en-ring), var(--bs-btn-focus-box-shadow, none);
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.25s;
    animation-timing-function: ease;
  }
}

/* ============================================================
 * 3. Opportunity card (container-queried)
 * ============================================================ */

.opportunity-grid > .col {
  /* Each grid cell is the container the card adapts to. Container queries
     let the card respond to its own slot — useful here because the grid
     gives narrower cells on tablet (2 cols) vs desktop (3 cols). */
  container-type: inline-size;
}

.opportunity-card {
  position: relative;
  border-radius: var(--en-card-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--en-line);
  box-shadow: var(--en-shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.opportunity-card:hover,
.opportunity-card:has(.stretched-link:focus-visible) {
  transform: translateY(-3px);
  box-shadow: var(--en-shadow-md);
  border-color: var(--en-line-strong);
}

/* Quiet the default focus ring on the stretched-link — the parent card
   already takes ownership of the focus visual via :has() above. */
.opportunity-card .stretched-link:focus-visible {
  box-shadow: none;
}

.opportunity-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #eef1f5 0%, #f7f8fa 100%);
  overflow: hidden;
}

.opportunity-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}

.opportunity-card:hover .opportunity-card__img {
  transform: scale(1.04);
}

.opportunity-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(10, 22, 40, 0.04) 0,
      rgba(10, 22, 40, 0.04) 8px,
      transparent 8px,
      transparent 16px
    );
}

.opportunity-card__map-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.opportunity-card__status {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.25);
}

.opportunity-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.opportunity-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--en-gold-dark);
  background: rgba(200, 168, 75, 0.12);
  border: 1px solid rgba(200, 168, 75, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.opportunity-card__title {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--en-navy);
  margin-bottom: 0.5rem;
}

.opportunity-card__title a {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.15s ease;
}

.opportunity-card:hover .opportunity-card__title a {
  color: var(--en-navy);
  background-size: 100% 1px;
}

.opportunity-card__price {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--en-navy);
  margin-bottom: 0.5rem;
}

.opportunity-card__excerpt {
  color: var(--en-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.opportunity-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--en-line);
}

.opportunity-card__event,
.opportunity-card__location {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--en-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  margin: 0;
}

.opportunity-card__event i,
.opportunity-card__location i {
  color: var(--en-gold-dark);
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.opportunity-card__event > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opportunity-card__event-venue {
  color: rgba(98, 112, 131, 0.75);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Container-query layout shifts: on roomy cells (3-up desktop = ~360px),
   pull image height up; on narrow cells (<360px), tighten typography. */
@supports (container-type: inline-size) {
  @container (max-width: 320px) {
    .opportunity-card__title {
      font-size: 1rem;
    }
    .opportunity-card__excerpt {
      display: none;
    }
  }

  @container (min-width: 420px) {
    .opportunity-card__media {
      aspect-ratio: 16 / 10;
    }
    .opportunity-card .card-body {
      padding: 1.25rem;
    }
  }
}

/* Status-aware accent rail on the left edge */
.opportunity-card[data-status="available"] { box-shadow: inset 3px 0 0 var(--en-available), var(--en-shadow-sm); }
.opportunity-card[data-status="on_hold"]   { box-shadow: inset 3px 0 0 var(--en-hold), var(--en-shadow-sm); }
.opportunity-card[data-status="sold"]      { box-shadow: inset 3px 0 0 var(--en-sold), var(--en-shadow-sm); }

.opportunity-card[data-status="available"]:hover,
.opportunity-card[data-status="available"]:has(.stretched-link:focus-visible) { box-shadow: inset 3px 0 0 var(--en-available), var(--en-shadow-md); }
.opportunity-card[data-status="on_hold"]:hover,
.opportunity-card[data-status="on_hold"]:has(.stretched-link:focus-visible) { box-shadow: inset 3px 0 0 var(--en-hold), var(--en-shadow-md); }
.opportunity-card[data-status="sold"]:hover,
.opportunity-card[data-status="sold"]:has(.stretched-link:focus-visible) { box-shadow: inset 3px 0 0 var(--en-sold), var(--en-shadow-md); }

/* Scroll-driven entrance animation. Progressive enhancement only — gated by
   prefers-reduced-motion AND a precise @supports check (so Safari <17 et al
   don't get a half-broken animation). */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes opportunity-card-rise {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
    }

    .opportunity-grid > .col {
      animation: opportunity-card-rise auto linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
  }
}

/* ============================================================
 * 4. Filters sidebar
 * ============================================================ */

.opportunity-filters {
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: var(--en-card-radius);
  padding: 1.25rem;
  box-shadow: var(--en-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .archive-opportunity__aside {
    position: sticky;
    top: 1rem;
    align-self: start;
    z-index: 1;
  }
}

.opportunity-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--en-line);
}

.opportunity-filters__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--en-navy);
  margin: 0;
  letter-spacing: 0.01em;
}

.opportunity-filters__title i {
  color: var(--en-gold-dark);
}

.opportunity-filters__clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--en-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.opportunity-filters__clear:hover,
.opportunity-filters__clear:focus-visible {
  color: var(--en-sold);
  border-bottom-color: currentColor;
}

.opportunity-filters__group {
  /* :has() below makes a group with an active filter glow softly — gives the
     user immediate visual feedback about which sections are doing work. */
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0 -0.5rem;
  transition: background-color 0.2s ease;
}

.opportunity-filters__group:has(input:checked) {
  background-color: rgba(200, 168, 75, 0.06);
}

/* Locked event filter card (event taxonomy archive). Not editable —
   surfaced as a pinned read-only card so it's clear the filter is being
   applied but can only be changed by leaving the event archive. */
.opportunity-filters__group--locked {
  background-color: rgba(10, 22, 40, 0.04);
  border: 1px solid var(--en-line);
}

.opportunity-filters__group--locked:has(input:checked) {
  background-color: rgba(10, 22, 40, 0.04);
}

.opportunity-filters__locked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
}

.opportunity-filters__locked-icon {
  color: var(--en-gold-dark);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.opportunity-filters__locked-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opportunity-filters__locked-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--en-navy);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.opportunity-filters__locked-hint {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--en-muted);
  margin-top: 0.15rem;
}

.opportunity-filters__legend {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--en-muted);
  margin-bottom: 0.5rem;
}

.opportunity-filters__list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
  /* Modern scrollbar that doesn't fight the card visuals */
  scrollbar-width: thin;
  scrollbar-color: var(--en-line-strong) transparent;
}

.opportunity-filters__check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.opportunity-filters__check:hover {
  background-color: rgba(10, 22, 40, 0.04);
}

.opportunity-filters__check:has(input:checked) {
  background-color: rgba(200, 168, 75, 0.1);
}

.opportunity-filters__check input {
  margin: 0;
  flex-shrink: 0;
}

.opportunity-filters__check-label {
  font-size: 0.9rem;
  color: var(--en-navy);
  flex-grow: 1;
  line-height: 1.3;
}

.opportunity-filters__check:has(input:checked) .opportunity-filters__check-label {
  font-weight: 600;
}

.opportunity-filters__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--en-muted);
  background: rgba(10, 22, 40, 0.05);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Status row gets a colored leading dot to mirror the card status rail */
.opportunity-filters__check-dot {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--en-muted);
}

.opportunity-filters__check--status-available   .opportunity-filters__check-dot { background: var(--en-available); }
.opportunity-filters__check--status-unavailable .opportunity-filters__check-dot { background: var(--en-sold); }

.opportunity-filters__hint {
  font-size: 0.75rem;
  color: var(--en-muted);
  margin: 0.5rem 0 0;
  font-variant-numeric: tabular-nums;
}

/* --- Dual-thumb price range slider --------------------------------------
 * Two overlaid <input type="range"> elements with `pointer-events: none` on
 * the input but `auto` on the thumb pseudo-elements, so each thumb is
 * independently draggable. The colored fill between the two values is a
 * separate child element positioned via two CSS custom properties
 * (`--lo` / `--hi`) updated by JS in price-slider.js (inside filters.js).
 * ------------------------------------------------------------------------ */

.opportunity-filters__price .price-slider {
  position: relative;
  height: 2.25rem;
  margin: 0.5rem 0 0.75rem;
  --lo: 0%;
  --hi: 100%;
}

.price-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0.35rem;
  background: rgba(10, 22, 40, 0.08);
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.price-slider__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lo);
  right: calc(100% - var(--hi));
  background: linear-gradient(90deg, var(--en-gold), var(--en-gold-light));
  border-radius: 999px;
}

.price-slider__range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  /* Stack max above min by default; flips dynamically below so the active
     thumb is always the one closest to the pointer. */
  z-index: 2;
}

.price-slider__range:focus-visible {
  outline: none;
  box-shadow: none;
}

/* WebKit thumb */
.price-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 1.125rem;
  height: 1.125rem;
  background: #fff;
  border: 2px solid var(--en-navy);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.25);
  cursor: grab;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.price-slider__range:hover::-webkit-slider-thumb {
  border-color: var(--en-gold-dark);
}

.price-slider__range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: var(--en-gold-dark);
}

.price-slider__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.35), 0 2px 6px rgba(10, 22, 40, 0.25);
  border-color: var(--en-gold-dark);
}

/* Firefox thumb */
.price-slider__range::-moz-range-thumb {
  pointer-events: auto;
  width: 1.125rem;
  height: 1.125rem;
  background: #fff;
  border: 2px solid var(--en-navy);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.25);
  cursor: grab;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.price-slider__range:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: var(--en-gold-dark);
}

.price-slider__range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.35), 0 2px 6px rgba(10, 22, 40, 0.25);
  border-color: var(--en-gold-dark);
}

/* Hide native tracks — we render our own. */
.price-slider__range::-webkit-slider-runnable-track {
  background: transparent;
  height: 100%;
}

.price-slider__range::-moz-range-track {
  background: transparent;
  height: 100%;
}

/* Long-tail visual cues: when some prices exceed the slider's cap, the
   right end of the track gets a faded "more" zone so the right edge reads
   as "include everything above" rather than "$X exact". When the right
   thumb is at the cap, the fill bar squares off and glows to signal an
   open upper bound. */
.price-slider--has-tail .price-slider__track::after {
  content: "";
  position: absolute;
  top: 0;
  right: -0.5rem;
  width: 1.25rem;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 168, 75, 0.5));
  border-radius: 999px;
  pointer-events: none;
}

.price-slider[data-upper-open="1"] .price-slider__fill {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0.5rem 0 0 0 rgba(200, 168, 75, 0.35);
}

.opportunity-filters__submit {
  font-weight: 600;
  padding: 0.625rem 1rem;
}

@media (max-width: 991.98px) {
  .opportunity-filters {
    margin-bottom: 1rem;
  }
}

/* ============================================================
 * 5. Archive page (header, chips, pagination, empty state)
 * ============================================================ */

.archive-opportunity__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--en-line);
}

.archive-opportunity__header--with-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.archive-opportunity__heading {
  flex: 1;
  min-width: 0;
}

.archive-opportunity__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--en-navy);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.archive-opportunity__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--en-muted);
  font-size: 0.95rem;
  margin: 0;
}

.archive-opportunity__count-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--en-navy);
  letter-spacing: -0.02em;
}

.archive-opportunity__event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.archive-opportunity__event-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--en-muted);
  font-size: 0.95rem;
}

.archive-opportunity__event-meta li i {
  color: var(--en-gold-dark);
}

.archive-opportunity__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(200, 168, 75, 0.08);
  border: 1px solid rgba(200, 168, 75, 0.22);
  border-radius: var(--en-card-radius-sm);
}

.archive-opportunity__chips-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--en-gold-dark);
  margin-right: 0.25rem;
}

.archive-opportunity__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid var(--en-line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--en-navy);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.archive-opportunity__chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.08);
  font-size: 0.65rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.archive-opportunity__chip:hover,
.archive-opportunity__chip:focus-visible {
  border-color: var(--en-sold);
  color: var(--en-sold);
}

.archive-opportunity__chip:hover i,
.archive-opportunity__chip:focus-visible i {
  background: var(--en-sold);
  color: #fff;
}

.archive-opportunity__chip--search {
  background: rgba(200, 168, 75, 0.16);
  border-color: rgba(200, 168, 75, 0.45);
  color: var(--en-gold-dark);
  font-weight: 600;
}

.archive-opportunity__chip-clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--en-muted);
  text-decoration: none;
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.archive-opportunity__chip-clear:hover,
.archive-opportunity__chip-clear:focus-visible {
  color: var(--en-sold);
  border-color: var(--en-sold);
}

.opportunity-pagination {
  margin-top: 2.5rem;
}

.opportunity-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.opportunity-pagination .page-numbers {
  border-radius: 0.625rem;
  border: 1px solid var(--en-line);
  background: #fff;
  color: var(--en-navy);
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.opportunity-pagination a.page-numbers:hover,
.opportunity-pagination a.page-numbers:focus-visible {
  background: rgba(200, 168, 75, 0.12);
  border-color: var(--en-gold);
  color: var(--en-navy);
}

.opportunity-pagination .page-numbers.current {
  background: var(--en-navy);
  border-color: var(--en-navy);
  color: #fff;
}

.opportunity-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--en-muted);
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--en-line-strong);
  border-radius: var(--en-card-radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state__icon {
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(200, 168, 75, 0.12);
  color: var(--en-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--en-navy);
  margin-bottom: 0.5rem;
}

.empty-state__lead {
  color: var(--en-muted);
  margin-bottom: 1.25rem;
}

/* ============================================================
 * 6. Single opportunity (gallery, lightbox, inline editing)
 * ============================================================ */

img.object-fit-cover {
  object-fit: cover;
}

.ratio-3x2 {
  --bs-aspect-ratio: calc(2 / 3 * 100%);
}

.event-archive-logo {
  max-height: 88px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ----- Site header: brand + centered event logo ----- */

.site-header__nav {
  position: relative;
}

.site-header__brand {
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header__event {
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  /* .site-header__event {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(46%, 640px);
    pointer-events: auto;
    padding: 0 0.5rem;
  } */
}

.navbar-event-logo {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ----- Site header: actions row (search, browse, contact) ----- */

.site-header__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 991.98px) {
  :where(.site-header__actions) .site-header__browse,
  :where(.site-header__actions) .site-header__browse > .btn {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .site-header__actions {
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: auto;
  }

  :where(.site-header__browse) .btn,
  :where(.site-header__actions) .btn-enquire {
    --bs-btn-padding-y: 0.4rem;
    --bs-btn-padding-x: 0.85rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

/* ----- Site header: expanding search ----- */

.site-search {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--en-line-strong);
  border-radius: 999px;
  height: 38px;
  width: 38px;
  overflow: hidden;
  transition:
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.site-search[data-expanded="true"] {
  width: clamp(220px, 26vw, 320px);
}

.site-search:focus-within {
  border-color: var(--en-gold);
  box-shadow: var(--en-ring);
}

.site-search__trigger {
  flex: 0 0 38px;
  width: 38px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--en-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.site-search__trigger:hover,
.site-search__trigger:focus-visible {
  color: var(--en-navy);
}

.site-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

.site-search__input:focus,
.site-search__input:focus-visible {
  box-shadow: none;
  outline: none;
}

.site-search__input::placeholder {
  color: var(--en-muted);
  opacity: 0.85;
}

.site-search__submit {
  flex: 0 0 38px;
  width: 38px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--en-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-search__submit:hover,
.site-search__submit:focus-visible {
  color: var(--en-navy);
  background: rgba(10, 22, 40, 0.06);
}

/* Below the navbar breakpoint the form lives inside the collapsed menu —
   always show it expanded and let it fill the row. */
@media (max-width: 991.98px) {
  .site-search,
  .site-search[data-expanded="false"],
  .site-search[data-expanded="true"] {
    width: 100%;
    height: 42px;
  }
}

/* ----- Site header: browse dropdown ----- */

.site-header__browse-menu {
  min-width: 16rem;
  padding: 0.5rem 0;
  border: 1px solid var(--en-line-strong);
  box-shadow: var(--en-shadow-md);
}

.site-header__browse-menu .dropdown-header {
  color: var(--en-muted);
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 600;
}

.site-header__browse-menu .dropdown-item {
  padding: 0.5rem 1rem;
}

.site-header__browse-menu .dropdown-item.active,
.site-header__browse-menu .dropdown-item:active {
  background: rgba(200, 168, 75, 0.16);
  color: var(--en-navy);
}

.site-header__browse-menu .badge {
  background: rgba(10, 22, 40, 0.06);
  color: var(--en-muted);
  min-width: 2.25rem;
}

img.is-zoomable {
  cursor: zoom-in;
}

.opportunity-image-modal__image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  height: auto;
  width: auto;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.opportunity-image-modal .modal-header {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0;
  border: 0;
}

.opportunity-image-modal .modal-header .btn-close {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  opacity: 1;
  padding: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
}

.opportunity-image-modal .modal-header .btn-close:hover,
.opportunity-image-modal .modal-header .btn-close:focus-visible {
  background-color: #fff;
}

/* Inline editing affordances — unchanged from prior implementation. */
.opp-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: baseline;
}

.opp-inline--select .opp-inline__control {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: transparent;
}

.opp-inline--select .opp-inline__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: box-shadow 0.15s ease;
}

.opp-inline--select:hover .opp-inline__badge,
.opp-inline--select:focus-within .opp-inline__badge {
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.opp-inline__caret {
  font-size: 0.7em;
  opacity: 0.7;
  pointer-events: none;
}

.opp-inline--text .opp-inline__control,
.opp-inline--number .opp-inline__control,
.opp-inline--url .opp-inline__control {
  border: 1px dashed rgba(0, 0, 0, 0.15);
  background: transparent;
  border-radius: 0.25rem;
  padding: 0.125rem 0.4rem;
  font: inherit;
  color: inherit;
  min-width: 6rem;
  max-width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.opp-inline--text .opp-inline__control:hover,
.opp-inline--number .opp-inline__control:hover,
.opp-inline--url .opp-inline__control:hover {
  border-color: rgba(0, 0, 0, 0.35);
  border-style: solid;
}

.opp-inline--text .opp-inline__control:focus,
.opp-inline--number .opp-inline__control:focus,
.opp-inline--url .opp-inline__control:focus {
  border-color: var(--bs-primary, #0d6efd);
  border-style: solid;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.opp-inline__prepend {
  color: var(--en-muted, #627083);
  font-size: 0.9em;
}

.opp-inline[data-state="saving"] {
  opacity: 0.7;
}

.opp-inline__status {
  font-size: 0.75em;
  color: var(--en-muted, #627083);
  margin-left: 0.4rem;
  min-height: 1em;
}

.opp-inline[data-state="saved"] .opp-inline__status {
  color: var(--en-available, #16a34a);
}

.opp-inline[data-state="error"] .opp-inline__status {
  color: var(--en-sold, #dc2626);
}

.opportunity-gallery-wrap {
  border-radius: var(--en-card-radius);
  overflow: hidden;
  background: var(--en-navy);
  box-shadow: 0 0.5rem 1.25rem rgba(10, 22, 40, 0.10);
}

.opportunity-gallery {
  visibility: hidden;
}

.opportunity-gallery.slick-initialized,
.opportunity-gallery-wrap.is-single .opportunity-gallery {
  visibility: visible;
}

.opportunity-gallery .slick-list,
.opportunity-gallery .slick-track {
  display: flex;
  align-items: stretch;
}

.opportunity-gallery .slick-slide {
  height: auto;
}

.opportunity-gallery .opportunity-gallery__slide,
.opportunity-gallery .opportunity-gallery__slide.slick-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  height: clamp(320px, 55vh, 560px);
}

.opportunity-gallery__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
}

.opportunity-gallery__caption {
  color: rgba(255, 255, 255, 0.78);
  padding: 0 0.5rem;
  text-align: center;
}

.opportunity-gallery .slick-prev,
.opportunity-gallery .slick-next {
  width: 2.5rem;
  height: 2.5rem;
  z-index: 2;
}

.opportunity-gallery .slick-prev { left: 0.75rem; }
.opportunity-gallery .slick-next { right: 0.75rem; }

.opportunity-gallery .slick-prev::before,
.opportunity-gallery .slick-next::before {
  font-size: 1.75rem;
  color: var(--en-gold-light);
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.opportunity-gallery .slick-prev:hover::before,
.opportunity-gallery .slick-next:hover::before,
.opportunity-gallery .slick-prev:focus-visible::before,
.opportunity-gallery .slick-next:focus-visible::before {
  color: #fff;
  opacity: 1;
}

.opportunity-gallery .slick-dots {
  position: relative;
  bottom: 0;
  padding: 0.5rem 0 0.75rem;
  margin: 0;
  background: var(--en-navy);
}

.opportunity-gallery .slick-dots li button::before {
  font-size: 0.5rem;
  color: var(--en-gold-light);
  opacity: 0.45;
}

.opportunity-gallery .slick-dots li.slick-active button::before {
  color: var(--en-gold);
  opacity: 1;
}

/* Thumbnail navigator (Slick asNavFor companion) */
.opportunity-gallery-wrap.has-thumbs .opportunity-gallery .slick-dots {
  display: none;
}

.opportunity-gallery-thumbs {
  background: var(--en-navy);
  padding: 0.5rem 2.5rem 0.75rem;
  visibility: hidden;
}

.opportunity-gallery-thumbs.slick-initialized {
  visibility: visible;
}

.opportunity-gallery-thumbs .slick-list {
  margin: 0 -0.25rem;
}

.opportunity-gallery-thumbs .slick-slide {
  padding: 0 0.25rem;
  height: auto;
}

.opportunity-gallery-thumbs__img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 0.125rem;
}

.opportunity-gallery-thumbs__btn {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  opacity: 0.55;
}

.opportunity-gallery-thumbs__btn:hover,
.opportunity-gallery-thumbs__btn:focus-visible {
  opacity: 1;
  outline: none;
}

.opportunity-gallery-thumbs__btn:focus-visible {
  border-color: var(--en-gold-light);
}

/* Slick mounts these <button>s directly as slides (no extra wrapper), so
   `slick-current` lands on the button element itself rather than a parent. */
.opportunity-gallery-thumbs__btn.slick-current {
  border-color: var(--en-gold);
  opacity: 1;
}

@media (max-width: 575.98px) {
  .opportunity-gallery__slide {
    min-height: 240px;
    padding: 0.75rem;
  }

  .opportunity-gallery__img {
    max-height: 45vh;
  }

  .opportunity-gallery-thumbs {
    padding: 0.5rem 1rem 0.75rem;
  }

  .opportunity-gallery-thumbs__img {
    height: 44px;
  }
}

/* ============================================================
 * 7. Front page
 * ============================================================ */

.en-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(226, 201, 126, 0.16), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(226, 201, 126, 0.08), transparent 60%),
    linear-gradient(135deg, var(--en-navy) 0%, var(--en-navy-light) 100%);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.en-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.2) 100%);
}

.en-hero > .container {
  position: relative;
  z-index: 1;
}

.en-hero__title {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.en-hero__accent {
  color: var(--en-gold-light);
  background: linear-gradient(120deg, var(--en-gold-light), var(--en-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.en-hero__lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
  line-height: 1.6;
}

.en-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--en-gold-light);
}

.en-eyebrow--light {
  color: var(--en-gold-light);
}

.text-en-gold-dark {
  color: var(--en-gold-dark);
}

.en-section {
  padding: 4rem 0;
}

.en-section__title {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--en-navy);
  margin-top: 0.5rem;
}

.btn-en-gold {
  --bs-btn-color: var(--en-navy);
  --bs-btn-bg: var(--en-gold);
  --bs-btn-border-color: var(--en-gold);
  --bs-btn-hover-color: var(--en-navy);
  --bs-btn-hover-bg: var(--en-gold-light);
  --bs-btn-hover-border-color: var(--en-gold-light);
  --bs-btn-active-color: var(--en-navy);
  --bs-btn-active-bg: var(--en-gold-light);
  --bs-btn-active-border-color: var(--en-gold-light);
  --bs-btn-focus-shadow-rgb: 200, 168, 75;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(200, 168, 75, 0.35);
}

.en-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: -3.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 5;
}

.en-stat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.375rem;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.10);
  border: 1px solid rgba(10, 22, 40, 0.04);
  text-decoration: none;
  color: var(--en-navy);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.en-stat::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

a.en-stat:hover,
a.en-stat:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(10, 22, 40, 0.16);
  border-color: rgba(10, 22, 40, 0.10);
  color: var(--en-navy);
}

a.en-stat:hover::after,
a.en-stat:focus-visible::after {
  opacity: 0.4;
}

.en-stat__value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--en-navy);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.en-stat__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--en-muted);
}

.en-stat--available { color: var(--en-available); }
.en-stat--on-hold   { color: var(--en-hold); }
.en-stat--sold      { color: var(--en-sold); }
.en-stat--value     { color: var(--en-gold-dark); }

.en-stat--available .en-stat__value { color: var(--en-available); }
.en-stat--on-hold .en-stat__value   { color: var(--en-hold); }
.en-stat--sold .en-stat__value      { color: var(--en-sold); }
.en-stat--value .en-stat__value     { color: var(--en-gold-dark); }

.en-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.10);
  border-radius: 999px;
  color: var(--en-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.en-pill:hover,
.en-pill:focus-visible {
  transform: translateY(-1px);
  border-color: var(--en-navy);
  color: var(--en-navy);
  box-shadow: 0 6px 14px rgba(10, 22, 40, 0.08);
}

.en-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.08);
  color: var(--en-navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  min-width: 1.5rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.en-pill--all              { background: var(--en-navy); border-color: var(--en-navy); color: #fff; }
.en-pill--all:hover        { background: var(--en-navy-light); border-color: var(--en-navy-light); color: #fff; }
.en-pill--all .en-pill__count { background: rgba(255, 255, 255, 0.18); color: #fff; }

.en-pill--available { background: rgba(22, 163, 74, 0.06); border-color: rgba(22, 163, 74, 0.25); }
.en-pill--available .en-pill__count { background: var(--en-available); color: #fff; }
.en-pill--hold      { background: rgba(217, 119, 6, 0.06); border-color: rgba(217, 119, 6, 0.25); }
.en-pill--hold .en-pill__count { background: var(--en-hold); color: #fff; }
.en-pill--sold      { background: rgba(220, 38, 38, 0.05); border-color: rgba(220, 38, 38, 0.18); }
.en-pill--sold .en-pill__count { background: var(--en-sold); color: #fff; }

/* --- Event cards (front page "Recent events" section) ------------------ */

.en-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.en-event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--en-line);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--en-navy);
  box-shadow: var(--en-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.en-event-card:hover,
.en-event-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--en-shadow-lg);
  border-color: var(--en-line-strong);
  color: var(--en-navy);
}

.en-event-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(226, 201, 126, 0.12), transparent 55%),
    linear-gradient(135deg, var(--en-navy) 0%, var(--en-navy-light) 100%);
  overflow: hidden;
}

.en-event-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.en-event-card__logo {
  position: relative;
  z-index: 1;
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.en-event-card:hover .en-event-card__logo {
  transform: scale(1.04);
}

.en-event-card__fallback {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.en-event-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--en-line);
}

.en-event-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--en-navy);
  line-height: 1.25;
}

.en-event-card__meta {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.en-event-card__meta li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--en-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.en-event-card__meta li i {
  color: var(--en-gold-dark);
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.en-event-card__count {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--en-gold-dark);
  margin: 0 0 0.5rem;
  font-variant-numeric: tabular-nums;
}

.en-event-card__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--en-navy);
  transition: gap 0.2s ease;
}

.en-event-card:hover .en-event-card__arrow {
  gap: 0.6rem;
}

.en-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.en-category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 11rem;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--en-navy);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.en-category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--en-navy), var(--en-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.en-category-card:hover,
.en-category-card:focus-visible {
  border-color: rgba(10, 22, 40, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(10, 22, 40, 0.10);
  color: var(--en-navy);
}

.en-category-card:hover::after,
.en-category-card:focus-visible::after {
  transform: scaleX(1);
}

.en-category-card__count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--en-gold-dark);
}

.en-category-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.en-category-card__arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--en-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease, gap 0.2s ease;
}

.en-category-card:hover .en-category-card__arrow,
.en-category-card:focus-visible .en-category-card__arrow {
  color: var(--en-navy);
  gap: 0.5rem;
}

.en-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 999px;
  color: var(--en-navy);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.en-location-chip:hover,
.en-location-chip:focus-visible {
  border-color: var(--en-gold);
  color: var(--en-navy);
  background: rgba(226, 201, 126, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 22, 40, 0.06);
}

.en-location-chip__count {
  font-size: 0.75rem;
  color: var(--en-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.en-cta {
  background:
    radial-gradient(circle at 20% 50%, rgba(226, 201, 126, 0.10), transparent 55%),
    linear-gradient(135deg, var(--en-navy) 0%, var(--en-navy-light) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.en-cta__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.en-cta__lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .en-hero {
    padding: 3.5rem 0 4.5rem;
  }

  .en-stats {
    margin-top: -2.5rem;
  }

  .en-stat__value {
    font-size: 1.875rem;
  }
}

/* Scroll-driven section reveal for front page (decorative, gated). */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes en-reveal {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
    }

    .en-section > .container > *,
    .en-cta > .container > * {
      animation: en-reveal auto linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ============================================================
 * 8. Site chrome
 * ============================================================ */

.site-footer {
  a {
    color: white;
  }
}

/* ============================================================
 * 9. Availability widget
 * ============================================================ */

.opportunity-availability {
  --avail-bg-track: #e9ecef;
  --avail-available: #198754;
  --avail-on-hold: #ffc107;
  --avail-sold: #dc3545;
}

.opportunity-availability__count {
  font-size: 0.95rem;
  line-height: 1.2;
}

.opportunity-availability__count strong {
  font-size: 1.25rem;
}

.opportunity-availability__bar {
  display: flex;
  width: 100%;
  height: 8px;
  background: var(--avail-bg-track);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.opportunity-availability__bar-segment {
  display: block;
  height: 100%;
}

.opportunity-availability__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.2;
}

.opportunity-availability__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #495057;
}

.opportunity-availability__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.opportunity-availability__chip-count {
  font-weight: 600;
  color: #212529;
}

.opportunity-availability__chip-label {
  color: #6c757d;
}

/* State modifiers — higher specificity, kept together. */
.opportunity-availability__bar-segment.is-available {
  background: var(--avail-available);
}

.opportunity-availability__bar-segment.is-on-hold {
  background: var(--avail-on-hold);
}

.opportunity-availability__bar-segment.is-sold {
  background: var(--avail-sold);
}

.opportunity-availability__chip.is-available .opportunity-availability__dot {
  background: var(--avail-available);
}

.opportunity-availability__chip.is-on-hold .opportunity-availability__dot {
  background: var(--avail-on-hold);
}

.opportunity-availability__chip.is-sold .opportunity-availability__dot {
  background: var(--avail-sold);
}

/* Card-compact variant: a single "X of Y available" pill, color-tinted by
   the stock state. The full breakdown lives on the single page; on the card
   one terse headline keeps the design dense. */
.opportunity-availability--compact {
  margin-bottom: 0.5rem;
}

.opportunity-availability__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.opportunity-availability__pill.is-available {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.opportunity-availability__pill.is-on-hold {
  color: #664d03;
  background: #fff3cd;
  border-color: #ffecb5;
}

.opportunity-availability__pill.is-sold,
.opportunity-availability__pill.is-unavailable {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.opportunity-availability__pill.is-available .opportunity-availability__dot {
  background: var(--avail-available);
}

.opportunity-availability__pill.is-on-hold .opportunity-availability__dot {
  background: var(--avail-on-hold);
}

.opportunity-availability__pill.is-sold .opportunity-availability__dot,
.opportunity-availability__pill.is-unavailable .opportunity-availability__dot {
  background: var(--avail-sold);
}

/* ============================================================
 * 10. Enquire CTA
 * ============================================================ */

.opportunity-enquire {
  border-color: rgb(255, 164, 28);
}

.btn-enquire {
  --bs-btn-color: #1a1a1a;
  --bs-btn-bg: var(--en-enquire);
  --bs-btn-border-color: var(--en-enquire);
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-hover-bg: var(--en-enquire-dark);
  --bs-btn-hover-border-color: var(--en-enquire-dark);
  --bs-btn-active-color: #1a1a1a;
  --bs-btn-active-bg: var(--en-enquire-dark);
  --bs-btn-active-border-color: var(--en-enquire-dark);
  --bs-btn-focus-shadow-rgb: 255, 164, 28;
}

/* ============================================================
 * 11. Show Mapper (floor-plan modal + widget)
 * ============================================================ */

.opportunity-floor-plan-btn {
  display: inline-flex;
  align-items: center;
  white-space: normal;
  text-align: left;
}

.opportunity-floor-plan-modal .modal-dialog {
  max-width: min(1280px, 96vw);
}

.opportunity-floor-plan-modal__content {
  min-height: 80vh;
}

.opportunity-floor-plan-modal__viewer,
.opportunity-floor-plan-modal__viewer.show-mapper {
  position: relative;
  width: 100%;
  height: clamp(420px, 70vh, 820px);
  background: #f6f7f9;
}

.opportunity-floor-plan-modal__error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--en-muted);
  font-size: 0.9rem;
}

.show-mapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.show-mapper__stage {
  position: absolute;
  inset: 0;
  cursor: grab;
}

.show-mapper__stage:active {
  cursor: grabbing;
}

.show-mapper__svg {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  user-select: none;
}

.show-mapper__hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.12s ease, stroke 0.12s ease;
}

.show-mapper__hit:hover,
.show-mapper__hit.is-hover,
.show-mapper__hit:focus {
  fill: rgba(0, 119, 255, 0.18);
  stroke: rgba(0, 119, 255, 0.7);
  stroke-width: 0.8;
  outline: none;
}

.show-mapper__hit.is-active {
  fill: rgba(0, 119, 255, 0.32);
  stroke: rgba(0, 119, 255, 0.9);
  stroke-width: 1;
}

.show-mapper__hit.has-opportunities {
  fill: rgba(200, 168, 75, 0.22);
  stroke: rgba(200, 168, 75, 0.7);
  stroke-width: 0.7;
}

.show-mapper__hit.has-opportunities:hover,
.show-mapper__hit.has-opportunities.is-hover {
  fill: rgba(200, 168, 75, 0.42);
  stroke: var(--en-gold-dark);
}

/* Per-label dots — visible markers so users can see what's interactive.
   Colors come from the Contact Sales button family (--en-enquire-*) so the
   anchor matches that CTA and the other dots are a lighter tint of it. */
.show-mapper__dot {
  fill: var(--en-enquire-light);
  stroke: rgba(10, 22, 40, 0.4);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: r 0.12s ease, fill 0.12s ease;
  r: 3;
}

.show-mapper__dot.has-opportunities {
  fill: var(--en-enquire-light);
  stroke: rgba(10, 22, 40, 0.6);
  stroke-width: 0.8;
  r: 4.5;
}

.show-mapper__dot.is-hover {
  r: 6;
}

.show-mapper__dot.has-opportunities.is-hover {
  r: 7;
}

/* The anchor (current opportunity) supplies its own marker — hide the
   underlying dot so the two visuals don't double up. */
.show-mapper__dot.is-anchor {
  display: none;
}

.show-mapper__anchor-dot {
  fill: var(--en-enquire);
  stroke: var(--en-navy);
  stroke-width: 1.5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(10, 22, 40, 0.35));
  r: 9;
}

.show-mapper__anchor-pulse {
  fill: rgba(255, 164, 28, 0.35);
  stroke: rgba(255, 164, 28, 0.75);
  stroke-width: 1;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: show-mapper-pulse 1.8s ease-out infinite;
}

@keyframes show-mapper-pulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .show-mapper__anchor-pulse { animation: none; opacity: 0.4; }
}

/* Edit mode — crosshair cursor signals that double-click places a pin. */
.show-mapper--edit-mode .show-mapper__svg {
  cursor: crosshair;
}

/* Custom pin (coordinate-based, set by double-clicking the map). */
.show-mapper__pin-hit {
  fill: transparent;
  pointer-events: all;
  cursor: default;
}

.show-mapper__pin-dot {
  fill: #0d6efd;
  stroke: var(--en-navy);
  stroke-width: 1.5;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(13, 110, 253, 0.5));
  r: 8;
}

.show-mapper__pin-pulse {
  fill: rgba(13, 110, 253, 0.2);
  stroke: rgba(13, 110, 253, 0.6);
  stroke-width: 1;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: show-mapper-pin-pulse 1.8s ease-out infinite;
}

@keyframes show-mapper-pin-pulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .show-mapper__pin-pulse { animation: none; opacity: 0.35; }
}

.show-mapper__pin-ch {
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

/* Edit-mode footer layout */
.show-mapper-edit-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.show-mapper-save-status {
  min-width: 6rem;
}

.show-mapper__tooltip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--en-navy);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 5;
}

.show-mapper__tooltip.is-visible {
  opacity: 1;
}

/* ----- Popover (linked opportunities) ----- */

.show-mapper__popover {
  --bs-popover-max-width: 320px;
  --bs-popover-header-bg: var(--en-navy);
  --bs-popover-header-color: #fff;
  --bs-popover-body-padding-x: 0;
  --bs-popover-body-padding-y: 0;
  --bs-popover-border-color: rgba(10, 22, 40, 0.16);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.2);
}

.show-mapper__popover-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 280px;
  overflow-y: auto;
}

.show-mapper__popover-item + .show-mapper__popover-item {
  border-top: 1px solid var(--en-line);
}

.show-mapper__popover-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  color: var(--en-navy);
  text-decoration: none;
  transition: background 0.12s ease;
}

.show-mapper__popover-link:hover,
.show-mapper__popover-link:focus-visible {
  background: rgba(200, 168, 75, 0.16);
  outline: none;
}

.show-mapper__popover-title {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
}

.show-mapper__popover-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--en-muted);
}

.show-mapper__popover-status {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.72rem;
  background: rgba(10, 22, 40, 0.08);
}

.show-mapper__popover-status.is-available    { background: rgba(22, 163, 74, 0.16); color: #166534; }
.show-mapper__popover-status.is-unavailable  { background: rgba(220, 38, 38, 0.18); color: #991b1b; }

.show-mapper__popover-price {
  margin-left: auto;
  color: var(--en-navy);
  font-weight: 600;
}

.navbar-brand svg {
  height: 28px;
  width: auto;
}
.home .site-main {
  padding-top: 0 !important;
}