/* ------------------------------------------------------------------
   Place and destination pages.

   Shared by /place.php and /destination.php. Loaded after
   trips-meridian.css and themes.css, so the palette and the typefaces
   are already the site's — nothing here introduces a new colour or a
   new face, only layout and rhythm.

   The shape is deliberate: a photograph large enough to be worth
   looking at, then the answer to "is this worth the detour", then the
   practical detail beside it rather than buried under it.
   ------------------------------------------------------------------ */

.place-page {
  --pp-ink: #f6f4fb;
  --pp-body: rgba(226, 224, 240, .84);
  --pp-quiet: rgba(188, 186, 214, .78);
  --pp-rule: rgba(176, 187, 232, .18);
  --pp-edge: rgba(110, 122, 188, .26);
  --pp-accent: #a78aff;
  --pp-accent-soft: #cdbdff;
  --pp-panel: rgba(13, 25, 56, .6);
  --pp-panel-solid: #0d1938;
}

.pp {
  margin: 0 24px;
  padding: 0 0 8px;
  color: var(--pp-body);
  background: var(--pp-panel-solid);
}

/* ------------------------------------------------------- breadcrumbs */

.pp-crumbs {
  padding: 18px 60px 0;
  font-size: 12px;
}

.pp-crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.pp-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(167, 138, 255, .55);
}

.pp-crumbs a { color: var(--pp-quiet); text-decoration: none; }
.pp-crumbs a:hover { color: var(--pp-accent-soft); text-decoration: underline; }
.pp-crumbs span { color: var(--pp-ink); font-weight: 600; }

/* ------------------------------------------------------------- hero */

.pp-hero {
  padding: 26px 60px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.pp-hero--plain { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }

.pp-hero__copy h1 {
  max-width: 16ch;
  margin: 8px 0 0;
  color: #fff;
  font: 700 clamp(36px, 4.6vw, 60px)/1.03 "Playfair Display", Georgia, serif;
  letter-spacing: -.025em;
  text-transform: none;
}

.pp-hero__local {
  margin: 10px 0 0;
  color: var(--pp-quiet);
  font-size: 14px;
  font-style: italic;
}

.pp-hero__lead {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.62;
}

.pp-hero__lead--quiet { color: var(--pp-quiet); font-size: 14.5px; }

.pp-chips {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pp-chips a {
  padding: 5px 12px;
  display: inline-block;
  border: 1px solid var(--pp-edge);
  border-radius: 999px;
  color: rgba(233, 231, 245, .86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(9, 18, 42, .55);
}

.pp-chips a:hover { border-color: rgba(144, 113, 255, .6); color: #fff; background: rgba(84, 60, 184, .24); }

.pp-hero__actions {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pp-hero__media { position: relative; }

.pp-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--pp-edge);
  border-radius: 16px;
  object-fit: cover;
  background: rgba(9, 18, 42, .6);
}

.pp-hero__media small {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: 70%;
  padding: 4px 9px;
  border-radius: 6px;
  color: rgba(240, 239, 250, .82);
  font-size: 10px;
  letter-spacing: .04em;
  background: rgba(6, 12, 28, .72);
}

.pp-hero__fallback {
  aspect-ratio: 4 / 3;
  padding: 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--pp-edge);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(103, 78, 214, .3), transparent 55%),
    rgba(9, 18, 42, .72);
}

.pp-hero__fallback svg { width: 46px; height: 46px; color: var(--pp-accent-soft); }
.pp-hero__fallback strong { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 24px; }
.pp-hero__fallback span { color: var(--pp-quiet); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------ facts */

.pp-facts {
  margin: 0 60px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  border: 1px solid var(--pp-edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pp-edge);
}

.pp-facts > div { padding: 14px 18px; background: var(--pp-panel-solid); }

.pp-facts dt {
  margin-bottom: 5px;
  color: var(--pp-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pp-facts dd { margin: 0; color: var(--pp-ink); font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------ alert */

.pp-alert {
  margin: 22px 60px 0;
  padding: 16px 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid rgba(144, 113, 255, .45);
  border-left-width: 3px;
  border-radius: 11px;
  background: rgba(84, 60, 184, .18);
}

.pp-alert svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; color: var(--pp-accent-soft); }
.pp-alert strong { display: block; margin-bottom: 5px; color: var(--pp-ink); }
.pp-alert p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; }
.pp-alert p:last-child { margin-bottom: 0; }

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

.pp-layout {
  margin: 0 60px;
  padding: 34px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 48px;
  align-items: start;
}

.pp-body { max-width: 70ch; font-size: 16px; line-height: 1.68; }

.pp-body > section + section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--pp-rule);
}

.pp-body h2 {
  margin: 0 0 14px;
  color: #fff;
  font: 700 clamp(21px, 2vw, 27px)/1.2 "Playfair Display", Georgia, serif;
  letter-spacing: -.015em;
  text-transform: none;
}

.pp-body p { margin: 0 0 13px; }
.pp-body p:last-child { margin-bottom: 0; }

.pp-inline-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--pp-accent-soft);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.pp-inline-link:hover { color: #fff; text-decoration: underline; }

.pp-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pp-highlights li {
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid var(--pp-edge);
  border-radius: 10px;
  font-size: 15px;
  background: var(--pp-panel);
}

.pp-highlights svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; color: var(--pp-accent-soft); }

