/**
 * CPN Real Estate 1.6.66 — Unified SaaS visual system.
 * Author: CProjects Network · https://www.cprojectsnetwork.com
 * Optional and restricted to CPN plugin components. Does not recolor WP theme
 * header/footer, map raster/vector tiles, third-party branding or legal credits.
 */
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-directory-app,.cpn-re-client-portal,.cpn-re-if-portal,.cpn-re-explore-portal,.cpn-re-tour-modal),
body.cpn-re-global-theme :is(.cpn-ui-popover,.cpn-ui-portal,.cpn-re-compare-bar){
 --cpn-accent:var(--cpn-theme-accent)!important;
 --cpn-global-accent:var(--cpn-theme-link)!important;
 --cpn-text:var(--cpn-theme-text)!important;
 --cpn-panel:var(--cpn-theme-panel)!important;
 --cpn-line:var(--cpn-theme-line)!important;
 --cpn-soft:var(--cpn-theme-soft)!important;
 --cpn-bg:var(--cpn-theme-soft)!important;
 --cpn-muted:var(--cpn-theme-muted)!important;
 --cpn-client-border:var(--cpn-theme-line)!important;
 --cpn-client-soft:var(--cpn-theme-soft)!important;
 --cpn-portal-ink:var(--cpn-theme-text)!important;
 --cpn-portal-blue:var(--cpn-theme-accent)!important;
 accent-color:var(--cpn-theme-accent);
}
/* Consistent listings/surface treatments across Explorer, client portal,
 * related listings, landing feeds, dialogs and single property views. */
