/* TrailTrack — public landing + auth shell (Premium Light) */
:root {
  --pl-bg: #F6F8F7;
  --pl-surface: #FFFFFF;
  --pl-text: #101816;
  --pl-muted: #64716C;
  --pl-border: #E3EAE6;
  --pl-green: #16C784;
  --pl-green-dark: #0E8F5C;
  --pl-forest: #0F2A22;
  --pl-forest-2: #1A3D32;
  --pl-radius: 16px;
  --pl-shadow: 0 12px 40px rgba(16, 24, 22, 0.08);
  --pl-font: "DM Sans", system-ui, sans-serif;
  --pl-display: "Sora", "DM Sans", system-ui, sans-serif;
  --pl-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
body.pl-page {
  margin: 0;
  font-family: var(--pl-font);
  color: var(--pl-text);
  background: var(--pl-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.pl-page h1, .pl-page h2, .pl-page h3,
.auth-shell h1, .auth-shell h2 {
  font-family: var(--pl-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 0.5em;
}
.pl-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pl-green); color: #fff; padding: 8px 12px; z-index: 100;
}
.pl-skip:focus { left: 12px; top: 12px; }
.pl-container { width: min(100% - 32px, var(--pl-max)); margin-inline: auto; }
.pl-narrow { max-width: 640px; }
.pl-narrow-block { max-width: 720px; }

/* Buttons */
.pl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  cursor: pointer; white-space: nowrap;
}
.pl-btn:active { transform: scale(0.98); }
.pl-btn--primary { background: var(--pl-green); color: #fff; }
.pl-btn--primary:hover { background: var(--pl-green-dark); box-shadow: 0 8px 24px rgba(22,199,132,.28); }
.pl-btn--secondary { background: var(--pl-surface); color: var(--pl-text); border-color: var(--pl-border); }
.pl-btn--secondary:hover { border-color: #c5d2cb; }
.pl-btn--ghost { background: transparent; color: var(--pl-text); }
.pl-btn--ghost:hover { background: rgba(16,24,22,.04); }
.pl-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.pl-btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.pl-btn--lg { min-height: 52px; padding: 0 22px; font-size: 1rem; }
.pl-btn--block { width: 100%; }

/* Nav */
.pl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,247,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.pl-nav.is-scrolled {
  background: rgba(246,248,247,.9);
  border-bottom-color: var(--pl-border);
  box-shadow: 0 4px 24px rgba(16,24,22,.04);
}
.pl-nav__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
.pl-logo {
  font-family: var(--pl-display); font-weight: 700; font-size: 1.2rem;
  color: var(--pl-text); text-decoration: none; letter-spacing: -0.03em;
}
.pl-logo span { color: var(--pl-green); }
.pl-nav__links { display: none; gap: 20px; margin-left: auto; }
.pl-nav__links a {
  color: var(--pl-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.pl-nav__links a:hover,
.pl-nav__links a.is-active { color: var(--pl-text); }
.pl-nav__links a.is-active { font-weight: 700; }
.pl-nav__mobile a.is-active { font-weight: 700; color: var(--pl-green-dark, #0b6b45); }
.pl-nav__actions { display: none; gap: 8px; margin-left: 8px; }
.pl-nav__toggle {
  margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent;
  display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.pl-nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--pl-text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.pl-nav.is-open .pl-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pl-nav.is-open .pl-nav__toggle span:nth-child(2) { opacity: 0; }
.pl-nav.is-open .pl-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pl-nav__mobile {
  border-top: 1px solid var(--pl-border);
  background: var(--pl-surface);
  padding: 16px 20px 28px;
}
.pl-nav__mobile[hidden] { display: none !important; }
.pl-nav__mobile nav { display: flex; flex-direction: column; gap: 4px; }
.pl-nav__mobile a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--pl-text); text-decoration: none; font-weight: 500;
  border-radius: 10px; padding: 0 12px;
}
.pl-nav__mobile a:hover { background: var(--pl-bg); }
.pl-nav__mobile .pl-btn { margin-top: 8px; justify-content: center; }

@media (min-width: 960px) {
  .pl-nav__links, .pl-nav__actions { display: flex; }
  .pl-nav__links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .pl-nav__links a { font-size: 0.85rem; }
  .pl-nav__toggle, .pl-nav__mobile { display: none !important; }
}
@media (min-width: 1200px) {
  .pl-nav__links { gap: 18px; }
  .pl-nav__links a { font-size: 0.9rem; }
}

/* Hero */
.pl-hero {
  position: relative; padding: 36px 0 48px; overflow: hidden;
}
.pl-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(22,199,132,.12), transparent 60%),
    radial-gradient(500px 360px at 10% 80%, rgba(15,42,34,.06), transparent 55%),
    var(--pl-bg);
}
.pl-topo::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(227,234,230,.7) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(227,234,230,.55) 28px);
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}
.pl-hero__grid {
  position: relative;
  display: grid; gap: 36px; align-items: center;
}
.pl-eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pl-green-dark);
}
.pl-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 16px;
}
.pl-hero__lead {
  font-size: 1.0625rem; color: var(--pl-muted); max-width: 34em; margin: 0 0 24px;
}
.pl-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pl-micro { margin: 0; color: var(--pl-muted); font-size: 0.875rem; }