.pp-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  display: grid;
  gap: 12px;
}

.pp-tips li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }

.pp-tips li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(144, 113, 255, .5);
  border-radius: 8px;
  color: var(--pp-accent-soft);
  font-size: 13px;
  font-weight: 800;
  background: rgba(84, 60, 184, .22);
}

.pp-tips p { margin: 3px 0 0; font-size: 15px; line-height: 1.6; }

.pp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.pp-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--pp-edge);
  border-radius: 11px;
  object-fit: cover;
}

.pp-credit { margin: 12px 0 0; color: var(--pp-quiet); font-size: 12px; }
.pp-credit a { color: var(--pp-accent-soft); }

/* --------------------------------------------------------- the side */

.pp-side { display: grid; gap: 16px; position: sticky; top: 88px; }

.pp-card {
  padding: 20px;
  border: 1px solid var(--pp-edge);
  border-radius: 14px;
  background: var(--pp-panel);
}

.pp-card--quiet { background: rgba(9, 18, 42, .5); }

.pp-card h2 {
  margin: 0 0 14px;
  color: var(--pp-ink);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pp-card__cta { margin-top: 14px; width: 100%; justify-content: center; }

.pp-practical { margin: 0; display: grid; gap: 12px; }
.pp-practical > div + div { padding-top: 12px; border-top: 1px solid var(--pp-rule); }

.pp-practical dt {
  margin-bottom: 4px;
  color: var(--pp-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pp-practical dd { margin: 0; color: rgba(228, 226, 242, .88); font-size: 14px; line-height: 1.55; }
.pp-practical__note { margin-top: 5px !important; color: var(--pp-quiet) !important; font-size: 13px !important; }

.pp-caution {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--pp-rule);
  color: var(--pp-quiet);
  font-size: 12.5px;
  line-height: 1.55;
}

.pp-address { margin: 0 0 12px; color: rgba(228, 226, 242, .86); font-size: 14px; }

.pp-map {
  height: 210px;
  border: 1px solid var(--pp-edge);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(9, 18, 42, .7);
}

.pp-map .leaflet-container { height: 100%; background: rgba(9, 18, 42, .7); }

.pp-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pp-sources li { display: grid; gap: 2px; }
.pp-sources a { color: var(--pp-accent-soft); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.pp-sources a:hover { color: #fff; text-decoration: underline; }
.pp-sources small { color: var(--pp-quiet); font-size: 11.5px; }

/* -------------------------------------------------- tiles and grids */

.pp-nearby,
.pp-places,
.pp-routes { margin: 0 60px; padding: 38px 0 0; }

.pp-nearby,
.pp-routes { border-top: 1px solid var(--pp-rule); margin-top: 38px; }

.pp-nearby__head {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.pp-nearby__head h2 {
  margin: 6px 0 0;
  color: #fff;
  font: 700 clamp(24px, 2.4vw, 34px)/1.15 "Playfair Display", Georgia, serif;
  letter-spacing: -.02em;
  text-transform: none;
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

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

.pp-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--pp-edge);
  border-radius: 13px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--pp-panel);
  transition: border-color .16s ease, transform .16s ease;
}

.pp-tile:hover,
.pp-tile:focus-visible { border-color: rgba(144, 113, 255, .6); transform: translateY(-2px); }

.pp-tile__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(9, 18, 42, .7); }
.pp-tile--tall .pp-tile__media { aspect-ratio: 3 / 2; }
.pp-tile__media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.pp-tile__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 25%, rgba(103, 78, 214, .32), transparent 60%), rgba(9, 18, 42, .8);
}

