/**
 * Whole-islands map — /map/. Frames the Leaflet canvas and styles the verdict
 * filter chips and marker popups to match the rest of the site.
 */

.di-map {
	height: 62vh;
	min-height: 440px;
	width: 100%;
	border-radius: var(--r-card, 14px);
	overflow: hidden;
	border: 1px solid var(--hairline);
	background: var(--surface-muted);
	z-index: 0; /* keep Leaflet panes under the site header */
}
.di-map__note { margin-top: var(--sp-2); color: var(--text-muted); }

/* ---- verdict filter ---------------------------------------------------- */
.di-mapfilter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: var(--sp-6) 0 var(--sp-4);
}
.di-mapchip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-muted);
	font-size: var(--fs-sm, .9rem);
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.di-mapchip.is-on { color: var(--ink); border-color: var(--ink); }
.di-mapchip:not(.is-on) { opacity: .55; }
.di-mapchip:not(.is-on) .di-mapdot { opacity: .35; }

.di-mapdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.di-mapdot--buy    { background: #1f8a56; }
.di-mapdot--watch  { background: #c9922b; }
.di-mapdot--skip   { background: #c0453b; }
.di-mapdot--review { background: #8a8f98; }

/* ---- popups ------------------------------------------------------------ */
.di-mappop { display: flex; flex-direction: column; gap: 3px; min-width: 160px; }
.di-mappop__meta { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.di-mappop__name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; line-height: 1.2; }
.di-mappop__name:hover { color: var(--accent); }
.di-mappop__price { font-family: var(--font-mono); font-size: .9rem; color: var(--ink); }
.di-mappop__verdict {
	align-self: flex-start;
	margin-top: 4px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.di-mappop__verdict--Buy    { background: var(--positive-soft); color: var(--positive); }
.di-mappop__verdict--Watch  { background: var(--caution-soft); color: var(--caution); }
.di-mappop__verdict--Skip   { background: var(--negative-soft); color: var(--negative); }
.di-mappop__verdict--review { background: var(--surface-muted); color: var(--text-muted); }
.di-mappop__cta { margin-top: 6px; font-size: .85rem; color: var(--accent); text-decoration: none; font-weight: 600; }

/* Leaflet popup chrome, softened to match the site. */
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-pop, 0 12px 30px rgba(0,0,0,.16)); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-container { font: inherit; }

@media (max-width: 600px) {
	.di-map { height: 68vh; min-height: 380px; }
}
