/* Circles 2027 · City Guide place page (single `locations`), house look. Scoped to body.c27-hp-location.
   The theme's single.php prints a placeholder hero photo, a placeholder image and the post date: those are hidden here
   (they are not content). location.js builds the place from the City Guide; until then the title shows on black. */
body.c27-hp-location .secondary-hero.cc-blog-hero { background: var(--hx-ink) !important; min-height: 0 !important; }
body.c27-hp-location .secondary-hero.cc-blog-hero .overlay { background: none !important; min-height: 0 !important; padding: 180px 0 80px !important; }
body.c27-hp-location .secondary-hero h1.cc-blog-title { font: 800 clamp(40px, 6vw, 96px)/.95 var(--hx-sans) !important; font-stretch: 72% !important; text-transform: uppercase; color: #fff !important; }
body.c27-hp-location .image-content .left img[src*="placeholder"], body.c27-hp-location .cc-blog-meta { display: none !important; }
body.c27-hp-location.hx-loc-on .secondary-hero, body.c27-hp-location.hx-loc-on .image-content { display: none !important; }

body.c27-hp-location .hx-loc { --g: clamp(20px, 6vw, 110px); background: var(--hx-paper); color: var(--hx-ink); }
body.c27-hp-location .hx-loc-head { background: var(--hx-ink); color: #fff; padding: clamp(150px, 16vw, 230px) var(--g) clamp(48px, 6vw, 90px); position: relative; overflow: hidden; }
body.c27-hp-location .hx-loc-head::after { content: ""; position: absolute; left: var(--g); right: var(--g); bottom: 0; height: 2px; background: var(--hx-red); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--hx-ease) .3s; }
body.c27-hp-location .hx-loc.is-in .hx-loc-head::after { transform: scaleX(1); }
body.c27-hp-location .hx-loc-k { margin: 0 0 28px; font: 500 14px/1 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-red-hi); }
body.c27-hp-location .hx-loc-k a { color: inherit !important; text-decoration: none !important; border-bottom: 1px solid currentColor; }
body.c27-hp-location .hx-loc-name { margin: 0 !important; max-width: 16ch; font: 800 clamp(48px, 8.4vw, 150px)/.86 var(--hx-sans) !important; font-stretch: 72% !important; letter-spacing: -.01em !important; text-transform: uppercase; color: #fff !important; overflow-wrap: break-word; opacity: 1 !important; transform: none !important; }
body.c27-hp-location .hx-loc-cat { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; font: 500 13px/1.3 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-mid-d); }
body.c27-hp-location .hx-loc-cat span:first-child { color: #fff; }
body.c27-hp-location .hx-loc-cat .is-walk::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--hx-red); vertical-align: 1px; }
/* the name rises out of a black bar (redaction wipe, like the house titles) */
html.hx-ready body.c27-hp-location .hx-loc:not(.is-still) .hx-loc-name { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--hx-snap) .1s; }
html.hx-ready body.c27-hp-location .hx-loc.is-in .hx-loc-name { clip-path: inset(0 0 0 0); }

