/* ============================================================
   APEXA QLA — Places explorer (template-parts/sections/places_map.php)
   Map + filter chips + search + place cards. Brand tokens come from
   style-v4.css; every value has a fallback so the module also draws
   in the editor preview. Logical properties keep it right in Arabic.
   ============================================================ */
.apx-ex {
  --apx-navy: var(--dark, #25323a);
  --apx-deep: #1c3338;
  --apx-accent: var(--accent, #fd9d49);
  --apx-line: #e3e1dc;
  --apx-text: var(--text-dark, #1a252b);
  --apx-muted: var(--text-muted, #5a6a72);
  --apx-mist: var(--mist, #e8f1f4);
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0 clamp(2.6rem, 6vw, 4.6rem);
  background: #fff;
  color: var(--apx-text);
  overflow-x: clip;
}

.apx-ex .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* compact head: the map has to be on the first screen */
.apx-ex__head {
  max-width: 70ch;
  margin: 0 0 clamp(0.9rem, 2vw, 1.3rem);
}

.apx-ex__head .section-eyebrow {
  margin-bottom: 0.35rem;
}

.apx-ex__head .section-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1.12;
}

.apx-ex__head .page-lead {
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- filter bar ---------- */
.apx-ex__bar {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.apx-ex__search {
  position: relative;
  display: block;
  max-width: 30rem;
}

.apx-ex__search i {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--apx-muted);
  pointer-events: none;
}

.apx-ex__search input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  padding-inline-start: 2.8rem;
  border: 1px solid rgba(37, 50, 58, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--apx-text);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem; /* 16px keeps iOS from zooming in on focus */
  appearance: none;
}

.apx-ex__search input:focus-visible {
  outline: 2px solid var(--apx-accent);
  outline-offset: 2px;
  border-color: var(--apx-accent);
}

.apx-ex__chips,
.apx-ex__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* views: all places / around our centre / around Lake Zug */
.apx-ex__views {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-self: start;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f1efea;
}

.apx-ex__view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--apx-text);
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.apx-ex__view i {
  font-size: 1.05rem;
}

.apx-ex__view.is-active {
  background: #fff;
  box-shadow: 0 2px 8px -3px rgba(26, 37, 43, 0.35);
  color: var(--apx-deep);
}

.apx-ex__view:focus-visible,
.apx-ex__style:focus-visible {
  outline: 2px solid var(--apx-accent);
  outline-offset: 2px;
}

.apx-ex__chip[hidden],
.apx-ex__style[hidden] {
  display: none;
}

/* legend: what each symbol on the map means */
.apx-ex__legend {
  position: absolute;
  top: 54px;
  inset-inline-start: 10px;
  z-index: 7;
  max-width: min(15rem, calc(100% - 20px));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px -8px rgba(26, 37, 43, 0.5);
  font-family: var(--font-heading, "Inter", sans-serif);
  font-size: 0.76rem;
  color: var(--apx-text);
}

.apx-ex__legend summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.apx-ex__legend summary::-webkit-details-marker {
  display: none;
}

.apx-ex__legend summary:focus-visible {
  outline: 2px solid var(--apx-accent);
  outline-offset: 2px;
  border-radius: 10px;
}

.apx-ex__legend ul {
  display: grid;
  gap: 0.35rem;
  max-height: 16rem;
  margin: 0;
  padding: 0.1rem 0.8rem 0.7rem;
  overflow-y: auto;
  list-style: none;
}

.apx-ex__legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.25;
}

.apx-ex__key {
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--apx-navy);
  color: #fff;
  font-size: 12px;
}

.apx-ex__key--dot {
  flex-basis: 12px;
  width: 12px;
  height: 12px;
  margin-inline: 5px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(26, 37, 43, 0.25);
}

.apx-ex__key--centre {
  border-radius: 50% 50% 50% 0;
  background: var(--apx-accent);
  transform: rotate(-45deg) scale(0.8);
}

/* Route / Website buttons on the older picture cards */
.apx-card-actions {
  margin-top: 0.7rem;
}

/* switch between the calm Apexa map and the detailed one */
.apx-ex__style {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(26, 37, 43, 0.5);
  color: var(--apx-text);
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
}

.apx-ex__chip,
.apx-ex__toggle,
.apx-ex__select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(37, 50, 58, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--apx-text);
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.apx-ex__chip i,
.apx-ex__toggle i,
.apx-ex__select i {
  font-size: 1rem;
  line-height: 1;
}

.apx-ex__chip span {
  font-weight: 500;
  opacity: 0.6;
}

.apx-ex__chip:hover,
.apx-ex__toggle:hover,
.apx-ex__select:hover {
  border-color: var(--apx-accent);
}

.apx-ex__chip.is-active {
  background: var(--apx-deep);
  border-color: var(--apx-deep);
  color: #fff;
}

.apx-ex__toggle {
  font-weight: 500;
  background: #faf9f7;
}

.apx-ex__toggle.is-active {
  background: #fff3e6;
  border-color: var(--apx-accent);
  color: #7a3d05;
  font-weight: 600;
}

.apx-ex__chip:focus-visible,
.apx-ex__toggle:focus-visible,
.apx-ex__btn:focus-visible,
.apx-ex__more:focus-visible,
.apx-ex__pin:focus-visible,
.apx-ex__peek-close:focus-visible {
  outline: 2px solid var(--apx-accent);
  outline-offset: 2px;
}

.apx-ex__select {
  position: relative; /* keeps its screen-reader label inside; without it the phone page scrolled sideways */
  padding-block: 0;
  background: #faf9f7;
  font-weight: 500;
}

.apx-ex__select select {
  min-height: 38px;
  max-width: 13rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.apx-ex__select select:focus-visible {
  outline: 2px solid var(--apx-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- weather line ---------- */
.apx-ex__weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: var(--apx-mist);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.92rem;
}

.apx-ex__weather[hidden] {
  display: none;
}

.apx-ex__weather > i {
  font-size: 1.25rem;
  color: #2f6577;
}

.apx-ex__weather small {
  margin-inline-start: auto;
  font-size: 0.72rem;
  color: var(--apx-muted);
}

/* ---------- map + list ---------- */
.apx-ex__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  height: clamp(540px, 78vh, 840px);
}

.apx-ex__mapwrap {
  position: relative;
  min-height: 0;
  border: 1px solid var(--apx-line);
  border-radius: 18px;
  overflow: hidden;
  background: #eef1f3;
  box-shadow: 0 26px 54px -34px rgba(26, 37, 43, 0.5);
}

/* two classes: MapLibre sets position:relative on its own class, loaded after this file */
.apx-ex__mapwrap .apx-ex__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.apx-ex__map .maplibregl-ctrl-group {
  border-radius: 10px;
  box-shadow: 0 6px 16px -10px rgba(26, 37, 43, 0.45);
}

.apx-ex__map .maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.apx-ex__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--apx-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(26, 37, 43, 0.6);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.apx-ex__pin i {
  font-size: 16px;
  line-height: 1;
}

.apx-ex__pin:hover,
.apx-ex__mk.is-selected .apx-ex__pin {
  background: var(--apx-accent);
  color: #1a252b;
}

.apx-ex__mk:hover,
.apx-ex__mk.is-selected {
  z-index: 5;
}

.apx-ex__mk.is-selected .apx-ex__pin {
  box-shadow: 0 0 0 4px rgba(253, 157, 73, 0.35), 0 4px 12px -4px rgba(26, 37, 43, 0.6);
}

.apx-ex__pin--centre {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  line-height: 0;
  cursor: default;
  z-index: 6;
}

.apx-ex__pin--centre:hover {
  background: none;
}

.apx-ex__mk--centre {
  position: relative;
  z-index: 6;
  line-height: 0;
}

/* small card over the map after a tap on a pin */
.apx-ex__peek {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 8;
  display: flex;
  gap: 0.8rem;
  max-width: 440px;
  padding: 0.7rem;
  padding-inline-end: 2.4rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -16px rgba(26, 37, 43, 0.55);
}

.apx-ex__peek[hidden] {
  display: none;
}

.apx-ex__peek img {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
}

.apx-ex__peek-text {
  min-width: 0;
}

.apx-ex__peek-name {
  margin: 0.1rem 0;
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.apx-ex__peek .apx-ex__actions {
  margin-top: 0.45rem;
}

.apx-ex__peek-close {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f0ec;
  color: var(--apx-text);
  font-size: 1.1rem;
  cursor: pointer;
}

.apx-ex__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.apx-ex__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin: 0 0 0.6rem;
}

.apx-ex__count {
  margin: 0;
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
}

.apx-ex__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--apx-muted);
}

