/* Dedicated /ramayana/map — saffron / parchment */

.rmap-body {
  --rmap-saffron: #c45c1a;
  --rmap-saffron-deep: #9a3412;
  --rmap-gold: #c9962e;
  --rmap-gold-soft: #e5a93b;
  --rmap-ink: #1c1510;
  --rmap-muted: #6b5c4c;
  --rmap-parchment: #f7f1e6;
  --rmap-cream: #fff8f1;
  --rmap-panel: #2a1c14;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 12% 0%, rgba(196, 92, 26, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 8%, rgba(201, 150, 46, 0.12), transparent 50%),
    linear-gradient(180deg, #fff8f1 0%, #faf6f0 40%, #f5efe6 100%);
  color: var(--rmap-ink);
  font-family: Outfit, "Noto Sans Devanagari", system-ui, sans-serif;
}

.rmap-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3rem;
}

.rmap-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--rmap-muted);
}

.rmap-crumb a {
  color: var(--rmap-saffron-deep);
  text-decoration: none;
  font-weight: 500;
}

.rmap-hero h1 {
  font-family: Fraunces, "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.55rem;
  color: var(--rmap-saffron-deep);
}

.rmap-lede {
  margin: 0 0 0.55rem;
  max-width: 42rem;
  line-height: 1.55;
  color: var(--rmap-ink);
}

.rmap-note {
  margin: 0 0 1rem;
  max-width: 44rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--rmap-muted);
}

.rmap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.rmap-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(154, 52, 18, 0.28);
  color: var(--rmap-ink);
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
}

.rmap-btn-gold {
  background: linear-gradient(180deg, #d97706, var(--rmap-saffron));
  border-color: var(--rmap-saffron-deep);
  color: #fff8ec;
  font-weight: 600;
}

.rmap-btn:hover {
  border-color: var(--rmap-saffron);
}

.rmap-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: 0;
  min-height: 62vh;
  border: 1px solid rgba(154, 52, 18, 0.22);
  background: #1f1712;
  box-shadow: 0 12px 40px rgba(154, 52, 18, 0.08);
}

@media (max-width: 900px) {
  .rmap-workspace {
    grid-template-columns: 1fr;
  }
}

.rmap-stage {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
}

.rmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(201, 150, 46, 0.28);
  background: rgba(42, 28, 20, 0.92);
}

