/* Directory map + list experience (Phase 2). Nunito inherited from the theme styles. */
.nh-directory { --nh-green:#2f7d4f; --nh-ink:#1c2b22; --nh-line:#e4e7e2; }
.nh-directory__searchbar { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; background:#fff; border:1px solid var(--nh-line); border-radius:22px; padding:14px; margin-bottom:12px; }
.nh-directory__searchbar .nh-field { display:flex; flex-direction:column; gap:4px; flex:1 1 160px; }
.nh-directory__searchbar label { font-size:12px; font-weight:700; color:#5a6b60; }
.nh-directory__searchbar input, .nh-directory__searchbar select { padding:10px 12px; border:1px solid var(--nh-line); border-radius:9px; font:inherit; }
.nh-directory__searchbar .nh-dbtn--primary, .nh-directory__searchbar .nh-dbtn--ghost { align-self:flex-end; min-height:42px; }
.nh-directory__filters { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin:0 0 8px; font-size:14px; }
.nh-directory__filters label { display:inline-flex; gap:6px; align-items:center; }
.nh-directory__count { color:#5a6b60; font-size:14px; margin:0 0 10px; }
.nh-directory__notice { margin:0 0 8px; padding:10px 13px; border:1px solid #edc4b9; border-radius:14px; background:#fff4ef; color:#7f4035; font-size:14px; }

/* Two-column layout: list + sticky map */
.nh-directory__split { display:grid; grid-template-columns:minmax(330px,.9fr) minmax(440px,1.1fr); gap:20px; align-items:start; }
.nh-directory__list { display:flex; flex-direction:column; gap:12px; max-height:72vh; overflow:auto; padding:2px 6px 2px 2px; }
.nh-directory__mapwrap { position:sticky; top:16px; }
#nh-dir-map { width:100%; height:72vh; min-height:540px; border-radius:22px; border:1px solid var(--nh-line); overflow:hidden; z-index:0; }

.nh-dir-toggle { display:none; gap:6px; margin-bottom:12px; }
.nh-dir-toggle button { flex:1; padding:10px; border:1px solid var(--nh-line); background:#fff; border-radius:9px; font:inherit; font-weight:700; cursor:pointer; }
.nh-dir-toggle button.is-active { background:var(--nh-green); color:#fff; border-color:var(--nh-green); }

/* Cards */
.nh-dcard { background:#fff; border:1px solid var(--nh-line); border-radius:22px; padding:17px; cursor:pointer; transition:border-color .15s, box-shadow .15s, transform .15s; }
.nh-dcard:hover, .nh-dcard:focus-visible, .nh-dcard.is-active { border-color:var(--nh-green); box-shadow:0 12px 26px rgba(47,125,79,.12); transform:translateY(-1px); outline:none; }
.nh-dcard__head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.nh-dcard__number { display:inline-grid; place-items:center; width:27px; height:27px; flex:0 0 27px; border-radius:50%; background:#e6f4df; color:#165f3d; font-size:12px; font-weight:900; }
.nh-dcard__title h3 { margin:0 0 2px; font-size:17px; }
.nh-dcard__title h3 a { color:var(--nh-ink); text-decoration:none; }
.nh-dcard__title h3 a:hover { text-decoration:underline; }
.nh-dcard__meta { margin:0; color:#5a6b60; font-size:13px; }
.nh-dcard__services { display:flex; flex-wrap:wrap; gap:7px; margin:13px 0 11px; }
.nh-dservice { display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:3px 9px 3px 3px; border-radius:13px; background:#f1f6ed; color:#285c3c; cursor:default; font-size:12px; font-weight:800; line-height:1.1; }
.nh-dservice__icon { display:block; width:32px; height:32px; max-width:100%; object-fit:contain; border-radius:10px; flex:0 0 auto; }
.nh-dservice__label { white-space:nowrap; }
.nh-dcard__rating { background:#fff7e6; color:#946200; border-radius:8px; padding:2px 8px; font-weight:800; font-size:13px; white-space:nowrap; }
.nh-dcard__chips { display:flex; flex-wrap:wrap; gap:6px; margin:11px 0; }
.nh-dchip { font-size:12px; font-weight:700; background:#f1f4f1; color:#3a4a40; border-radius:20px; padding:3px 10px; }
.nh-dchip--open { background:#e6f5ec; color:#1d7a45; }
.nh-dchip--closed { background:#fff0ed; border:1px solid #efb4ab; color:#b54435; }
.nh-dchip--hours { background:#f3f5f2; border:1px solid #d8dfd8; color:#607166; }
.nh-dchip--demo { background:#eef0ff; color:#3b4a99; }
.nh-dcard__actions { display:flex; flex-wrap:wrap; gap:8px; }
.nh-dbtn { display:inline-flex; align-items:center; justify-content:center; min-height:42px; box-sizing:border-box; padding:8px 13px; border-radius:12px; border:1px solid var(--nh-line); background:#fff; color:var(--nh-ink); font-weight:700; font-size:14px; text-decoration:none; }
.nh-dbtn:hover { border-color:var(--nh-green); }
.nh-dbtn--primary { background:var(--nh-green); border-color:var(--nh-green); color:#fff; }
.nh-dbtn--profile { background:#0b4a34; border-color:#0b4a34; color:#fff; }
.nh-dbtn--profile:hover { background:#083b29; border-color:#083b29; color:#fff; }
.nh-dbtn--ghost { color:#5a6b60; }
.nh-pop-actions a { color:var(--nh-green); font-weight:700; text-decoration:none; }
.nh-pop-services { display:flex; flex-wrap:wrap; gap:5px; margin:9px 0; }
.nh-pop-service { display:inline-flex; align-items:center; gap:4px; min-height:29px; padding:2px 7px 2px 2px; border-radius:10px; background:#e9f5e7; color:#236b45; cursor:default; font-size:11px; font-weight:700; line-height:1; }
.nh-pop-service__icon { display:block; width:25px; height:25px; max-width:100%; object-fit:contain; border-radius:8px; flex:0 0 auto; }
.nh-pop-open { color:#1d7a45; font-weight:700; }
.nh-pop-closed { color:#98493f; font-weight:700; }
.nh-pop-unknown { color:#607166; font-weight:700; }

/* Branded map treatment and numbered pins paired with result cards. */
#nh-dir-map { position:relative; background:#e9f0e8; }
#nh-dir-map .leaflet-tile-pane { filter: grayscale(.08) saturate(.82) hue-rotate(18deg) brightness(1.02) contrast(1.16); }
.nh-dir-marker { background:transparent; border:0; }
.nh-dir-marker__number { display:grid; place-items:center; width:38px; height:38px; border:2px solid #fff; border-radius:50% 50% 50% 5px; background:#0b4a34; color:#fff; font-family:inherit; font-size:14px; font-weight:900; line-height:1; box-shadow:0 5px 14px rgba(9,54,31,.34); transform:rotate(-45deg); transition:transform .15s, background .15s; }
.nh-dir-marker__number > span { transform:rotate(45deg); }
.nh-dir-marker.is-active .nh-dir-marker__number, .nh-dir-marker:hover .nh-dir-marker__number { background:#76aa45; transform:rotate(-45deg) scale(1.12); }
.nh-directory .leaflet-control-zoom a { background:#0b4a34; color:#f4fbf4; border-color:rgba(168,203,100,.4); }
.nh-directory .leaflet-control-attribution { background:rgba(247,250,245,.92); color:#3f654e; border-radius:999px 0 0 0; padding:3px 7px; }
.nh-directory .leaflet-control-attribution a { color:#477a4f; }
.nh-directory__nearby { color: var(--nh-green); font-weight: 700; }

.nh-directory__empty { background:#fff; border:1px dashed var(--nh-line); border-radius:14px; padding:28px; text-align:center; color:#5a6b60; }

@media (max-width: 860px) {
	.nh-directory__split { grid-template-columns: 1fr; }
	.nh-dir-toggle { display:flex; }
	.nh-directory__mapwrap { position:static; }
	.nh-directory__list { max-height:none; padding-right:0; }
	#nh-dir-map { height:320px; min-height:0; }
	.nh-directory[data-view="list"] .nh-directory__mapwrap { display:block; }
	.nh-directory[data-view="map"] .nh-directory__list { display:none; }
}