.pl-phone {
  width: min(100%, 300px); margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(15,42,34,.22));
}
.pl-phone__bezel {
  background: #1a1f1d; border-radius: 28px; padding: 10px;
  border: 1px solid #2a3530;
}
.pl-phone__screen {
  border-radius: 20px; overflow: hidden; background: var(--pl-forest);
  aspect-ratio: 9/16; position: relative;
}
.pl-map { position: absolute; inset: 0; }
.pl-map__svg { width: 100%; height: 100%; display: block; }
.pl-map__hud {
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.pl-stat {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: 8px 10px; color: #fff;
}
.pl-stat span { display: block; font-family: var(--pl-display); font-weight: 700; font-size: 1rem; }
.pl-stat small { color: rgba(255,255,255,.65); font-size: 0.65rem; letter-spacing: .06em; }
.pl-map__gps {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 600; color: #9ef0c8;
  background: rgba(0,0,0,.25); padding: 4px 8px; border-radius: 999px;
}
.pl-map__pulse { animation: pl-pulse 2s ease-out infinite; transform-origin: center; }
@keyframes pl-pulse {
  0% { opacity: .9; }
  70% { opacity: 0; }
  100% { opacity: 0; }
}

.pl-route-draw {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.pl-route-draw.is-drawn {
  animation: pl-draw 1.4s ease forwards;
}
@keyframes pl-draw {
  to { stroke-dashoffset: 0; }
}

@media (min-width: 900px) {
  .pl-hero { padding: 56px 0 72px; }
  .pl-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .pl-phone { margin-inline: 0 0; margin-left: auto; width: 320px; }
}

/* Trust */
.pl-trust { padding: 8px 0 40px; }
.pl-trust__row {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
  padding: 18px; background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius); box-shadow: var(--pl-shadow);
}
.pl-trust__item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pl-muted); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.pl-trust__item svg { color: var(--pl-green); flex-shrink: 0; }

/* Sections */
.pl-section { padding: 64px 0; }
.pl-section--muted { background: #eef3f0; }
.pl-section--accent {
  background: linear-gradient(180deg, #f3f7f5 0%, #e8f1ec 100%);
}
.pl-section--split { padding: 72px 0; }
.pl-section__head { max-width: 640px; margin-bottom: 32px; }
.pl-section__head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.pl-section__head p, .pl-section p { color: var(--pl-muted); }
.pl-split {
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 860px) {
  .pl-split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .pl-split--reverse > :first-child { order: 2; }
}
.pl-list { margin: 18px 0 0; padding: 0; list-style: none; }
.pl-list li {
  position: relative; padding: 8px 0 8px 22px; color: var(--pl-text); font-weight: 500;
}
.pl-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--pl-green);
}
.pl-note { font-size: 0.875rem; color: var(--pl-muted); }

.pl-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 720px) {
  .pl-metrics { grid-template-columns: repeat(4, 1fr); }
}
.pl-metric {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 14px; padding: 18px 16px; box-shadow: 0 4px 16px rgba(16,24,22,.03);
}
.pl-metric--wide { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .pl-metric--wide { grid-column: span 2; }
}
.pl-metric__label {
  display: block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--pl-muted); margin-bottom: 6px;
}
.pl-metric strong {
  font-family: var(--pl-display); font-size: 1.5rem; letter-spacing: -0.02em;
}
.pl-metric small { color: var(--pl-muted); margin-left: 4px; }