.rmap-kanda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rmap-tour {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.rmap-tour-btn {
  min-width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(229, 169, 59, 0.55);
  background: rgba(196, 92, 26, 0.35);
  color: #fff8ec;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}

.rmap-tour-btn:hover {
  background: rgba(196, 92, 26, 0.65);
  border-color: #e5a93b;
}

.rmap-tour-play.is-playing {
  background: #c45c1a;
  border-color: #ffe7b0;
  box-shadow: 0 0 0 2px rgba(229, 169, 59, 0.35);
}

.rmap-tour-speed select {
  border: 1px solid rgba(229, 169, 59, 0.45);
  background: #2a1c14;
  color: #f3ebe0;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
  border-radius: 2px;
}

.rmap-tour-status {
  font-size: 0.75rem;
  color: #e5c98a;
  min-width: 4.5rem;
  letter-spacing: 0.02em;
}

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

.rmap-kanda-btn {
  border: 1px solid rgba(201, 150, 46, 0.4);
  background: transparent;
  color: #f3ebe0;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border-radius: 2px;
}

.rmap-kanda-btn.is-active,
.rmap-kanda-btn:hover {
  background: rgba(196, 92, 26, 0.45);
  border-color: var(--rmap-gold-soft);
  color: #fff8ec;
}

.rmap-leaflet {
  min-height: 480px;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 42%, #f3e4cf 0%, #e8d4b8 48%, #d9c2a0 100%);
}

.rmap-leaflet.leaflet-container {
  background:
    radial-gradient(ellipse at 50% 42%, #f3e4cf 0%, #e8d4b8 48%, #d9c2a0 100%);
}

.rmap-land-overlay {
  filter: none;
}

.rmap-div-icon {
  background: transparent;
  border: 0;
}

.rmap-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e07030, #c45c1a);
  color: #fff8ec;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid #f0c56a;
  box-shadow: 0 1px 4px rgba(28, 21, 16, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.rmap-marker span {
  line-height: 1;
}

.rmap-marker.is-selected {
  width: 46px;
  height: 46px;
  margin: -9px 0 0 -9px;
  font-size: 0.98rem;
  background: linear-gradient(160deg, #ffd27a, #ff9a2e 40%, #e85d0c);
  border: 3px solid #fff8dc;
  box-shadow:
    0 0 0 5px rgba(255, 200, 90, 0.55),
    0 0 28px rgba(255, 150, 40, 1),
    0 0 48px rgba(255, 120, 20, 0.55),
    0 4px 14px rgba(154, 52, 18, 0.45);
  z-index: 5;
  animation: rmap-pulse 1.6s ease-in-out infinite;
}

@keyframes rmap-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 200, 90, 0.55), 0 0 28px rgba(255, 150, 40, 1), 0 0 48px rgba(255, 120, 20, 0.45), 0 4px 14px rgba(154, 52, 18, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 210, 110, 0.35), 0 0 36px rgba(255, 170, 50, 1), 0 0 60px rgba(255, 130, 30, 0.65), 0 4px 14px rgba(154, 52, 18, 0.45); }
}

.rmap-region-wrap {
  background: transparent;
  border: 0;
}

.rmap-region {
  display: inline-block;
  font-family: Fraunces, "Noto Serif Devanagari", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #9a3412;
  text-shadow: 0 1px 0 rgba(255, 248, 236, 0.85);
  font-weight: 700;
}

.rmap-region-lanka {
  font-size: 0.95rem;
  color: #c45c1a;
}

.rmap-tooltip {
  background: #2a1c14;
  color: #f3ebe0;
  border: 1px solid rgba(201, 150, 46, 0.5);
  border-radius: 2px;
  font-size: 0.8rem;
}

.rmap-dossier {
  padding: 1.15rem 1.1rem;
  border-left: 1px solid rgba(201, 150, 46, 0.22);
  background: linear-gradient(180deg, #2f2118, #221810);
  color: #f3ebe0;
  overflow: auto;
  max-height: 70vh;
}

@media (max-width: 900px) {
  .rmap-dossier {
    border-left: 0;
    border-top: 1px solid rgba(201, 150, 46, 0.22);
    max-height: none;
  }
}

.rmap-empty {
  margin: 0;
  color: #cbbba8;
  line-height: 1.55;
}

.rmap-panel[hidden] {
  display: none !important;
}

.rmap-badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmap-gold-soft);
}

.rmap-panel h2 {
  margin: 0 0 0.25rem;
  font-family: Fraunces, "Noto Serif Devanagari", serif;
  font-size: 1.35rem;
  color: #fff8ec;
}

.rmap-modern,
.rmap-coords {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #cbbba8;
}

.rmap-blurb {
  margin: 0.75rem 0 1rem;
  line-height: 1.55;
  color: #efe4d4;
}

.rmap-panel section {
  margin-top: 0.95rem;
}

.rmap-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rmap-gold-soft);
}

.rmap-panel p {
  margin: 0;
  line-height: 1.6;
  color: #ebe1d2;
  font-size: 0.95rem;
}

.rmap-links {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.rmap-links a {
  color: var(--rmap-gold-soft);
  text-decoration: none;
}

.rmap-links a:hover {
  color: #ffe7b0;
  text-decoration: underline;
}

.rmap-related {
  margin-top: 1.75rem;
}

.rmap-related h2 {
  font-family: Fraunces, serif;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  color: var(--rmap-saffron-deep);
}

.rmap-related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.rmap-related a {
  color: var(--rmap-saffron);
}
