/* PumaCRETE Coverage Finder */
.pcf {
	--pcf-bg: transparent;
	--pcf-card: #283544;
	--pcf-card2: #223040;
	--pcf-line: #3E4A57;
	--pcf-text: #FFFFFF;
	--pcf-muted: #CDD0D4;
	--pcf-accent: #D4A14A;
	--pcf-accent-text: #1C2A3A;
	--pcf-ok: #3FB4A6;
	--pcf-warn: #D4A14A;
	--pcf-bad: #E9805F;
	--pcf-radius: 6px;
	/* Headings use the theme's Elementor "Primary" global font; body text inherits the theme font. */
	--pcf-heading-font: var(--e-global-typography-primary-font-family, inherit);
	background: var(--pcf-bg);
	color: var(--pcf-text);
	font-family: inherit;
	padding: 0;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.5;
}
.pcf *, .pcf *::before, .pcf *::after { box-sizing: border-box; }

/* Layout */
.pcf__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; max-width: 1400px; margin: 0 auto; }
.pcf--nomap .pcf__main { grid-template-columns: minmax(0, 720px); justify-content: center; }

.pcf__finder, .pcf__mapcard { background: var(--pcf-card); border: 1px solid var(--pcf-line); border-radius: var(--pcf-radius); padding: 30px; }

/* Search */
.pcf__form { margin: 0; }
.pcf__label { display: block; font-weight: 600; font-size: 15px; color: var(--pcf-muted); margin-bottom: 12px; }
.pcf__search { display: flex; gap: 10px; }
.pcf__inputwrap { position: relative; flex: 1; min-width: 0; }
.pcf__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #5D6670; pointer-events: none; }
.pcf .pcf__input {
	font-family: inherit;
	width: 100%; height: 58px; margin: 0; padding: 0 16px 0 46px;
	border: 2px solid transparent; border-radius: 8px; background: #fff; color: #14202C;
	font-size: 17px; font-weight: 500; box-shadow: none; outline: none;
}
.pcf .pcf__input::placeholder { color: #7A838D; font-weight: 400; }
.pcf .pcf__input:focus { border-color: var(--pcf-accent); }
.pcf__hint { margin: 10px 0 0; font-size: 13px; color: var(--pcf-muted); }

/* Suggestions */
.pcf__suggest {
	position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
	list-style: none; margin: 0; padding: 6px; background: #fff; color: #14202C;
	border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); max-height: 320px; overflow: auto;
}
.pcf__opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 7px; cursor: pointer; margin: 0; }
.pcf__opt:hover, .pcf__opt[aria-selected="true"] { background: #F1EDE5; }
.pcf__opt-name { font-weight: 600; }
.pcf__opt-meta { font-size: 13px; color: #5D6670; white-space: nowrap; }

/* Buttons */
.pcf .pcf__btn {
	font-family: inherit;
	display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
	min-height: 54px; padding: 0 20px; border-radius: 8px; border: 1.5px solid transparent;
	font-size: 15.5px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, filter .15s ease;
}
.pcf .pcf__btn:hover { transform: translateY(-1px); }
.pcf .pcf__btn--primary { background: var(--pcf-accent); color: var(--pcf-accent-text); }
.pcf .pcf__btn--ghost { background: transparent; border-color: #6B778A; color: var(--pcf-text); }
.pcf .pcf__submit { height: 58px; }

/* Result card */
.pcf__result:empty { display: none; }
.pcf__result { margin-top: 24px; }
.pcf__card { border-radius: 12px; padding: 22px; border: 1.5px solid var(--pcf-line); background: var(--pcf-card2); animation: pcf-in .25s ease; }
.pcf__card.is-ok { border-color: var(--pcf-ok); background: color-mix(in srgb, var(--pcf-ok) 10%, var(--pcf-card)); }
.pcf__card.is-request { border-color: var(--pcf-warn); background: color-mix(in srgb, var(--pcf-warn) 9%, var(--pcf-card)); }
.pcf__card.is-no { border-color: var(--pcf-bad); background: color-mix(in srgb, var(--pcf-bad) 9%, var(--pcf-card)); }
.pcf__card-head { display: flex; gap: 14px; align-items: flex-start; }
.pcf__badge {
	flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; font-size: 17px; color: var(--pcf-accent-text); background: var(--pcf-muted);
}
.is-ok .pcf__badge { background: var(--pcf-ok); }
.is-request .pcf__badge { background: var(--pcf-warn); }
.is-no .pcf__badge { background: var(--pcf-bad); }
.pcf__region { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--pcf-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.pcf__region::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pcf-dot, var(--pcf-accent)); }
.pcf__result-title { font-family: var(--pcf-heading-font); font-size: 23px; font-weight: 700; line-height: 1.2; color: var(--pcf-text); }
.pcf__result-text { margin: 6px 0 0; color: var(--pcf-muted); font-size: 15px; }
.pcf__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pcf__tag { font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--pcf-line); background: var(--pcf-card2); }
.pcf__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 20px; }
.pcf .pcf__pagelink { display: inline-block; margin-top: 14px; color: var(--pcf-accent); font-weight: 600; text-decoration: none; }