.pl-panel {
  border-radius: 20px; overflow: hidden; box-shadow: var(--pl-shadow);
  border: 1px solid var(--pl-border); background: var(--pl-forest);
}
.pl-panel__svg { display: block; width: 100%; height: auto; }
.pl-nav-demo {
  background: var(--pl-forest); color: #fff; padding: 22px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
}
.pl-nav-demo__badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: .1em;
  background: rgba(22,199,132,.2); color: #9ef0c8; padding: 6px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.pl-nav-demo__row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.95rem;
}
.pl-nav-demo__row .ok { color: #16C784; }
.pl-nav-demo svg { width: 100%; margin-top: 16px; }

.pl-replay__card {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 16px; padding: 22px; box-shadow: var(--pl-shadow);
}
.pl-replay__card > span {
  display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--pl-muted); margin: 12px 0 8px;
}
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chips em {
  font-style: normal; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--pl-border); font-size: 0.875rem; color: var(--pl-muted);
}
.pl-chips em.is-on {
  background: rgba(22,199,132,.12); border-color: rgba(22,199,132,.35); color: var(--pl-green-dark); font-weight: 600;
}

.pl-chart {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 16px; padding: 20px; box-shadow: var(--pl-shadow);
}
.pl-chart__bars {
  display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-bottom: 8px;
}
.pl-chart__bars i {
  flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--pl-green), var(--pl-green-dark));
  display: block;
}
.pl-chart__labels {
  display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--pl-muted);
}
.pl-chart p { margin: 10px 0 0; font-size: 0.8rem; color: var(--pl-muted); }

.pl-history {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--pl-shadow);
}
.pl-history__row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; border-bottom: 1px solid var(--pl-border);
}
.pl-history__row:last-child { border-bottom: 0; }
.pl-history__row span { color: var(--pl-muted); font-size: 0.9rem; }

.pl-stats-demo {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px;
}
@media (min-width: 720px) {
  .pl-stats-demo { grid-template-columns: repeat(4, 1fr); }
}
.pl-stats-demo article {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 14px; padding: 18px;
}
.pl-stats-demo span { display: block; color: var(--pl-muted); font-size: 0.8rem; margin-bottom: 6px; }
.pl-stats-demo strong { font-family: var(--pl-display); font-size: 1.35rem; }

.pl-activities {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 560px) {
  .pl-activities { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pl-activities { grid-template-columns: repeat(5, 1fr); }
}
.pl-activity {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 16px; padding: 20px 16px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pl-activity:hover, .pl-activity:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--pl-shadow);
  border-color: rgba(22,199,132,.35);
  outline: none;
}
.pl-activity svg { width: 40px; height: 40px; color: var(--pl-green); margin-bottom: 12px; }
.pl-activity h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pl-activity p { margin: 0; color: var(--pl-muted); font-size: 0.9rem; }

.pl-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 800px) {
  .pl-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.pl-steps li {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 16px; padding: 24px 20px;
}
.pl-steps span {
  font-family: var(--pl-display); font-size: 0.85rem; font-weight: 700;
  color: var(--pl-green); letter-spacing: .08em;
}
.pl-steps h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.pl-steps p { margin: 0; color: var(--pl-muted); }

.pl-pwa {
  display: flex; align-items: center; gap: 14px;
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 16px; padding: 18px; box-shadow: var(--pl-shadow);
}
.pl-pwa__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(145deg, var(--pl-green), var(--pl-forest));
  flex-shrink: 0;
}
.pl-pwa strong { display: block; }
.pl-pwa span { color: var(--pl-muted); font-size: 0.875rem; }