.apx-ex__list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 0.35rem;
  scrollbar-width: thin;
}

.apx-ex__card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  flex: 0 0 auto;
  border: 1px solid var(--apx-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apx-ex__card[hidden] {
  display: none;
}

/* playgrounds and fire pits: name, distance and the route button, nothing else */
.apx-ex__card--small {
  grid-template-columns: minmax(0, 1fr);
}

.apx-ex__card--small .apx-ex__text {
  padding-block: 0.7rem;
}

.apx-ex__card--small .apx-ex__actions {
  margin-top: 0.35rem;
}

.apx-ex__card:hover {
  border-color: #d2cdc4;
  box-shadow: 0 14px 30px -24px rgba(26, 37, 43, 0.5);
}

.apx-ex__card.is-selected {
  border-color: var(--apx-accent);
  box-shadow: 0 0 0 2px rgba(253, 157, 73, 0.35);
}

.apx-ex__media {
  position: relative;
  min-height: 128px;
  background: linear-gradient(135deg, #2a3b44, #1c3338);
}

.apx-ex__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apx-ex__media--tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apx-mist);
  color: #2f6577;
}

.apx-ex__media--tile i {
  font-size: 2rem;
}

.apx-ex__text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.85rem 1rem 0.8rem;
}

.apx-ex__cat {
  margin: 0;
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b3610f; /* accent, darkened for contrast on white */
}

