/* InfoGrunt report point 6: utilities at the parcel.
   This is a product-data view: the map carries location, the table carries
   source confidence, and neither visual state claims a completed connection. */

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] {
  border: 1px solid #c8d3cb !important;
  border-left-width: 1px !important;
  border-radius: 12px;
  background: #fff;
}

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"][open] {
  border-color: #aebdb2 !important;
}

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__icon {
  background: #e3f1e7;
  color: #17663a;
}

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__icon svg {
  width: 28px;
  height: 28px;
}

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__label {
  color: #17251c;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: none;
}

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__value {
  color: #496154;
  font-size: 12.5px;
  line-height: 1.4;
  text-wrap: pretty;
}

body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__details {
  padding: 0 14px 15px;
}

.ig-utilities {
  color: #173c29;
}

.ig-utilities__map-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 8px;
}

body.has-map-shell .ig-utilities__map-heading h4 {
  flex: 0 0 auto;
  margin: 0 !important;
  color: #173c29 !important;
  font-size: 14px !important;
  line-height: 1.35;
}

.ig-utilities__map-heading p {
  max-width: 54ch;
  margin: 0 !important;
  color: #52685b;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: right;
  text-wrap: pretty;
}

.ig-utilities__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 8px !important;
  padding: 0 !important;
  list-style: none;
  color: #354d40;
  font-size: 11px;
  line-height: 1.35;
}

.ig-utilities__legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ig-utilities__network-dot {
  display: inline-block;
  width: 14px;
  height: 4px;
  flex: 0 0 14px;
  border-radius: 999px;
  background: #758078;
}

.ig-utilities__network-dot--electricity { background: #d6242f; }
.ig-utilities__network-dot--water { background: #176dcc; }
.ig-utilities__network-dot--gas { background: #d39a00; }
.ig-utilities__network-dot--sewage { background: #74431f; }
.ig-utilities__network-dot--telecom { background: #d76816; }
.ig-utilities__network-dot--heating { background: #8a3fb0; }
.ig-utilities__network-dot--osm { height: 3px; background: #641f73; }

body.has-map-shell .ig-mini-map.ig-utilities-map,
.ig-mini-map.ig-utilities-map {
  width: 100%;
  height: 292px;
  min-height: 292px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #9cad9f;
  border-radius: 10px;
  background: #dce5df;
}

.ig-utilities-map .ig-utilities-base-pane .leaflet-tile {
  filter: grayscale(1) saturate(0) contrast(.82) brightness(1.08);
  opacity: .72;
}

.ig-utilities-map .ig-utilities-network-pane .leaflet-tile {
  filter: saturate(1.35) contrast(1.12);
}

.ig-utilities-map .leaflet-control-attribution,
.ig-utilities-map .leaflet-control-zoom {
  display: none !important;
}

.ig-utilities-map .ig-utility-parcel-label {
  border: 1px solid #173c29;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(12, 48, 29, .28), 0 0 12px rgba(157, 255, 69, .42);
  background: rgba(23, 60, 41, .92);
  color: #f6fff1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.ig-utilities-map .ig-utility-parcel-label::before { display: none; }

.ig-utilities__wms-note {
  margin: 7px 0 14px !important;
  color: #53685b;
  font-size: 11px;
  line-height: 1.45;
  text-wrap: pretty;
}

.ig-utilities__table-wrap {
  overflow-x: auto;
  border-top: 1px solid #d6dfd8;
  border-bottom: 1px solid #d6dfd8;
}

.ig-utilities__table {
  width: 100%;
  border-collapse: collapse;
  color: #1c3e2b;
  font-size: 12px;
  line-height: 1.45;
}

.ig-utilities__table caption {
  padding: 11px 0 7px;
  color: #173c29;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.ig-utilities__table tr + tr {
  border-top: 1px solid #e1e7e2;
}

.ig-utilities__table th,
.ig-utilities__table td {
  padding: 9px 0;
  vertical-align: top;
  text-align: left;
}

.ig-utilities__table th {
  width: 116px;
  padding-right: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.ig-utilities__table th .ig-utilities__network-dot {
  margin-right: 7px;
  vertical-align: 2px;
}

.ig-utilities__table td {
  color: #455e50;
}

.ig-utilities__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: -2px 7px 0 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf2ee;
  color: #294b37;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ig-utilities__table tr[data-utility-state="spatial"] .ig-utilities__badge {
  background: #fff0cb;
  color: #664700;
}

.ig-utilities__caveat {
  margin: 13px 0 0 !important;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f1f5f2;
  color: #304d3b;
  font-size: 11.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

body.has-map-shell .ig-utilities__power-detail {
  margin-top: 14px;
}

.ig-utilities__observations {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #355443;
  font-size: 11.5px;
  line-height: 1.5;
}

.ig-utilities__power-detail .ig-truth-enrichment > p:first-child {
  color: #4b6254;
  font-size: 11.5px;
}

.ig-utilities__sources {
  margin: 11px 0 0;
  font-size: 11px;
}

.ig-utilities__sources summary {
  cursor: pointer;
  color: #315540;
  font-weight: 750;
}

.ig-utilities__sources p { margin: 7px 0 0 !important; color: #53685b; line-height: 1.45; }

.ig-utilities__sources a {
  color: #17663a;
  font-weight: 750;
  text-underline-offset: 2px;
}

.ig-utilities-map__fallback {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 18px;
  border: 1px solid #cbd5ce;
  border-radius: 10px;
  background: #f2f5f3;
  color: #4f6457;
  text-align: center;
}

@media (max-width: 600px) {
  body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__details {
    padding: 0 10px 13px;
  }

  .ig-utilities__map-heading {
    display: block;
  }

  .ig-utilities__map-heading p {
    margin-top: 4px !important;
    text-align: left;
  }

  body.has-map-shell .ig-mini-map.ig-utilities-map,
  .ig-mini-map.ig-utilities-map {
    height: 258px;
    min-height: 258px;
  }

  .ig-utilities__legend {
    gap: 5px 10px;
  }
}

@media (max-width: 350px) {
  .ig-utilities__table tr {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ig-utilities__table th,
  .ig-utilities__table td {
    width: auto;
    padding-right: 0;
  }

  .ig-utilities__table th {
    padding-bottom: 2px;
  }

  .ig-utilities__table td {
    padding-top: 2px;
  }
}

@media (max-width: 360px) {
  body.has-map-shell details.ig-truth-card[data-truth-section="utilities"] .ig-truth-card__label {
    font-size: 14px;
  }
}

@media print {
  .ig-mini-map.ig-utilities-map {
    height: 230px !important;
    min-height: 230px !important;
  }
}

/* Leaflet panes have no layout width; global responsive SVG limits hid the outline. */
.ig-utilities-map .ig-utilities-parcel-pane > svg {
  max-width: none !important;
  max-height: none !important;
  overflow: visible;
}
.ig-utilities__map-only { margin: 12px 0; line-height: 1.55; }
.ig-utilities__internet-address { font-weight: 700; }
