/* Small public map component, explicitly scoped to WAG pilot. */
.wa-pilot-map{width:100%;max-width:100%;min-width:0;margin:1rem 0 1.5rem;border:1px solid #e5e7eb;border-radius:.3rem;background:#fff;overflow:hidden;box-sizing:border-box}
.wa-pilot-map__title{font-size:1rem;font-weight:600;line-height:1.5;margin:.7rem .8rem;color:inherit}
.wa-pilot-map__canvas{width:100%;height:260px;position:relative;z-index:0}
.wa-pilot-map--country{clear:both;margin:1.25rem 0}
.wa-pilot-map--country .wa-pilot-map__canvas{height:425px}
.wa-pilot-map--inline .wa-pilot-map__canvas{height:390px}
.wa-pilot-map--photo .wa-pilot-map__canvas{height:225px}
.wa-pilot-map__fallback{padding:0 .75rem .75rem;font-size:.85rem;color:#64748b}
.wa-pilot-map__data{display:none}
.wa-pilot-map .leaflet-container{font:inherit;max-width:100%}
.wa-pilot-map .leaflet-popup-content a{display:inline-block;margin-top:5px}
@media(max-width:767px){
 .wa-pilot-map--country .wa-pilot-map__canvas,.wa-pilot-map--inline .wa-pilot-map__canvas{height:300px}
 .wa-pilot-map--context .wa-pilot-map__canvas,.wa-pilot-map--photo .wa-pilot-map__canvas{height:240px}
}

/* Reduce letterbox on mobile image detail: photo is natural aspect ratio. */
@media(max-width:767px){
 .wag-photo-page .wag-photo-frame{height:auto;min-height:0;max-height:none;padding:0}
 .wag-photo-page .wag-photo-frame img{width:100%;height:auto;max-height:75dvh;object-fit:contain}
 .wag-photo-page .wag-photo-frame picture{width:100%;display:flex;justify-content:center}
 .wa-pilot-map .leaflet-control-attribution{font-size:10px;line-height:1.2;max-width:100%;white-space:normal}
 .wa-pilot-map--context{clear:both;margin:1rem 0 1.5rem;max-width:100%}
}

/* Category-only: compact required Leaflet/OpenStreetMap attribution.
 * NEVER remove attribution text or the copyright link. */
.wa-pilot-map--country .leaflet-control-attribution{
  font-size:10px!important;
  line-height:1.15!important;
  padding:0 3px!important;
  max-width:100%;
  white-space:normal
}
.wa-pilot-map--country .leaflet-control-attribution a{font-size:inherit!important}
.wa-pilot-map--country{margin-top:0}

/* Same compact Leaflet/OSM attribution as category maps on the homepage,
 * article context maps and photo details. */
.wa-pilot-map--home .leaflet-control-attribution,
.wa-pilot-map--context .leaflet-control-attribution,
.wa-pilot-map--photo .leaflet-control-attribution{
  font-size:10px!important;
  line-height:1.15!important;
  padding:0 3px!important;
  max-width:100%;
  white-space:normal;
}
.wa-pilot-map--home .leaflet-control-attribution a,
.wa-pilot-map--context .leaflet-control-attribution a,
.wa-pilot-map--photo .leaflet-control-attribution a{
  font-size:inherit!important;
}
