.txc-map { display: grid; gap: 1rem; }
.txc-map__canvas {
	position: relative;
	height: var(--txc-map-h, 440px);
	border-radius: var(--txc-radius, 12px);
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 40%, rgba(11, 79, 216, .10) 0 6px, transparent 7px) 0 0 / 48px 48px,
		linear-gradient(135deg, var(--txc-surface-alt, #eef2f6), var(--txc-surface, #fff));
	isolation: isolate; /* keep Leaflet z-indexes inside the map */
}
.txc-map__placeholder {
	position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem;
	text-align: center; padding: 1rem;
}
.txc-map__placeholder p { margin: 0; font-weight: 600; }
.txc-map__canvas[aria-busy="true"] .txc-map__placeholder { opacity: .6; }
.txc-map__list summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; }
.txc-map__list dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1rem 1.5rem; margin: 1rem 0; }
.txc-map__list dt { font-weight: 700; grid-column: auto; }
.txc-map__list dd { margin: 0; }
.txc-map__list ul { list-style: none; margin: .25rem 0 0; padding: 0; }
.txc-map__list li span { color: var(--txc-muted, #5b6470); font-size: .875rem; }
.txc-map .leaflet-container { font: inherit; }
@media (prefers-reduced-motion: reduce) {
	.txc-map .leaflet-fade-anim .leaflet-popup, .txc-map .leaflet-zoom-anim .leaflet-zoom-animated { transition: none !important; }
}

/* Markers: one simple dot per client location, one large home-base marker. */
.txc-map-dot { background: none; border: 0; }
.txc-map-dot span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--txc-ink, #0A0F1C); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(7, 11, 22, .35); transition: transform .15s; }
.txc-map-dot:hover span, .txc-map-dot:focus-visible span { transform: scale(1.25); }
.txc-map-home { background: none; border: 0; }
.txc-map-home__halo { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--txc-accent, #3355FF) 22%, transparent); border: 2px solid color-mix(in srgb, var(--txc-accent, #3355FF) 45%, transparent); animation: txc-map-pulse 2.6s ease-out infinite; }
.txc-map-home__dot { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--txc-accent, #3355FF); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(7, 11, 22, .35); }
.txc-map-home__label.leaflet-tooltip { padding: .35rem .7rem; border: 0; border-radius: 999px; background: var(--txc-ink, #0A0F1C); color: #fff; font-weight: 700; font-size: .875rem; box-shadow: 0 6px 18px -6px rgba(7, 11, 22, .45); }
.txc-map-home__label.leaflet-tooltip::before { display: none; }
@keyframes txc-map-pulse { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.15); opacity: .55; } }
.txc-map-pop { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .2rem; }
.txc-map .leaflet-popup-content { margin: .8rem 1rem; line-height: 1.45; }
.txc-map .leaflet-popup-content-wrapper { border-radius: 14px; }
.txc-map-pop__sub { margin: .6rem 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--txc-muted, #5b6470); }
.txc-map__legend { padding-left: .5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: -.25rem 0 0; padding-right: 0; font-size: .875rem; color: var(--txc-muted, #5b6470); }
.txc-map__legend li { display: inline-flex; align-items: center; gap: .5rem; }
.txc-map__key { width: 12px; height: 12px; border-radius: 50%; background: var(--txc-ink, #0A0F1C); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--txc-border, #dfe4ec); }
.txc-map__key--home { width: 18px; height: 18px; background: var(--txc-accent, #3355FF); box-shadow: 0 0 0 2px #fff, 0 0 0 6px color-mix(in srgb, var(--txc-accent, #3355FF) 25%, transparent); }
@media (prefers-reduced-motion: reduce) {
	.txc-map-home__halo { animation: none; }
}
.txc-map .leaflet-popup-scrolled { border: 0; padding-right: .5rem; overscroll-behavior: contain; }
.txc-map .leaflet-popup-content-wrapper { box-shadow: 0 12px 30px -10px rgba(7, 11, 22, .35); }
.txc-map .leaflet-container a.leaflet-popup-close-button { width: 28px; height: 28px; font-size: 20px; line-height: 26px; top: 4px; right: 4px; }
.txc-map-pop a { display: inline-block; padding: .1rem 0; }
