/* [dfwspot_zone_directory] -- deliberately minimal/theme-agnostic, since this renders on whatever page/theme the site owner drops it into. */
.dfws-zdir{max-width:960px}
.dfws-zdir-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px}
.dfws-zdir-head .dfws-zdir-title{margin:0}
.dfws-zdir-prequalify{display:inline-block;padding:9px 18px;border:2px solid #3B5A7A;border-radius:8px;background:#fff;color:#3B5A7A;font-weight:800;font-size:14px;text-decoration:none;white-space:nowrap}
.dfws-zdir-prequalify:hover,.dfws-zdir-prequalify:focus{background:#3B5A7A;color:#fff}
.dfws-zdir-title{font-size:22px;font-weight:700;color:#16202B;margin:0 0 14px;line-height:1.25}

.dfws-zdir-tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));grid-auto-rows:1fr;gap:12px;margin-bottom:28px}
.dfws-zdir-tier-card{
	/* Full reset first -- the host theme's own global button CSS (seen live:
	   forced uppercase, altered line-height/height) was bleeding into this
	   card and pushing its content out of its own box into the section
	   below. Re-apply every property this card actually needs afterward,
	   nothing relies on inherited/default button styling anymore. */
	all:unset;
	box-sizing:border-box;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:6px;
	width:100%;
	height:100%;
	text-align:left;
	white-space:normal;
	line-height:normal;
	background:#fff;
	border:1px solid #e2e4e7;
	border-top:4px solid var(--dfws-zdir-tier-color,#646970);
	border-radius:10px;
	padding:14px 14px 12px;
	font-family:inherit;
	cursor:pointer;
	transition:box-shadow .15s ease,transform .15s ease;
}
.dfws-zdir-tier-card:hover{box-shadow:0 4px 14px rgba(22,32,43,.1);transform:translateY(-1px)}
.dfws-zdir-tier-card.active{box-shadow:0 0 0 2px var(--dfws-zdir-tier-color,#16202B) inset}
.dfws-zdir-tier-card[data-tier="flagship"]{--dfws-zdir-tier-color:#B8860B}
.dfws-zdir-tier-card[data-tier="premiere"]{--dfws-zdir-tier-color:#4C1D95}
.dfws-zdir-tier-card[data-tier="signature"]{--dfws-zdir-tier-color:#9D174D}
.dfws-zdir-tier-card[data-tier="select"]{--dfws-zdir-tier-color:#475569}
.dfws-zdir-tier-name{display:block;font-size:15px;font-weight:700;line-height:1.3;color:#16202B;text-transform:none}
.dfws-zdir-tier-desc{display:block;margin:0;font-size:12px;line-height:1.45;color:#646970;text-transform:none;flex:1}
.dfws-zdir-tier-count{display:block;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--dfws-zdir-tier-color,#646970)}

/* Above-the-fold "ready to mail" spotlight (Domain\PublicZoneDirectory::
   featured_zones()) -- deliberately NOT a tier color, its own brand-orange
   accent so it reads as "staff picked this right now," not a rank. */
.dfws-zdir-featured{margin-bottom:24px}
.dfws-zdir-featured-title{font-size:16px;font-weight:700;color:#16202B;margin:0 0 10px}
.dfws-zdir-featured-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.dfws-zdir-featured-card{display:flex;flex-direction:column;gap:4px;background:#fff8f0;border:1px solid #f4c892;border-left:4px solid #f47a20;border-radius:10px;padding:12px 14px}
.dfws-zdir-featured-badge{align-self:flex-start;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#f47a20}
.dfws-zdir-featured-name{font-size:15px;font-weight:700;color:#16202B}
.dfws-zdir-featured-city{font-size:12px;color:#646970}
.dfws-zdir-featured-stats{font-size:12px;color:#16202B;margin-top:4px}

/* The real filters (Cities/Neighborhoods/Tier) -- distinct from the tier
   cards above, which only highlight. A plain <select multiple>, same
   "its own type-ahead is the search" convention the staff dashboard's
   equivalent filters use (assets/zones-dashboard.js). */
.dfws-zdir-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-bottom:16px}
.dfws-zdir-filter-label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#646970;text-transform:uppercase;letter-spacing:.02em}
.dfws-zdir-filter-select{font-family:inherit;font-size:13px;min-width:160px;border:1px solid #d5d7da;border-radius:6px}
.dfws-zdir-filter-clear{appearance:none;font-family:inherit;font-size:13px;font-weight:600;background:#fff;color:#16202B;border:1px solid #d5d7da;border-radius:6px;padding:7px 14px;cursor:pointer;height:fit-content}
.dfws-zdir-filter-clear:hover{background:#f5f5f5}

.dfws-zdir-select-label{display:block;font-size:13px;font-weight:600;margin-bottom:4px}
.dfws-zdir-select{display:block;width:100%;max-width:360px;padding:8px 10px;margin-bottom:16px;font-size:14px;border:1px solid #d5d7da;border-radius:6px;box-sizing:border-box;font-family:inherit;background:#fff}
.dfws-zdir-map{height:480px;width:100%;border-radius:10px;border:1px solid #e2e4e7}
.dfws-zdir-empty{font-size:14px;color:#646970}

.dfws-zdir-popup{font-family:inherit;min-width:180px}
.dfws-zdir-popup-tiers{margin-bottom:4px}
.dfws-zdir-popup-tier{display:inline-block;margin:0 4px 4px 0;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#fff}
.dfws-zdir-popup-tier-flagship{background:#B8860B}
.dfws-zdir-popup-tier-premiere{background:#4C1D95}
.dfws-zdir-popup-tier-signature{background:#9D174D}
.dfws-zdir-popup-tier-select{background:#475569}
.dfws-zdir-popup{min-width:210px}
.dfws-zdir-popup-zip{font-size:26px;font-weight:800;line-height:1.1;letter-spacing:-.01em;color:#3B5A7A}
.dfws-zdir-popup-city{font-size:15px;font-weight:700;letter-spacing:0}
.dfws-zdir-popup-hood{font-size:14px;font-weight:600;color:#3B5A7A;margin-top:3px}
.dfws-zdir-popup-stats{margin-top:10px;padding-top:10px;border-top:2px solid #E3EAF2;font-size:13px;line-height:1.45;color:#3B5A7A}
.dfws-zdir-popup-stats strong{font-size:17px;font-weight:800;color:#3B5A7A}
.dfws-zdir-popup-mix{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:999px;background:#E8F0F8;color:#3B5A7A;font-size:12px;font-weight:700}
.dfws-zdir-popup-cta,.leaflet-container a.dfws-zdir-popup-cta{display:block;margin-top:12px;padding:8px 12px;border:2px solid #3B5A7A;border-radius:8px;background:#fff;color:#3B5A7A;font-weight:800;font-size:13px;text-align:center;text-decoration:none}
.dfws-zdir-popup-cta:hover,.dfws-zdir-popup-cta:focus,.leaflet-container a.dfws-zdir-popup-cta:hover,.leaflet-container a.dfws-zdir-popup-cta:focus{background:#3B5A7A;color:#fff}