.pl-faq details {
  background: var(--pl-surface); border: 1px solid var(--pl-border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.pl-faq details[open] {
  border-color: #c5d2cb;
  box-shadow: 0 8px 24px rgba(16,24,22,.04);
}
.pl-faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-content: center;
  background: #eef3f0;
  color: var(--pl-green-dark);
  font-weight: 700;
}
.pl-faq details[open] summary::after { content: "–"; }
.pl-faq details p { margin: 10px 0 0; color: var(--pl-muted); line-height: 1.5; }
.pl-faq__more {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.pl-section__sub {
  margin: 8px 0 0;
  color: var(--pl-muted);
  font-size: .95rem;
}

/* Dedicated FAQ page */
.pl-faq-page__main { padding: 36px 0 56px; max-width: 800px; }
.pl-faq-page__hero { margin-bottom: 24px; }
.pl-faq-page__hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 10px; }
.pl-faq-page__hero > p { margin: 0; color: var(--pl-muted); max-width: 54ch; }
.pl-faq-page__hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.pl-faq-page__jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px; padding: 12px;
  border-radius: 14px; background: #eef3f0; border: 1px solid var(--pl-border);
}
.pl-faq-page__jump a {
  font-size: .8rem; font-weight: 600; text-decoration: none;
  color: var(--pl-text); padding: 6px 12px; border-radius: 999px;
  background: var(--pl-surface); border: 1px solid var(--pl-border);
}
.pl-faq-page__jump a:hover { border-color: #c5d2cb; color: var(--pl-green-dark); }
.pl-faq-page__group { margin-bottom: 28px; scroll-margin-top: 88px; }
.pl-faq-page__group h2 { font-size: 1.2rem; margin: 0 0 12px; }
.pl-faq-page__cta {
  margin-top: 12px; padding: 22px;
  border-radius: 18px; background: #eef3f0; border: 1px solid var(--pl-border);
  text-align: center;
}
.pl-faq-page__cta h2 { margin: 0 0 8px; font-size: 1.25rem; }
.pl-faq-page__cta p { margin: 0 0 14px; color: var(--pl-muted); }
.pl-faq-page__cta a:not(.pl-btn) { color: var(--pl-green-dark); font-weight: 600; }

.pl-final {
  position: relative; padding: 80px 0; overflow: hidden;
  background: var(--pl-forest); color: #fff;
}
.pl-final__bg { position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.pl-final__bg svg { width: 100%; height: 100%; }
.pl-final__content { position: relative; text-align: center; max-width: 640px; margin-inline: auto; }
.pl-final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.pl-final p { color: rgba(255,255,255,.75); margin-bottom: 24px; }
.pl-final .pl-hero__cta { justify-content: center; }

.pl-footer {
  padding: 40px 0 28px; border-top: 1px solid var(--pl-border); background: var(--pl-bg);
}
.pl-footer__inner { display: grid; gap: 16px; }
.pl-footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.pl-footer a { color: var(--pl-muted); text-decoration: none; font-size: 0.9rem; }
.pl-footer a:hover { color: var(--pl-text); }
.pl-footer p { margin: 0; color: var(--pl-muted); font-size: 0.85rem; }

/* Legal */
.pl-legal .pl-legal__content { padding: 40px 0 64px; max-width: 760px; }
.pl-legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.pl-legal h2 { font-size: 1.2rem; margin-top: 32px; scroll-margin-top: 88px; }
.pl-legal p, .pl-legal li { color: var(--pl-muted); line-height: 1.55; }
.pl-legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.pl-legal li { margin-bottom: 6px; }
.pl-legal a { color: var(--pl-green-dark); font-weight: 600; }
.pl-legal__meta { font-size: .875rem; color: var(--pl-muted); margin: 0 0 16px; }
.pl-legal__lead { font-size: 1.05rem; color: var(--pl-text) !important; margin-bottom: 20px; }
.pl-legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 14px;
  border-radius: 14px;
  background: #eef3f0;
  border: 1px solid var(--pl-border);
}
.pl-legal__toc a {
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pl-text);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
}
.pl-legal__toc a:hover { border-color: #c5d2cb; color: var(--pl-green-dark); }

/* Reveal */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].is-visible {
  opacity: 1; transform: none;
}

/* Auth shell */
.auth-shell {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--pl-font); color: var(--pl-text); background: var(--pl-bg);
}
.auth-split {
  display: grid; min-height: 100vh; min-height: 100dvh;
}
.auth-visual { display: none; position: relative; overflow: hidden; color: #fff; }
.auth-visual__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 400px at 30% 20%, rgba(22,199,132,.25), transparent 60%),
    linear-gradient(160deg, var(--pl-forest-2), var(--pl-forest));
}
.auth-visual__content {
  position: relative; z-index: 1; padding: 40px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; max-width: 420px;
}
.auth-visual__brand {
  font-family: var(--pl-display); font-weight: 700; font-size: 1.35rem;
  color: #fff; text-decoration: none; margin-bottom: 28px;
}
.auth-visual__brand span { color: var(--pl-green); }
.auth-visual__title { font-size: 2rem; margin-bottom: 12px; }
.auth-visual__text { color: rgba(255,255,255,.72); margin: 0 0 28px; }
.auth-visual__route { width: 100%; max-width: 320px; color: rgba(158,240,200,.7); }
.auth-route-path {
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: auth-draw 2s ease forwards;
}
.auth-route-dot { animation: pl-pulse 2s ease-out infinite; }
@keyframes auth-draw { to { stroke-dashoffset: 0; } }

