/* Dipol dealer map (#21406). Colours and shadows follow the Divi layout "boats". */
.dpm { --dpm-navy: #003459; --dpm-accent: #2F5D7C; --dpm-ink: #111827; --dpm-muted: #6B7280; --dpm-line: #E5E7EB; --dpm-bg: #F3F5F7;
  --dpm-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; --dpm-h: clamp(620px, 78vh, 860px);
  color: var(--dpm-ink); font-size: 15px; line-height: 1.5; }
.dpm *, .dpm *::before, .dpm *::after { box-sizing: border-box; }
.dpm .dpm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search bar */
.dpm .dpm-bar { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.dpm .dpm-search { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 8px; box-shadow: var(--dpm-shadow); padding: 6px 6px 6px 18px; margin: 0; }
.dpm .dpm-q { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; font: inherit; font-size: 16px; color: var(--dpm-ink); padding: 12px 10px !important; box-shadow: none !important; }
.dpm .dpm-q::placeholder { color: var(--dpm-muted); }
.dpm .dpm-search:focus-within { box-shadow: var(--dpm-shadow), 0 0 0 2px var(--dpm-accent); }
.dpm .dpm-go, .dpm .dpm-locate, .dpm .dpm-show { font: inherit; cursor: pointer; border: 0; border-radius: 6px; transition: background .2s ease, color .2s ease; }
.dpm .dpm-go { background: var(--dpm-navy); color: #fff; font-weight: 600; padding: 12px 26px; }
.dpm .dpm-go:hover { background: var(--dpm-accent); }
.dpm .dpm-locate { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--dpm-ink); font-weight: 500; padding: 0 22px; border-radius: 8px; box-shadow: var(--dpm-shadow); white-space: nowrap; }
.dpm .dpm-locate:hover { color: var(--dpm-accent); }

/* Country chips */
.dpm .dpm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dpm .dpm-chip { font: inherit; font-size: 14px; cursor: pointer; border: 1px solid var(--dpm-line); background: #fff; color: var(--dpm-ink); border-radius: 999px; padding: 6px 14px; transition: all .2s ease; }
.dpm .dpm-chip span { color: var(--dpm-muted); margin-left: 2px; }
.dpm .dpm-chip:hover { border-color: var(--dpm-accent); }
.dpm .dpm-chip.is-on { background: var(--dpm-navy); border-color: var(--dpm-navy); color: #fff; }
.dpm .dpm-chip.is-on span { color: rgba(255, 255, 255, .7); }

/* List + map */
.dpm .dpm-body { display: grid; grid-template-columns: 400px 1fr; height: var(--dpm-h); background: #fff; border-radius: 12px; box-shadow: var(--dpm-shadow); overflow: hidden; }
.dpm .dpm-side { overflow-y: auto; border-right: 1px solid var(--dpm-line); padding: 0 0 12px; position: relative; overscroll-behavior: contain; }
.dpm .dpm-status { position: sticky; top: 0; z-index: 2; background: #fff; margin: 0; padding: 16px 22px 12px !important; font-size: 13px; color: var(--dpm-muted); border-bottom: 1px solid var(--dpm-line); }
.dpm .dpm-status strong { color: var(--dpm-ink); }
.dpm ul.dpm-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.dpm .dpm-card { list-style: none; padding: 18px 22px 16px; border-bottom: 1px solid var(--dpm-line); border-left: 4px solid transparent; transition: background .2s ease, border-color .2s ease; }
.dpm .dpm-card[hidden] { display: none; }
.dpm .dpm-card:hover { background: #FAFBFC; }
.dpm .dpm-card.is-active { background: var(--dpm-bg); border-left-color: var(--dpm-accent); }
.dpm .dpm-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dpm .dpm-country { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dpm-accent); }
.dpm .dpm-dist { font-size: 12px; font-weight: 600; color: #fff; background: var(--dpm-navy); border-radius: 999px; padding: 1px 9px; }
.dpm .dpm-dist[hidden] { display: none; }
.dpm h4.dpm-name { font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--dpm-ink); padding: 0 0 2px; margin: 0; }
.dpm p.dpm-place { margin: 0 0 6px; padding: 0; font-size: 14px; color: var(--dpm-muted); }
.dpm p.dpm-addr { margin: 0 0 8px; padding: 0; font-size: 14px; }
.dpm ul.dpm-links { list-style: none !important; margin: 0 0 10px !important; padding: 0 !important; font-size: 14px; }
.dpm ul.dpm-links li { list-style: none; padding: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpm ul.dpm-links a { color: var(--dpm-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.dpm ul.dpm-links a:hover { color: var(--dpm-accent); text-decoration: underline; }
.dpm .dpm-actions { display: flex; gap: 10px; align-items: center; }
.dpm .dpm-show { background: var(--dpm-navy); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; }
.dpm .dpm-show:hover { background: var(--dpm-accent); }
.dpm a.dpm-route { font-size: 13px; font-weight: 600; color: var(--dpm-navy); text-decoration: none; padding: 6px 4px; }
.dpm a.dpm-route:hover { color: var(--dpm-accent); text-decoration: underline; }
.dpm .dpm-map { height: 100%; min-height: 300px; z-index: 0; background: #DDE6EC; }

/* Icons (inline SVG masks, no icon font needed) */
.dpm .dpm-ic { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; opacity: .75; }
.dpm .dpm-ic-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E"); width: 18px; height: 18px; flex-basis: 18px; color: var(--dpm-muted); }
.dpm .dpm-ic-loc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2.5' fill='black'/%3E%3Cpath d='M12 1v4M12 19v4M1 12h4M19 12h4'/%3E%3C/svg%3E"); }
.dpm .dpm-ic-tel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
.dpm .dpm-ic-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E"); }
.dpm .dpm-ic-web { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.7 2.8 4 6 4 9.5s-1.3 6.7-4 9.5c-2.7-2.8-4-6-4-9.5s1.3-6.7 4-9.5z'/%3E%3C/svg%3E"); }

/* Leaflet details */
.dpm .dpm-pin { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(17, 24, 39, .35)); }
.dpm .leaflet-container { font: inherit; font-size: 14px; }
.dpm .dpm-pop .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: var(--dpm-shadow); }
.dpm .dpm-pop .leaflet-popup-content { margin: 14px 18px; line-height: 1.55; }
.dpm .dpm-pop a { color: var(--dpm-accent); }
.dpm .leaflet-control-zoom a { color: var(--dpm-navy); }

/* Tablet and phone: map on top, list below */
@media (max-width: 980px) {
  .dpm .dpm-bar { flex-direction: column; }
  .dpm .dpm-locate { justify-content: center; padding: 14px 22px; }
  .dpm .dpm-body { display: flex; flex-direction: column-reverse; height: auto; }
  .dpm .dpm-map { height: 60vh; min-height: 360px; }
  .dpm .dpm-side { border-right: 0; max-height: 70vh; border-top: 1px solid var(--dpm-line); }
  .dpm .dpm-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .dpm .dpm-chip { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .dpm .dpm-search { padding-left: 12px; }
  .dpm .dpm-go { padding: 12px 16px; }
  .dpm .dpm-card { padding: 16px 16px 14px; }
}

/* vyrexConfigurator sets ::placeholder centred and lowercase on every page; undo that for the search field. */
.dpm .dpm-q::placeholder { text-align: left; text-transform: none; font-family: inherit; height: auto; line-height: normal; color: var(--dpm-muted); letter-spacing: 0; }
.dpm .dpm-q::-webkit-input-placeholder { text-align: left; text-transform: none; font-family: inherit; height: auto; line-height: normal; color: var(--dpm-muted); letter-spacing: 0; }
