/* Explore section: the attraction map, region pages, attraction pages and the
   trip planner.

   Kept in one stylesheet rather than <style> blocks in each template so the
   four pages actually look like one product, and so the browser can cache it. */

.explore {
  --exp-ink: #23281f;
  --exp-muted: #6b7166;
  --exp-line: #e3e1d6;
  --exp-paper: #faf8f2;
  --exp-card: #ffffff;
  --exp-green: #1f5131;
  --exp-green-soft: #acc39b;
  --exp-gold: #ccb484;
  --exp-clay: #c9806a;
  --exp-radius: 14px;
  --exp-shadow: 0 1px 2px rgba(35, 40, 31, .06), 0 8px 24px rgba(35, 40, 31, .07);
  color: var(--exp-ink);
  background: var(--exp-paper);
}

.explore *,
.explore *::before,
.explore *::after {
  box-sizing: border-box;
}

.explore-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------------------------------------------------------------- typography */

.explore h1,
.explore h2,
.explore h3 {
  color: var(--exp-ink);
  line-height: 1.2;
  margin: 0;
}

.explore h1 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.explore h2 {
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 750;
}

.explore h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.exp-lead {
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--exp-muted);
  max-width: 62ch;
  margin: .7rem 0 0;
}

.exp-section {
  padding: 2.2rem 0 .4rem;
}

.exp-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .8rem;
  margin-bottom: 1rem;
}

.exp-section__head p {
  margin: 0;
  color: var(--exp-muted);
  font-size: .92rem;
}

/* ------------------------------------------------------------------- header */

.exp-hero {
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(172, 195, 155, .38), transparent 70%),
    radial-gradient(700px 280px at 92% 0%, rgba(204, 180, 132, .32), transparent 70%),
    var(--exp-paper);
  border-bottom: 1px solid var(--exp-line);
  padding: 1.6rem 0 1.5rem;
}

.exp-crumbs {
  font-size: .82rem;
  color: var(--exp-muted);
  margin-bottom: .7rem;
}

.exp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.exp-crumbs li + li::before {
  content: "/";
  margin-right: .45rem;
  color: #b9b7a9;
}

.exp-crumbs a {
  color: var(--exp-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.exp-crumbs a:hover {
  color: var(--exp-green);
  border-bottom-color: var(--exp-green-soft);
}

.exp-crumbs [aria-current] {
  color: var(--exp-ink);
  font-weight: 600;
}

/* Counters under the H1: how much there is to look at, at a glance. */
.exp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}

.exp-stats li {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--exp-line);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .85rem;
  color: var(--exp-muted);
}

.exp-stats b {
  color: var(--exp-ink);
  font-weight: 750;
}

/* -------------------------------------------------------------- filter chips */

.exp-filters {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 248, 242, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--exp-line);
  padding: .6rem 0;
}

.exp-chips {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .15rem;
}

.exp-chips::-webkit-scrollbar {
  display: none;
}

.exp-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  border: 1px solid var(--exp-line);
  background: var(--exp-card);
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--exp-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.exp-chip:hover {
  border-color: var(--exp-green-soft);
  box-shadow: 0 2px 8px rgba(35, 40, 31, .08);
  color: var(--exp-ink);
  text-decoration: none;
}

.exp-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.exp-chip__count {
  color: var(--exp-muted);
  font-weight: 600;
  font-size: .78rem;
}

.exp-chip.is-on {
  background: var(--exp-green);
  border-color: var(--exp-green);
  color: #fff;
}

.exp-chip.is-on svg path {
  fill: #fff;
}

.exp-chip.is-on .exp-chip__count {
  color: rgba(255, 255, 255, .8);
}

.exp-chip--clear {
  color: var(--exp-clay);
}

/* --------------------------------------------------------------- split layout */

.exp-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-top: 1.4rem;
}

@media (min-width: 992px) {
  .exp-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: start;
  }

  .exp-split__aside {
    position: sticky;
    top: 4.2rem;
  }
}

/* ------------------------------------------------------------------- the map */