.apx-ex__name {
  margin: 0;
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.25;
  color: var(--apx-text);
}

.apx-ex__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--apx-muted);
}

.apx-ex__blurb {
  margin: 0.15rem 0 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--apx-text);
  opacity: 0.85;
}

.apx-ex__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.apx-ex__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f4f2ee;
  font-size: 0.72rem;
  color: #3d4a51;
}

.apx-ex__badges i {
  font-size: 0.85rem;
}

.apx-ex__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.apx-ex__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(37, 50, 58, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--apx-text);
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.apx-ex__btn[hidden] {
  display: none;
}

.apx-ex__btn:hover {
  border-color: var(--apx-accent);
}

.apx-ex__btn--route {
  background: var(--apx-accent);
  border-color: var(--apx-accent);
  color: #1a252b;
  font-weight: 700;
}

.apx-ex__btn--route:hover {
  background: var(--accent-hover, #e88a35);
  border-color: var(--accent-hover, #e88a35);
}

.apx-ex__credit,
.apx-credit {
  font-size: 0.66rem;
  line-height: 1.3;
  color: #7b878d;
}

.apx-ex__credit {
  margin-top: 0.45rem;
}

.apx-ex__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.apx-ex__empty {
  margin: 1rem 0 0;
  padding: 1.2rem;
  border: 1px dashed #cfcac1;
  border-radius: 14px;
  text-align: center;
  font-size: 0.95rem;
}

.apx-ex__empty[hidden],
.apx-ex__more[hidden] {
  display: none;
}

.apx-ex__empty .apx-ex__btn {
  margin-inline-start: 0.5rem;
}

.apx-ex__more {
  align-self: center;
  min-height: 46px;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--apx-deep);
  border-radius: 999px;
  background: #fff;
  color: var(--apx-deep);
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

/* credit on the older photo cards (.ll-card and similar) */
.apx-credit {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 6px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(20, 28, 33, 0.62);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apx-credit--top {
  top: 8px;
  bottom: auto;
}

.apx-credit a {
  color: inherit;
  text-decoration: none;
}

.apx-credit a:hover {
  text-decoration: underline;
}

/* ---------- tablet and phone: map first, then the list in the page flow ---------- */
@media (max-width: 899px) {
  .apx-ex__body {
    display: block;
    height: auto;
  }

  .apx-ex__mapwrap {
    height: clamp(320px, 52vh, 480px);
    margin-bottom: 1rem;
  }

  .apx-ex__list {
    overflow: visible;
    padding-inline-end: 0;
  }

  .apx-ex__side {
    display: flex;
  }

  /* one line of chips that scrolls sideways; the page itself never scrolls sideways */
  .apx-ex__chips,
  .apx-ex__toggles {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--apx-gutter, 1rem));
    padding-inline: var(--apx-gutter, 1rem);
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .apx-ex__chips::-webkit-scrollbar,
  .apx-ex__toggles::-webkit-scrollbar {
    display: none;
  }

  .apx-ex__chip,
  .apx-ex__toggle,
  .apx-ex__select {
    flex: 0 0 auto;
    min-height: 44px;
  }

  /* three views do not fit on one phone line: they wrap, each stays a full-size tap target */
  .apx-ex__views {
    display: flex;
    flex-wrap: wrap;
    justify-self: stretch;
    border-radius: 22px;
  }

  .apx-ex__view {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    padding-inline: 0.8rem;
  }

  .apx-ex__search {
    max-width: none;
  }

  .apx-ex__btn {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .apx-ex__card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .apx-ex__media {
    min-height: 104px;
  }

  .apx-ex__hint {
    display: none;
  }

  .apx-ex__peek img {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }
}

/* views and search on one line where there is room */
.apx-ex__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
}

.apx-ex__top .apx-ex__search {
  flex: 1 1 18rem;
  max-width: 30rem;
}

/* one line for the title where it fits; the text below it stays readable in width */
.apx-ex__head {
  max-width: none;
}

.apx-ex__head .page-lead {
  max-width: 78ch;
}

.apx-ex__chip {
  padding-inline: 0.8rem;
}

.apx-ex__chips,
.apx-ex__toggles {
  gap: 0.4rem;
}

/* "Our tip" on a card */
.apx-ex__tip {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-inline-start: 0.6em;
  padding: 0.12em 0.6em;
  border-radius: 999px;
  background: #fff3e6;
  color: #7a3d05;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.apx-ex__tip i {
  font-size: 1.15em;
}

@media (max-width: 899px) {
  .apx-ex__top .apx-ex__search {
    flex-basis: 100%;
    max-width: none;
  }
}

/* ============================================================
   Design pass: brand polish and micro-animations
   Motion is short (150-500 ms), eased with the site's own curve, and
   decorative only: nothing depends on it. All of it is switched off for
   visitors who ask their device for reduced motion (block at the end).
   ============================================================ */
.apx-ex {
  --apx-ease: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  background: linear-gradient(180deg, var(--cream, #f7f4ef) 0, #fff 22rem);
}

.apx-ex__mapwrap {
  border-radius: 22px;
  box-shadow: 0 30px 60px -36px rgba(26, 37, 43, 0.55), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

/* filter buttons: a soft lift on hover, a small press on tap */
.apx-ex__chip,
.apx-ex__toggle,
.apx-ex__view,
.apx-ex__btn,
.apx-ex__more,
.apx-ex__style {
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--apx-ease);
}

.apx-ex__chip:hover,
.apx-ex__toggle:hover,
.apx-ex__btn:hover,
.apx-ex__more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(26, 37, 43, 0.55);
}

.apx-ex__chip:active,
.apx-ex__toggle:active,
.apx-ex__view:active,
.apx-ex__btn:active,
.apx-ex__more:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.apx-ex__chip span {
  min-width: 1.5em;
  padding: 0.05em 0.45em;
  border-radius: 999px;
  background: rgba(37, 50, 58, 0.07);
  font-size: 0.72rem;
  text-align: center;
  opacity: 1;
  transition: background 0.25s ease;
}

.apx-ex__chip.is-active {
  box-shadow: 0 10px 22px -12px rgba(28, 51, 56, 0.8);
}

.apx-ex__chip.is-active span {
  background: rgba(255, 255, 255, 0.18);
}

.apx-ex__toggle.is-active i {
  animation: apx-pop 0.4s var(--apx-ease);
}

.apx-ex__search input {
  box-shadow: 0 10px 26px -20px rgba(26, 37, 43, 0.5);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.apx-ex__search input:focus {
  box-shadow: 0 14px 30px -18px rgba(253, 157, 73, 0.75);
}

/* route button: the brand's orange pill, with a small nudge of its arrow */
.apx-ex__btn--route {
  box-shadow: 0 10px 22px -14px rgba(253, 157, 73, 0.95);
}

.apx-ex__btn--route i {
  transition: transform 0.35s var(--apx-ease);
}

.apx-ex__btn--route:hover i {
  transform: translateX(2px) rotate(-8deg);
}

/* cards */
.apx-ex__card {
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s var(--apx-ease);
}

.apx-ex__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -28px rgba(26, 37, 43, 0.55);
}

.apx-ex__card.is-in {
  /* "backwards": holds the start pose during the delay only, so the hover lift still works afterwards */
  animation: apx-rise 0.5s var(--apx-ease) backwards;
  animation-delay: calc(var(--apx-i, 0) * 38ms);
}

.apx-ex__card.is-selected {
  background: #fffaf4;
}

.apx-ex__media {
  overflow: hidden;
}

.apx-ex__media img {
  transition: transform 0.9s var(--apx-ease);
}

.apx-ex__card:hover .apx-ex__media img {
  transform: scale(1.06);
}

/* no photo yet: a calm tile in the brand's mist colour with the category symbol */
.apx-ex__media--tile {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, var(--mist, #e8f1f4), var(--mist-deep, #c8dfe6));
}

.apx-ex__media--tile i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 22px -14px rgba(26, 37, 43, 0.6);
  font-size: 1.5rem;
  color: #2f6577;
  transition: transform 0.5s var(--apx-ease);
}

.apx-ex__card:hover .apx-ex__media--tile i {
  transform: scale(1.08) rotate(-4deg);
}

/* compact cards: a dot in the colour of the map dot */
.apx-ex__card--small .apx-ex__cat::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-inline-end: 0.45em;
  border-radius: 50%;
  background: var(--apx-navy);
}

.apx-ex__card--small[data-cat="playground"] .apx-ex__cat::before {
  background: #2f7d6b;
}

.apx-ex__card--small[data-cat="firepit"] .apx-ex__cat::before {
  background: #b4541a;
}

.apx-ex__count.is-tick {
  animation: apx-tick 0.35s var(--apx-ease);
}

.apx-ex__list {
  scrollbar-color: #d7d2c8 transparent;
}

/* pins: drop in, grow a little on hover, pulse once selected */
.apx-ex__pin {
  animation: apx-pin-in 0.5s var(--apx-ease) backwards;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.3s var(--apx-ease);
}

.apx-ex__pin:hover {
  transform: scale(1.14);
}

.apx-ex__mk.is-selected .apx-ex__pin {
  transform: scale(1.18);
  animation: apx-pulse 1.8s ease-out infinite;
}

.apx-ex__pin--centre {
  animation: none;
  transform-origin: 50% 100%;
}

.apx-ex__mk--centre .apx-ex__pin--centre {
  animation: apx-bob 3.6s ease-in-out infinite;
}

.apx-ex__halo {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 26px;
  height: 10px;
  margin-left: -13px;
  border-radius: 50%;
  background: rgba(253, 157, 73, 0.45);
  animation: apx-halo 3.6s ease-in-out infinite;
}

/* card over the map, weather line, legend */
.apx-ex__peek.is-in {
  animation: apx-peek 0.4s var(--apx-ease) both;
}

.apx-ex__weather {
  animation: apx-drop 0.5s var(--apx-ease) both;
}

.apx-ex__legend[open] ul {
  animation: apx-drop 0.3s var(--apx-ease) both;
}

.apx-ex__legend summary i,
.apx-ex__style i {
  transition: transform 0.4s var(--apx-ease);
}

.apx-ex__legend[open] summary i {
  transform: rotate(90deg);
}

.apx-ex__style:hover i {
  transform: translateY(-2px);
}

.apx-ex__view.is-active i {
  animation: apx-pop 0.4s var(--apx-ease);
}

@keyframes apx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes apx-pin-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes apx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 157, 73, 0.6), 0 4px 12px -4px rgba(26, 37, 43, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(253, 157, 73, 0), 0 4px 12px -4px rgba(26, 37, 43, 0.6); }
}