.pcf__alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--pcf-line); font-size: 14px; color: var(--pcf-muted); }
.pcf .pcf__alt a, .pcf .pcf__intl a { color: var(--pcf-accent); font-weight: 600; text-decoration: none; }

/* Map */
.pcf__maphead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.pcf__maptitle { font-family: var(--pcf-heading-font); font-size: 21px; font-weight: 700; }
.pcf__maphint { font-size: 14px; color: var(--pcf-muted); }
.pcf__map { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 6px; }
.pcf .pcf__tile {
	aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; margin: 0; padding: 0;
	font-size: clamp(9px, 1vw, 13px); font-weight: 700; line-height: 1; border: 0; font-family: inherit;
	color: var(--pcf-accent-text); background: var(--pcf-tile, var(--pcf-card2)); cursor: pointer;
	transition: transform .12s ease, opacity .2s ease, box-shadow .12s ease;
}
.pcf .pcf__tile:hover { transform: scale(1.08); z-index: 1; }
.pcf .pcf__tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pcf .pcf__tile.is-request { background: transparent; color: var(--pcf-warn); box-shadow: inset 0 0 0 1.5px var(--pcf-warn); }
.pcf .pcf__tile.is-no { background: transparent; color: var(--pcf-bad); box-shadow: inset 0 0 0 1.5px var(--pcf-bad); }
.pcf .pcf__tile.is-empty { background: transparent; color: var(--pcf-muted); box-shadow: inset 0 0 0 1.5px var(--pcf-line); cursor: default; }
.pcf__map.has-on .pcf__tile { opacity: .3; }
.pcf__map.has-on .pcf__tile.is-on { opacity: 1; box-shadow: 0 0 0 3px #fff; transform: scale(1.06); z-index: 2; }

.pcf__legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 20px; }
.pcf__legend:empty { display: none; }
.pcf__lg { background: var(--pcf-card2); border-radius: 10px; padding: 12px 14px; border-top: 4px solid var(--pcf-dot); }
.pcf__lg strong { font-family: var(--pcf-heading-font); display: block; font-size: 16px; line-height: 1.2; }
.pcf__lg span { display: block; font-size: 13px; color: var(--pcf-muted); margin-top: 2px; }

/* Bottom strip */
.pcf__intl {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
	max-width: 1400px; margin: 28px auto 0; padding: 20px 26px;
	background: var(--pcf-card); border: 1px solid var(--pcf-line); border-radius: var(--pcf-radius);
}
.pcf__intl strong { font-family: var(--pcf-heading-font); font-size: 19px; margin-right: 14px; }
.pcf__intl span { color: var(--pcf-muted); font-size: 15px; }

@keyframes pcf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tablet & mobile */
@media (max-width: 1024px) {
	.pcf__main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.pcf__finder, .pcf__mapcard { padding: 20px 16px; }
	.pcf__search { flex-direction: column; }
	.pcf .pcf__submit { width: 100%; }
	.pcf__map { gap: 3px; }
	.pcf .pcf__tile { border-radius: 4px; }
	.pcf .pcf__btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.pcf__card { animation: none; }
	.pcf .pcf__tile, .pcf .pcf__btn { transition: none; }
}
