/* PCH Location Pages: map search (Option B, "map first"). Scoped to .pchlm. */
.pchlm {
	--pchlm-navy: #10273A;
	--pchlm-green: #137A5A;
	--pchlm-teal: #0B6E8F;
	--pchlm-line: #DDE5EB;
	--pchlm-chip: #C9D5DE;
	--pchlm-muted: #4F6170;
	--pchlm-soft: #EEF3F6;
	--pchlm-water: #D6E8EF;
	--pchlm-shadow: 0 10px 30px rgba(16, 39, 58, .18);
	--pchlm-panel-w: 352px;
	position: relative;
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--pchlm-navy);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
/* The theme nests page content in flex columns and some theme/menu rules center or cap blocks.
   Everything inside is positioned, so the root has no content width of its own: pin it to full width. */
html body .pchlm[data-pchlm] { display: block; float: none; box-sizing: border-box; width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0; align-self: stretch; flex: 0 0 auto; }
.pchlm *, .pchlm *::before, .pchlm *::after { box-sizing: border-box; }
.pchlm .pchlm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pchlm [hidden] { display: none !important; }
.pchlm button, .pchlm input, .pchlm select { font-family: inherit; }
.pchlm button { text-transform: none; letter-spacing: normal; text-shadow: none; }
.pchlm a { color: var(--pchlm-teal); }
.pchlm a:hover { color: var(--pchlm-navy); }

