/**
 * Living Earth network map 0.4.0. Colours of the marketplace:
 * navy #203b5f, lime #cadb36, orange #d9622b.
 */
.lem-map-main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
.lem-map-main h1 { color: #203b5f; margin: 0 0 .25rem; }
.lem-map__lead { color: #546071; max-width: 70ch; }
.lem-map__counts { font-weight: 600; color: #203b5f; margin: .5rem 0 .75rem; }
.lem-map__canvas { height: min(70vh, 640px); min-height: 380px; border-radius: 14px; border: 1px solid #d9dee6; background: #e8eef4; z-index: 0; }
.lem-map--app .lem-map__canvas { height: min(68vh, 620px); }
.lem-map__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 10px 0 18px; font-size: .9rem; color: #546071; }
.lem-map__legend li { display: inline-flex; align-items: center; gap: 8px; }
.lem-map__dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; }
.lem-map__dot--town { background: #cadb36; border: 2px solid #203b5f; }
.lem-map__dot--exact { background: #fff; border: 4px solid #cadb36; box-shadow: 0 0 0 1px #203b5f; width: 16px; height: 16px; }
.lem-map__dot--place { background: #203b5f; border-radius: 4px; }
.lem-map__h { color: #203b5f; font-size: 1.15rem; margin: 18px 0 8px; }
.lem-map__towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lem-map__town {
	width: 100%; min-height: 56px; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
	border: 1px solid #d9dee6; border-left: 4px solid #cadb36; border-radius: 10px; background: #fff; font: inherit; color: #16243a; cursor: pointer;
}
.lem-map__town:hover { border-color: #203b5f; }
.lem-map__town span { color: #546071; font-size: .88rem; }
.lem-map__cta { margin: 28px 0 0; padding: 22px; border-radius: 14px; background: #203b5f; color: #fff; }
.lem-map__cta h2 { color: #cadb36; margin: 0 0 .4rem; }
.lem-map__cta p { color: #e6ecf3; max-width: 70ch; }
.lem-map__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #cadb36; color: #203b5f; font-weight: 800; text-decoration: none; margin: 4px 8px 4px 0; }
.lem-map__btn--quiet { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.lem-map__btn:focus-visible, .lem-map__town:focus-visible, .lem-map__share:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }

/* Pins */
.lem-map__pin { display: flex !important; align-items: center; justify-content: center; font: 800 14px/1 system-ui, sans-serif; }
.lem-map__pin--town { background: #cadb36; color: #203b5f; border: 2px solid #203b5f; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.lem-map__pin--exact { background: #fff; border: 5px solid #cadb36; border-radius: 50%; box-shadow: 0 0 0 1px #203b5f, 0 2px 4px rgba(0, 0, 0, .3); }
.lem-map__pin--place { background: #203b5f; color: #cadb36; border-radius: 8px 8px 8px 2px; transform: rotate(0); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); border: 2px solid #fff; }

/* Cards in popups */
.lem-map__popup { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #16243a; }
.lem-map__popup h3 { margin: 0 0 4px; color: #203b5f; font-size: 1rem; }
.lem-map__hint { color: #546071; font-size: .82rem; margin: 0 0 8px !important; }
.lem-map__kind { color: #546071; font-size: .8rem; margin: 0 !important; text-transform: uppercase; letter-spacing: .03em; }
.lem-map__vendor { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid #e3e7ee; }
.lem-map__vendor img, .lem-map__initial { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.lem-map__initial { display: flex; align-items: center; justify-content: center; background: #cadb36; color: #203b5f; font-weight: 800; font-size: 1.4rem; }
.lem-map__name { font-weight: 800; margin: 0 0 2px !important; color: #203b5f; }
.lem-map__line { margin: 0 0 2px !important; font-size: .88rem; }
.lem-map__addr { white-space: pre-line; color: #546071; }
.lem-map__new { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #fde7dc; color: #b04a1c; font-size: .75rem; }
.lem-map__team { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #eceff2; color: #59646f; font-size: .75rem; }
.lem-map__links { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 4px 0 0 !important; }
.lem-map__go { color: #1d4f91 !important; font-weight: 700; }
.lem-map__share { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .85rem; color: #1d4f91; text-decoration: underline; cursor: pointer; }
.lem-map__copied { font-size: .82rem; color: #1f6b35; margin-left: 6px; }
.leaflet-popup-content { margin: 12px 14px; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .lem-map--app .lem-map__town { background: #152131; color: #e8edf3; border-color: #2d3d52; }
}

/* Home page map and "Near me" (0.9.0) */
.lem-map--home .lem-map__canvas { height: clamp(320px, 52vh, 480px); min-height: 320px; }
.lem-map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
.lem-map__bar .lem-map__counts { margin: 0; }
.lem-map__near {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border: 2px solid #203b5f; border-radius: 10px; background: #fff; color: #203b5f; font: inherit; font-weight: 800; cursor: pointer;
}
.lem-map__near:hover { background: #f1f6cf; }
.lem-map__near:disabled { opacity: .6; cursor: progress; }
.lem-map__near:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }
.lem-map__nearest { margin: 12px 0 0; padding: 14px 16px; border: 1px solid #d9dee6; border-left: 6px solid #cadb36; border-radius: 12px; background: #fff; }
.lem-map__nearest h3 { margin: 0 0 6px; color: #203b5f; font-size: 1rem; }
.lem-map__nearest p { margin: 0; }
.lem-map__near-list { margin: 0 0 8px; padding-left: 1.3em; display: grid; gap: 6px; }
.lem-map__near-list a, .lem-map__near-list button { font-weight: 700; color: #203b5f; }
.lem-map__near-list span { display: block; color: #546071; font-size: .9rem; }
.lem-map__more { margin: 10px 0 0; }
.lem-map__more a { color: #203b5f; font-weight: 700; text-underline-offset: 3px; }