.pp-tile__fallback svg { width: 32px; height: 32px; color: rgba(199, 175, 255, .8); }

.pp-tile__copy { padding: 14px 15px 16px; display: grid; gap: 5px; align-content: start; }
.pp-tile__copy strong { color: var(--pp-ink); font-size: 15.5px; line-height: 1.3; }
.pp-tile__copy small { color: var(--pp-accent); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pp-tile__copy span { color: rgba(218, 217, 233, .76); font-size: 13.5px; line-height: 1.5; }

/* --------------------------------------------------------- filters */

.pp-filters {
  margin: 24px 60px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pp-filters a {
  padding: 8px 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--pp-edge);
  border-radius: 8px;
  color: rgba(233, 231, 245, .86);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(9, 18, 42, .5);
}

.pp-filters a span { color: var(--pp-quiet); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pp-filters a:hover { border-color: rgba(144, 113, 255, .6); color: #fff; }
.pp-filters a.is-active { border-color: rgba(144, 113, 255, .72); color: #fff; background: rgba(84, 60, 184, .34); }
.pp-filters a.is-active span { color: var(--pp-accent-soft); }

.pp :is(a, button):focus-visible { outline: 2px solid var(--pp-accent-soft); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ narrow */

@media (max-width: 1080px) {
  .pp-hero,
  .pp-hero--plain { grid-template-columns: 1fr; gap: 24px; }
  .pp-hero__media { order: -1; }
  .pp-hero__media img,
  .pp-hero__fallback { aspect-ratio: 16 / 9; }
  .pp-layout { grid-template-columns: 1fr; gap: 28px; }
  .pp-side { position: static; }
  .pp-body { max-width: none; }
}

@media (max-width: 860px) {
  .pp-crumbs { padding: 16px 28px 0; }
  .pp-hero { padding: 20px 28px 26px; }
  .pp-facts,
  .pp-alert,
  .pp-filters { margin-left: 28px; margin-right: 28px; }
  .pp-layout,
  .pp-nearby,
  .pp-places,
  .pp-routes { margin-left: 28px; margin-right: 28px; }
}

@media (max-width: 640px) {
  .pp { margin: 0 8px; }
  .pp-crumbs { padding: 14px 16px 0; }
  .pp-crumbs ol { flex-wrap: nowrap; overflow-x: auto; }
  .pp-crumbs li { white-space: nowrap; }
  .pp-hero { padding: 16px 16px 22px; }
  .pp-facts,
  .pp-alert,
  .pp-filters,
  .pp-layout,
  .pp-nearby,
  .pp-places,
  .pp-routes { margin-left: 16px; margin-right: 16px; }
  .pp-hero__actions .m-btn { width: 100%; justify-content: center; }
  .pp-grid,
  .pp-grid--wide { grid-template-columns: 1fr; }
}

@media print {
  .pp-hero__actions, .pp-filters, .pp-map, .pp-nearby, .pp-routes, .trips-shared-nav { display: none; }
  .pp { margin: 0; }
  .pp-layout { display: block; }
}