/* Stage and map */
.pchlm .pchlm-stage { position: relative; height: var(--pchlm-h, calc(100vh - 90px)); min-height: 200px; overflow: hidden; background: var(--pchlm-water); }
.pchlm .pchlm-map { position: absolute; inset: 0; }
.pchlm .pchlm-map-msg { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 3; margin: 0; max-width: 360px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--pchlm-shadow); font-size: 14px; text-align: center; }
.pchlm .pchlm-tray .pchlm-map-msg { position: static; transform: none; max-width: none; padding: 9px 14px; border-radius: 10px; background: #FBF0D9; box-shadow: none; color: #7A5208; font-size: 13px; text-align: left; }
.pchlm.is-nomap .pchlm-list-btn, .pchlm.is-nomap .pchlm-back, .pchlm.is-nomap .pchlm-locate { display: none; }

/* Panel */
.pchlm .pchlm-panel { position: absolute; left: 20px; top: 20px; bottom: 20px; width: var(--pchlm-panel-w); max-width: calc(100% - 40px); z-index: 20; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 18px; background: #fff; border-radius: 18px; box-shadow: var(--pchlm-shadow); scrollbar-width: thin; }
.pchlm .pchlm-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pchlm .pchlm-panel h1.pchlm-title { margin: 0; padding: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 25px; font-weight: 700; line-height: 1.2; color: var(--pchlm-navy); letter-spacing: 0; text-transform: none; }
.pchlm .pchlm-panel p.pchlm-stat { margin: -4px 0 0; padding: 0; font-size: 13px; color: var(--pchlm-muted); }
.pchlm .pchlm-panel-close, .pchlm .pchlm-panel-done { display: none; }
.pchlm .pchlm-search { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; margin: 0; padding: 0 12px; border: 1px solid var(--pchlm-chip); border-radius: 12px; background: #fff; color: var(--pchlm-muted); flex-shrink: 0; }
.pchlm .pchlm-search:focus-within { border-color: var(--pchlm-teal); box-shadow: 0 0 0 3px rgba(11, 110, 143, .15); }
.pchlm .pchlm-search input[type="search"] { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font-size: 15px; color: var(--pchlm-navy); border-radius: 0; -webkit-appearance: none; appearance: none; }
.pchlm .pchlm-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.pchlm .pchlm-seg { display: flex; padding: 4px; border-radius: 12px; background: var(--pchlm-soft); flex-shrink: 0; }
.pchlm .pchlm-seg button { flex: 1; min-height: 38px; margin: 0; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--pchlm-muted); font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pchlm .pchlm-seg button.is-on { background: #fff; color: var(--pchlm-navy); box-shadow: 0 1px 3px rgba(16, 39, 58, .15); }
.pchlm .pchlm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchlm .pchlm-chip { min-height: 36px; margin: 0; padding: 0 13px; border: 1px solid var(--pchlm-chip); border-radius: 999px; background: #fff; color: var(--pchlm-navy); font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pchlm .pchlm-chip:hover { border-color: var(--pchlm-navy); }
.pchlm .pchlm-chip.is-on { background: var(--pchlm-navy); border-color: var(--pchlm-navy); color: #fff; }
.pchlm .pchlm-row { display: flex; gap: 8px; }
.pchlm .pchlm-field { flex: 1; display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--pchlm-muted); }
.pchlm .pchlm-field select, .pchlm .pchlm-sort select { width: 100%; height: 42px; margin: 0; padding: 0 30px 0 10px; border: 1px solid var(--pchlm-chip); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310273A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; font-size: 14px; font-weight: 500; color: var(--pchlm-navy); -webkit-appearance: none; appearance: none; box-shadow: none; line-height: normal; }
.pchlm .pchlm-more { border-top: 1px solid var(--pchlm-line); padding-top: 10px; }
.pchlm .pchlm-more summary { cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 32px; }
.pchlm .pchlm-more summary::-webkit-details-marker { display: none; }
.pchlm .pchlm-more summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.pchlm .pchlm-more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.pchlm .pchlm-more .pchlm-field { margin-top: 8px; }
.pchlm .pchlm-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; cursor: pointer; }
.pchlm .pchlm-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--pchlm-green); }
.pchlm .pchlm-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--pchlm-line); padding-top: 12px; }
.pchlm .pchlm-reset { margin: 0; padding: 8px 0; border: 0; background: none; color: var(--pchlm-teal); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.pchlm .pchlm-save { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: 0 0 0 auto; padding: 0 16px; border: 1px solid var(--pchlm-green); border-radius: 999px; background: #fff; color: var(--pchlm-green); font-size: 13px; font-weight: 700; cursor: pointer; }
.pchlm .pchlm-save:hover { background: var(--pchlm-green); color: #fff; }
.pchlm .pchlm-counties { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--pchlm-line); }
.pchlm .pchlm-counties p { margin: 0 0 6px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pchlm-muted); }
.pchlm .pchlm-counties ul { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.pchlm .pchlm-counties li { margin: 0; padding: 0; font-size: 13px; }
.pchlm .pchlm-counties li::before { display: none; }

/* Map controls */
.pchlm .pchlm-back { position: absolute; top: 20px; left: calc(var(--pchlm-panel-w) + 40px + (100% - var(--pchlm-panel-w) - 40px) / 2); transform: translateX(-50%); z-index: 15; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pchlm-navy); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(16, 39, 58, .3); cursor: pointer; white-space: nowrap; }
.pchlm .pchlm-locate { position: absolute; right: 10px; top: 104px; z-index: 15; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 2px; background: #fff; color: #555; display: flex; align-items: center; justify-content: center; box-shadow: rgba(0, 0, 0, .3) 0 1px 4px -1px; cursor: pointer; }
.pchlm .pchlm-topbar { display: none; }

/* Pins, clusters and county circles (drawn in the map's overlay pane) */
.pchlm-layer { position: absolute; left: 0; top: 0; }
.pchlm-pin, .pchlm-cluster, .pchlm-circle { position: absolute; transform: translate(-50%, -50%); margin: 0; font-family: 'DM Sans', system-ui, sans-serif; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: normal; -webkit-tap-highlight-color: transparent; }
.pchlm-pin { padding: 6px 10px; border: 1px solid #B9C8D3; border-radius: 999px; background: #fff; color: #10273A; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: 0 2px 7px rgba(16, 39, 58, .22); transition: transform .12s ease, background .12s ease; z-index: 2; }
.pchlm-pin:hover, .pchlm-pin.is-hot { transform: translate(-50%, -50%) scale(1.1); z-index: 6; }
.pchlm-pin.is-on { background: #10273A; color: #fff; border-color: #fff; transform: translate(-50%, -50%) scale(1.15); z-index: 7; box-shadow: 0 4px 14px rgba(16, 39, 58, .35); }
.pchlm-pin.is-soon { border-style: dashed; color: #4F6170; }
.pchlm-pin.is-on.is-soon { color: #fff; }
/* A pin that stands for several result cards (floor plans at one community) carries the count. */
.pchlm-pin.has-n { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; }
.pchlm-pin b { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #10273A; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; }
.pchlm-pin.is-on b { background: #fff; color: #10273A; }
.pchlm-pin.is-soon b { background: #4F6170; }
.pchlm-pin.is-on.is-soon b { background: #fff; color: #10273A; }
.pchlm-pin:focus-visible, .pchlm-cluster:focus-visible, .pchlm-circle:focus-visible { outline: 3px solid #0B6E8F; outline-offset: 2px; }
.pchlm-cluster { display: flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border: 2px solid #fff; border-radius: 999px; background: #0B6E8F; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 3px 10px rgba(16, 39, 58, .3); z-index: 3; }
.pchlm-cluster b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #fff; color: #0B6E8F; font-size: 13px; }
.pchlm-cluster:hover, .pchlm-cluster.is-hot { background: #10273A; z-index: 6; }
.pchlm-cluster.is-hot b { color: #10273A; }
.pchlm-cluster.is-on { background: #10273A; transform: translate(-50%, -50%) scale(1.08); z-index: 7; box-shadow: 0 4px 14px rgba(16, 39, 58, .35); }
.pchlm-cluster.is-on b { color: #10273A; }
.pchlm-circle { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; transform: translate(0, -50%); z-index: 4; }
.pchlm-circle-dot { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 999px; background: #10273A; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(16, 39, 58, .3); transition: transform .15s ease; }
.pchlm-circle-dot b { font-size: 18px; line-height: 1; }
.pchlm-circle-dot small { margin-top: 2px; font-size: 9px; letter-spacing: -.01em; opacity: .85; }
.pchlm-circle-tag { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 12px; border-radius: 12px; background: #fff; color: #10273A; box-shadow: 0 2px 8px rgba(16, 39, 58, .2); text-align: left; }
.pchlm-circle-tag strong { font-size: 14px; }
.pchlm-circle-tag span { font-size: 12px; color: #4F6170; }
.pchlm-circle:hover .pchlm-circle-dot { transform: scale(1.08); }
.pchlm-circle.is-empty .pchlm-circle-dot { background: #8A99A6; }
.pchlm-circle.is-tight { gap: 7px; }
.pchlm-circle.is-tight .pchlm-circle-dot b { font-size: 15px; }
.pchlm-circle.is-tight .pchlm-circle-tag { padding: 4px 10px; border-radius: 10px; }
.pchlm-circle.is-tight .pchlm-circle-tag strong { font-size: 13px; line-height: 1.25; }
.pchlm-circle.is-tight .pchlm-circle-tag span { font-size: 11.5px; line-height: 1.25; }

/* Results tray */
.pchlm .pchlm-tray { position: absolute; left: calc(var(--pchlm-panel-w) + 36px); right: 20px; bottom: 18px; z-index: 18; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.pchlm .pchlm-tray > * { pointer-events: auto; }
.pchlm .pchlm-grip { display: none; }
.pchlm .pchlm-tray-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pchlm .pchlm-tray h2 { margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(16, 39, 58, .16); font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--pchlm-navy); letter-spacing: 0; text-transform: none; }
.pchlm .pchlm-tray p.pchlm-tray-sub { margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; color: var(--pchlm-muted); }
.pchlm .pchlm-tray button.pchlm-only-clear { margin: 0; padding: 7px 12px; border: 0; border-radius: 999px; background: #10273A; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.pchlm .pchlm-tray button.pchlm-only-clear:hover { background: #0B6E8F; }
.pchlm .pchlm-county-link { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; text-decoration: none; }
.pchlm .pchlm-sort { margin: 0 0 0 auto; }
.pchlm .pchlm-sort select { height: 36px; min-width: 150px; border-radius: 999px; font-size: 13px; box-shadow: 0 2px 8px rgba(16, 39, 58, .12); border-color: #fff; }
.pchlm .pchlm-list-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--pchlm-navy); font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(16, 39, 58, .12); cursor: pointer; }
.pchlm .pchlm-cards { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; outline: 0; }

/* Cards */
.pchlm .pchlm-card { position: relative; flex: 0 0 330px; display: flex; min-height: 128px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(16, 39, 58, .16); scroll-snap-align: start; cursor: pointer; transition: box-shadow .12s ease; }
.pchlm .pchlm-card:hover, .pchlm .pchlm-card.is-hot { box-shadow: 0 8px 24px rgba(16, 39, 58, .24); }
.pchlm .pchlm-card.is-on { box-shadow: 0 0 0 3px var(--pchlm-green), 0 8px 24px rgba(16, 39, 58, .24); }
.pchlm .pchlm-card-img { position: relative; flex: 0 0 112px; display: block; overflow: hidden; background: linear-gradient(135deg, #CFE6EE, #86B8C8); }
.pchlm .pchlm-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border-radius: 0; }
.pchlm .pchlm-ph { position: absolute; inset: 0; }
.pchlm .pchlm-badges { position: absolute; left: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.pchlm .pchlm-badge { padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--pchlm-navy); font-size: 10.5px; font-weight: 700; line-height: 1.2; }
.pchlm .pchlm-badge-55 { background: var(--pchlm-green); color: #fff; }
.pchlm .pchlm-badge-soon { background: #FBF0D9; color: #7A5208; }
.pchlm .pchlm-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 12px; }
.pchlm .pchlm-card-body > * { flex-shrink: 0; }
.pchlm .pchlm-card p.pchlm-card-meta { margin: 0; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pchlm-teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchlm .pchlm-card h3.pchlm-card-name { margin: 0; padding: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.pchlm .pchlm-card h3.pchlm-card-name a { min-height: 24px; padding: 2px 0; color: var(--pchlm-navy); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pchlm .pchlm-card h3.pchlm-card-name a:hover { text-decoration: underline; }
.pchlm .pchlm-card p.pchlm-card-price { margin: 0; padding: 0; font-size: 14px; color: var(--pchlm-navy); }
.pchlm .pchlm-card p.pchlm-card-price b { font-size: 15px; }
.pchlm .pchlm-card p.pchlm-card-facts { margin: 0; padding: 0; font-size: 12px; color: var(--pchlm-muted); }
.pchlm .pchlm-muted { color: var(--pchlm-muted); }
.pchlm .pchlm-more-card { flex: 0 0 180px; display: flex; align-items: center; justify-content: center; margin: 0; border: 2px dashed var(--pchlm-chip); border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--pchlm-navy); font-size: 14px; font-weight: 700; cursor: pointer; }
.pchlm .pchlm-empty { flex: 0 0 min(460px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(16, 39, 58, .16); font-size: 14px; color: var(--pchlm-muted); }
.pchlm .pchlm-empty strong { color: var(--pchlm-navy); }
.pchlm .pchlm-empty div { display: flex; gap: 8px; flex-wrap: wrap; }
.pchlm .pchlm-empty button { min-height: 38px; margin: 0; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pchlm-chip); background: #fff; color: var(--pchlm-navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.pchlm .pchlm-empty button.pchlm-go { border-color: var(--pchlm-green); background: var(--pchlm-green); color: #fff; }
.pchlm .pchlm-loading { padding: 14px 18px; border-radius: 14px; background: #fff; font-size: 14px; color: var(--pchlm-muted); box-shadow: 0 6px 18px rgba(16, 39, 58, .16); }

/* List view: the tray covers the map */
.pchlm.is-list .pchlm-tray { top: 20px; bottom: 20px; padding: 14px; border-radius: 18px; background: rgba(245, 248, 250, .97); box-shadow: var(--pchlm-shadow); pointer-events: auto; }
.pchlm.is-list .pchlm-tray h2, .pchlm.is-list .pchlm-tray p.pchlm-tray-sub { box-shadow: none; }
.pchlm.is-list .pchlm-cards { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-content: start; overflow-x: hidden; overflow-y: auto; }
.pchlm.is-list .pchlm-card { flex: none; }
.pchlm.is-list .pchlm-back, .pchlm.is-list .pchlm-locate { display: none; }

/* Save search dialog */
.pchlm .pchlm-modal { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 39, 58, .55); }
.pchlm .pchlm-modal-box { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border-radius: 18px; background: #fff; box-shadow: var(--pchlm-shadow); }
.pchlm .pchlm-modal-x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--pchlm-navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pchlm .pchlm-lead { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pchlm .pchlm-lead h2 { margin: 0 40px 0 0; padding: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 23px; font-weight: 700; line-height: 1.2; color: var(--pchlm-navy); text-transform: none; letter-spacing: 0; }
.pchlm .pchlm-lead p.pchlm-lead-what { margin: 0; padding: 10px 12px; border-radius: 10px; background: #EDF6F1; font-size: 14px; font-weight: 700; color: var(--pchlm-navy); }
.pchlm .pchlm-lead p.pchlm-lead-note { margin: 0; padding: 0; font-size: 13px; color: var(--pchlm-muted); }
.pchlm .pchlm-lead label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 700; color: var(--pchlm-navy); }
.pchlm .pchlm-lead input { height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--pchlm-chip); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 400; color: var(--pchlm-navy); box-shadow: none; }
.pchlm .pchlm-lead input:focus { outline: 0; border-color: var(--pchlm-teal); box-shadow: 0 0 0 3px rgba(11, 110, 143, .15); }
.pchlm .pchlm-lead input[aria-invalid="true"] { border-color: #B42318; }
.pchlm .pchlm-lead .pchlm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pchlm .pchlm-lead p.pchlm-lead-msg { margin: 0; padding: 0; min-height: 0; font-size: 13px; color: #B42318; }
.pchlm .pchlm-lead p.pchlm-lead-msg.is-ok { color: var(--pchlm-green); font-size: 15px; font-weight: 700; }
.pchlm .pchlm-lead button[type="submit"] { min-height: 48px; margin: 4px 0 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pchlm-green); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.pchlm .pchlm-lead button[type="submit"]:disabled { opacity: .6; cursor: default; }

/* Tablet: a narrower panel */
@media (max-width: 1100px) {
	.pchlm { --pchlm-panel-w: 300px; }
	.pchlm .pchlm-card { flex-basis: 300px; }
}

/* Phone turned sideways (short screen): the open results sheet never covers the search bar. */
@media (max-height: 500px) and (max-width: 1100px) {
	.pchlm .pchlm-tray { max-height: calc(100% - 64px); overflow: hidden; }
	.pchlm .pchlm-tray .pchlm-card { min-height: 92px; }
	.pchlm .pchlm-tray .pchlm-card-img { flex-basis: 84px; }
}

/* Phone: full-screen map, search bar on top, filters in a sheet, results in a bottom sheet */
@media (max-width: 760px), (max-height: 500px) and (max-width: 1100px) {
	.pchlm .pchlm-stage { height: var(--pchlm-h, calc(100svh - 64px)); min-height: 200px; }
	.pchlm .pchlm-topbar { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 16; display: flex; gap: 8px; }
	.pchlm .pchlm-topbar .pchlm-search { flex: 1; height: 48px; border: 0; border-radius: 999px; box-shadow: 0 4px 14px rgba(16, 39, 58, .2); }
	.pchlm .pchlm-filters-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 48px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--pchlm-navy); font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(16, 39, 58, .2); cursor: pointer; }
	.pchlm .pchlm-filters-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pchlm-green); color: #fff; font-size: 12px; }
	.pchlm .pchlm-panel { position: fixed; inset: 0; width: auto; max-width: none; border-radius: 0; z-index: 100001; padding: 16px 16px 84px; display: none; box-shadow: none; }
	.pchlm.is-panel .pchlm-panel { display: flex; }
	.pchlm .pchlm-panel-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--pchlm-navy); cursor: pointer; flex-shrink: 0; }
	.pchlm .pchlm-panel-done { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2; min-height: 50px; margin: 0; border: 0; border-radius: 12px; background: var(--pchlm-green); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
	.pchlm .pchlm-counties { margin-top: 8px; }
	.pchlm .pchlm-back { top: 68px; left: 50%; min-height: 40px; padding: 0 14px; font-size: 13px; }
	.pchlm .pchlm-locate { top: 68px; right: 10px; width: 40px; height: 40px; border-radius: 999px; }
	.pchlm .pchlm-tray { left: 0; right: 0; bottom: 0; gap: 8px; padding: 6px 0 12px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -6px 24px rgba(16, 39, 58, .18); pointer-events: auto; }
	.pchlm .pchlm-tray button.pchlm-grip { display: block; position: relative; align-self: stretch; width: auto; height: 24px; min-height: 0; margin: -6px 0 -6px; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: transparent; box-shadow: none; cursor: pointer; }
	.pchlm .pchlm-tray button.pchlm-grip::before { content: ''; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 999px; background: var(--pchlm-chip); }
	.pchlm .pchlm-tray button.pchlm-grip:focus-visible { outline: 3px solid var(--pchlm-teal); outline-offset: -3px; }
	.pchlm.is-list .pchlm-tray button.pchlm-grip { display: none; }
	/* Folded sheet: just the heading line; tap it, the handle, or swipe up to open. */
	.pchlm.is-peek .pchlm-cards, .pchlm.is-peek .pchlm-sort, .pchlm.is-peek .pchlm-list-btn, .pchlm.is-peek .pchlm-tray button.pchlm-only-clear { display: none; }
	.pchlm.is-peek .pchlm-tray { padding-bottom: 14px; }
	.pchlm.is-peek .pchlm-tray h2 { cursor: pointer; }
	.pchlm.is-peek .pchlm-tray h2::after { content: ' · Show'; color: var(--pchlm-teal); font-weight: 700; }
	.pchlm .pchlm-tray-head { padding: 0 14px; gap: 6px; }
	.pchlm .pchlm-tray h2 { padding: 0; box-shadow: none; background: none; font-size: 15px; flex: 1 1 150px; min-width: 0; }
	.pchlm .pchlm-tray p.pchlm-tray-sub, .pchlm .pchlm-county-link { display: none; }
	.pchlm .pchlm-sort { margin: 0; }
	.pchlm .pchlm-sort select { min-width: 0; width: 40px; height: 36px; padding: 0; border-color: var(--pchlm-chip); box-shadow: none; color: transparent; text-shadow: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2310273A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E") no-repeat center; cursor: pointer; }
	.pchlm .pchlm-sort select option { color: var(--pchlm-navy); }
	.pchlm .pchlm-list-btn { height: 36px; padding: 0 12px; box-shadow: none; border: 1px solid var(--pchlm-chip); }
	/* 16px text in fields: iPhone Safari zooms the whole page into any smaller field you tap. */
	.pchlm input, .pchlm select, .pchlm .pchlm-search input[type="search"], .pchlm .pchlm-lead input, .pchlm .pchlm-field select, .pchlm .pchlm-sort select { font-size: 16px; }
	.pchlm .pchlm-cards { padding: 2px 14px 4px; }
	.pchlm .pchlm-card { flex-basis: 286px; min-height: 116px; box-shadow: none; border: 1px solid var(--pchlm-line); }
	.pchlm .pchlm-card.is-on { box-shadow: 0 0 0 3px var(--pchlm-green); border-color: var(--pchlm-green); }
	.pchlm .pchlm-card-img { flex-basis: 96px; }
	.pchlm .pchlm-empty, .pchlm .pchlm-loading { box-shadow: none; border: 1px solid var(--pchlm-line); }
	.pchlm.is-list .pchlm-tray { top: 64px; bottom: 0; padding: 6px 0 12px; border-radius: 22px 22px 0 0; background: #fff; }
	.pchlm.is-list .pchlm-cards { grid-template-columns: 1fr; padding: 2px 14px 14px; }
}
@media (max-width: 760px), (max-height: 500px) and (max-width: 1100px) {
	.pchlm-circle { gap: 6px; }
	.pchlm-circle-dot { border-width: 2px; }
	.pchlm-circle-dot b { font-size: 15px; }
	.pchlm-circle-tag { padding: 5px 9px; border-radius: 10px; }
	.pchlm-circle-tag strong { font-size: 12.5px; }
	.pchlm-circle-tag span { font-size: 11px; }
	.pchlm-pin { padding: 6px 9px; }
	.pchlm-circle.is-tight { gap: 5px; }
	.pchlm-circle.is-tight .pchlm-circle-dot b { font-size: 13px; }
	.pchlm-circle.is-tight .pchlm-circle-tag { flex-direction: row; align-items: baseline; gap: 5px; padding: 4px 8px; border-radius: 9px; }
	.pchlm-circle.is-tight .pchlm-circle-tag strong { font-size: 12.5px; line-height: 1.2; }
	.pchlm-circle.is-tight .pchlm-circle-tag span { font-size: 11.5px; line-height: 1.2; }
	/* A phone turned sideways: the smallest labels. */
	.pchlm-circle.is-xtight .pchlm-circle-dot { border-width: 1.5px; }
	.pchlm-circle.is-xtight .pchlm-circle-dot b { font-size: 11.5px; }
	.pchlm-circle.is-xtight .pchlm-circle-tag { min-height: 24px; align-items: center; padding: 2px 7px; border-radius: 8px; }
	.pchlm-circle.is-xtight .pchlm-circle-tag strong { font-size: 11.5px; }
	.pchlm-circle.is-xtight .pchlm-circle-tag span { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.pchlm-pin, .pchlm-circle-dot, .pchlm .pchlm-card { transition: none; }
}