.auth-main {
  display: grid; place-items: center; padding: 28px 16px;
}
.auth-card--premium {
  width: min(420px, 100%);
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--pl-shadow);
}
.auth-card__brand {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--pl-display); font-weight: 700; font-size: 1.2rem;
  color: var(--pl-text); text-decoration: none;
}
.auth-card__brand span { color: var(--pl-green); }
.auth-card--premium h1 { font-size: 1.6rem; margin: 4px 0 8px; }
.auth-card--premium .lead { color: var(--pl-muted); margin: 0 0 22px; font-size: 0.95rem; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.auth-form .form-control {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--pl-border); border-radius: 10px;
  font: inherit; background: #fff; color: var(--pl-text);
  transition: border-color .2s, box-shadow .2s;
}
.auth-form .form-control:focus {
  outline: none; border-color: var(--pl-green);
  box-shadow: 0 0 0 3px rgba(22,199,132,.18);
}
.password-field { position: relative; }
.password-field .form-control { padding-right: 72px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--pl-muted);
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  min-height: 36px; padding: 0 10px; border-radius: 8px;
}
.password-toggle:hover { color: var(--pl-text); background: var(--pl-bg); }
.auth-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin: 4px 0 16px;
}
.auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--pl-muted); cursor: pointer;
}
.auth-link { font-size: 0.875rem; color: var(--pl-green-dark); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-switch { text-align: center; margin-top: 16px; }
.auth-switch a { color: var(--pl-green-dark); font-weight: 600; }
.form-error, .form-success {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem;
}
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.password-reqs { margin: 6px 0 0; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline !important; }
.btn[disabled] { opacity: .7; cursor: wait; }

@media (min-width: 900px) {
  .auth-split { grid-template-columns: 1fr 1fr; }
  .auth-visual { display: block; }
  .auth-card__brand { display: none; }
}

/* Focus */
.pl-page a:focus-visible, .pl-page button:focus-visible,
.auth-shell a:focus-visible, .auth-shell button:focus-visible,
.auth-shell input:focus-visible {
  outline: 2px solid var(--pl-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pl-route-draw, .pl-route-draw.is-drawn,
  .auth-route-path, .pl-map__pulse, .auth-route-dot {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .pl-activity, .pl-btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Public trails (/trasee + home preview)
   -------------------------------------------------------------------------- */
.pl-trails__hero { padding: 40px 0 20px; max-width: 640px; }
.pl-trails__hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 10px; }
.pl-trails__hero p { color: var(--pl-muted); margin: 0; }
.pl-trails__hero--rich {
  max-width: none;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 36px 0 28px;
  position: relative;
}
.pl-trails__hero-copy { max-width: 560px; position: relative; z-index: 1; }
.pl-trails__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pl-trails__hero-visual {
  position: relative;
  min-height: 180px;
  display: none;
}
.pl-trails__hero-orb {
  position: absolute;
  inset: 10% 8% auto auto;
  width: min(220px, 55%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(22,199,132,.55), transparent 55%),
    linear-gradient(145deg, #1a3d32, #0f2a22);
  filter: blur(0.5px);
  animation: pl-orb-float 7s ease-in-out infinite;
}
.pl-trails__hero-card {
  position: relative;
  margin-left: auto;
  max-width: 280px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--pl-border);
  box-shadow: var(--pl-shadow);
  backdrop-filter: blur(8px);
}
.pl-trails__hero-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pl-green);
  box-shadow: 0 0 0 6px rgba(22,199,132,.2);
  margin-bottom: 8px;
}
.pl-trails__hero-card strong { display: block; margin-bottom: 6px; }
.pl-trails__hero-card p {
  margin: 0 0 12px;
  font-size: .875rem;
  color: var(--pl-muted);
  line-height: 1.45;
}
.pl-trails__hero-link {
  font-weight: 700;
  color: var(--pl-green-dark);
  text-decoration: none;
  font-size: .9rem;
}
.pl-trails__hero-link:hover { text-decoration: underline; }
.pl-trails__bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pl-trails__back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 8px;
}
@keyframes pl-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (min-width: 860px) {
  .pl-trails__hero--rich {
    grid-template-columns: 1.2fr .9fr;
    gap: 32px;
  }
  .pl-trails__hero-visual { display: block; }
}

