/* Paisley Mural Trail — map page styles
   Pin / cluster / tooltip / side-panel chrome shared across the
   homepage map block and the full Mural Trail Map page.
   Tokens reused from Paisley Mural Trail Website.html. */

/* —— pin marker —— */
.pmt-pin-wrap { background: transparent !important; border: 0 !important; }
.pmt-pin {
  filter: drop-shadow(0 3px 0 rgba(42,26,18,.25));
  transition: transform .12s ease;
}
.pmt-pin svg { display: block; }
.pmt-pin.is-selected { transform: scale(1.18) translateY(-3px); }
.leaflet-marker-icon:hover .pmt-pin { transform: scale(1.08) translateY(-2px); }

/* —— cluster —— */
.pmt-cluster { background: transparent !important; border: 0 !important; }
.pmt-cluster-inner {
  width: 44px; height: 44px; border-radius: 50%;
  background: #F4EBC8;
  border: 2.5px solid #2A1A12;
  box-shadow: 3px 3px 0 #2A1A12;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Ultra', serif;
  font-size: 16px;
  color: #2A1A12;
}

/* —— tooltip —— */
.leaflet-tooltip.pmt-tip {
  background: #FBF6E2;
  border: 1.5px solid #2A1A12;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #2A1A12;
  padding: 8px 12px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #2A1A12;
}
.leaflet-tooltip.pmt-tip strong {
  font-family: 'Ultra', serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.leaflet-tooltip.pmt-tip::before { display: none; }

/* —— Leaflet zoom controls — restyle to match brand —— */
.leaflet-control-zoom a {
  background: #FBF6E2 !important;
  color: #2A1A12 !important;
  border: 1.5px solid #2A1A12 !important;
  font-family: 'Ultra', serif;
  font-size: 18px;
  box-shadow: 2px 2px 0 #2A1A12;
}
.leaflet-control-zoom a:hover { background: #F4EBC8 !important; }

.leaflet-control-attribution {
  background: rgba(251,246,226,.85) !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 10px !important;
  color: #4A2E1F !important;
}

/* —— filter rail —— */
.mt-filter {
  display: flex; flex-direction: column; gap: 8px;
}
.mt-filter .row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(42,26,18,.18);
  border-radius: 10px;
  background: #FBF6E2;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  user-select: none;
  transition: border-color .12s, background .12s;
}
.mt-filter .row:hover { border-color: #2A1A12; background: #F4EBC8; }
.mt-filter .row.is-off { opacity: .35; }
.mt-filter .row .swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #2A1A12;
  flex-shrink: 0;
}
.mt-filter .row .name {
  font-family: 'Ultra', serif;
  font-weight: 400;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  flex: 1;
}
.mt-filter .row .count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: #6B4A35;
}

/* —— route toggle —— */
.mt-route-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #2A1A12;
  border-radius: 10px;
  background: #FBF6E2;
  cursor: pointer;
  font-family: 'Ultra', serif;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 3px 3px 0 #2A1A12;
  user-select: none;
}
.mt-route-toggle .switch {
  width: 36px; height: 20px; border-radius: 999px;
  background: #EFE2B0;
  border: 1.5px solid #2A1A12;
  position: relative; flex-shrink: 0;
  transition: background .15s;
}
.mt-route-toggle .switch::after {
  content: ""; position: absolute; top: 1px; left: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #2A1A12;
  transition: transform .15s;
}
.mt-route-toggle.is-on .switch { background: #15616D; }
.mt-route-toggle.is-on .switch::after { transform: translateX(16px); background: #F4EBC8; }

/* —— detail side panel —— */
.mt-detail {
  background: #FBF6E2;
  border: 1.5px solid #2A1A12;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #2A1A12;
  overflow: hidden;
  position: relative;
  font-family: 'Work Sans', sans-serif;
}
.mt-detail-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: #F4EBC8;
  border: 1.5px solid #2A1A12;
  color: #2A1A12;
  font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 2px 2px 0 #2A1A12;
}
.mt-detail-photo {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: #6B4A35;
  position: relative;
  border-bottom: 1.5px solid #2A1A12;
}
.mt-detail-num {
  position: absolute; bottom: -16px; left: 18px;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Ultra', serif;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: #F4EBC8;
  border: 2px solid #2A1A12;
  box-shadow: 0 0 0 2px #FBF6E2, 3px 3px 0 #2A1A12;
}
.mt-detail-body { padding: 28px 22px 22px; }
.mt-detail-zone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Ultra', serif;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.mt-dot { width: 8px; height: 8px; border-radius: 50%; }
.mt-detail h3 {
  font-family: 'Yellowtail', cursive;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  margin: 0 0 6px;
  color: #2A1A12;
}
.mt-detail .mt-artist {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  color: #4A2E1F;
  margin: 0 0 4px;
}
.mt-detail .mt-artist em {
  font-style: italic;
  color: #15616D;
}
.mt-detail .mt-addr {
  font-family: 'Ultra', serif;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #6B4A35;
  margin: 0 0 14px;
}
.mt-detail .mt-desc {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px; line-height: 1.55;
  color: #2A1A12;
  margin: 0 0 18px;
}
.mt-detail-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(42,26,18,.12);
}
.mt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Ultra', serif;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  background: #15616D;
  color: #F4EBC8;
  text-decoration: none;
  border: 1.5px solid #2A1A12;
  box-shadow: 3px 3px 0 #2A1A12;
  cursor: pointer;
}
.mt-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #2A1A12; }
.mt-btn-ghost {
  background: #FBF6E2;
  color: #2A1A12;
}

/* —— ensure leaflet container has correct background —— */
.leaflet-container {
  background: #EFE2B0;
  font-family: 'Work Sans', sans-serif;
}
