/* ============================================================
   Production sites subpage — Leaflet map (palette-styled) +
   facilities list. Loaded after styles.css (tokens available).
   ============================================================ */

/* ---- page hero ---- */
.page-hero { padding: calc(var(--header-h) + 3.5rem) 0 2.8rem; }
.page-hero__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.6rem; transition: gap 0.25s var(--ease-soft), color 0.2s;
}
.page-hero__back:hover { gap: 0.85rem; color: var(--amber-link); }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 500; letter-spacing: -0.01em; }
.page-hero p { max-width: 62ch; font-size: 1.06rem; margin: 1.3rem 0 0; }

/* ---- map ---- */
.map-section { padding-bottom: clamp(3rem, 6vw, 5rem); }
#map {
  height: clamp(440px, 62vh, 640px);
  width: 100%;
  background: #e9e5dc;
  border: 1px solid var(--line);
  border-radius: 4px;
  z-index: 1;              /* stay below the fixed header (z 60) */
}
.leaflet-container { background: #e9e5dc; font-family: var(--font-body); }

/* warm the muted basemap toward the linen palette */
.leaflet-tile-pane { filter: sepia(0.18) saturate(0.86) brightness(1.02) contrast(0.96); }

/* amber location markers */
.jmark {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(198, 130, 15, 0.35), 0 2px 6px rgba(20, 18, 15, 0.35);
  transition: transform 0.2s var(--ease-soft);
}
.jmark--hq { width: 20px; height: 20px; background: var(--ink); box-shadow: 0 0 0 2px rgba(198,130,15,0.55), 0 2px 8px rgba(20,18,15,0.4); }
.leaflet-marker-icon:hover .jmark { transform: scale(1.18); }

/* popups in palette */
.leaflet-popup-content-wrapper {
  background: var(--bg); color: var(--ink); border-radius: 4px;
  box-shadow: 0 10px 30px rgba(20, 18, 15, 0.22);
}
.leaflet-popup-content { margin: 0.95rem 1.15rem; line-height: 1.5; }
.leaflet-popup-content h4 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; color: var(--ink); margin: 0 0 0.15rem; line-height: 1.1; }
.leaflet-popup-content .pp-place { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-link); }
.leaflet-popup-content .pp-addr { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.5rem; }
.leaflet-popup-content .pp-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.4rem; }
.leaflet-popup-tip { background: var(--bg); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-soft); }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--ink); }

/* controls in palette */
.leaflet-bar a { background: var(--bg); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--bg-2); color: var(--ink); }
.leaflet-control-attribution { background: rgba(243, 240, 234, 0.82); color: var(--ink-soft); font-size: 10px; }
.leaflet-control-attribution a { color: var(--amber-link); }

.map-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--ink-faint); }

/* ---- facilities list ---- */
.facilities { padding: 0 0 clamp(4rem, 9vw, 8rem); }
.region { margin-top: clamp(2.5rem, 5vw, 3.6rem); }
.region:first-child { margin-top: 0; }
.region__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-link); margin: 0 0 0.9rem; }
.region__list { border-top: 1px solid var(--line); }
.frow {
  display: grid; grid-template-columns: 1.05fr 1.25fr 1.1fr; gap: 1.6rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: padding-left 0.3s var(--ease-soft);
}
.frow:hover { padding-left: 0.5rem; }
.frow__name { font-family: var(--font-serif); font-weight: 500; font-size: 1.55rem; color: var(--ink); line-height: 1.08; }
.frow__name .tag { display: inline-block; font-family: var(--font-body); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg); background: var(--ink); padding: 0.22rem 0.5rem; border-radius: 2px; vertical-align: middle; margin-left: 0.6rem; }
.frow__addr { color: var(--ink-soft); font-size: 0.95rem; }
.frow__note { color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 760px) {
  .frow { grid-template-columns: 1fr; gap: 0.35rem; }
}