.pl-trails__filters {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 18px;
  padding: 16px;
  margin: 8px 0 28px;
}
.pl-trails__filters-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.pl-trails__filters label { display: grid; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--pl-muted); }
.pl-trails__filters input,
.pl-trails__filters select {
  min-height: 46px;
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  color: var(--pl-text);
  background: #fff;
}
.pl-trails__filters-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pl-trails__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
}
.pl-trail-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pl-trail-card:hover {
  transform: translateY(-2px);
  border-color: #c5d2cb;
  box-shadow: 0 12px 28px rgba(16, 24, 22, .08);
}
.pl-trail-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1a3d32, #0f2a22);
  overflow: hidden;
}
.pl-trail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pl-trail-card__media--empty {
  background:
    radial-gradient(circle at 30% 40%, rgba(22,199,132,.35), transparent 45%),
    linear-gradient(145deg, #1a3d32, #0f2a22);
}
.pl-trail-card__media--map {
  background: #0c221c;
  display: block;
}
.pl-trail-preview {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 140px;
}
.pl-trail-preview__route {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: pl-trail-draw 2.4s ease forwards;
}
.pl-trail-preview__pulse {
  transform-origin: center;
  animation: pl-trail-pulse 1.8s ease-in-out infinite;
}
@keyframes pl-trail-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pl-trail-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-trail-preview__route { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .pl-trail-preview__pulse { animation: none; }
}

.pl-trails__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.pl-trails__seo {
  margin: 8px 0 28px;
  padding: 20px;
  border-radius: 18px;
  background: #eef3f0;
  border: 1px solid var(--pl-border);
}
.pl-trails__seo h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.pl-trails__seo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.pl-trails__seo article {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 14px 16px;
}
.pl-trails__seo article h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.pl-trails__seo article p {
  margin: 0;
  color: var(--pl-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.pl-trails__seo--bottom {
  margin-top: 36px;
  margin-bottom: 40px;
}
.pl-trails__seo--bottom p { color: var(--pl-muted); line-height: 1.5; }
.pl-trails__fav-note { margin: -8px 0 16px; }
.pl-trail-card__body { padding: 14px 16px 16px; }
.pl-trail-card__type {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pl-green-dark);
  margin-bottom: 4px;
}
.pl-trail-card h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  line-height: 1.25;
}
.pl-trail-card__place {
  margin: 0 0 12px;
  color: var(--pl-muted);
  font-size: .9rem;
}
.pl-trail-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: .75rem;
  color: var(--pl-muted);
}
.pl-trail-card__metrics strong {
  display: block;
  color: var(--pl-text);
  font-size: .95rem;
}
.pl-trail-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--pl-muted);
}

.pl-trails__empty {
  text-align: center;
  padding: 48px 16px 64px;
  color: var(--pl-muted);
}
.pl-trails__list { padding-bottom: 24px; }

.pl-trails__detail { padding: 28px 0 56px; max-width: 880px; }
.pl-trails__back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--pl-muted);
  text-decoration: none;
  font-weight: 600;
}
.pl-trails__back:hover { color: var(--pl-text); }
.pl-trails__detail-head h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.pl-trails__place { margin: 0 0 10px; color: var(--pl-muted); font-size: 1.05rem; }
.pl-trails__place-bits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-trails__place-bits li {
  background: #eef3f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .8125rem;
}
.pl-trails__place-bits strong { margin-right: 4px; }
.pl-trails__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.pl-trails__stats div {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 12px 14px;
}
.pl-trails__stats strong { display: block; font-size: 1.15rem; }
.pl-trails__stats span { font-size: .75rem; color: var(--pl-muted); }
.pl-trails__map {
  height: min(52vh, 420px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pl-border);
  margin: 18px 0 28px;
  background: #e8eee9;
}
.pl-trails__section { margin: 28px 0; }
.pl-trails__section h2 { margin: 0 0 12px; font-size: 1.25rem; }
.pl-trails__notes {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 16px;
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.pl-trails__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pl-trails__photo {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pl-border);
}
.pl-trails__photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.pl-trails__photo span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(16,24,22,.75);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}
.pl-trails__cta {
  margin-top: 36px;
  padding: 24px;
  border-radius: 18px;
  background: #eef3f0;
  text-align: center;
}

.pl-home-trails { padding: 56px 0 24px; }
.pl-home-trails .pl-section__head { margin-bottom: 24px; }
.pl-home-trails__actions {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pl-home-trails__empty {
  color: var(--pl-muted);
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--pl-border);
  border-radius: 16px;
}

