/* Shared navigation and page headings. Deliberately does not target listing grids. */
body.sspres {
  --sspres-heading-bg: #171d16;
  --sspres-heading-edge: #39472f;
  --sspres-heading-ink: #f5f7ef;
  --sspres-heading-muted: #cbd3c2;
  --sspres-heading-lime: #d9fd53;
}

/* Retain the chosen web font and provide a usable sans-serif stack when it cannot load. */
body.theme-listeo.sspres {
  font-family: Raleway, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.theme-listeo.sspres #wrapper .ssx-directory-search :is(input:not([type="hidden"]), select, textarea, button) {
  font-family: inherit;
}

/* Keep the original header in the page flow; the theme still controls its sticky clone. */
body.sspres.theme-listeo #wrapper #header-container {
  background: #111510 !important;
  border-bottom: 1px solid #34402a;
}
body.sspres.theme-listeo #wrapper #header-container > #header {
  background: #111510 !important;
  color: var(--sspres-heading-ink) !important;
  box-shadow: 0 6px 22px rgb(0 0 0 / .16);
}
body.sspres.theme-listeo #wrapper #header-container > #header:not(.cloned) {
  position: relative !important;
  border-bottom: 0;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 > ul > li > a {
  color: var(--sspres-heading-ink) !important;
  background: transparent !important;
  border-radius: 7px;
  font-weight: 650;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a {
  color: var(--sspres-heading-lime) !important;
  background: #28331b !important;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 > ul > li > a[href$="/add-listing/"] {
  color: var(--sspres-heading-lime) !important;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 > ul > li:hover > a,
body.sspres.theme-listeo #wrapper #header #navigation.style-1 > ul > li > a:focus-visible {
  background: var(--sspres-heading-lime) !important;
  color: #141a0d !important;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 ul.sub-menu {
  min-width: 228px;
  padding: 8px !important;
  border: 1px solid #4b5c3b !important;
  border-radius: 10px;
  background: #1b2318 !important;
  color: var(--sspres-heading-ink) !important;
  box-shadow: 0 16px 32px rgb(0 0 0 / .38);
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 ul.sub-menu > li > a {
  padding: 10px 14px !important;
  border-radius: 6px;
  background: #1b2318 !important;
  color: var(--sspres-heading-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45 !important;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 ul.sub-menu > li:is(.current-menu-item, .current-menu-ancestor) > a,
body.sspres.theme-listeo #wrapper #header #navigation.style-1 ul.sub-menu > li > a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--sspres-heading-lime) !important;
  color: #141a0d !important;
}
body.sspres.theme-listeo #wrapper #header #navigation.style-1 a :is(span, i),
body.sspres.theme-listeo #wrapper #header #navigation.style-1 a::after {
  color: inherit !important;
}
body.sspres.theme-listeo #wrapper #header :is(.user-name, .header-widget > a:not(.button)) {
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper #header .user-menu ul {
  background: #1b2318 !important;
  border: 1px solid #4b5c3b !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper #header .user-menu ul li a {
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper #header .user-menu ul li a:is(:hover, :focus-visible) {
  background: #29351e !important;
  color: var(--sspres-heading-lime) !important;
}
body.sspres.theme-listeo #wrapper #header .header-widget :is(.sign-in, .button) {
  border: 1px solid #6d7e4d !important;
  background: #27321c !important;
  color: var(--sspres-heading-lime) !important;
}
body.sspres.theme-listeo #wrapper #header .header-widget :is(.sign-in, .button):hover {
  background: var(--sspres-heading-lime) !important;
  color: #141a0d !important;
}
body.sspres.theme-listeo #wrapper #header .hamburger-inner,
body.sspres.theme-listeo #wrapper #header .hamburger-inner::before,
body.sspres.theme-listeo #wrapper #header .hamburger-inner::after {
  background: var(--sspres-heading-lime) !important;
}