.exp-map-shell {
  position: relative;
  height: 58vh;
  min-height: 320px;
  border-radius: var(--exp-radius);
  overflow: hidden;
  border: 1px solid var(--exp-line);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8), transparent 60%),
    linear-gradient(135deg, #dce8d5, #f4efe1);
}

.exp-map-shell--tall {
  height: 70vh;
}

.exp-map-shell--short {
  height: 300px;
}

.exp-map {
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity .25s ease;
}

.exp-map-shell.is-ready .exp-map {
  opacity: 1;
}

.exp-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.exp-map-shell.is-ready .exp-map-fallback {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease;
}

.exp-map-fallback p {
  margin: 0 0 .7rem;
  color: var(--exp-muted);
  font-size: .92rem;
}

.exp-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--exp-muted);
}

.exp-map-legend li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.exp-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(35, 40, 31, .2);
}

/* Leaflet markers. Attractions are category-coloured dots with an icon;
   stays are a price pill, so "somewhere to sleep" reads differently from
   "somewhere to go" without needing the legend. */
.exp-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.exp-pin svg {
  width: 13px;
  height: 13px;
}

.exp-pin svg path {
  fill: #fff;
}

.exp-pin--on {
  transform: scale(1.3);
  z-index: 900;
}

.exp-pin--stay {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: .2rem .5rem;
  background: var(--exp-clay);
  color: #fff;
  font-size: .74rem;
  font-weight: 750;
  white-space: nowrap;
}

.leaflet-popup-content {
  margin: .5rem .7rem;
  font-size: .86rem;
}

.leaflet-popup-content img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .4rem;
}

.leaflet-popup-content a {
  color: var(--exp-green);
  font-weight: 700;
  text-decoration: none;
}

.exp-popup__meta {
  color: var(--exp-muted);
  font-size: .78rem;
}

/* ----------------------------------------------------------------- the cards */

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

.exp-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.exp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--exp-card);
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(35, 40, 31, .04);
  transition: transform .16s ease, box-shadow .16s ease;
}

.exp-card:hover,
.exp-card.is-hot {
  transform: translateY(-2px);
  box-shadow: var(--exp-shadow);
}

.exp-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ece9df;
  /* A photo that 404s renders as its alt text, which without this spills out
     over the card below it. */
  overflow: hidden;
}

.exp-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: .78rem;
  color: #a8a498;
}

.exp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-card__badge {
  position: absolute;
  left: .55rem;
  top: .55rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  font-size: .73rem;
  font-weight: 700;
  color: var(--exp-ink);
}

.exp-card__badge svg {
  width: 12px;
  height: 12px;
}

.exp-card__body {
  padding: .7rem .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}