body.cpn-re-global-theme :is(
 .cpn-re-card,.cpn-re-contact-card,.cpn-re-info-card,.cpn-re-overview-card,
 .cpn-re-amenity-card,.cpn-re-collapse-card,.cpn-re-feature-section,
 .cpn-re-client-content,.cpn-re-client-welcome,.cpn-re-client-login,
 .cpn-re-client-tabs,.cpn-re-client-photo-card,.cpn-re-client-apply,
 .cpn-re-if-card,.cpn-re-if-sheet,.cpn-re-explore-tools,.cpn-re-explore-drawer,
 .cpn-re-popular-slide .cpn-re-card,.cpn-re-related-card,
 .cpn-re-feed-table,.cpn-re-list-panel,.cpn-re-app-filters,
 .cpn-re-sort-toolbar,.cpn-re-mode-controls,.cpn-re-compare-bar
 ){
 background-color:var(--cpn-theme-panel)!important;
 border-color:var(--cpn-theme-line)!important;
 color:var(--cpn-theme-text);
}
body.cpn-re-global-theme :is(.cpn-re-card,.cpn-re-if-card,.cpn-re-contact-card,.cpn-re-if-sheet,
 .cpn-re-client-content,.cpn-re-client-tabs,.cpn-re-explore-tools){
 box-shadow:0 8px 30px color-mix(in srgb,var(--cpn-theme-hero) 9%,transparent)!important;
}
/* Shared typographic hierarchy and secondary text, excluding the search form
 * where a separate contrast-checked dark palette is intentionally used. */
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-explore-portal,.cpn-re-if-portal)
 :is(h1,h2,h3,h4,.cpn-re-price,.cpn-re-single-price,.cpn-re-if-price,
 .cpn-re-if-detail-price,.cpn-re-client-header h1,.cpn-re-client-content h2){color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-explore-portal)
 :is(.cpn-re-card h3 a,.cpn-re-if-title,.cpn-re-client-welcome strong,
 .cpn-re-if-card-bottom a,.cpn-re-client-content strong){color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-explore-portal)
 :is(.cpn-re-card-link,.cpn-re-if-view-property,.cpn-re-explore-toolbar .bi,
 .cpn-re-client-edit-link,.cpn-re-neighborhood-link,.cpn-re-kicker,
 .cpn-re-directory-featured-heading .bi,.cpn-re-if-heading .bi){color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed)
 :is(.cpn-re-card-specs .bi,.cpn-re-if-specs .bi,.cpn-re-section-kicker .bi,
 .cpn-re-app-heading .bi,.cpn-re-card-location .bi){color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme :is(.cpn-re-card-specs,.cpn-re-card-footer,.cpn-re-if-card-bottom,
 .cpn-re-if-specs,.cpn-re-if-detail-specs,.cpn-re-client-tabs,.cpn-re-property-header,
 .cpn-re-client-account-note,.cpn-re-explore-toolbar){border-color:var(--cpn-theme-line)!important}
/* Badge meanings (rent, sold, furnished, pets) remain semantically colored,
 * but primary action states take the selected brand accent. */
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed)
 :is(.cpn-re-compare-toggle,.cpn-re-if-compare,.cpn-re-if-detail-save,
 .cpn-re-if-detail-share,.cpn-re-popular-buttons button,.cpn-re-client-property-actions a,
 .cpn-re-client-property-actions button){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-link)!important;
 border-color:var(--cpn-theme-line)!important;box-shadow:none!important;
}
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed)
 :is(.cpn-re-compare-toggle,.cpn-re-if-compare,.cpn-re-if-detail-save,
 .cpn-re-if-detail-share,.cpn-re-popular-buttons button):hover{
 background:var(--cpn-theme-soft)!important;color:var(--cpn-theme-soft-text)!important;
}
/* One shared, contrast-protected brand CTA style. Safety-critical and service
 * specific buttons (WhatsApp, map attribution, social provider buttons) retain
 * their distinctive colors and labels. */
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-explore-portal)
 :is(.cpn-re-btn-primary,.cpn-re-client-primary,.cpn-re-auth-submit,
 .cpn-re-inquiry-submit,.cpn-re-tour-submit,.cpn-re-explore-search-button,
 .cpn-re-explore-drawer-footer button[type="submit"],.cpn-re-if-detail-footer a,
 .cpn-re-if-full-property,.cpn-re-client-photo-choose,.cpn-re-if-more){
 background:var(--cpn-theme-accent)!important;
 background-image:none!important;
 color:var(--cpn-theme-on-accent)!important;
 border-color:var(--cpn-theme-accent)!important;
 box-shadow:none!important;
}
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-explore-portal)
 :is(.cpn-re-btn-primary,.cpn-re-client-primary,.cpn-re-auth-submit,
 .cpn-re-inquiry-submit,.cpn-re-tour-submit,.cpn-re-explore-search-button,
 .cpn-re-if-detail-footer a,.cpn-re-if-more) .bi{color:inherit!important}
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-explore-portal)
 :is(.cpn-re-btn-primary,.cpn-re-client-primary,.cpn-re-auth-submit,
 .cpn-re-inquiry-submit,.cpn-re-tour-submit,.cpn-re-explore-search-button,
 .cpn-re-if-more):hover{filter:brightness(.95)}