body.c27-hp-location .hx-loc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 80px); padding: clamp(60px, 8vw, 140px) var(--g); align-items: start; }
body.c27-hp-location .hx-loc-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #222; }
body.c27-hp-location .hx-loc-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transform: scale(1.12); transition: transform 1.6s var(--hx-ease); }
body.c27-hp-location .hx-loc.is-in .hx-loc-photo img { transform: scale(1); }
body.c27-hp-location .hx-loc-photo::after { content: ""; position: absolute; inset: 0; background: var(--hx-red); mix-blend-mode: multiply; opacity: .5; }
body.c27-hp-location .hx-loc-photo figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 2; font: 500 12px/1 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
body.c27-hp-location .hx-loc-facts dl { margin: 0; border-top: 2px solid var(--hx-ink); }
body.c27-hp-location .hx-loc-facts dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hx-line); }
body.c27-hp-location .hx-loc-facts dt { font: 500 12px/1.8 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-mid); }
body.c27-hp-location .hx-loc-facts dd { margin: 0; font: 400 clamp(17px, 1.3vw, 21px)/1.45 var(--hx-sans); overflow-wrap: anywhere; }
body.c27-hp-location .hx-loc-facts dd a { color: var(--hx-ink) !important; text-decoration: none !important; border-bottom: 1px solid var(--hx-red); }
body.c27-hp-location .hx-loc-dirs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 0; }
body.c27-hp-location .hx-loc-dirs-k { flex: 0 0 100%; font: 500 12px/1 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-mid); }
body.c27-hp-location .hx-loc-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--hx-ink); font: 500 13px/1 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-ink) !important; text-decoration: none !important; transition: background .2s, color .2s; outline: none !important; }
body.c27-hp-location .hx-loc-btn.is-solid { background: var(--hx-red); border-color: var(--hx-red); color: #fff !important; }
body.c27-hp-location .hx-loc-btn:hover, body.c27-hp-location .hx-loc-btn:focus-visible { background: var(--hx-ink); border-color: var(--hx-ink); color: #fff !important; }
body.c27-hp-location .hx-loc-map { position: relative; margin-top: 34px; height: clamp(240px, 26vw, 360px); border: 1px solid var(--hx-line); overflow: hidden; background: #E9E9E6; --cc-map-marker-color: #D13A1E; }
body.c27-hp-location .hx-loc-map .cc-map__surface { position: absolute; inset: 0; }
body.c27-hp-location .hx-loc-map .maplibregl-canvas { filter: grayscale(1); }
body.c27-hp-location .hx-loc-map .cc-map__pin { color: #D13A1E !important; }

body.c27-hp-location .hx-loc-next { padding: clamp(60px, 7vw, 120px) var(--g) clamp(80px, 9vw, 160px); background: var(--hx-grey); }
body.c27-hp-location .hx-loc-next-t { margin: 0 0 30px !important; font: 800 clamp(36px, 4.4vw, 76px)/.95 var(--hx-sans) !important; font-stretch: 72% !important; text-transform: uppercase; color: var(--hx-ink) !important; }
body.c27-hp-location .hx-loc-next ol { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--hx-ink); }
body.c27-hp-location .hx-loc-next li { margin: 0; border-bottom: 1px solid var(--hx-line); }
body.c27-hp-location .hx-loc-next ol a { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 0; color: var(--hx-ink) !important; text-decoration: none !important; transition: background .25s, padding .35s var(--hx-ease); outline: none !important; }
body.c27-hp-location .hx-loc-next ol a:hover, body.c27-hp-location .hx-loc-next ol a:focus-visible { background: #fff; padding-left: 14px; }
body.c27-hp-location .hx-loc-next-n { font: 200 clamp(40px, 4vw, 64px)/.85 var(--hx-display); color: var(--hx-red); }
body.c27-hp-location .hx-loc-next-b b { display: block; font: 800 clamp(22px, 2vw, 32px)/1 var(--hx-sans); font-stretch: 72%; text-transform: uppercase; }
body.c27-hp-location .hx-loc-next-b i { display: block; margin-top: 8px; font: 500 12px/1.3 var(--hx-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-mid); }
body.c27-hp-location .hx-loc-next-go { font: 400 28px/1 var(--hx-sans); color: var(--hx-red); transition: transform .35s var(--hx-ease); }
body.c27-hp-location .hx-loc-next ol a:hover .hx-loc-next-go { transform: translateX(8px); }
body.c27-hp-location .hx-loc-all { display: inline-block; margin-top: 30px; font: 500 13px/1 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-red) !important; text-decoration: none !important; }
@media (max-width: 860px) {
	body.c27-hp-location .hx-loc-grid { grid-template-columns: minmax(0, 1fr); }
	body.c27-hp-location .hx-loc-photo { aspect-ratio: 4 / 3; }
	body.c27-hp-location .hx-loc-facts dl > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
	body.c27-hp-location .hx-loc-next ol a { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; }
	body.c27-hp-location .hx-loc-name { font-size: clamp(40px, 12vw, 64px) !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.c27-hp-location .hx-loc-photo img { transform: none; transition: none; }
	body.c27-hp-location .hx-loc-head::after { transition: none; transform: scaleX(1); }
}

/* ================= PHONES (owner, 2026-11-01: simple): name, walk time, address, Directions / Call / Website,
   a small still map and the nearest places. No photo, no fact table, no wipes. Desktop unchanged. */
body.c27-hp-location .hx-loc-quick, body.c27-hp-location .hx-loc-addr1 { display: none; }
@media (max-width: 767px) {
	body.c27-hp-location .hx-loc-head { padding: 110px 20px 28px; }
	body.c27-hp-location .hx-loc-head::after { display: none; }
	body.c27-hp-location .hx-loc-k { margin-bottom: 16px; font-size: 13px; }
	body.c27-hp-location .hx-loc-name { font-size: 44px !important; line-height: .95 !important; max-width: none; }
	html.hx-ready body.c27-hp-location .hx-loc .hx-loc-name { clip-path: none !important; }
	body.c27-hp-location .hx-loc-cat { margin-top: 14px; font: 500 15px/1.4 var(--hx-sans); letter-spacing: 0; text-transform: none; }
	body.c27-hp-location .hx-loc-addr1 { display: block; margin: 8px 0 0; font: 400 16px/1.4 var(--hx-sans); color: var(--hx-mid-d); }
	body.c27-hp-location .hx-loc-quick { display: flex; gap: 10px; margin: 20px 0 0; }
	body.c27-hp-location .hx-loc-quick a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid rgba(255,255,255,.4); color: #fff !important; text-decoration: none !important; font: 600 16px/1 var(--hx-sans); outline: none; }
	body.c27-hp-location .hx-loc-quick a.is-dir { background: var(--hx-red); border-color: var(--hx-red); }
	body.c27-hp-location .hx-loc-quick a:active { opacity: .7; }
	body.c27-hp-location .hx-loc-grid { display: block; padding: 20px; }
	body.c27-hp-location .hx-loc-photo, body.c27-hp-location .hx-loc-facts dl, body.c27-hp-location .hx-loc-dirs { display: none !important; }
	body.c27-hp-location .hx-loc-map { margin: 0; height: 200px; pointer-events: none; }
	body.c27-hp-location .hx-loc-map .maplibregl-ctrl { display: none !important; }
	body.c27-hp-location .hx-loc-next { padding: 30px 20px 50px; background: #fff; }
	body.c27-hp-location .hx-loc-next-t { font-size: 28px !important; margin-bottom: 14px !important; }
	body.c27-hp-location .hx-loc-next ol a { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; padding: 14px 0; }
	body.c27-hp-location .hx-loc-next-n { display: none; }
	body.c27-hp-location .hx-loc-next-b b { font: 700 19px/1.2 var(--hx-sans); text-transform: none; }
	body.c27-hp-location .hx-loc-next-b i { font: 400 15px/1.4 var(--hx-sans); letter-spacing: 0; text-transform: none; }
	body.c27-hp-location .hx-loc-all { display: block; margin-top: 20px; min-height: 48px; line-height: 48px; font: 600 16px/48px var(--hx-sans); letter-spacing: 0; text-transform: none; }
	@media (prefers-reduced-motion: no-preference) { body.c27-hp-location .hx-loc { animation: cg-fade .4s ease both; } }
}
@keyframes cg-fade { from { opacity: 0; } to { opacity: 1; } }
