/* Punkty 17–18: zwarta, źródłowa prezentacja służb i transportu. */
body.has-map-shell details.ig-truth-card:is([data-truth-section="facilities"],[data-truth-section="transport"]) .ig-truth-card__details{
  padding-inline:16px;
}

body.has-map-shell .ig-surroundings{
  display:grid;
  gap:14px;
  color:#17251c;
}

body.has-map-shell .ig-surroundings__stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}

body.has-map-shell .ig-surroundings__stats>div{
  display:grid;
  min-width:0;
  min-height:70px;
  align-content:center;
  gap:5px;
  padding:9px 6px;
  border:1px solid #c8dfcf;
  border-radius:10px;
  background:#edf7f0;
  text-align:center;
}

body.has-map-shell .ig-surroundings__stats span{
  overflow:hidden;
  color:#567060;
  font-size:9.5px;
  font-weight:800;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.has-map-shell .ig-surroundings__stats strong{
  color:#11633a;
  font-size:14px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  line-height:1.2;
}

body.has-map-shell .ig-surroundings__table-wrap{
  overflow:hidden;
  border:1px solid #c8dfcf;
  border-radius:10px;
  background:#fff;
}

body.has-map-shell .ig-surroundings__table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

body.has-map-shell .ig-surroundings__table caption{
  padding:11px 12px 9px;
  border-bottom:1px solid #d9e9de;
  background:#edf7f0;
  color:#19492e;
  font-size:12px;
  font-weight:850;
  line-height:1.35;
  text-align:left;
}

body.has-map-shell .ig-surroundings__table th,
body.has-map-shell .ig-surroundings__table td{
  padding:10px 11px;
  border-bottom:1px solid #e2ece5;
  vertical-align:middle;
  line-height:1.35;
}

body.has-map-shell .ig-surroundings__table tr:last-child th,
body.has-map-shell .ig-surroundings__table tr:last-child td{
  border-bottom:0;
}

body.has-map-shell .ig-surroundings__table th{
  width:54%;
  color:#2b4636;
  font-size:11.5px;
  font-weight:750;
  text-align:left;
  overflow-wrap:anywhere;
}

body.has-map-shell .ig-surroundings__table td{
  color:#11633a;
  font-size:12px;
  font-variant-numeric:tabular-nums;
  text-align:right;
}

body.has-map-shell .ig-surroundings__table td strong{
  font-weight:900;
}

body.has-map-shell .ig-poi-dist-mode{
  display:block;
  margin-top:2px;
  color:#5c7163;
  font-size:9.5px;
  font-weight:700;
  white-space:normal;
}

body.has-map-shell .ig-surroundings__map-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px 14px;
  flex-wrap:wrap;
}

body.has-map-shell .ig-surroundings__map-heading h3{
  margin:0;
  color:#17251c;
  font-size:13px;
  font-weight:850;
  line-height:1.35;
}

body.has-map-shell .ig-surroundings__map-heading span{
  color:#2f5d43;
  font-size:11px;
  font-weight:800;
}

body.has-map-shell details.ig-truth-card:is([data-truth-section="facilities"],[data-truth-section="transport"]) .ig-mini-map{
  margin:0;
  border:1px solid #c8d8cc;
  border-radius:11px;
}

body.has-map-shell .ig-surroundings__map-note,
body.has-map-shell .ig-surroundings__source-note{
  margin:0;
  color:#52675a;
  font-size:11px;
  line-height:1.5;
  text-wrap:pretty;
}

body.has-map-shell .ig-surroundings__source-note{
  padding-top:9px;
  border-top:1px solid #e1e8e3;
}

@media(pointer:coarse){
  body.has-map-shell details.ig-truth-card:is([data-truth-section="facilities"],[data-truth-section="transport"]) .leaflet-control-zoom a,
  body.has-map-shell details.ig-truth-card:is([data-truth-section="facilities"],[data-truth-section="transport"]) .leaflet-control-layers-toggle{
    width:44px!important;
    height:44px!important;
    line-height:44px!important;
  }
}

@media(max-width:380px){
  body.has-map-shell details.ig-truth-card:is([data-truth-section="facilities"],[data-truth-section="transport"]) .ig-truth-card__details{padding-inline:10px}
  body.has-map-shell .ig-surroundings__stats{gap:5px}
  body.has-map-shell .ig-surroundings__stats>div{min-height:66px;padding-inline:4px}
  body.has-map-shell .ig-surroundings__stats span{font-size:9px}
  body.has-map-shell .ig-surroundings__stats strong{font-size:12px}
  body.has-map-shell .ig-surroundings__table th,
  body.has-map-shell .ig-surroundings__table td{padding:9px 8px}
}

@media(max-width:335px){
  body.has-map-shell .ig-surroundings--transport .ig-surroundings__stats span{
    font-size:7.5px;
    letter-spacing:-.15px;
  }
}

@media print{
  .ig-surroundings__stats{grid-template-columns:repeat(4,1fr)!important}
  .ig-surroundings__table-wrap{overflow:visible!important}
}