/* The mobile menu is a sibling of #wrapper, not a descendant. */
body.sspres.theme-listeo :is(.mobile-navigation-wrapper, .mobile-nav-header, .mobile-navigation-list) {
  background: #151c12 !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #mobile-nav > li > a,
body.sspres.theme-listeo #mobile-nav .menu-item-has-children > ul.sub-menu > li > a,
body.sspres.theme-listeo #mobile-nav .menu-item-has-children > ul.sub-menu > .sub-menu-back-btn {
  color: var(--sspres-heading-ink) !important;
  background: #151c12 !important;
  border-color: #38492c !important;
}
body.sspres.theme-listeo #mobile-nav .menu-item-has-children > ul.sub-menu {
  background: #151c12 !important;
  border-color: #38492c !important;
}
body.sspres.theme-listeo #mobile-nav > li:is(.current-menu-item, .current-menu-ancestor) > a,
body.sspres.theme-listeo #mobile-nav > li > a:is(:hover, :focus-visible),
body.sspres.theme-listeo #mobile-nav .menu-item-has-children > ul.sub-menu > li.current-menu-item > a,
body.sspres.theme-listeo #mobile-nav .menu-item-has-children > ul.sub-menu > li > a:is(:hover, :focus-visible),
body.sspres.theme-listeo #mobile-nav .menu-item-has-children > ul.sub-menu > .sub-menu-back-btn:is(:hover, :focus-visible) {
  background: #2c391e !important;
  color: var(--sspres-heading-lime) !important;
}
body.sspres.theme-listeo .mobile-navigation-wrapper :is(h4, .widget-title, a) {
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo .mobile-navigation-wrapper .menu-icon-toggle::before,
body.sspres.theme-listeo .mobile-navigation-wrapper .menu-icon-toggle::after {
  background: var(--sspres-heading-lime) !important;
}

/* Native title bands cover the archive, blog, account, checkout and policy templates. */
body.sspres.theme-listeo #wrapper > #titlebar:not(.listing-titlebar) {
  background: linear-gradient(110deg, #202a18 0%, #171d16 60%, #131811 100%) !important;
  border-bottom: 1px solid var(--sspres-heading-edge);
  padding: clamp(30px, 4vw, 54px) 0 !important;
  margin: 0 0 34px !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper #titlebar:not(.listing-titlebar) :is(h1, h2) {
  max-width: 26ch;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sspres-heading-ink) !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(30px, 4.2vw, 52px) !important;
  font-weight: 780 !important;
  letter-spacing: -.045em;
  line-height: 1.12 !important;
  overflow-wrap: break-word;
}
body.sspres.theme-listeo #wrapper #titlebar:not(.listing-titlebar) :is(h1, h2)::before,
body.sspres.theme-listeo #wrapper .ssx-directory-title::before,
body.sspres.theme-listeo #wrapper article.page > .ss-intro > h1::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 0 16px;
  border-radius: 3px;
  background: var(--sspres-heading-lime);
}
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs {
  position: relative !important;
  display: block;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: 100%;
  margin: 16px 0 0 !important;
  text-align: left;
  color: var(--sspres-heading-muted) !important;
}
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs :is(ul, li, span, a) {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--sspres-heading-muted) !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.55;
}
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs li {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs a,
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs a span {
  color: var(--sspres-heading-lime) !important;
}
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs li::before {
  color: #a5b28f !important;
}
body.sspres.theme-listeo #wrapper #titlebar #breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category pages own their heading, descriptive copy, tabs and search controls. */
body.sspres.theme-listeo #wrapper .ssx-directory-intro {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 28px auto 34px !important;
  padding: clamp(22px, 3.5vw, 40px) !important;
  border: 1px solid var(--sspres-heading-edge);
  border-radius: 14px;
  background: linear-gradient(115deg, #202b17 0%, #171d16 70%) !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper .ssx-directory-title {
  max-width: 28ch;
  margin: 0 0 14px !important;
  color: var(--sspres-heading-ink) !important;
  font-size: clamp(30px, 4.2vw, 50px) !important;
  font-weight: 780 !important;
  line-height: 1.12 !important;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
body.sspres.theme-listeo #wrapper .ssx-directory-description {
  max-width: 760px;
  margin: 0;
  color: var(--sspres-heading-muted) !important;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}
body.sspres.theme-listeo #wrapper .ssx-directory-tabs {
  gap: 8px;
  margin: 24px 0;
}
body.sspres.theme-listeo #wrapper .ssx-directory-tabs a {
  border: 1px solid #697853;
  border-radius: 7px;
  background: #1b2415 !important;
  color: var(--sspres-heading-ink) !important;
  font-size: 14px;
  font-weight: 650;
  padding: 9px 14px;
}
body.sspres.theme-listeo #wrapper .ssx-directory-tabs a:is([aria-current="page"], :hover, :focus-visible) {
  border-color: var(--sspres-heading-lime);
  background: var(--sspres-heading-lime) !important;
  color: #141a0d !important;
}
body.sspres.theme-listeo #wrapper .ssx-directory-search {
  border-color: #45563a;
  background: #11180e !important;
  padding: 20px;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper .ssx-directory-search :is(label, summary) {
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper .ssx-directory-search :is(input:not([type="hidden"]), select) {
  border-color: #7b8b65 !important;
  background: #1b2416 !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo #wrapper .ssx-directory-search input::placeholder {
  color: #bac5ae !important;
  opacity: 1;
}

/* Contact and other content-led pages already provide a local intro instead of #titlebar. */
body.sspres.theme-listeo:not(.home) #wrapper article.page > .ss-intro {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 28px auto 34px !important;
  padding: clamp(22px, 3.5vw, 40px) !important;
  border: 1px solid var(--sspres-heading-edge) !important;
  border-radius: 14px;
  background: linear-gradient(115deg, #202b17 0%, #171d16 70%) !important;
}
body.sspres.theme-listeo #wrapper article.page > .ss-intro > h1 {
  margin: 0 0 14px !important;
  color: var(--sspres-heading-ink) !important;
  font-size: clamp(30px, 4.2vw, 50px) !important;
  font-weight: 780 !important;
  line-height: 1.12 !important;
  letter-spacing: -.045em;
}
body.sspres.theme-listeo #wrapper article.page > .ss-intro > p {
  max-width: 820px;
  margin: 0;
  color: var(--sspres-heading-muted) !important;
  font-size: 17px;
  line-height: 1.6;
}
body.sspres.theme-listeo #wrapper article.page > .ss-intro a {
  color: var(--sspres-heading-lime) !important;
}