.exp-card__title {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.exp-card__title a {
  color: var(--exp-ink);
  text-decoration: none;
}

.exp-card__title a:hover {
  color: var(--exp-green);
  text-decoration: underline;
}

.exp-card__meta {
  font-size: .79rem;
  color: var(--exp-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .5rem;
}

.exp-card__meta a {
  color: var(--exp-muted);
  text-decoration: underline;
  text-decoration-color: var(--exp-line);
}

.exp-card__text {
  font-size: .85rem;
  line-height: 1.5;
  color: #4d5348;
  margin: 0;
}

.exp-card__foot {
  margin-top: auto;
  padding-top: .55rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.exp-price {
  font-weight: 750;
  font-size: .92rem;
}

.exp-price span {
  font-weight: 500;
  color: var(--exp-muted);
  font-size: .8rem;
}

/* --------------------------------------------------------- shortlist controls */

.exp-pick {
  border: 1px solid var(--exp-line);
  background: #fff;
  color: var(--exp-ink);
  border-radius: 999px;
  padding: .34rem .7rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .15s, border-color .15s, color .15s;
}

.exp-pick:hover {
  border-color: var(--exp-green-soft);
}

.exp-pick__mark {
  font-size: .95rem;
  line-height: 1;
}

.exp-pick.is-picked {
  background: var(--exp-green);
  border-color: var(--exp-green);
  color: #fff;
}

.exp-card__media .exp-pick {
  position: absolute;
  right: .5rem;
  top: .5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* Sticky trip bar. Hidden until something is on the list, so it never steals
   space from the page for nothing. */
.exp-tripbar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 140%);
  z-index: 1040;
  width: min(680px, calc(100vw - 1.5rem));
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .8rem .7rem 1rem;
  border-radius: 999px;
  background: #23281f;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.exp-tripbar.is-up {
  transform: translate(-50%, 0);
}

.exp-tripbar__text {
  flex: 1;
  min-width: 0;
  font-size: .88rem;
  line-height: 1.35;
}

.exp-tripbar__text b {
  display: block;
  font-size: .95rem;
}

.exp-tripbar__text span {
  color: #c3c9bd;
  font-size: .8rem;
}

.exp-tripbar__go {
  flex: 0 0 auto;
  background: var(--exp-gold);
  color: #23281f;
  border: 0;
  border-radius: 999px;
  padding: .58rem 1rem;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
}

.exp-tripbar__go:hover {
  background: #dcc79c;
  color: #23281f;
  text-decoration: none;
}

.exp-tripbar__clear {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: #a9b0a3;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ------------------------------------------------------------- region strips */

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

.exp-region {
  position: relative;
  display: block;
  min-height: 156px;
  border-radius: var(--exp-radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #3a3f34;
}

.exp-region img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.exp-region:hover img {
  transform: scale(1.05);
}

.exp-region__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 24, 18, .86) 0%, rgba(20, 24, 18, .25) 55%, rgba(20, 24, 18, .1) 100%);
}

.exp-region__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .8rem;
  gap: .15rem;
}

.exp-region__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.exp-region__meta {
  font-size: .8rem;
  color: #dfe4d9;
}

.exp-region:hover .exp-region__name {
  text-decoration: underline;
}

/* --------------------------------------------------------- attraction detail */

.exp-gallery {
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .exp-gallery--multi {
    grid-template-columns: 2fr 1fr;
  }
}

.exp-gallery__main img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--exp-radius);
  display: block;
}

.exp-gallery__rest {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
}

.exp-gallery__rest img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@media (min-width: 768px) {
  .exp-gallery__rest {
    grid-template-columns: 1fr;
  }

  .exp-gallery__rest img {
    aspect-ratio: 3 / 2;
  }
}

.exp-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: #3f4539;
  max-width: 68ch;
}

.exp-prose p {
  margin: 0 0 .9rem;
}

.exp-facts {
  display: grid;
  gap: .1rem .9rem;
  grid-template-columns: auto 1fr;
  margin: 1.1rem 0 0;
  font-size: .9rem;
}

.exp-facts dt {
  color: var(--exp-muted);
  font-weight: 600;
}

.exp-facts dd {
  margin: 0;
}

.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}

.exp-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--exp-line);
  background: #fff;
  color: var(--exp-ink);
  cursor: pointer;
}

.exp-btn:hover {
  border-color: var(--exp-green-soft);
  color: var(--exp-ink);
  text-decoration: none;
}

.exp-btn--primary {
  background: var(--exp-green);
  border-color: var(--exp-green);
  color: #fff;
}

.exp-btn--primary:hover {
  background: #174026;
  color: #fff;
}

/* The "stays near here" panel - the whole reason an attraction page exists. */
.exp-panel {
  background: var(--exp-card);
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius);
  padding: 1rem;
  box-shadow: var(--exp-shadow);
}

.exp-panel__head {
  margin-bottom: .2rem;
}

.exp-panel__note {
  font-size: .82rem;
  color: var(--exp-muted);
  margin: .15rem 0 .9rem;
}

.exp-stay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.exp-stay {
  display: flex;
  gap: .7rem;
  padding: .65rem 0;
  border-top: 1px solid var(--exp-line);
  text-decoration: none;
  color: inherit;
}

.exp-stay-list li:first-child .exp-stay {
  border-top: 0;
  padding-top: 0;
}

.exp-stay img {
  width: 74px;
  height: 62px;
  object-fit: cover;
  border-radius: 9px;
  flex: 0 0 auto;
  background: #ece9df;
}