@media (min-width: 700px) {
  .pl-trails__filters-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-trails__grid { grid-template-columns: repeat(2, 1fr); }
  .pl-trails__stats { grid-template-columns: repeat(4, 1fr); }
  .pl-trails__photos { grid-template-columns: repeat(3, 1fr); }
  .pl-trail-card { grid-template-columns: 180px 1fr; }
  .pl-trail-card__media { aspect-ratio: auto; min-height: 100%; }
  .pl-trails__seo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pl-trails__filters-grid { grid-template-columns: repeat(4, 1fr); }
  .pl-home-trails .pl-trails__grid { grid-template-columns: repeat(2, 1fr); }
  .pl-trails__seo-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   Community trails map (/trasee/harta)
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.pl-trails-map-page .pl-footer { margin-top: 0; }

.pl-trails-map__intro {
  display: grid;
  gap: 20px;
  padding: 28px 0 12px;
}
.pl-trails-map__intro-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  margin: 0 0 10px;
}
.pl-trails-map__intro-copy > p {
  margin: 0;
  color: var(--pl-muted);
  max-width: 54ch;
}
.pl-trails-map__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pl-trails-map__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(22,199,132,.1), transparent 55%),
    var(--pl-surface);
  border: 1px solid var(--pl-border);
  align-content: start;
}
.pl-trails-map__stats > div strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--pl-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pl-trails-map__stats > div span {
  font-size: .8rem;
  color: var(--pl-muted);
}
.pl-trails-map__stats .pl-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: .85rem;
}

.pl-trails-map__toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 14px;
}
.pl-trails-map__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
  color: var(--pl-text);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.pl-chip em {
  font-style: normal;
  font-size: .75rem;
  color: var(--pl-muted);
  font-weight: 700;
}
.pl-chip:hover { border-color: #c5d2cb; }
.pl-chip.is-active {
  background: var(--pl-forest);
  border-color: var(--pl-forest);
  color: #fff;
}
.pl-chip.is-active em { color: rgba(255,255,255,.7); }
.pl-trails-map__search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: var(--pl-surface);
  color: var(--pl-text);
}

.pl-trails-map__stage {
  position: relative;
  width: min(100% - 0px, 100%);
  margin: 0 auto 8px;
}
.pl-trails-map__canvas {
  height: min(72vh, 720px);
  min-height: 360px;
  width: 100%;
  background: #dfe8e3;
  border-block: 1px solid var(--pl-border);
}
.pl-trails-map__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: rgba(246,248,247,.82);
  backdrop-filter: blur(6px);
  z-index: 500;
  padding: 24px;
  color: var(--pl-muted);
}
.pl-trails-map__hint[hidden] { display: none !important; }

.pl-map-pin-wrap { background: none !important; border: 0 !important; }
.pl-map-pin {
  display: block;
  width: var(--size, 16px);
  height: var(--size, 16px);
  border-radius: 50%;
  background: var(--pin, #16C784);
  border: var(--ring, 3px) solid #fff;
  box-shadow: 0 2px 10px rgba(16,24,22,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pl-map-pin.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(22,199,132,.22), 0 4px 14px rgba(16,24,22,.3);
}
.pl-map-tooltip {
  background: var(--pl-forest) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-weight: 600 !important;
  font-size: .75rem !important;
  box-shadow: 0 8px 20px rgba(16,24,22,.2) !important;
}
.pl-map-tooltip::before { border-top-color: var(--pl-forest) !important; }

.pl-trails-map__panel {
  position: absolute;
  z-index: 600;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--pl-border);
  box-shadow: 0 18px 48px rgba(16,24,22,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pl-panel-in .22s ease;
}
.pl-trails-map__panel[hidden] { display: none !important; }
@keyframes pl-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.pl-trails-map__panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #eef3f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--pl-muted);
}
.pl-trails-map__panel-close:hover { color: var(--pl-text); }
.pl-trails-map__panel-type {
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pl-green-dark);
  padding-right: 36px;
}
.pl-trails-map__panel h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  padding-right: 36px;
}
.pl-trails-map__panel-place {
  margin: 0 0 12px;
  color: var(--pl-muted);
  font-size: .925rem;
}
.pl-trails-map__panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.pl-trails-map__panel-metrics div {
  background: #eef3f0;
  border-radius: 12px;
  padding: 10px;
}
.pl-trails-map__panel-metrics strong {
  display: block;
  font-size: .95rem;
}
.pl-trails-map__panel-metrics span {
  font-size: .7rem;
  color: var(--pl-muted);
}
.pl-trails-map__panel-notes {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid var(--pl-border);
}
.pl-trails-map__panel-notes h3 {
  margin: 0 0 6px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pl-muted);
}
.pl-trails-map__panel-notes p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.pl-trails-map__panel .pl-note { margin: 0 0 12px; }
.pl-trails-map__panel .pl-btn { margin-top: 2px; }

