/**
 * Text contrast for light dashboard palette.
 * Dark text on page surfaces; light text only on forest-green chrome.
 */

:root {
	--ls-text-on-dark: #f3f3f3;
	--ls-text-muted-on-dark: rgba(255, 255, 255, 0.78);
	--ls-text-on-light: #1a301f;
	--ls-text-muted-on-light: #5a6b60;
	--ls-link-on-dark: #e0c36a;
	--ls-link-on-dark-hover: #f0d78a;
	--ls-link-on-light: #1a301f;
	--ls-link-on-light-hover: #c9a84c;
}

/* ========== Light page / content surfaces ========== */
body,
.wp-site-blocks,
main,
.es-wrap,
.es-properties,
.es-listings-filter,
.es-listing,
.es-listing__content,
.es-auth,
.es-property-management,
.es-single,
.es-entity {
	color: var(--ls-brand-text, var(--ls-text-on-light)) !important;
}

h1, h2, h3, h4, h5, h6,
.es-title,
.es-subtitle,
.es-listing__title,
.es-listing__title a,
.es-listing__price,
.es-price,
.es-total,
.es-listings-filter .es-title,
.es-profile__content h2,
.es-profile__content .es-title-with-button h2,
.es-profile-heading {
	color: var(--ls-brand-text, var(--ls-text-on-light)) !important;
}