@keyframes apx-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes apx-halo {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(0.72); opacity: 0.3; }
}

@keyframes apx-peek {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes apx-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes apx-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes apx-tick {
  from { opacity: 0.2; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-ex *,
  .apx-ex *::before,
  .apx-ex *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .apx-ex__card:hover,
  .apx-ex__chip:hover,
  .apx-ex__toggle:hover,
  .apx-ex__btn:hover,
  .apx-ex__pin:hover,
  .apx-ex__card:hover .apx-ex__media img {
    transform: none;
  }
}

/* symbol tile on the older cards (no generated pictures) */
.ll-card__media.apx-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, var(--mist, #e8f1f4), var(--mist-deep, #c8dfe6));
}

.ll-card__media.apx-tile i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 22px -14px rgba(26, 37, 43, 0.6);
  font-size: 2rem;
  color: #2f6577;
  transition: transform 0.5s var(--ease, ease);
}

.ll-card:hover .ll-card__media.apx-tile i {
  transform: scale(1.08) rotate(-4deg);
}

/* ============================================================
   Article block "Place" (template-parts/sections/article_place.php)
   ============================================================ */
.article-place {
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 0;
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid #e3e1dc;
}

.article-place > h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0;
  scroll-margin-top: 110px;
}

.article-place__no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--accent, #fd9d49);
  color: #1a252b;
  font-size: 0.6em;
  font-weight: 800;
}

