/* PCH Location Pages: homepage map and community carousel ([pchl_home_map]). Scoped to .pchlh.
   Selected state is read from data-on="1" (printed by the server for the first card, so tools that
   strip unused CSS keep these rules); the hover link between a card and its circle uses the
   --pchlh-hot variable for the same reason. */
.pchlh {
	--pchlh-navy: #10273A;
	--pchlh-green: #137A5A;
	--pchlh-teal: #0B6E8F;
	--pchlh-sky: #49CAEF;
	--pchlh-line: #DDE5EB;
	--pchlh-muted: #4F6170;
	--pchlh-sea: #D4E9F3;
	--pchlh-land: #F5F7F2;
	--pchlh-shore: #A9CCDD;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: var(--pchlh-navy);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
}
.pchlh *, .pchlh *::before, .pchlh *::after { box-sizing: border-box; }
.pchlh p, .pchlh ul, .pchlh li, .pchlh h2, .pchlh h3 { margin: 0; padding: 0; }
.pchlh ul { list-style: none; }
.pchlh button { font-family: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; }
.pchlh a { color: var(--pchlh-teal); }
.pchlh a:hover { color: var(--pchlh-navy); }

/* Map */
.pchlh .pchlh-map { position: relative; height: 520px; overflow: hidden; border: 1px solid #C9D6DE; border-radius: 16px; background: var(--pchlh-sea); }
.pchlh .pchlh-box { position: absolute; top: 0; right: 160px; height: 100%; aspect-ratio: var(--pchlh-ar); }
/* West of the drawing is inland Florida: plain land. */
.pchlh .pchlh-box::before { content: ''; position: absolute; top: 0; bottom: 0; right: calc(100% - 1px); width: 3000px; background: var(--pchlh-land); }
/* The drawing's west edge fades into it, so the Gulf side has no hard line. */
.pchlh .pchlh-box::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 24%; background: linear-gradient(90deg, var(--pchlh-land) 0, var(--pchlh-land) 20%, rgba(245, 247, 242, 0) 100%); pointer-events: none; }
.pchlh .pchlh-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.pchlh .pchlh-land { fill: var(--pchlh-land); stroke: var(--pchlh-shore); stroke-width: .9; stroke-linejoin: round; }
.pchlh .pchlh-lake { fill: var(--pchlh-sea); stroke: var(--pchlh-shore); stroke-width: .9; stroke-linejoin: round; }
.pchlh .pchlh-lbl { font-family: 'DM Sans', system-ui, sans-serif; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; fill: #5F8CA3; }
.pchlh .pchlh-ocean { position: absolute; right: 10px; top: 50%; z-index: 1; transform: translateY(-50%); writing-mode: vertical-rl; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #5F8CA3; pointer-events: none; }
.pchlh p.pchlh-credit { position: absolute; right: 10px; bottom: 6px; z-index: 1; font-size: 10px; line-height: 1.3; color: #6B7F8D; }
.pchlh p.pchlh-credit a, .pchlh p.pchlh-credit a:hover { color: inherit; text-decoration: underline; }

.pchlh p.pchlh-key { position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; align-items: center; gap: 8px; max-width: 150px; padding: 8px 11px; border-radius: 11px; background: #fff; font-size: 12.5px; line-height: 1.3; color: var(--pchlh-muted); box-shadow: 0 2px 8px rgba(16, 39, 58, .14); }
.pchlh .pchlh-key-dot { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: var(--pchlh-navy); box-shadow: 0 1px 4px rgba(16, 39, 58, .3); }

/* County circles */
.pchlh a.pchlh-pin { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0 0 0 calc(var(--pchlh-d) / -2); padding: 0; transform: translateY(-50%); color: var(--pchlh-navy); text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pchlh .pchlh-dot { display: flex; align-items: center; justify-content: center; flex: 0 0 var(--pchlh-d); width: var(--pchlh-d); height: var(--pchlh-d); border: 3px solid #fff; border-radius: 50%; background: var(--pchlh-navy); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(16, 39, 58, .3), 0 0 0 calc(var(--pchlh-hot, 0) * 6px) rgba(73, 202, 239, .6); transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.pchlh a.pchlh-pin:hover .pchlh-dot { transform: scale(1.08); }
.pchlh .pchlh-tag { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 11px; border-radius: 11px; background: #fff; color: var(--pchlh-navy); line-height: 1.25; text-align: left; box-shadow: 0 2px 8px rgba(16, 39, 58, .2); }
.pchlh .pchlh-tag strong { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 700; }
.pchlh .pchlh-tag span { font-size: 12px; color: var(--pchlh-muted); }
.pchlh .pchlh-tag-pick { display: none; }
.pchlh a.pchlh-pin[data-on="1"] { z-index: 5; }
.pchlh a.pchlh-pin[data-on="1"] .pchlh-dot { background: var(--pchlh-sky); color: var(--pchlh-navy); border-color: var(--pchlh-navy); transform: scale(1.08); box-shadow: 0 6px 18px rgba(16, 39, 58, .35), 0 0 0 6px rgba(73, 202, 239, .45); }
.pchlh a.pchlh-pin[data-on="1"] .pchlh-tag-co { display: none; }
.pchlh a.pchlh-pin[data-on="1"] .pchlh-tag-pick { display: flex; background: var(--pchlh-navy); color: #fff; box-shadow: 0 4px 14px rgba(16, 39, 58, .35); }
.pchlh a.pchlh-pin[data-on="1"] .pchlh-tag-pick span { color: #C9D4DF; }
.pchlh a.pchlh-pin:focus-visible { outline: 3px solid var(--pchlh-teal); outline-offset: 3px; border-radius: 999px; }

/* Heading row */
.pchlh .pchlh-tray { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pchlh .pchlh-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.pchlh .pchlh-head-text { flex: 1 1 260px; min-width: 0; }
.pchlh .pchlh-title { margin: 0; padding: 0; font-family: 'DM Sans', system-ui, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--pchlh-navy); }
.pchlh p.pchlh-hint { margin: 2px 0 0; font-size: 13px; color: var(--pchlh-muted); }
.pchlh .pchlh-nav { display: flex; align-items: center; gap: 8px; }
.pchlh a.pchlh-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pchlh button.pchlh-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1.5px solid var(--pchlh-navy); border-radius: 50%; background: #fff; color: var(--pchlh-navy); line-height: 1; cursor: pointer; box-shadow: none; transition: background-color .15s ease, color .15s ease; }
.pchlh button.pchlh-arrow:hover { background: var(--pchlh-navy); color: #fff; }
.pchlh button.pchlh-arrow:focus-visible, .pchlh button.pchlh-card-pick:focus-visible, .pchlh a:focus-visible { outline: 3px solid var(--pchlh-teal); outline-offset: 2px; }

/* Cards */
.pchlh ul.pchlh-cards { position: relative; display: flex; align-items: stretch; gap: 12px; margin: 0; padding: 4px 4px 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pchlh li.pchlh-card { position: relative; flex: 0 0 236px; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #C9D6DE, 0 0 0 calc(var(--pchlh-hot, 0) * 3px) rgba(73, 202, 239, .7); scroll-snap-align: start; cursor: pointer; transition: box-shadow .15s ease; }
.pchlh li.pchlh-card[data-on="1"] { box-shadow: 0 0 0 3px var(--pchlh-navy), 0 8px 20px rgba(16, 39, 58, .18); }
.pchlh button.pchlh-card-pick { position: relative; display: block; width: 100%; height: 118px; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: linear-gradient(135deg, #CFE6EE, #86B8C8); cursor: pointer; box-shadow: none; }
.pchlh button.pchlh-card-pick img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: cover; }
.pchlh .pchlh-flag { position: absolute; right: 8px; top: 8px; display: none; padding: 4px 9px; border-radius: 999px; background: var(--pchlh-sky); color: var(--pchlh-navy); font-size: 11px; font-weight: 700; line-height: 1.2; }
.pchlh li.pchlh-card[data-on="1"] .pchlh-flag { display: block; }
.pchlh .pchlh-card-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px 12px; }
.pchlh p.pchlh-card-meta { overflow: hidden; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: var(--pchlh-teal); }
.pchlh h3.pchlh-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; }
.pchlh h3.pchlh-card-name a { display: -webkit-box; min-height: 24px; padding: 2px 0; overflow: hidden; color: var(--pchlh-navy); text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pchlh h3.pchlh-card-name a:hover { text-decoration: underline; }
.pchlh p.pchlh-card-price { font-size: 14px; color: var(--pchlh-navy); }
.pchlh p.pchlh-card-price b { font-size: 16px; color: var(--pchlh-green); }
.pchlh p.pchlh-card-facts { font-size: 12px; color: var(--pchlh-muted); }
.pchlh a.pchlh-card-more { display: inline-flex; align-items: center; min-height: 32px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Narrow places: phones, and a narrow column on a tablet. */
@container (max-width: 540px) {
	.pchlh .pchlh-map { height: 440px; }
	.pchlh .pchlh-box { right: 118px; }
	.pchlh .pchlh-ocean, .pchlh p.pchlh-key, .pchlh .pchlh-credit-pre { display: none; }
	.pchlh .pchlh-dot { font-size: 15px; }
	.pchlh .pchlh-tag strong { max-width: 128px; font-size: 13px; }
	.pchlh li.pchlh-card { flex-basis: min(250px, 76%); }
	.pchlh a.pchlh-open { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
	.pchlh .pchlh-dot, .pchlh li.pchlh-card, .pchlh button.pchlh-arrow { transition: none; }
}