/* Single listings retain their logo, category chips, review summary and bookmark action. */
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar {
  gap: 20px;
  margin: 22px 0 24px !important;
  padding: clamp(20px, 3vw, 34px) !important;
  border: 1px solid var(--sspres-heading-edge);
  border-radius: 14px;
  background: linear-gradient(115deg, #202b17 0%, #171d16 75%) !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo.single-listing #wrapper .listing-titlebar-title {
  min-width: 0;
}
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar :is(h1, h2) {
  margin: 5px 0 10px !important;
  color: var(--sspres-heading-ink) !important;
  font-size: clamp(27px, 3.5vw, 44px) !important;
  font-weight: 780 !important;
  line-height: 1.15 !important;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar .listing-tag {
  border: 1px solid #65784d !important;
  background: #28351b !important;
  color: var(--sspres-heading-lime) !important;
}
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar .listing-tag a {
  color: var(--sspres-heading-lime) !important;
  font-weight: 600;
}
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar .star-rating {
  background: #10170d !important;
  border: 1px solid #465a35;
}
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar :is(.rating-counter, .rating-counter a, .rating-counter strong, .listing-address, .listing-address a) {
  color: var(--sspres-heading-muted) !important;
}
body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar :is(.like-button, .like-button-notlogged) {
  color: var(--sspres-heading-lime) !important;
  background: #28351b !important;
  border: 1px solid #65784d !important;
}

/* Article titles sit below the cover image; the separate native band only labels the Blog section. */
body.sspres.theme-listeo.single-post #wrapper .blog-post.single-post > .post-content > a:has(> h1) {
  display: block;
  color: var(--sspres-heading-ink) !important;
  text-decoration: none !important;
}
body.sspres.theme-listeo.single-post #wrapper .blog-post.single-post > .post-content > a > h1 {
  margin: 0 0 22px !important;
  padding: clamp(20px, 3vw, 32px) !important;
  border: 1px solid var(--sspres-heading-edge);
  border-radius: 12px;
  background: linear-gradient(115deg, #202b17, #171d16 75%) !important;
  color: var(--sspres-heading-ink) !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  font-weight: 780 !important;
  line-height: 1.18 !important;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
body.sspres.theme-listeo.single-post #wrapper .blog-post.single-post > .post-content > a > h1::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 0 16px;
  border-radius: 3px;
  background: var(--sspres-heading-lime);
}
body.sspres.theme-listeo.single-post #wrapper .blog-post.single-post > .post-content > a:focus-visible {
  outline: 2px solid var(--sspres-heading-lime);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Public business/author profiles use a sidebar identity header instead of #titlebar. */
body.sspres.theme-listeo.author #wrapper .author-profile-modern .profile-header-modern {
  border-bottom: 1px solid var(--sspres-heading-edge);
  background: linear-gradient(115deg, #202b17, #171d16 75%) !important;
  color: var(--sspres-heading-ink) !important;
}
body.sspres.theme-listeo.author #wrapper .author-profile-modern .profile-name-modern {
  color: var(--sspres-heading-ink) !important;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
body.sspres.theme-listeo.author #wrapper .author-profile-modern .profile-header-modern :is(.rating-counter, .rating-counter strong) {
  color: var(--sspres-heading-muted) !important;
}