.article-place__figure {
  margin: 1rem 0 0.9rem;
}

.article-place__figure img {
  display: block;
  width: 100%;
  max-height: 460px;
  border-radius: 16px;
  object-fit: cover;
}

.article-place__credit,
.article-place__figure figcaption {
  font-size: 0.72rem;
  color: #7b878d;
}

.article-place__credit a {
  color: inherit;
}

.article-place__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.article-place__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #f4f2ee;
  font-size: 0.82rem;
  color: #3d4a51;
}

.article-place__facts li::before,
.article-place__facts li::marker {
  content: none;
}

.article-place__actions {
  margin-top: 1.1rem;
}

.article-place__actions .apx-ex__btn {
  min-height: 44px;
}

/* ============================================================
   Phone and tablet: the map comes first
   Order on a narrow screen: title, the three views, search with the two
   selectors, then the map; category chips, filters and the list follow.
   The wrappers dissolve (display: contents) so their children can be put
   in that order without changing the HTML.
   ============================================================ */
@media (max-width: 899px) {
  .apx-ex > .page-container {
    display: flex;
    flex-direction: column;
  }

  .apx-ex__head,
  .apx-ex__bar,
  .apx-ex__body {
    display: contents;
  }

  .apx-ex__head .section-eyebrow {
    order: 1;
  }

  .apx-ex__head .section-title {
    order: 2;
    margin-bottom: 0.8rem;
  }

  .apx-ex__top {
    order: 3;
    margin-bottom: 0.8rem;
  }

  .apx-ex__weather {
    order: 4;
  }

  .apx-ex__mapwrap {
    order: 5;
  }

  .apx-ex__head .page-lead {
    order: 6;
    margin: 0 0 0.9rem;
  }

  .apx-ex__chips {
    order: 7;
    margin-bottom: 0.5rem;
  }

  .apx-ex__toggles {
    order: 8;
    margin-bottom: 0.9rem;
  }

  .apx-ex__side {
    order: 9;
  }

  /* the three views on one line that scrolls sideways; the cut-off third one shows there is more */
  .apx-ex__views {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 999px;
  }

  .apx-ex__views::-webkit-scrollbar {
    display: none;
  }

  .apx-ex__view {
    flex: 0 0 auto;
  }

  /* distance and time side by side under the search */
  .apx-ex__top .apx-ex__select {
    flex: 1 1 0;
    min-width: 0;
  }

  .apx-ex__top .apx-ex__select select {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}