/* Footer column titles stay gold on forest chrome */
.ls-site-footer h2,
.ls-site-footer .ls-site-footer__heading {
	color: var(--ls-chrome-accent, #c9a84c) !important;
}

.es-listing__address,
.es-listing__meta,
.es-listing__content p,
.es-field__description,
.es-profile__content p,
.es-subtitle {
	color: var(--ls-brand-text-muted, var(--ls-text-muted-on-light)) !important;
}

/* Links on light surfaces — forest ink, gold hover */
body a:where(:not(.es-btn):not(.elementor-button):not(.wp-block-button__link):not(.ls-custom-header-login__link):not(.wp-block-navigation-item__content):not(.ls-ad-banner__cta):not(.ls-site-footer a):not(.ls-site-header-chrome a):not(.ls-dash-topbar a)),
.es-wrap a:where(:not(.es-btn):not(.ls-ad-banner__cta):not(.es-profile__menu a)),
.es-listing a:where(:not(.es-btn)),
.es-auth a:where(:not(.es-btn)),
.es-secondary-color,
a.es-secondary-color {
	color: var(--ls-link-on-light) !important;
}

body a:where(:not(.es-btn):not(.ls-ad-banner__cta):not(.ls-site-footer a):not(.ls-site-header-chrome a)):hover,
.es-wrap a:where(:not(.es-btn):not(.ls-ad-banner__cta):not(.es-profile__menu a)):hover,
.es-auth a:where(:not(.es-btn)):hover {
	color: var(--ls-link-on-light-hover) !important;
}

/* Profile sidebar nav — dark text on light sidebar */
.es-profile__menu li a,
.es-profile__menu li a.es-secondary-color {
	color: var(--ls-text-muted-on-light) !important;
}

.es-profile__menu li a:hover,
.es-profile__menu li.active a,
.es-profile__menu li.active-counter a,
.es-profile__menu li.active a.es-secondary-color {
	color: var(--ls-text-on-light) !important;
}

.es-user__name,
.es-user__name a,
.es-profile__sidebar__user,
.es-profile__sidebar__user a {
	color: var(--ls-text-on-light) !important;
}

/* Search filter bar */
.es-search,
.es-search .js-es-search-nav__label,
.es-search-nav > li > a,
.es-search-nav.es-search-nav--dropdowns > li > a,
.es-search__collapse-link,
.es-search-nav__reset,
.es-search-nav__reset-mobile {
	color: var(--ls-text-on-light) !important;
}

.es-search-nav.es-search-nav--dropdowns > li {
	background: var(--ls-brand-surface, #fff) !important;
	border-color: var(--ls-brand-border, rgba(26, 48, 31, 0.14)) !important;
}

.es-search-nav.es-search-nav--dropdowns > li > a {
	color: var(--ls-text-on-light) !important;
}

/* Inputs on light */
.es-field .es-field__label,
.es-field label {
	color: var(--ls-text-on-light) !important;
}

.es-field input[type="text"],
.es-field input[type="email"],
.es-field input[type="password"],
.es-field input[type="tel"],
.es-field input[type="number"],
.es-field input[type="search"],
.es-field select,
.es-field textarea,
.es-field .select2-container .select2-selection,
.es-search__address input,
.js-es-address {
	background-color: var(--ls-brand-surface, #fff) !important;
	color: var(--ls-text-on-light) !important;
	border-color: var(--ls-brand-border, rgba(26, 48, 31, 0.18)) !important;
}

/* Keep half-map chrome controls dark green (not light-form white). */
.es-properties.ls-landflip-split .ls-search__universal input,
.es-properties.ls-landflip-split .es-search__address input,
.es-properties.ls-landflip-split .ls-search__universal .js-es-address,
.es-properties.ls-landflip-split .es-search__address .js-es-address,
.es-properties.ls-landflip-split .ls-search__price,
.es-properties.ls-landflip-split .ls-search__price .es-field,
.es-properties.ls-landflip-split .ls-search__price .js-es-field,
.es-properties.ls-landflip-split .ls-search__price select,
.es-properties.ls-landflip-split .ls-search__price .es-field select,
.es-properties.ls-landflip-split .ls-search__price select.es-field__input,
.es-properties.ls-landflip-split .ls-search__price .js-es-search-field,
.es-properties.ls-landflip-split .ls-search__price input[type="number"],
.es-properties.ls-landflip-split .ls-search__price input[type="text"],
.es-properties.ls-landflip-split .ls-search__price .select2-container .select2-selection,
.es-properties.ls-landflip-split .ls-search__price .select2-selection--single {
	background: transparent !important;
	background-color: transparent !important;
	color: rgba(255, 255, 255, 0.92) !important;
	border-color: transparent !important;
	color-scheme: dark;
}

.es-properties.ls-landflip-split .ls-search__price .select2-selection__rendered,
.es-properties.ls-landflip-split .ls-search__price .select2-selection__placeholder {
	color: rgba(255, 255, 255, 0.92) !important;
}

.es-properties.ls-landflip-split .ls-search__universal input::placeholder,
.es-properties.ls-landflip-split .es-search__address input::placeholder {
	color: rgba(255, 255, 255, 0.45) !important;
}

.es-field input::placeholder,
.js-es-address::placeholder {
	color: var(--ls-text-muted-on-light) !important;
	opacity: 1;
}

/* Layout Grid/List/Map chips */
body .es-control.es-control--layouts li a.js-es-change-layout {
	color: var(--ls-text-on-light) !important;
	background: #eff3f5 !important;
	border-color: #d8dee2 !important;
}

body .es-control.es-control--layouts li a.js-es-change-layout.es-btn--active,
body .es-control.es-control--layouts li a.js-es-change-layout:hover {
	color: #fff !important;
	background: var(--ls-brand-primary, #1a301f) !important;
	border-color: var(--ls-brand-primary, #1a301f) !important;
}

.es-btn.es-btn--default,
.es-btn.es-btn--gray,
.es-btn__compare,
.es-btn__wishlist {
	color: var(--ls-text-on-light) !important;
}

.es-btn.es-btn--default .es-btn__label,
.es-btn__compare .es-btn__label,
.es-btn__wishlist .es-btn__label {
	color: inherit !important;
}

.es-btn.es-btn--primary:not(.es-btn--bordered),
.es-btn.es-btn--secondary:not(.es-btn--bordered),
button.es-btn--primary,
button.es-btn--secondary:not(.es-btn--bordered),
a.es-btn--primary,
a.es-btn--secondary:not(.es-btn--bordered) {
	color: #fff !important;
}

/* Bordered secondary — gold outline (dashboard “Become a Seller”) */
.es-btn.es-btn--secondary.es-btn--bordered,
a.es-btn--secondary.es-btn--bordered,
button.es-btn--secondary.es-btn--bordered,
.es-auth .es-btn.es-btn--secondary.es-btn--bordered {
	color: var(--ls-chrome-accent, #c9a84c) !important;
	border-color: var(--ls-chrome-accent, #c9a84c) !important;
	background: transparent !important;
}

.es-btn.es-btn--secondary.es-btn--bordered:hover,
a.es-btn--secondary.es-btn--bordered:hover {
	color: #1a301f !important;
	background: var(--ls-chrome-accent, #c9a84c) !important;
	border-color: var(--ls-chrome-accent, #c9a84c) !important;
}

/* ========== Chrome: header / footer / dash topbar (light text on forest) ========== */
.ls-site-header-chrome,
.ls-site-header-chrome a,
.ls-site-header-chrome .wp-block-navigation-item__content,
.ls-custom-header-login a,
.ls-dash-topbar,
.ls-dash-topbar a,
.ls-dash-topbar button,
.ls-blog-rail,
.ls-blog-rail__heading,
.ls-blog-rail__title {
	color: var(--ls-chrome-text, #fff) !important;
}

.ls-site-header-chrome a:hover,
.ls-dash-topbar a:hover {
	color: var(--ls-chrome-accent, #c9a84c) !important;
}

/* Footer columns — readable light text on forest chrome (override global dark h2/a) */
.ls-site-footer,
.ls-site-footer .ls-site-footer__copy,
.ls-site-footer .ls-site-footer__bottom {
	color: rgba(232, 239, 233, 0.85) !important;
	background-color: transparent;
}

.ls-site-footer {
	background: linear-gradient(
		180deg,
		var(--ls-chrome-bg, #1a301f) 0%,
		var(--ls-chrome-bg-deep, #14261a) 100%
	) !important;
}

.ls-site-footer h1,
.ls-site-footer h2,
.ls-site-footer h3,
.ls-site-footer h4,
.ls-site-footer .ls-site-footer__heading,
.ls-site-footer h2.ls-site-footer__heading {
	color: var(--ls-chrome-accent, #c9a84c) !important;
}

.ls-site-footer .ls-site-footer__logo,
.ls-site-footer .ls-site-footer__logo a {
	color: #fff !important;
}

.ls-site-footer .ls-site-footer__tagline {
	color: var(--ls-chrome-accent, #c9a84c) !important;
}

.ls-site-footer .ls-site-footer__desc {
	color: rgba(232, 239, 233, 0.82) !important;
}

.ls-site-footer .ls-site-footer__links a,
.ls-site-footer a.ls-site-footer__social-link,
.ls-site-footer .ls-site-footer__domain a {
	color: rgba(232, 239, 233, 0.92) !important;
}

.ls-site-footer .ls-site-footer__links a:hover,
.ls-site-footer .ls-site-footer__links a:focus,
.ls-site-footer .ls-site-footer__logo a:hover,
.ls-site-footer .ls-site-footer__logo a:focus,
.ls-site-footer .ls-site-footer__domain a:hover,
.ls-site-footer .ls-site-footer__domain a:focus {
	color: var(--ls-chrome-accent-soft, #e0c36a) !important;
}

.es-profile a:not(.es-btn):not(.es-profile__menu a) {
	color: #1a301f !important;
}

.es-profile a:not(.es-btn):not(.es-profile__menu a):hover {
	color: var(--ls-chrome-accent, #c9a84c) !important;
}

/* Seller / buyer cards — dark text on light cards */
.ls-seller-plans-section .ls-seller-plans,
.ls-seller-plans-section .ls-seller-plans__name,
.ls-seller-plans-section .ls-seller-plans__card {
	color: #1a301f !important;
}

.ls-seller-plans-section .ls-seller-plans__desc,
.ls-seller-plans-section .ls-seller-plans__current,
.ls-seller-plans-section .ls-auth-login__alt,
.ls-seller-plans-section .ls-auth-login__alt a {
	color: #5a6b60 !important;
}

.ls-seller-plans-section .ls-auth-login__alt a:hover {
	color: #1a301f !important;
}

/* Hero — white type on forest band */
body.page-id-145 .elementor-element-f0ebc25 .elementor-heading-title,
body.home .elementor-element-f0ebc25 .elementor-heading-title {
	color: #fff !important;
}

body.page-id-145 .elementor-element-f0ebc25 .elementor-button,
body.home .elementor-element-f0ebc25 .elementor-button,
body.page-id-145 .elementor-element-f0ebc25 .elementor-button .elementor-button-text,
body.home .elementor-element-f0ebc25 .elementor-button .elementor-button-text {
	/* Hero CTA colors live in hero-landflip.css (gold / outline). */
	color: inherit !important;
}

/* Tables */
.es-table thead th {
	color: var(--ls-text-on-light) !important;
}

.es-table tbody td {
	color: var(--ls-text-muted-on-light) !important;
}

/* Single property */
.es-single p,
.es-single li,
.es-single td,
.es-single th,
.es-single strong,
.es-single span:not(.es-icon):not(.es-badge):not(.es-btn__label),
.es-single .es-address,
.es-single .es-excerpt,
.es-single .es-description,
.es-single .es-content {
	color: var(--ls-text-on-light) !important;
}

.es-property-field__label,
.es-entity-field__label,
.es-fields-list__label {
	color: var(--ls-text-muted-on-light) !important;
}

.es-property-field__value,
.es-entity-field__value,
.es-fields-list__value {
	color: var(--ls-text-on-light) !important;
}

.es-single a:where(:not(.es-btn):not(.es-badge a)),
.es-entity a:where(:not(.es-btn):not(.es-badge a)) {
	color: var(--ls-link-on-light) !important;
}

.es-single a:where(:not(.es-btn):not(.es-badge a)):hover,
.es-entity a:where(:not(.es-btn):not(.es-badge a)):hover {
	color: var(--ls-link-on-light-hover) !important;
}

.es-single .es-badge,
.es-single .es-badge a,
.es-entity .es-badge,
.es-entity .es-badge a,
.es-listing .es-badge a {
	color: #1a1a1a !important;
}

.es-navigation,
.es-entities-list .es-navigation,
.js-es-entities-wrap .es-navigation {
	color: var(--ls-text-muted-on-light) !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered,
body .select2-container--default .select2-selection--multiple .select2-selection__rendered,
body .select2-container--default .select2-selection__placeholder,
body .select2-container--default .select2-selection__choice,
body .es-search .select2-selection__rendered,
body .es-field .select2-selection__rendered {
	color: var(--ls-text-on-light) !important;
}

body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-selection--multiple {
	background-color: #fff !important;
	border-color: rgba(26, 48, 31, 0.18) !important;
}

.es-entities .content-font,
.es-agent .content-font,
.es-no-posts,
.es-entities__message,
.es-listings__message {
	color: var(--ls-text-muted-on-light) !important;
}

.es-pagination .page-numbers,
.es-pagination ul li a.page-numbers,
.es-pagination ul li span.page-numbers,
.es-pagination ul li span.current,
.es-pagination .page-numbers__num {
	color: #1a1a1a !important;
}

.es-pagination ul li a.page-numbers:hover,
.es-pagination ul li span.current,
.es-pagination ul li .page-numbers.current {
	color: #1a1a1a !important;
	background: #fff !important;
	border-color: var(--ls-chrome-accent, #c9a84c) !important;
}

.bdpp-post-meta-data,
.bdpp-post-date,
.bdpp-post-meta,
.blog .entry-meta,
.archive .entry-meta {
	color: var(--ls-text-muted-on-light) !important;
}

.sp-easy-accordion .ea-header,
.sp-easy-accordion .ea-header a,
.sp-easy-accordion .collapsed,
.sp-easy-accordion .sp-collapse,
.sp-easy-accordion .sp-panel-body,
.sp-easy-accordion .ea-body,
.sp-easy-accordion .panel-title,
.sp-easy-accordion .panel-title a {
	color: #1a1a1a !important;
}

/* Agents archive cards */
body.page-id-16 .es-entities .es-entity,
.post-type-archive-agent .es-entities .es-entity,
.post-type-archive-agency .es-entities .es-entity {
	color: var(--ls-text-on-light) !important;
}

body.page-id-16 .es-entities .es-entity .es-entity__title,
body.page-id-16 .es-entities .es-entity .es-entity__title a,
body.page-id-16 .es-entities .es-entity a:where(:not(.es-btn):not(.es-badge a)),
.post-type-archive-agent .es-entities .es-entity .es-entity__title,
.post-type-archive-agent .es-entities .es-entity .es-entity__title a {
	color: #1a301f !important;
}

body.page-id-16 .es-entities .es-entity .es-entity__content,
body.page-id-16 .es-entities .es-entity p,
.post-type-archive-agent .es-entities .es-entity .es-entity__content,
.post-type-archive-agent .es-entities .es-entity p {
	color: #5a6b60 !important;
}

body.page-id-16 .es-entities .es-btn.es-btn--secondary.es-btn--bordered,
.post-type-archive-agent .es-entities .es-btn.es-btn--secondary.es-btn--bordered {
	color: var(--ls-chrome-accent, #c9a84c) !important;
	border-color: var(--ls-chrome-accent, #c9a84c) !important;
	background: transparent !important;
}

/* Share / magnific popups — light cards */
.es-share,
.es-share h4,
.es-share .es-field__label,
.es-share-popup,
.es-share-popup h3,
.es-share-popup p,
.es-share-popup label,
.mfp-content,
.mfp-content h3,
.mfp-content p,
.mfp-content label,
#es-authentication-popup,
#es-authentication-popup h3 {
	color: #1a1a1a !important;
}

.es-share-popup input,
.mfp-content input,
#es-authentication-popup input {
	color: #1a1a1a !important;
	background: #fff !important;
}

.mfp-content a:where(:not(.es-btn)),
#es-authentication-popup a:where(:not(.es-btn)) {
	color: #1a301f !important;
}

/* Auth panels on light page */
.es-auth .es-auth__item {
	background: #fff !important;
	border: 1px solid rgba(26, 48, 31, 0.12) !important;
	color: #1a301f !important;
}

.es-auth .es-auth__item h3,
.es-auth .es-auth__item .heading-font,
.es-auth .es-auth__item .es-title,
.es-auth .es-auth__item p,
.es-auth .es-auth__item .es-field__label,
.es-auth .es-auth__item label {
	color: #1a301f !important;
}

.es-auth .es-auth__item p,
.es-auth .es-auth__item .sign-in-text {
	color: #5a6b60 !important;
}

.es-auth .es-auth__item a:not(.es-btn),
.es-auth .js-es-auth-item__switcher {
	color: #8a6e28 !important;
}

.es-auth .es-auth__item .es-btn.es-btn--secondary.es-btn--bordered {
	color: var(--ls-chrome-accent, #c9a84c) !important;
	border-color: var(--ls-chrome-accent, #c9a84c) !important;
}

.ls-auth-page-intro__lead {
	color: #5a6b60 !important;
}

.ls-auth-page-intro__title {
	color: #8a6e28 !important;
}

.ls-auth-page-intro__eyebrow {
	color: #1a301f !important;
}