/* Signed-in dashboard pages use the same heading treatment inside their content area. */
body.sspres.theme-listeo #wrapper #dashboard #titlebar {
  padding: clamp(22px, 3vw, 32px) !important;
  margin: 0 0 28px !important;
  border: 1px solid var(--sspres-heading-edge);
  border-radius: 12px;
  background: linear-gradient(110deg, #202b17, #171d16 75%) !important;
}
body.sspres.theme-listeo #wrapper #dashboard #titlebar :is(h1, h2) {
  color: var(--sspres-heading-ink) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
}
body.sspres.theme-listeo #wrapper #dashboard #titlebar :is(p, span):not(.button) {
  color: var(--sspres-heading-muted) !important;
}

@media (max-width: 767px) {
  body.sspres.theme-listeo #wrapper > #titlebar:not(.listing-titlebar) { padding: 28px 0 !important; margin-bottom: 26px !important; }
  body.sspres.theme-listeo #wrapper .ssx-directory-intro,
  body.sspres.theme-listeo:not(.home) #wrapper article.page > .ss-intro { margin-top: 18px !important; padding: 22px 18px !important; border-radius: 11px; }
  body.sspres.theme-listeo #wrapper .ssx-directory-tabs { gap: 7px; margin: 20px 0; }
  body.sspres.theme-listeo #wrapper .ssx-directory-tabs a { font-size: 13px; padding: 8px 11px; }
  body.sspres.theme-listeo #wrapper .ssx-directory-search { padding: 16px; }
  body.sspres.theme-listeo.single-listing #wrapper #titlebar.listing-titlebar { padding: 20px 18px !important; gap: 14px; }
  body.sspres.theme-listeo #wrapper #dashboard #titlebar { padding: 22px 18px !important; }
}

@media (prefers-contrast: more) {
  body.sspres { --sspres-heading-edge: #899976; --sspres-heading-muted: #edf2e5; }
}
