/* PCP site — header additions (site.css is the demo's, unchanged). */

/*
 * JetSearch live search in the header: the icon opens a popup with instant results.
 * Its <button>s must not take the kit's navy button style (out-rank ".elementor-kit-N button").
 */
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__popup-trigger {
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--e-global-color-primary);
	transition: background-color .15s;
}
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__popup-trigger:hover,
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__popup-trigger:focus-visible { background: #EAF6FB; }
.pcp-search .jet-ajax-search__popup-trigger-icon svg { width: 18px; height: 18px; fill: currentColor; }
body[class*="elementor-kit-"] .pcp-search :is(.jet-ajax-search__popup-close, .jet-ajax-search__results-count) {
	padding: 6px; border: 0; background: transparent; color: inherit;
}
/*
 * The popup: a panel under the icon, right-aligned. JetSearch sizes it to the widget box
 * (max-width: 100% of the 40 px icon), which squeezed the form into 40 px.
 */
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__popup { width: min(560px, calc(100vw - 32px)); max-width: none; }
body[class*="elementor-kit-"] .pcp-search :is(.jet-ajax-search-popup-active, .jet-ajax-search-transition-in, .jet-ajax-search-transition-out) .jet-ajax-search__popup {
	top: calc(100% + 18px); right: -8px; left: auto;
}
.pcp-search .jet-ajax-search__popup-content {
	width: 100%; gap: 8px; align-items: center; padding: 12px;
	border: 1px solid #DCE4EE; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(11, 31, 77, .16);
}
.pcp-search .jet-ajax-search__popup-form, .pcp-search .jet-ajax-search__form { flex: 1 1 auto; min-width: 0; }
.pcp-search .jet-ajax-search__form { align-items: stretch; gap: 8px; }
.pcp-search .jet-ajax-search__field {
	height: 48px; padding: 0 14px; border: 1px solid #DCE4EE; border-radius: 8px; background: #fff;
	font-size: 16px; color: var(--e-global-color-primary);
}
.pcp-search .jet-ajax-search__field:focus { border-color: var(--e-global-color-secondary); outline: 2px solid rgba(15, 124, 119, .25); outline-offset: 0; }
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__submit {
	align-self: stretch; height: auto; min-height: 48px; padding: 0 18px; border: 0; border-radius: 8px;
	background: var(--e-global-color-secondary); color: #fff;
}
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__submit:hover,
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__submit:focus-visible { background: var(--e-global-color-b7e0a01); }
.pcp-search .jet-ajax-search__submit-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* Live results inside the panel: no second frame; navy titles, grey summaries. */
body[class*="elementor-kit-"] .elementor-location-header .pcp-search .jet-ajax-search__results-area { margin-top: 10px; border-top: 1px solid #EEF2F7; box-shadow: none; }
.pcp-search .jet-ajax-search__item-link { color: var(--e-global-color-primary); }
.pcp-search .jet-ajax-search__item-title { color: var(--e-global-color-primary); font-weight: 700; }
.pcp-search .jet-ajax-search__item-content { color: var(--e-global-color-text); font-size: 14px; }
.pcp-search .jet-ajax-search__item-link:is(:hover, :focus-visible) .jet-ajax-search__item-title { color: var(--e-global-color-secondary); }
body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__full-results {
	padding: 6px 0; border: 0; background: transparent; color: var(--e-global-color-secondary); font-weight: 600;
}

@media (max-width: 767px) {
	body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__popup-trigger { width: 34px; height: 34px; }
	/* Phones: full-width panel under the header (the icon sits near the right edge). */
	body[class*="elementor-kit-"] .pcp-search :is(.jet-ajax-search-popup-active, .jet-ajax-search-transition-in, .jet-ajax-search-transition-out) .jet-ajax-search__popup {
		position: fixed; top: 76px; right: 16px; left: 16px; width: auto; z-index: 1000;
	}
	.pcp-search .jet-ajax-search__popup-content { padding: 10px; }
	body[class*="elementor-kit-"] .pcp-search .jet-ajax-search__submit { padding: 0 14px; }
}
