/* Tnuva store locator - Leaflet card.
   Card geometry mirrors the Squarespace build: 1165 wide at x370, 441 tall. */

.tnuva-page--store-locator .tnp-body,
.tnuva-page--stores .tnp-body { background: var(--tnp-cream); padding-bottom: calc(28.34px + 4.5594vw); }

.tnl {
	width: min(1165px,83.2142vw);
	max-width: 100%;
	height: calc(108.48px + 17.4541vw);
	min-height: 460px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: min(399.99px,28.571vw) minmax(0, 1fr);
	grid-template-rows: auto auto auto minmax(0, 1fr);
	border: 1px solid #E3E3E3;
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
	font-family: var(--tnp-body);
	color: var(--tnp-navy);
}

.tnl-panel {
	grid-column: 1;
	grid-row: 1 / span 4;
	display: grid;
	grid-template-rows: auto auto auto minmax(0, 1fr);
	min-height: 0;
	border-right: 1px solid #E8E8E8;
	background: #fff;
}

.tnuva-page .tnp-body .tnl-title {
	margin: 0;
	padding: calc(5.41px + 0.8708vw) 24px 14px;
	max-width: none;
	font-family: var(--tnp-head);
	font-size: 22px !important;
	line-height: 1.2;
	font-weight: 700;
	color: #1A1A1A;
	text-align: left;
}

.tnl-search {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0 24px calc(3.94px + 0.6333vw);
	gap: 6px;
}

.tnuva-page .tnl-search input[type="search"] {
	flex: 1 1 0%;
	min-width: 0;
	width: auto;
	height: 36px;
	margin: 0;
	padding: 0 10px 0 30px;
	border: 1px solid #DCDCDC;
	border-radius: 4px;
	background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 8px center / 14px 14px;
	font-family: var(--tnp-body);
	font-size: 13px;
	color: var(--tnp-navy);
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.tnuva-page .tnl-search button {
	flex: 0 0 auto;
	min-width: 84px;
	height: 36px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-family: var(--tnp-head);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.tnuva-page .tnl-search button:hover { background: var(--tnp-red); }

.tnl-count {
	padding: 8px 24px 10px;
	border-bottom: 1px solid #ECECEC;
	font-size: 12px;
	color: #8A8A8A;
}

.tnuva-page .tnp-body ul.tnl-list {
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	min-height: 0;
	max-width: none;
}

.tnuva-page .tnp-body .tnl-item {
	margin: 0;
	padding: calc(3.94px + 0.6333vw) 24px;
	border-bottom: 1px solid #ECECEC;
	cursor: pointer;
	list-style: none;
}

.tnuva-page .tnp-body .tnl-item:hover { background: rgba(242, 236, 217, .55); }
.tnuva-page .tnp-body .tnl-item.is-on { background: var(--tnp-cream); box-shadow: inset 3px 0 0 var(--tnp-red); }

.tnl-name {
	display: block;
	margin-bottom: 7px;
	font-family: var(--tnp-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: #1A1A1A;
}

.tnl-addr { display: block; font-size: 12.5px; line-height: 1.5; color: #2E6FBF; }

.tnl-dist { display: block; margin-top: 4px; font-size: 11px; color: rgba(8, 22, 58, .55); }

.tnuva-page .tnp-body .tnl-empty {
	padding: calc(4.92px + 0.7916vw);
	font-size: 13px;
	color: rgba(8, 22, 58, .6);
	list-style: none;
}

.tnl-map { grid-column: 2; grid-row: 1 / span 4; min-height: 0; }

/* pins */

.tnl-pin { background: none; border: 0; }
.tnl-pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.tnl-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(230, 42, 0, .9);
	border: 3px solid rgba(255, 255, 255, .9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	color: #fff;
	font-family: var(--tnp-head);
	font-size: 13px;
	font-weight: 700;
}

.tnl-popup .leaflet-popup-content-wrapper { border-radius: 4px; }

.tnl-popup .leaflet-popup-content {
	margin: 12px 14px;
	font-family: var(--tnp-body);
	font-size: 12px;
	line-height: 1.55;
	color: var(--tnp-navy);
}

.tnl-popup .leaflet-popup-content strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--tnp-head);
	font-size: 14px;
	color: #111;
}

.tnl-popup .leaflet-popup-content span { display: block; }
.tnl-popup .leaflet-popup-content a { display: inline-block; margin-top: 6px; color: var(--tnp-red); text-decoration: none; }
.tnl-popup .leaflet-popup-content a.tnl-dir { margin-left: 12px; }

.tnl .leaflet-control-zoom a { color: var(--tnp-navy); }
.tnl .leaflet-container { font-family: var(--tnp-body); background: #EAEAEA; }

/* Mute the base map so the red pins carry the page. */
.tnl .leaflet-tile-pane {
	filter: grayscale(.45) saturate(.75) brightness(1.06) contrast(.92);
}

@media (max-width: 1024px) {
	.tnl {
		width: auto;
		height: auto;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 340px;
	}

	.tnl-panel { grid-column: 1; grid-row: 1; border-right: 0; border-bottom: 1px solid rgba(8, 22, 58, .12); }
	.tnuva-page .tnp-body ul.tnl-list { max-height: 360px; }
	.tnl-map { grid-column: 1; grid-row: 2; }
}
