/* City map & service area ------------------------------------------------
   Loaded only on pages that actually use this element (clsElement collects
   per-page assets), so it costs nothing on the rest of the site. */

.cm-map {
  height: 100%;
  min-height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;              /* clips the iframe to the rounded corner */
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  background: var(--off);
  line-height: 0;                /* kills the inline-frame descender gap */
}
.cm-map iframe { display: block; width: 100%; height: 100%; min-height: 260px; }

.cm-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.cm-panel h3 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--ink);
  margin: 0;
}
.cm-panel p { color: var(--body); font-size: .95rem; line-height: 1.65; margin: 0; }

/* The postcode list can run long, so it gets its own quiet block that wraps
   cleanly instead of turning into a wall of text. */
.cm-codes {
  font-size: .88rem !important;
  color: var(--body);
  background: var(--off);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  word-spacing: .12em;
  line-height: 1.8 !important;
  max-height: 190px;
  overflow-y: auto;
}

.cm-cta {
  margin-top: auto;              /* pins the CTA to the panel's bottom */
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
}
.cm-cta h4 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}
.cm-cta .btn { margin-top: .3rem; }

.sec-dark .cm-panel { background: var(--dark-2); border-color: var(--dark-line); }
.sec-dark .cm-panel h3, .sec-dark .cm-cta h4 { color: #fff; }
.sec-dark .cm-panel p { color: var(--on-dark); }
.sec-dark .cm-codes { background: var(--dark-3); border-color: var(--dark-line); color: var(--on-dark); }
.sec-dark .cm-cta { border-top-color: var(--dark-line); }

@media (max-width: 991.98px) {
  .cm-map { min-height: 300px; }
  .cm-panel { padding: 1.6rem; }
}
