/*
Theme Name: WPResidence Child Theme
Theme URI: https://themeforest.net/item/wp-residence-real-estate-wordpress-theme/7896392
Description: WPResidence child theme
Author: WpEstate
Author URI: http://wpestate.org
Template: wpresidence
Version: 5.7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Keep the full desktop navigation on one row at laptop widths. */
@media (min-width: 1200px) and (max-width: 1599px) {
  .header_wrapper_inside {
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  .header_wrapper_inside > .logo {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
  }

  .header_wrapper_inside > .logo img {
    width: auto;
    max-width: 150px;
    height: auto;
  }

  .header_wrapper_inside nav.wpresidence-navigation-menu {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .header_wrapper_inside .menu-mega-menu-updated-container,
  .header_wrapper_inside ul#menu-hi-main-navigation {
    width: 100%;
    min-width: 0;
  }

  .header_wrapper_inside ul#menu-hi-main-navigation {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .header_wrapper_inside ul#menu-hi-main-navigation > li > a {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Improve readability for gold text links on the light FAQ card. */
.hi-answers .hi-answer-links a,
.hi-answers .hi-answer-links a:visited {
  color: #665600;
  text-decoration-color: #665600;
}

.hi-answers .hi-answer-links a:hover,
.hi-answers .hi-answer-links a:focus-visible {
  color: #493d00;
  text-decoration-color: #493d00;
}


/* Visually separate the footer navigation options. */
#menu-hi-footer-navigation > li + li::before {
  content: "|";
  display: inline-block;
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}
/* Neighborhood pages: Zillow-inspired browsing structure, styled in Hi's black and gold. */
.hi-directory.hi-neighborhood {
  --hi-neighborhood-ink: #171717;
  --hi-neighborhood-muted: #626262;
  --hi-neighborhood-line: #e5e4df;
  --hi-neighborhood-gold: #ffe44d;
  width: min(1240px, calc(100% - 40px));
  margin: 32px auto 64px;
  color: var(--hi-neighborhood-ink);
  font-family: inherit;
  line-height: 1.6;
}
.hi-directory.hi-neighborhood *,
.hi-directory.hi-neighborhood *::before,
.hi-directory.hi-neighborhood *::after { box-sizing: border-box; }
.hi-neighborhood .hi-directory-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(30px, 6vw, 74px);
  border: 1px solid #e9e5d2;
  border-radius: 26px;
  background: radial-gradient(ellipse at 94% 12%, rgba(255,228,77,.42), transparent 32%), linear-gradient(115deg,#fbfaf5 0%,#f4f2e8 100%);
  color: var(--hi-neighborhood-ink);
}
.hi-neighborhood .hi-directory-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(23,23,23,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(23,23,23,.025), 0 0 0 60px rgba(23,23,23,.018);
  pointer-events: none;
}
.hi-neighborhood .hi-eyebrow,
.hi-neighborhood .hi-neighborhood-label {
  margin: 0 0 12px;
  color: #716000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hi-neighborhood .hi-directory-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--hi-neighborhood-ink);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.hi-neighborhood .hi-directory-hero > p:not(.hi-eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: #414141;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.hi-neighborhood .hi-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.hi-neighborhood .hi-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--hi-neighborhood-ink);
  border-radius: 8px;
  background: var(--hi-neighborhood-ink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.hi-neighborhood .hi-button:hover { transform: translateY(-2px); background: #353535; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.hi-neighborhood .hi-text-link { color: #262626; font-weight: 700; text-underline-offset: 4px; }
.hi-neighborhood-nav {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 34px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hi-neighborhood-line);
  scrollbar-width: thin;
}
.hi-neighborhood-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #343434;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.hi-neighborhood-nav a:hover,
.hi-neighborhood-nav a:focus-visible { border-color: #dedbd0; background: #f7f6f1; }
.hi-neighborhood-nav span { color: #746200; }
.hi-neighborhood-listings { margin: 34px 0 46px; padding: clamp(20px,3vw,34px); border: 1px solid var(--hi-neighborhood-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 32px rgba(22,22,22,.045); }
.hi-neighborhood-listings-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.hi-neighborhood-listings-heading h2 { margin: 0; color: var(--hi-neighborhood-ink); font-size: clamp(25px,3vw,36px); letter-spacing: -.03em; line-height: 1.15; }
.hi-neighborhood-listings-heading > p { max-width: 350px; margin: 0 0 3px; color: var(--hi-neighborhood-muted); font-size: 14px; }
.hi-neighborhood-filter { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: end; gap: 10px; margin: 0 0 24px; padding: 14px; border: 1px solid #deddd7; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(20,20,20,.045); }
.hi-neighborhood-filter__field { display: grid; min-width: 0; gap: 6px; color: #555; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hi-neighborhood-filter__field input,
.hi-neighborhood-filter__field select { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #d8d7d1; border-radius: 9px; background: #fff; color: #171717; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; }
.hi-neighborhood-filter__field input:focus,
.hi-neighborhood-filter__field select:focus { border-color: #8b7800; outline: 2px solid rgba(255,228,77,.42); outline-offset: 1px; }
.hi-neighborhood-filter__submit { min-height: 46px; padding: 0 16px; border: 0; border-radius: 9px; background: #171717; color: #ffe44d; cursor: pointer; font-size: 14px; font-weight: 800; }
.hi-neighborhood-filter__submit:hover { background: #333; }
.hi-neighborhood-filter__reset { grid-column: 1 / -1; justify-self: end; margin-top: -3px; color: #4a4300; font-size: 12px; font-weight: 700; text-underline-offset: 3px; }
.hi-neighborhood-listing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.hi-neighborhood-listing-card { display: block; overflow: hidden; border: 1px solid #e5e4df; border-radius: 14px; background: #fff; color: inherit; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.hi-neighborhood-listing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,15,15,.13); }
.hi-neighborhood-listing-photo { position: relative; display: grid; aspect-ratio: 1.45 / 1; place-items: center; overflow: hidden; background: #f2f1eb; color: #777; font-size: 13px; }
.hi-neighborhood-listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.hi-neighborhood-listing-status { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 4px; background: #fff; color: #222; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hi-neighborhood-listing-body { display: grid; gap: 6px; padding: 16px; }
.hi-neighborhood-listing-price { color: #171717; font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
.hi-neighborhood-listing-address { min-height: 2.6em; color: #333; font-size: 14px; line-height: 1.4; }
.hi-neighborhood-listing-features { color: #454545; font-size: 13px; font-weight: 700; }
.hi-neighborhood-listing-attribution { overflow: hidden; color: #747474; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hi-neighborhood-idx-disclaimer { margin: 20px 0 0; color: #676767; font-size: 11px !important; line-height: 1.5; }
.hi-neighborhood-empty { padding: 22px; border-radius: 12px; background: #f7f6f1; color: #444; }
.hi-neighborhood .hi-area-searches,
.hi-neighborhood .hi-area-resources { margin: 36px 0; padding: clamp(20px,3vw,34px); border: 1px solid var(--hi-neighborhood-line); border-radius: 20px; background: #fff; }
.hi-neighborhood .hi-area-searches h2,
.hi-neighborhood .hi-area-resources h2 { margin: 0 0 10px; color: var(--hi-neighborhood-ink); font-size: clamp(25px,3vw,34px); letter-spacing: -.03em; }
.hi-neighborhood .hi-area-searches > p,
.hi-neighborhood .hi-area-resources > p { max-width: 780px; margin: 0 0 20px; color: var(--hi-neighborhood-muted); font-size: 15px; }
.hi-neighborhood .hi-neighborhood-search-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.hi-neighborhood .hi-neighborhood-search-group { min-width: 0; border: 1px solid var(--hi-neighborhood-line); border-radius: 12px; background: #fff; }
.hi-neighborhood .hi-neighborhood-search-group[open] { background: #fcfbf7; }
.hi-neighborhood .hi-neighborhood-search-group summary { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: #202020; cursor: pointer; font-size: 14px; font-weight: 750; list-style: none; }
.hi-neighborhood .hi-neighborhood-search-group summary::-webkit-details-marker { display: none; }
.hi-neighborhood .hi-neighborhood-search-group summary::after { content: "+"; display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f2f0e8; color: #3a3300; font-size: 17px; }
.hi-neighborhood .hi-neighborhood-search-group[open] summary::after { content: "−"; }
.hi-neighborhood .hi-neighborhood-count { margin-left: auto; color: #777; font-size: 12px; font-weight: 500; }
.hi-neighborhood .hi-neighborhood-search-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 16px; }
.hi-neighborhood .hi-neighborhood-search-list a,
.hi-neighborhood .hi-search-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #dfddd4;
  border-radius: 999px;
  background: #fff;
  color: #292929;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.hi-neighborhood .hi-neighborhood-search-list a:hover,
.hi-neighborhood .hi-search-links a:hover { border-color: #c4ad13; background: #fffbe2; color: #171717; }
.hi-neighborhood .hi-search-links { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 10px; }
.hi-neighborhood .hi-area-resources .hi-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.hi-neighborhood .hi-area-resources .hi-text-link { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--hi-neighborhood-line); border-radius: 10px; background: #faf9f5; color: #202020; text-decoration: none; }
.hi-neighborhood .hi-area-resources .hi-text-link:hover { border-color: #c4ad13; background: #fffbe2; }
.hi-neighborhood .hi-back-link { margin: 28px 0 0; font-size: 14px; }
.hi-neighborhood .hi-back-link a { color: #333; font-weight: 700; text-underline-offset: 4px; }
.hi-neighborhood :focus-visible { outline: 3px solid #806b00; outline-offset: 3px; }
@media (max-width: 900px) {
  .hi-neighborhood-listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hi-neighborhood-filter { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hi-neighborhood .hi-area-resources .hi-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hi-directory.hi-neighborhood { width: min(100% - 28px,1240px); margin: 18px auto 42px; }
  .hi-neighborhood .hi-directory-hero { padding: 32px 22px; border-radius: 18px; }
  .hi-neighborhood .hi-directory-hero::after { right: -175px; bottom: -175px; }
  .hi-neighborhood .hi-directory-hero h1 { font-size: clamp(36px,10vw,49px); }
  .hi-neighborhood .hi-directory-hero > p:not(.hi-eyebrow) { font-size: 16px; }
  .hi-neighborhood .hi-actions { align-items: stretch; flex-direction: column; }
  .hi-neighborhood .hi-button { width: 100%; }
  .hi-neighborhood-nav { margin-bottom: 24px; }
  .hi-neighborhood-listings-heading { align-items: start; flex-direction: column; gap: 8px; }
  .hi-neighborhood-listing-grid { grid-template-columns: 1fr; gap: 13px; }
  .hi-neighborhood-listing-photo { aspect-ratio: 1.55 / 1; }
  .hi-neighborhood .hi-area-searches,
  .hi-neighborhood .hi-area-resources,
  .hi-neighborhood-listings { margin: 22px 0; padding: 19px 16px; border-radius: 15px; }
  .hi-neighborhood-filter { grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; }
  .hi-neighborhood-filter__submit { grid-column: 1 / -1; }
  .hi-neighborhood .hi-neighborhood-search-groups { grid-template-columns: 1fr; }
  .hi-neighborhood .hi-area-resources .hi-actions { grid-template-columns: 1fr; }
  .hi-neighborhood .hi-search-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hi-neighborhood .hi-button,
  .hi-neighborhood-listing-card { transition: none; }
}


/* Neighborhood local experts: dashboard selection and neighborhood-page spotlight only. */
.hi-local-expert-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.8fr); align-items: center; gap: 24px; margin: 34px auto 0; padding: clamp(20px,3vw,32px); border: 1px solid #e6e2d3; border-radius: 18px; background: linear-gradient(115deg,#fbfaf5,#fff); box-shadow: 0 8px 26px rgba(20,20,20,.045); }
.hi-local-expert-eyebrow { margin: 0 0 8px; color: #756100; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.hi-local-expert-card__copy h2 { margin: 0 0 8px; color: #171717; font-size: clamp(22px,2.8vw,30px); line-height: 1.15; }
.hi-local-expert-card__copy > p:last-child { max-width: 54ch; margin: 0; color: #555; font-size: 14px; line-height: 1.6; }
.hi-local-expert-card__agent { display: flex; min-height: 112px; align-items: center; gap: 16px; padding: 12px; border: 1px solid #e1dfd6; border-radius: 13px; background: #fff; color: #171717; text-decoration: none; transition: box-shadow .18s ease,transform .18s ease; }
.hi-local-expert-card__agent:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,20,20,.1); }
.hi-local-expert-card__agent > img { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; object-fit: cover; background: #f0eee6; }
.hi-local-expert-card__details { display: grid; gap: 5px; }
.hi-local-expert-card__details strong { font-size: 17px; }
.hi-local-expert-card__details > span { color: #5f5f5f; font-size: 13px; }
.hi-local-expert-card__details .hi-local-expert-card__link { margin-top: 4px; color: #4e4300; font-weight: 800; }
.hi-local-expert-settings { width: min(100% - 32px,1120px); margin: 34px auto; padding: clamp(20px,3vw,32px); border: 1px solid #e3e1d9; border-radius: 16px; background: #fff; color: #171717; box-shadow: 0 8px 26px rgba(20,20,20,.05); }
.hi-local-expert-settings__intro { max-width: 760px; margin-bottom: 22px; }
.hi-local-expert-settings__intro h2 { margin: 0 0 8px; font-size: clamp(24px,3vw,34px); line-height: 1.2; }
.hi-local-expert-settings__intro > p:last-child { margin: 0; color: #555; line-height: 1.65; }
.hi-local-expert-saved { padding: 12px 14px; border-radius: 8px; background: #f2f8e8; color: #26420b; font-weight: 700; }
.hi-local-expert-search { display: grid; max-width: 520px; gap: 6px; margin-bottom: 12px; color: #555; font-size: 12px; font-weight: 700; }
.hi-local-expert-search input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #d8d7d1; border-radius: 9px; font-size: 15px; }
.hi-local-expert-settings__bulk { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.hi-local-expert-settings__bulk button { min-height: 40px; padding: 8px 13px; border: 1px solid #d8d5c8; border-radius: 8px; background: #fff; color: #262626; cursor: pointer; font-weight: 700; }
.hi-local-expert-settings__bulk button:hover { border-color: #c1a600; background: #fffbe2; }
.hi-local-expert-settings__groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.hi-local-expert-region { min-width: 0; margin: 0; padding: 14px; border: 1px solid #e5e3dc; border-radius: 12px; }
.hi-local-expert-region legend { padding: 0 8px; color: #222; font-size: 16px; font-weight: 800; }
.hi-local-expert-region__list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 12px; }
.hi-local-expert-choice { display: flex; min-width: 0; align-items: start; gap: 8px; padding: 8px 4px; color: #333; line-height: 1.35; cursor: pointer; }
.hi-local-expert-choice input { flex: 0 0 auto; margin-top: 2px; accent-color: #927900; }
.hi-local-expert-choice[hidden] { display: none; }
.hi-local-expert-save { min-height: 46px; margin-top: 20px; padding: 0 18px; border: 0; border-radius: 8px; background: #171717; color: #ffe44d; cursor: pointer; font-size: 14px; font-weight: 800; }
.hi-local-expert-save:hover { background: #333; }
.hi-local-expert-settings :focus-visible { outline: 3px solid #806b00; outline-offset: 3px; }
@media (max-width: 700px) {
  .hi-local-expert-card { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; border-radius: 15px; }
  .hi-local-expert-settings__groups { grid-template-columns: 1fr; }
  .hi-local-expert-region__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .hi-local-expert-card { padding: 18px; }
  .hi-local-expert-card__agent > img { width: 68px; height: 68px; flex-basis: 68px; }
  .hi-local-expert-settings { width: calc(100% - 24px); padding: 18px 15px; }
  .hi-local-expert-region__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hi-local-expert-card__agent { transition: none; }
}

.hi-local-expert-card { grid-template-columns: 1fr; gap: 15px; padding: 22px; }
.hi-local-expert-card__copy h2 { margin-bottom: 5px; font-size: clamp(20px,2.4vw,25px); }
.hi-local-expert-card__copy > p:last-child { font-size: 13px; }
.hi-local-expert-card__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
@media (max-width: 900px) {
  .hi-local-expert-card__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.hi-local-expert-card__agent { min-height: 82px; gap: 10px; padding: 9px; border-radius: 11px; }
.hi-local-expert-card__agent > img { width: 56px; height: 56px; flex-basis: 56px; }
.hi-local-expert-card__details { gap: 3px; }
.hi-local-expert-card__details strong { font-size: 14px; line-height: 1.2; }
.hi-local-expert-card__details > span { font-size: 11px; line-height: 1.3; }
.hi-local-expert-card__details .hi-local-expert-card__link { font-size: 11px; }
@media (max-width: 700px) {
  .hi-local-expert-card__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .hi-local-expert-card { padding: 17px; }
  .hi-local-expert-card__grid { grid-template-columns: 1fr; }
}

