/* PFC About Map — inherits host page background (no forced cream/lime panel) */

.pfc-locations {
  --pfc-ink: #1a1c1e;
  --pfc-ink-muted: #5c636a;
  --pfc-border: rgba(26, 28, 30, 0.14);
  --pfc-accent: #1e3a4c;
  --pfc-accent-soft: rgba(30, 58, 76, 0.1);
  --pfc-pin: #0c0e12;
  --pfc-section: #6b7280;
  --pfc-font: inherit;
  --pfc-radius: 2px;
  --pfc-map-min-h: 480px;
  --pfc-map-vh: 70vh;

  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.75rem);
  font-family: var(--pfc-font);
  color: inherit;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

.pfc-locations *,
.pfc-locations *::before,
.pfc-locations *::after {
  box-sizing: border-box;
}

.pfc-locations__header {
  margin-bottom: 1rem;
}

.pfc-locations__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: inherit;
}

.pfc-locations__lede {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.72;
}

.pfc-locations__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0.85rem;
}

.pfc-locations .pfc-chip {
  appearance: none;
  border: 1px solid var(--pfc-border);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--pfc-radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    opacity 0.15s ease;
}

.pfc-locations .pfc-chip:hover {
  border-color: currentColor;
  opacity: 0.9;
}

.pfc-locations .pfc-chip.is-active {
  background: var(--pfc-accent);
  border-color: var(--pfc-accent);
  color: #fff;
}

.pfc-locations__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0;
  min-height: max(var(--pfc-map-min-h), var(--pfc-map-vh));
  background: transparent;
  border: 1px solid var(--pfc-border);
}

.pfc-locations__map {
  min-height: max(var(--pfc-map-min-h), var(--pfc-map-vh));
  height: 100%;
  border-right: 1px solid var(--pfc-border);
  z-index: 0;
  transition: opacity 0.2s ease;
}

.pfc-locations__map.is-flying {
  /* subtle — map stays visible while tiles catch up */
  opacity: 0.92;
}

.pfc-locations__map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: inherit;
  font-family: inherit;
  background: transparent;
}

.pfc-locations__aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: max(var(--pfc-map-min-h), var(--pfc-map-vh));
  background: transparent;
}

.pfc-locations__list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfc-locations .pfc-country-section {
  margin: 0;
  padding: 0;
}

.pfc-locations .pfc-country-section__label {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.55rem 1rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfc-section);
  background: transparent;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}

.pfc-locations .pfc-location-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--pfc-border);
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pfc-locations .pfc-location-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.pfc-locations .pfc-location-row.is-active {
  background: var(--pfc-accent-soft);
  border-left-color: var(--pfc-accent);
}

.pfc-locations .pfc-location-row__name {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pfc-locations .pfc-location-row__address {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  opacity: 0.72;
}

.pfc-locations .pfc-location-row__directions {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--pfc-accent);
  text-decoration: none;
}

.pfc-locations .pfc-location-row__directions:hover {
  text-decoration: underline;
}

.pfc-locations .pfc-location-row__directions[hidden] {
  display: none;
}

.pfc-locations .pfc-pin-icon {
  background: transparent !important;
  border: none !important;
}

.pfc-locations .pfc-pin {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.pfc-locations .pfc-pin.is-active {
  transform: scale(1.12);
  filter: drop-shadow(0 0 0 2px rgba(30, 58, 76, 0.35))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.pfc-locations .leaflet-popup-content-wrapper {
  border-radius: var(--pfc-radius);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pfc-locations .leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.pfc-locations .leaflet-popup-content strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .pfc-locations {
    padding: 0.75rem;
  }

  .pfc-locations__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pfc-locations__map {
    min-height: 45vh;
    height: 45vh;
    border-right: 0;
    border-bottom: 1px solid var(--pfc-border);
  }

  .pfc-locations__aside {
    max-height: none;
    min-height: 40vh;
  }

  .pfc-locations__list {
    max-height: 50vh;
  }
}