/* Special-case controls that live outside their visible parent in portals. */
body.cpn-re-global-theme :is(.cpn-re-if-sheet,.cpn-re-if-portal) .cpn-re-if-detail-footer :is(a,button){
 background:var(--cpn-theme-accent)!important;color:var(--cpn-theme-on-accent)!important;
 border-color:var(--cpn-theme-accent)!important;
}
/* Explorer modes, sorting, pagination, table history, popovers. */
body.cpn-re-global-theme :is(.cpn-re-mode-controls,.cpn-re-app-mode-switch,.cpn-re-history-modes,
 .cpn-re-sort-toolbar,.cpn-re-directory-toolbar,.cpn-re-explore-toolbar,
 .cpn-re-feed-table thead,.cpn-re-client-history-table-wrap thead){
 background:var(--cpn-theme-soft)!important;color:var(--cpn-theme-soft-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme :is(.cpn-re-mode-controls,.cpn-re-history-modes,.cpn-re-app-mode-switch)
 :is(button.is-active,button[aria-pressed="true"],button[aria-selected="true"],a.is-active){
 background:var(--cpn-theme-selection)!important;color:var(--cpn-theme-on-selection)!important;
 box-shadow:none!important;
}
body.cpn-re-global-theme :is(.cpn-re-feed-table,.cpn-re-history-table-wrap) :is(th,td){
 border-color:var(--cpn-theme-line)!important;color:var(--cpn-theme-text)!important;
}
body.cpn-re-global-theme :is(.cpn-re-feed-table,.cpn-re-history-table-wrap) tbody tr:nth-child(even){
 background:color-mix(in srgb,var(--cpn-theme-soft) 42%,var(--cpn-theme-panel))!important;
}
body.cpn-re-global-theme :is(.cpn-re-feed-table,.cpn-re-history-table-wrap) tbody tr:hover{
 background:var(--cpn-theme-soft)!important;
}
/* Details / rental terms / accordion sections. */
body.cpn-re-global-theme .cpn-re-single :is(.cpn-re-collapse-heading,.cpn-re-property-overview,
 .cpn-re-tour-panel,.cpn-re-rental-card,.cpn-re-section-card,.cpn-re-detail-card,
 .cpn-re-inquiry-form,.cpn-re-contact-card){
 background-color:var(--cpn-theme-panel)!important;
 border-color:var(--cpn-theme-line)!important;
 color:var(--cpn-theme-text)!important;
}
body.cpn-re-global-theme .cpn-re-single :is(.cpn-re-collapse-body,.cpn-re-overview-stat,
 .cpn-re-insight-row,.cpn-re-tour-day,.cpn-re-client-property-note,
 .cpn-re-rental-requirement,.cpn-re-amenity-pill){
 background-color:var(--cpn-theme-soft)!important;
 border-color:var(--cpn-theme-line)!important;
 color:var(--cpn-theme-soft-text)!important;
}
body.cpn-re-global-theme .cpn-re-single :is(.cpn-re-collapse-heading .bi,
 .cpn-re-expand-label,.cpn-re-tour-day .bi,.cpn-re-tour-eyebrow,
 .cpn-re-property-overview .bi){color:var(--cpn-theme-link)!important}
/* Drawer + Quick View + feed cards. Avoid recoloring property imagery. */
body.cpn-re-global-theme .cpn-re-landing-feed :is(.cpn-re-if-card,.cpn-re-if-info,
 .cpn-re-if-sheet,.cpn-re-if-sheet-top,.cpn-re-if-detail-content,
 .cpn-re-if-detail-footer,.cpn-re-if-gallery-actions){
 background:var(--cpn-theme-panel)!important;border-color:var(--cpn-theme-line)!important;
 color:var(--cpn-theme-text)!important;
}
body.cpn-re-global-theme .cpn-re-landing-feed :is(.cpn-re-if-price,.cpn-re-if-title,
 .cpn-re-if-detail-price,.cpn-re-if-detail-title){color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme .cpn-re-landing-feed :is(.cpn-re-if-sheet-kicker,.cpn-re-if-detail-address .bi,
 .cpn-re-if-quick .bi){color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme .cpn-re-explore-portal :is(.cpn-re-explore-drawer,
 .cpn-re-explore-drawer-heading,.cpn-re-explore-drawer-body,
 .cpn-re-explore-drawer-footer){background:var(--cpn-theme-panel)!important;
 color:var(--cpn-theme-text)!important;border-color:var(--cpn-theme-line)!important}
body.cpn-re-global-theme .cpn-re-explore-portal :is(.cpn-re-explore-drawer h3,
 .cpn-re-explore-drawer h4,.cpn-re-explore-field>span){color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme .cpn-re-explore-portal :is(.cpn-re-explore-drawer .bi,
 .cpn-re-explore-eyebrow){color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme .cpn-re-explore-portal :is(.cpn-re-explore-field input,
 .cpn-re-explore-field select,.cpn-re-explore-field .cpn-ui-trigger,
 .cpn-re-explore-input-wrap){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-explore-portal :is(.cpn-re-explore-filter-trigger,
 .cpn-re-explore-drawer-footer button[type="reset"]){
 background:var(--cpn-theme-soft)!important;color:var(--cpn-theme-soft-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
/* My Property Hub, standalone login and app dashboard. */
body.cpn-re-global-theme .cpn-re-client-portal :is(.cpn-re-client-header,
 .cpn-re-client-content,.cpn-re-client-welcome,.cpn-re-client-tabs,
 .cpn-re-client-apply,.cpn-re-client-quickstats,.cpn-re-client-empty-state,
 .cpn-re-client-photo-card,.cpn-re-client-account-note,.cpn-re-client-login,
 .cpn-re-client-requests,.cpn-re-auth-panel,.cpn-re-auth-shell){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-client-portal :is(.cpn-re-client-header,
 .cpn-re-client-photo-card,.cpn-re-client-empty-state){
 background:linear-gradient(135deg,var(--cpn-theme-panel),var(--cpn-theme-soft))!important;
}
body.cpn-re-global-theme .cpn-re-client-portal :is(.cpn-re-client-header h1,
 .cpn-re-client-header p,.cpn-re-client-content h2,
 .cpn-re-auth-inner h1,.cpn-re-auth-mobile-brand,
 .cpn-re-client-quickstats strong){color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme .cpn-re-client-portal :is(.cpn-re-client-tabs a.is-active,
 .cpn-re-client-tabs a:hover,.cpn-re-history-modes button.is-active){
 background:var(--cpn-theme-soft)!important;color:var(--cpn-theme-soft-text)!important;
}
body.cpn-re-global-theme .cpn-re-client-portal :is(.cpn-re-client-edit-link,
 .cpn-re-auth-foot a,.cpn-re-client-header>.bi,
 .cpn-re-client-photo-actions label .bi){color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme .cpn-re-client-portal :is(.cpn-re-auth-submit,
 .cpn-re-client-primary,.cpn-re-client-photo-choose,.cpn-re-auth-form [type="submit"]){
 background:var(--cpn-theme-accent)!important;color:var(--cpn-theme-on-accent)!important;
 border-color:var(--cpn-theme-accent)!important;box-shadow:none!important;
}
body.cpn-re-global-theme .cpn-re-client-portal form :is(input:not([type="checkbox"]),textarea,select){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-client-portal form label{color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme .cpn-re-client-portal :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--cpn-theme-accent)!important}
/* Unify app-only navigation, plugin header, optional global floating dock and
 * independent dropdowns outside plugin containers. */
body.cpn-re-global-theme #cpn-re-global-mobile-nav{
 background:color-mix(in srgb,var(--cpn-theme-panel) 95%,transparent)!important;
 border-top-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme #cpn-re-global-mobile-nav .cpn-re-global-mobile-link{
 color:var(--cpn-theme-muted)!important;
}
body.cpn-re-global-theme #cpn-re-global-mobile-nav .cpn-re-global-mobile-link:is(.is-active,[aria-current="page"]){
 background:var(--cpn-theme-soft)!important;color:var(--cpn-theme-soft-text)!important;
}
body.cpn-re-global-theme #cpn-re-app-header :is(.cpn-re-app-header-cta,
 .cpn-re-app-header-icon.is-active){background:var(--cpn-theme-accent)!important;
 color:var(--cpn-theme-on-accent)!important;border-color:var(--cpn-theme-accent)!important}
body.cpn-re-global-theme :is(.cpn-ui-popover,.cpn-ui-portal):not(.cpn-ui-search-themed){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme :is(.cpn-ui-popover,.cpn-ui-portal):not(.cpn-ui-search-themed)
 .cpn-ui-option:is([aria-selected="true"],.is-selected){
 background:var(--cpn-theme-selection)!important;color:var(--cpn-theme-on-selection)!important;
}
body.cpn-re-global-theme .cpn-re-compare-bar{
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-compare-bar a{
 background:var(--cpn-theme-accent)!important;color:var(--cpn-theme-on-accent)!important;
 border-color:var(--cpn-theme-accent)!important;
}
/* Form focus and component accessibility. Never alter Leaflet/OpenStreetMap
 * credit contrast nor externally embedded Matterport/YouTube widgets. */
body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed,.cpn-re-client-portal)
 :is(button,a,input,select,textarea):focus-visible{
 outline-color:var(--cpn-theme-accent)!important;outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
 body.cpn-re-global-theme :is(.cpn-re,.cpn-re-landing-feed) *{scroll-behavior:auto!important}
}

/* Map-related plugin UI only (never touch tiles, MapLibre/Leaflet credits). */
body.cpn-re-global-theme .cpn-re :is(.cpn-re-map-zoom,.cpn-re-map-popup,
 .cpn-re-detail-map .leaflet-control-zoom){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re :is(.cpn-re-map-zoom>button,
 .cpn-re-map-popup a,.cpn-re-map-zoom .bi){color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme .cpn-re :is(.cpn-re-map-zoom>button,
 .cpn-re-map-zoom button[data-cpn-map-zoom]):hover{
 background:var(--cpn-theme-soft)!important;color:var(--cpn-theme-soft-text)!important;
}
body.cpn-re-global-theme .cpn-re :is(.cpn-re-map-pin,.cpn-re-map-pin.is-active){
 background:var(--cpn-theme-accent)!important;color:var(--cpn-theme-on-accent)!important;
 border-color:var(--cpn-theme-accent)!important;
}
body.cpn-re-global-theme .cpn-re-exterior3d .cpn-re-exterior3d-stage
 .cpn-re-exterior3d-controls{
 background:var(--cpn-theme-panel)!important;border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-exterior3d .cpn-re-exterior3d-stage
 .cpn-re-exterior3d-controls>button{color:var(--cpn-theme-link)!important}
body.cpn-re-global-theme .cpn-re-exterior3d .cpn-re-exterior3d-stage
 .cpn-re-exterior3d-controls>button[data-cpn-3d-control="play"]{
 background:var(--cpn-theme-accent)!important;color:var(--cpn-theme-on-accent)!important;
}
/* Touring overlay and property visit scheduler, including detached dialogs. */
body.cpn-re-global-theme .cpn-re-tour-modal :is(.cpn-re-tour-dialog,
 .cpn-re-tour-dialog-head,.cpn-re-tour-dialog-scroll){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-tour-modal :is(.cpn-re-tour-dialog-head h2,
 .cpn-re-tour-row label,.cpn-re-tour-field,.cpn-re-tour-timezone){color:var(--cpn-theme-text)!important}
body.cpn-re-global-theme .cpn-re-tour-modal :is(input,textarea,select){
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-text)!important;
 border-color:var(--cpn-theme-line)!important;
}
body.cpn-re-global-theme .cpn-re-tour-modal .cpn-re-tour-submit,
body.cpn-re-global-theme .cpn-re-tour-cta{
 background:var(--cpn-theme-accent)!important;color:var(--cpn-theme-on-accent)!important;
 border-color:var(--cpn-theme-accent)!important;box-shadow:none!important;
}
body.cpn-re-global-theme .cpn-re-tour-days button.is-selected,
body.cpn-re-global-theme .cpn-re-tour-days button[aria-pressed="true"]{
 background:var(--cpn-theme-selection)!important;color:var(--cpn-theme-on-selection)!important;
 border-color:var(--cpn-theme-selection)!important;
}
/* Back button is visible only inside a single property; preserve its position. */
body.cpn-re-global-theme #cpn-re-global-back-navigation{
 background:var(--cpn-theme-panel)!important;color:var(--cpn-theme-link)!important;
 border-color:var(--cpn-theme-line)!important;
}
