/* Distributor map: street map with pins on the left, the list of locations on the right */
.dmap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; height: 640px; border: 1px solid #d5dbe4; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(4, 40, 120, .1); }
.dmap-map { position: relative; z-index: 0; height: 100%; background: #e8eef4; }
.dmap-list { height: 100%; overflow-y: auto; padding: 6px; background: #f1f3f6; display: grid; gap: 6px; align-content: start; }
.dmap-card { padding: 18px 20px 16px; border: 1px solid #d5dbe4; background: #fff; cursor: pointer; outline: none; font-family: Arial, Helvetica, sans-serif; }
.dmap-card.on, .dmap-card:focus-visible { border-color: #1f8bff; box-shadow: inset 4px 0 0 #1f8bff; }
.dmap-logo { margin: 6px 0 16px; color: #3f8fb5; }
.dmap-logo svg { display: block; width: 100%; max-width: 250px; height: 34px; }
.dmap-card h3 { margin: 0 0 6px; font: 700 17px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0; color: #111; }
.dmap-card p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: #222; }
.dmap-row { display: block; position: relative; margin: 0 0 6px; padding-left: 20px; font-size: 15px; color: #0a6fd6; text-decoration: none; word-break: break-word; }
.dmap-row:hover { text-decoration: underline; }
.dmap-row::before { content: ""; position: absolute; left: 0; top: .28em; width: 13px; height: 13px; background: #222; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.dmap-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round' d='M5 3h4l2 5-2.500 1.500a11 11 0 0 0 5 5L15 12l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.dmap-web { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.200 3 14.800 0 18M12 3c-3 3.200-3 14.800 0 18'/%3E%3C/g%3E%3C/svg%3E"); }
.dmap-mail { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.500'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/g%3E%3C/svg%3E"); }
.dmap-dir { display: inline-block; margin-top: 6px; padding: 4px 8px; border: 1px solid #c9ced6; border-radius: 3px; font-size: 13px; color: #222 !important; text-decoration: none; background: #fff; }
.dmap-dir:hover { background: #f1f3f6; }
.dmap-pin { background: none; border: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.dmap-pop b { display: block; font: 700 14px/1.3 Arial, Helvetica, sans-serif; color: #111; }
.dmap-pop span { display: block; margin-top: 2px; font: 13px/1.4 Arial, Helvetica, sans-serif; color: #333; }
.dmap .leaflet-container { font-family: Arial, Helvetica, sans-serif; }
.dmap .leaflet-container a { color: #0a6fd6; }
@media (max-width: 860px) {
  .dmap { grid-template-columns: 1fr; grid-template-rows: 380px auto; height: auto; }
  .dmap-list { height: auto; max-height: 520px; }
}

/* distributor logos */
.dmap-logo-img { display: block; max-width: 100%; max-height: 58px; width: auto; height: auto; margin: 4px 0 14px; }
.pg-state-logo { display: block; max-width: 180px; max-height: 44px; width: auto; height: auto; margin: 0 0 10px; }

.pg-state h3::before { display: none; }

/* square logos get a little more height */
.pg-state-logo-sq { max-height: 72px; border-radius: 6px; }
.dmap-logo-img[src*="ipd-scientific"] { max-height: 84px; border-radius: 6px; }

/* IPD Scientific: square mark with the name and tagline beside it */
.ipd-lockup { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.ipd-lockup img { flex: none; width: 54px; height: 54px; border-radius: 8px; display: block; }
.ipd-lockup b { display: block; font: 700 20px/1.15 "Inter", "Segoe UI", Arial, sans-serif; color: #0f172a; letter-spacing: 0; }
.ipd-lockup i { display: block; margin-top: 3px; font: 400 13px/1.2 "Inter", "Segoe UI", Arial, sans-serif; font-style: normal; color: #5a6677; }

/* Thorp Controls logo fills the card width in the state list */
.pg-state-logo[src*="thorp-controls"] { width: 100%; max-width: 100%; max-height: none; height: auto; }
