/* Company map (includes/company_map.php): shop pin, shaded service-area circle, towns, hours. Works inside the CRM and
   portal (style.css colors), the public website (website.css --w-* colors) and the shareable /area page. */
.cmap { --cmap: var(--w-brand, var(--blue, #1E90FF)); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line, #D9DBDE); border-radius: var(--w-radius, 14px); overflow: hidden; background: #fff; color: var(--w-ink, var(--ink, #111)); text-align: left; }
.cmap-map { min-height: 340px; height: 100%; background: #e9ebee; z-index: 0; }
.cmap-side { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cmap-title { margin: 0; font-size: 1.05rem; }
.cmap-reach { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-reach-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* the text in a flex row needs its own box for the … */
.cmap-ring { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cmap); background: color-mix(in srgb, var(--cmap) 18%, transparent); }
.cmap-addr { margin: 0; color: var(--w-muted, var(--muted, #6A6E74)); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: .9rem; }
.cmap-towns li { position: relative; padding-left: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-towns li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--cmap); }
.cmap-hours p { margin: 0 0 4px; white-space: nowrap; }
.cmap-hours table { border-collapse: collapse; font-size: .85rem; width: auto; }
.cmap-hours td { padding: 1px 14px 1px 0; border: 0; white-space: nowrap; background: none; }
.cmap-hours td:first-child { color: var(--w-muted, var(--muted, #6A6E74)); }
.cmap-open { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 650; background: #f3e3e1; color: #9b2c22; }
.cmap-open.on { background: #e1f3e4; color: #1d6b2c; }
.cmap-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.cmap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: var(--w-btn-radius, 999px); background: var(--cmap); color: #fff !important; font-weight: 650; text-decoration: none !important; white-space: nowrap; }
.cmap-btn.quiet { background: transparent; color: var(--cmap) !important; box-shadow: inset 0 0 0 1px var(--cmap); }
.cmap-pin { background: none; border: 0; }
.cmap-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--cmap, #1E90FF); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); border: 3px solid #fff; box-sizing: border-box; }
.cmap .leaflet-container { font: inherit; }
.cmap-compact { grid-template-columns: minmax(0, 1fr); }
.cmap-compact .cmap-map { min-height: 220px; height: 220px; }
.cmap-copy { display: flex; gap: 8px; }
.cmap-copy input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 800px) {
  .cmap { grid-template-columns: minmax(0, 1fr); }
  .cmap-map { min-height: 0; height: 240px; }
}
/* Request a Quote (request.php) and the shareable page (area.php): the map card under / as the page card. */
.login:has(.cmap-card) { align-content: center; row-gap: 16px; grid-template-columns: minmax(0, 1fr); }
.login .cmap-card { min-width: 0; }
.login .cmap-card { width: min(420px, 100%); }
.login .cmap-card h2 { margin: 0 0 10px; }
.login .cmap-card.cmap-wide { width: min(880px, 100%); }
.cmap-embed { margin: 0; padding: 0; background: transparent; }
.cmap-embed .cmap { border-radius: 12px; }
.cmap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; min-width: 0; }
.cmap-head h1 { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-head a { white-space: nowrap; }