.exp-stay__name {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.3;
}

.exp-stay:hover .exp-stay__name {
  color: var(--exp-green);
  text-decoration: underline;
}

.exp-stay__meta {
  font-size: .79rem;
  color: var(--exp-muted);
}

.exp-hr {
  border: 0;
  border-top: 1px solid var(--exp-line);
  margin: 2rem 0 0;
}

.exp-empty {
  border: 1px dashed var(--exp-line);
  border-radius: var(--exp-radius);
  padding: 1.1rem;
  color: var(--exp-muted);
  font-size: .92rem;
  background: #fff;
}

/* ---------------------------------------------------------------- trip page */

.exp-picked {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.exp-picked li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  border: 1px solid var(--exp-line);
  border-radius: 999px;
  padding: .3rem .35rem .3rem .75rem;
  font-size: .84rem;
  font-weight: 600;
}

.exp-picked a {
  color: var(--exp-ink);
  text-decoration: none;
}

.exp-picked a:hover {
  text-decoration: underline;
}

.exp-picked button {
  border: 0;
  background: #f0eee5;
  color: var(--exp-muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 1;
  font-size: .8rem;
  cursor: pointer;
}

.exp-picked button:hover {
  background: var(--exp-clay);
  color: #fff;
}

.exp-radius {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--exp-muted);
}

.exp-result {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  background: var(--exp-card);
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius);
  padding: .9rem;
  margin-bottom: .9rem;
}

@media (min-width: 700px) {
  .exp-result {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
  }
}

.exp-result__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.exp-result__rank {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--exp-green);
  background: #eef3e9;
  border-radius: 999px;
  padding: .2rem .6rem;
  margin-bottom: .35rem;
}

.exp-result__rank--partial {
  color: #8a6d2f;
  background: #f7f0df;
}

.exp-coverage {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: grid;
  gap: .28rem;
  font-size: .85rem;
}

.exp-coverage li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.exp-coverage__km {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--exp-ink);
  min-width: 4.2rem;
}

.exp-coverage__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #ece9df;
  overflow: hidden;
  align-self: center;
}

.exp-coverage__bar i {
  display: block;
  height: 100%;
  background: var(--exp-green-soft);
}

.exp-missing {
  margin: .6rem 0 0;
  font-size: .82rem;
  color: var(--exp-muted);
}

/* --------------------------------------------------------------- contribute */

.exp-cta {
  margin: 2.4rem 0 0;
  padding: 1.6rem 1.2rem;
  border-radius: var(--exp-radius);
  background: linear-gradient(135deg, #23281f, #35402c);
  color: #fff;
  text-align: center;
}

.exp-cta h2 {
  color: #fff;
}

.exp-cta p {
  color: #cfd5c8;
  margin: .5rem auto 1rem;
  max-width: 52ch;
  font-size: .95rem;
}

.exp-cta .exp-btn {
  background: var(--exp-gold);
  border-color: var(--exp-gold);
  color: #23281f;
}

/* ---------------------------------------------------------------- utilities */

.exp-mobile-toggle {
  display: none;
}

@media (max-width: 991px) {
  /* On a phone the map and the list fight for the same screen, so make it an
     explicit either/or instead of two half-height scroll panes. */
  .exp-mobile-toggle {
    display: flex;
    gap: .35rem;
    margin: .9rem 0 0;
    background: #eeece2;
    border-radius: 999px;
    padding: .25rem;
  }

  .exp-mobile-toggle button {
    flex: 1;
    border: 0;
    background: none;
    border-radius: 999px;
    padding: .45rem;
    font-size: .87rem;
    font-weight: 700;
    color: var(--exp-muted);
    cursor: pointer;
  }

  .exp-mobile-toggle button[aria-pressed="true"] {
    background: #fff;
    color: var(--exp-ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  }

  .exp-split.is-map-only .exp-split__main {
    display: none;
  }

  .exp-split.is-list-only .exp-split__aside {
    display: none;
  }
}

.exp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