.pl-trails-map__about {
  padding: 36px 0 48px;
}
.pl-trails-map__about > h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}
.pl-trails-map__about .pl-trails__seo-grid article {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 14px 16px;
}
.pl-trails-map__about .pl-trails__seo-grid h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.pl-trails-map__about .pl-trails__seo-grid p {
  margin: 0;
  color: var(--pl-muted);
  font-size: .9rem;
  line-height: 1.45;
}

@media (min-width: 800px) {
  .pl-trails-map__intro {
    grid-template-columns: 1.4fr .8fr;
    align-items: stretch;
    gap: 28px;
    padding-top: 36px;
  }
  .pl-trails-map__toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .pl-trails-map__search {
    flex: 0 1 280px;
  }
  .pl-trails-map__stage {
    width: min(100% - 32px, var(--pl-max));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--pl-border);
    box-shadow: var(--pl-shadow);
  }
  .pl-trails-map__canvas {
    border: 0;
    height: min(68vh, 680px);
  }
  .pl-trails-map__panel {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: min(360px, calc(100% - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-trails__hero-orb,
  .pl-trails-map__panel,
  .pl-map-pin { animation: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Contact (/contact)
   -------------------------------------------------------------------------- */
.pl-contact__hero { padding: 36px 0 12px; max-width: 640px; }
.pl-contact__hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; }
.pl-contact__lead { margin: 0; color: var(--pl-muted); }

.pl-contact__grid {
  display: grid;
  gap: 24px;
  padding: 12px 0 40px;
}
.pl-contact__cards { display: grid; gap: 12px; align-content: start; }
.pl-contact__card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.pl-contact__card:hover {
  border-color: #c5d2cb;
  box-shadow: var(--pl-shadow);
  transform: translateY(-1px);
}
.pl-contact__card--static { cursor: default; }
.pl-contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  background: rgba(22,199,132,.12);
  color: var(--pl-green-dark);
}
.pl-contact__card strong { display: block; margin-bottom: 2px; }
.pl-contact__card span { color: var(--pl-muted); font-size: .925rem; word-break: break-word; }
.pl-contact__note {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef3f0;
  border: 1px solid var(--pl-border);
  font-size: .875rem;
  color: var(--pl-muted);
}
.pl-contact__note p { margin: 0; }
.pl-contact__note a { color: var(--pl-green-dark); font-weight: 600; }

.pl-contact__form-wrap {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: var(--pl-shadow);
}
.pl-contact__flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: .925rem;
}
.pl-contact__flash--ok {
  background: rgba(22,199,132,.12);
  border: 1px solid rgba(22,199,132,.35);
  color: #0E8F5C;
}
.pl-contact__flash--err {
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.28);
  color: #c0392b;
}
.pl-contact__account {
  padding: 14px;
  border-radius: 14px;
  background: #eef3f0;
  border: 1px solid var(--pl-border);
  margin-bottom: 14px;
}
.pl-contact__account-label {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pl-green-dark);
}
.pl-contact__account p { margin: 0 0 4px; }
.pl-contact__fields {
  display: grid;
  gap: 0 14px;
  grid-template-columns: 1fr;
}
.pl-contact__full { grid-column: 1 / -1; }
.pl-contact__form .form-group { margin-bottom: 14px; }
.pl-contact__form label {
  display: block;
  margin-bottom: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--pl-muted);
}
.pl-contact__form .form-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  color: var(--pl-text);
  background: #fff;
  box-sizing: border-box;
}
.pl-contact__form textarea.form-control {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}
.pl-contact__form .form-control:focus {
  outline: none;
  border-color: var(--pl-green);
  box-shadow: 0 0 0 3px rgba(22,199,132,.18);
}
.pl-contact__privacy { margin: 12px 0 0; text-align: center; }
.pl-contact__privacy a { color: var(--pl-green-dark); font-weight: 600; }
.pl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pl-contact__extra { padding: 8px 0 56px; }
.pl-contact__extra h2 { margin: 0 0 12px; font-size: 1.2rem; }
.pl-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
  color: var(--pl-text);
  text-decoration: none;
  font-weight: 600;
  font-size: .875rem;
}
.pl-contact__links a:hover { border-color: #c5d2cb; }

@media (min-width: 720px) {
  .pl-contact__fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .pl-contact__grid {
    grid-template-columns: .9fr 1.2fr;
    gap: 28px;
    align-items: start;
  }
  .pl-contact__form-wrap { padding: 24px; }
}
