/* The Journeys of Paul interactive map. Embeds in an article body via
   [[paul-map]]. Parchment frame to match the site; real Leaflet map inside. */

.paulmap-widget {
  margin: 2rem 0;
  padding: 1.4rem 1.4rem 1.6rem;
  border: 1px solid rgba(150, 103, 47, 0.42);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 243, 0.97), rgba(247, 238, 219, 0.97)),
    url('./assets/parchment-bg.png');
  background-size: cover;
  box-shadow: 0 20px 50px -28px rgba(60, 38, 16, 0.5), inset 0 0 0 1px rgba(255, 244, 214, 0.6);
  color: #3a2a17;
}

.paulmap-head { text-align: center; margin-bottom: 1rem; }
.paulmap-kicker {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(122, 78, 28, 0.85);
  margin: 0 0 0.35rem;
}
.paulmap-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #2e1c0c;
  margin: 0 0 0.4rem;
}
.paulmap-disclaimer {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(96, 64, 32, 0.92);
  margin: 0 auto;
  max-width: 60ch;
}

/* Journey tabs */
.paulmap-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0;
}
.paulmap-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(150, 103, 47, 0.4);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  font: inherit;
  font-size: 0.85rem;
  color: #3a2a17;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.paulmap-tab:hover { transform: translateY(-1px); }
.paulmap-tab-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--paulmap-accent, #7a4e1c);
  flex: 0 0 auto;
}
.paulmap-tab-years { font-size: 0.72rem; font-style: italic; color: rgba(96, 64, 32, 0.7); }
.paulmap-tab.is-active {
  border-color: var(--paulmap-accent, #8d5621);
  background: #fff7ea;
  box-shadow: 0 0 0 1px var(--paulmap-accent, rgba(195, 142, 70, 0.55));
}
.paulmap-tab:focus-visible { outline: 2px solid rgba(141, 86, 33, 0.85); outline-offset: 2px; }

/* Map */
.paulmap-map {
  position: relative;
  height: 480px;
  border: 1px solid rgba(150, 103, 47, 0.42);
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(244, 234, 210, 0.9), rgba(236, 222, 192, 0.9));
  z-index: 0;
}
.paulmap-map .leaflet-tile-pane { filter: sepia(0.28) saturate(0.92) contrast(0.96) brightness(1.02); }
.paulmap-map .leaflet-container { background: #efe6cf; font-family: 'Cormorant Garamond', serif; }
.paulmap-map .leaflet-bar a { color: #5a3a16; background: #fffaf0; border-bottom-color: rgba(150, 103, 47, 0.3); }
.paulmap-map .leaflet-bar a:hover { background: #fff4dc; }
.paulmap-map .leaflet-tooltip {
  background: #fffaf0;
  border: 1px solid rgba(150, 103, 47, 0.5);
  color: #3a2a17;
  font-weight: 600;
}

/* Numbered stop markers */
.paulmap-num-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fffaf0;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid #fffaf0;
  box-shadow: 0 2px 6px rgba(40, 24, 8, 0.45);
}

.paulmap-fallback {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-style: italic;
  color: rgba(96, 64, 32, 0.9);
}

/* Info panel */
.paulmap-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: 1rem;
  align-items: start;
}
.paulmap-years {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.paulmap-summary { margin: 0 0 0.5rem; font-size: 1.02rem; line-height: 1.5; color: #43301b; }
.paulmap-refs { margin: 0; font-size: 0.84rem; font-style: italic; color: rgba(96, 64, 32, 0.85); }

.paulmap-stops {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid rgba(150, 103, 47, 0.3);
  border-radius: 0.7rem;
  counter-reset: stop;
}
.paulmap-stops li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.92rem;
  color: #43301b;
}
.paulmap-stop-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  color: #fffaf0;
  font-size: 0.72rem;
  font-weight: 700;
}

.paulmap-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-style: italic;
  color: rgba(96, 64, 32, 0.85);
}

@media (max-width: 760px) {
  .paulmap-map { height: 380px; }
  .paulmap-info { grid-template-columns: 1fr; }
}
