/* Keep the hero uniform consistent across desktop and mobile crops. */
.hero-media {
  background-image: url("/assets/images/technology/hero-facade-desktop.webp");
}

/* Mobile service-area section */
.areas-section .areas-grid {
  grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr) minmax(0, .9fr);
  gap: 34px;
}
.areas-section h2 span,.areas-section h2 em { display:block; }
.areas-section h2 em { margin-top:7px; }
.location-chips .location-chip-primary { color:#efffd7;background:rgba(155,212,49,.2);border-color:#9bd431;font-weight:850;box-shadow:0 0 0 3px rgba(155,212,49,.08); }

.coverage-map {
  margin: 0;
  padding: 12px 12px 14px;
  overflow: hidden;
  background: rgba(3, 25, 51, .52);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .18);
}

.coverage-map-canvas {
  width: 100%;
  height: 390px;
  overflow: hidden;
  background: #edf4f1;
  border-radius: 16px;
}

.coverage-map-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 11px;
}
.coverage-map-locations { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%; }
.coverage-map-locations button { min-height:38px;padding:7px 9px;color:#dff4ef;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.2);border-radius:10px;font-size:9px;font-weight:800;cursor:pointer;transition:.2s ease; }
.coverage-map-locations button:hover,.coverage-map-locations button.active { color:#041b38;background:#9bd431;border-color:#9bd431;box-shadow:0 8px 20px rgba(155,212,49,.16); }
.coverage-map-locations button:first-child { grid-column:1/-1; }
.coverage-map .leaflet-control-zoom a { color:#06264e;background:#fff; }
.coverage-map .leaflet-control-attribution { font-size:7px; }

.coverage-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.coverage-map-legend span {
  padding: 5px 9px;
  color: #eaffcf;
  background: rgba(155, 212, 49, .12);
  border: 1px solid rgba(155, 212, 49, .4);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.coverage-map-open {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: #041b38;
  background: #9bd431;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.coverage-map-label {
  padding: 4px 7px!important;
  color: #041b38!important;
  background: #fff!important;
  border: 1px solid rgba(4, 27, 56, .18)!important;
  border-radius: 7px!important;
  box-shadow: 0 5px 14px rgba(4, 27, 56, .16)!important;
  font: 800 10px/1.1 Inter, sans-serif!important;
}

.coverage-map-label:before { display: none!important; }
.coverage-map-label-hq { color:#fff!important;background:#245700!important;border-color:#9bd431!important;font-size:11px!important;box-shadow:0 7px 18px rgba(36,87,0,.3)!important; }
.coverage-zone-hq { filter:drop-shadow(0 0 5px rgba(155,212,49,.9)); }
.coverage-hq-halo { animation:coverage-hq-pulse 2.4s ease-out infinite;transform-box:fill-box;transform-origin:center; }
@keyframes coverage-hq-pulse { 0%,100%{opacity:.4;transform:scale(.85)} 50%{opacity:.9;transform:scale(1.12)} }
.coverage-map-primary { display:flex;align-items:center;gap:9px;margin-top:11px;padding:9px 11px;color:#eaffcf;background:linear-gradient(135deg,rgba(155,212,49,.2),rgba(32,183,185,.12));border:1px solid rgba(155,212,49,.45);border-radius:12px;font-size:10px; }
.coverage-map-primary i { width:10px;height:10px;flex:0 0 10px;background:#9bd431;border:2px solid #245700;border-radius:50%;box-shadow:0 0 0 5px rgba(155,212,49,.14); }
.coverage-map-primary strong { color:#fff;font-size:11px; }

.coverage-map-dialog {
  width: min(920px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .4);
}

.coverage-map-dialog::backdrop { background: rgba(1, 16, 30, .78); backdrop-filter: blur(6px); }
.coverage-map-dialog-head { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;color:#fff;background:#06264e; }
.coverage-map-dialog-head h2 { margin:0;font-size:23px;line-height:1.15; }
.coverage-map-dialog-head p { margin:4px 0 0;color:#c5d8df;font-size:11px; }
.coverage-map-close { width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:50%;font-size:23px;cursor:pointer; }
.coverage-map-expanded { width:100%;height:min(68vh,620px);background:#edf4f1; }
.coverage-map-dialog-legend { display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px 18px;color:#3f5966;font-size:11px; }
.coverage-map-dialog-legend span { display:flex;align-items:center;gap:6px; }
.coverage-map-dialog-legend i { width:10px;height:10px;background:#9bd431;border:2px solid #5f9700;border-radius:50%; }
.coverage-map-dialog { position:fixed;z-index:9999;inset:0;width:auto;max-width:none;display:grid;place-items:center;padding:14px;overflow:auto;background:rgba(1,16,30,.8);border:0;border-radius:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease;backdrop-filter:blur(6px); }
.coverage-map-dialog:target { opacity:1;visibility:visible;pointer-events:auto; }
.coverage-map-dialog-panel { position:relative;width:min(920px,100%);overflow:hidden;background:#fff;border-radius:24px;box-shadow:0 30px 100px rgba(0,0,0,.4); }
.coverage-map-backdrop { position:absolute;inset:0;cursor:default; }
.coverage-map-close { text-decoration:none; }

@media (max-width: 1000px) {
  .areas-section .areas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .area-checker {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .areas-section {
    padding-block: 48px;
  }

  .areas-section .areas-grid {
    grid-template-columns: 1fr;
    width: min(100% - 28px, var(--container));
    gap: 30px;
  }

  .coverage-map {
    padding: 9px 9px 12px;
    border-radius: 20px;
  }

  .coverage-map-canvas {
    height: 390px;
    border-radius: 14px;
  }

  .coverage-map-actions { align-items:stretch;flex-direction:column; }
  .coverage-map-open { width:100%;min-height:44px;outline-offset:3px; }
  .coverage-map-open:focus:not(:focus-visible) { outline:none; }
  .coverage-map-dialog { padding:8px; }
  .coverage-map-dialog-panel { border-radius:18px; }
  .coverage-map-dialog-head { padding:16px; }
  .coverage-map-dialog-head h2 { font-size:19px; }
  .coverage-map-expanded { height:62vh; }

  .areas-copy .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .areas-section h2 {
    margin: 15px 0 18px;
    font-size: clamp(34px, 10.5vw, 43px);
    line-height: 1.02;
  }

  .areas-section h2 span,.areas-section h2 em { display:block; }
  .areas-section h2 em { margin-top:5px; }

  .areas-copy > p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .location-chips {
    gap: 7px;
    margin-top: 20px;
  }

  .location-chips span {
    padding: 7px 11px;
    font-size: 10px;
  }

  .area-checker {
    grid-column: auto;
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 20px;
  }

  .area-checker label {
    font-size: 18px;
    line-height: 1.25;
  }

  .area-checker > p {
    margin: 7px 0 17px;
    line-height: 1.55;
  }

  .area-checker .input-row {
    flex-direction: column;
    gap: 10px;
  }

  .area-checker .input-row input,
  .area-checker .input-row button {
    width: 100%;
    height: 50px;
    border-radius: 999px;
  }

  .area-checker .input-row button {
    min-height: 50px;
  }

  .area-checker .form-result {
    min-height: 0;
    margin-top: 10px;
  }
}

@media (max-width: 820px) {
  .hero-media {
    background-image: url("/assets/images/technology/hero-facade-mobile.webp");
  }
}

/* Compact portrait feature imagery on phones without affecting desktop crops. */
@media (max-width: 767px) {
  .technology-visual img[src*="technology-facade-cleaning-system"] {
    width: 100%;
    height: clamp(340px, 100vw, 380px);
    min-height: 0;
    max-height: 380px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 56%;
  }

  .technology-visual::before {
    inset: 8px -8px -8px 8px;
  }

  .technology-visual .tech-badge {
    top: 14px;
    right: auto;
    bottom: auto;
    left: 14px;
    width: 128px;
    padding: 12px 13px;
    border-radius: 11px;
  }

  .technology-visual .tech-badge small {
    margin-bottom: 5px;
    font-size: 7px;
    line-height: 1.25;
  }

  .technology-visual .tech-badge strong {
    font-size: 14px;
    line-height: 1.05;
  }

  .why-visual img {
    width: 100%;
    height: clamp(250px, 78vw, 340px);
    min-height: 0;
    max-height: 340px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 44%;
  }
}
