/* Self-contained client-side assessor search (static rebuild of the store-locator).
   Styled to match the live /assessors/ results page: compact green banner,
   town-titled cards with pills, yellow View Profile buttons, pastel map
   with plain teal pins. Loaded only on /assessors/. */

/* Hide the redundant "Welcome to EPC Near Me" archive banner below the search */
.fl-node-mdqjcknlerag { display: none !important; }

#enm-static-search { max-width: 1240px; margin: 24px auto 48px; padding: 0 20px; font-family: inherit; }
#enm-static-search * { box-sizing: border-box; }

/* ---------- Compact banner ---------- */
.enm-ss-banner {
  background: linear-gradient(120deg, #032716 0%, #043D24 60%, #075c34 100%);
  border-radius: 18px;
  padding: 26px 30px 24px;
  margin: 0 0 22px;
}
.enm-ss-banner h1 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 800;
}
.enm-ss-sub {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  font-weight: 600;
}
.enm-ss-form { margin: 0; }
.enm-ss-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.enm-ss-wrap input[type=text] {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  font-size: 16px;
  border: 0;
  outline: none;
  color: #111827;
  background: transparent;
}
.enm-ss-wrap button {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 26px;
  border: 0;
  background: #FFD21F;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.enm-ss-wrap button:hover { background: #F4C400; }
.enm-ss-popular {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.enm-ss-popular button {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.enm-ss-popular button:hover { background: rgba(255, 255, 255, 0.22); }
.enm-ss-status {
  margin: 12px 2px 0;
  min-height: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Results + map ---------- */
.enm-ss-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) {
  .enm-ss-layout { grid-template-columns: 1fr; }
  #enm-ss-map { height: 340px !important; order: -1; }
  .enm-ss-banner { padding: 20px 18px; border-radius: 14px; }
  .enm-ss-wrap input[type=text] { height: 52px; font-size: 15px; padding: 0 14px; }
  .enm-ss-wrap button { height: 52px; padding: 0 16px; font-size: 14px; }
}
#enm-ss-results {
  max-height: 700px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 6px 2px 2px;
}
#enm-ss-map {
  width: 100%;
  height: 700px;
  border-radius: 14px;
  border: 1px solid #dde2e8;
  background: #e8f3f1;
}

/* ---------- Assessor cards (live-site style) ---------- */
.enm-ss-card {
  border: 0;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(10, 40, 25, 0.10);
}
.enm-ss-card .enm-ss-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}
.enm-ss-avatar-wrap {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: #ffffff;
  border: 2px solid #25C146;
}
.enm-ss-avatar-wrap img,
.enm-ss-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #eef6f0;
}
.enm-ss-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25C146;
  font-size: 22px;
  font-weight: 800;
}
.enm-ss-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #1c2733;
  font-weight: 700;
}
.enm-ss-name {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #157a32;
}
.enm-ss-name a { color: inherit; text-decoration: none; }
.enm-ss-name a:hover { text-decoration: underline; }
.enm-ss-milesaway {
  margin: 1px 0 0;
  font-size: 13px;
  color: #4a5560;
}
.enm-ss-milesaway b { font-style: italic; color: #157a32; }
.enm-ss-pills { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; }
.enm-ss-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #bfe3c8;
  color: #0e5c26;
  background: #ffffff;
  white-space: nowrap;
}
.enm-ss-pill.dark {
  background: #043D24;
  border-color: #043D24;
  color: #ffffff;
}
.enm-ss-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.enm-ss-btns a {
  flex: 1 1 0;
  min-width: 130px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.enm-ss-btns a.email {
  border: 1.5px solid #c9d3cd;
  color: #1c2733;
  background: #ffffff;
}
.enm-ss-btns a.email:hover { border-color: #25C146; background: #f4faf6; }
.enm-ss-btns a.profile {
  background: #FFD21F;
  color: #111111;
  border: 1.5px solid #FFD21F;
}
.enm-ss-btns a.profile:hover { background: #F4C400; border-color: #F4C400; }

/* Nearest match variant (dark green, like the live site) */
.enm-ss-card.nearest { background: linear-gradient(135deg, #04331d 0%, #06522f 100%); }
.enm-ss-card.nearest h3 { color: #ffffff; }
.enm-ss-card.nearest .enm-ss-name { color: #ffffff; }
.enm-ss-card.nearest .enm-ss-milesaway { color: rgba(255, 255, 255, 0.85); }
.enm-ss-card.nearest .enm-ss-milesaway b { color: #35D073; }
.enm-ss-card.nearest .enm-ss-pill {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}
.enm-ss-card.nearest .enm-ss-pill.dark { background: rgba(0, 0, 0, 0.30); border-color: rgba(255, 255, 255, 0.25); }
.enm-ss-card.nearest .enm-ss-btns a.email {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.enm-ss-card.nearest .enm-ss-btns a.email:hover { background: rgba(255, 255, 255, 0.10); }
.enm-ss-badge {
  display: inline-block;
  background: #25C146;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.enm-ss-empty { color: #777; padding: 20px; text-align: center; }

/* ---------- Map pins & popups ---------- */
.enm-ss-pin { background: transparent; border: 0; }
.enm-ss-pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.30)); }
.leaflet-popup-content { font-family: inherit; font-size: 13px; }
.leaflet-popup-content b { color: #043D24; }
.leaflet-popup-content a { color: #157a32; font-weight: 700; }

/* ---------- Featured premium assessor panel ---------- */
.enm-feat {
  position: relative;
  background: linear-gradient(120deg, #032015 0%, #043D24 60%, #0a5233 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  padding: 30px 34px;
  margin: 6px 0 26px;
  color: #fff;
}
.enm-feat-flag {
  position: absolute;
  top: -13px;
  left: 30px;
  background: #FFD21F;
  color: #0b1c12;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.enm-feat-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.enm-feat-avatar img,
.enm-feat-avatar-fallback {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #25C146;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  display: block;
}
.enm-feat-avatar-fallback {
  background: #0a5233;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 116px;
  text-align: center;
}
.enm-feat-body h2 {
  color: #fff !important;
  font-size: 26px !important;
  font-weight: 800;
  margin: 0 0 4px !important;
  line-height: 1.15;
}
.enm-feat-where {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin: 0 0 10px;
}
.enm-feat-usps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 16px;
  padding: 0;
}
.enm-feat-usps li {
  position: relative;
  padding-left: 26px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.enm-feat-usps li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #25C146;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.enm-feat-btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  margin: 4px 8px 4px 0;
  transition: transform 0.15s ease;
}
.enm-feat-btn:hover { transform: translateY(-1px); }
.enm-feat-btn.call { background: #25C146; color: #fff !important; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.enm-feat-btn.email { background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.6); color: #fff !important; }
.enm-feat-btn.profile { background: #FFD21F; color: #0b1c12 !important; }
.enm-ss-pin-star { filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
@media (max-width: 700px) {
  .enm-feat { padding: 24px 20px; }
  .enm-feat-grid { grid-template-columns: 1fr; text-align: center; }
  .enm-feat-avatar img, .enm-feat-avatar-fallback { margin: 0 auto; }
  .enm-feat-usps { justify-content: center; }
}

/* ---------- Featured hero banner (profile-page style) ---------- */
.enm-feat-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(4,61,36,.96) 0%, rgba(4,61,36,.92) 45%, rgba(4,61,36,.86) 100%),
    url("/wp-content/uploads/2026/05/epc-near-me-hero-assessor.png") right center / cover no-repeat #043D24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  padding: 34px 38px;
  margin: 6px 0 26px;
  color: #fff;
  overflow: hidden;
}
.enm-feat-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.enm-feat-title {
  color: #fff !important;
  font-size: 34px !important;
  font-weight: 850;
  letter-spacing: -0.5px;
  margin: 0 0 6px !important;
  line-height: 1.1;
}
.enm-feat-title span { color: #4ade80; }
.enm-feat-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15.5px;
  margin: 0 0 20px;
  max-width: 420px;
}
.enm-feat-card {
  position: relative;
  background: rgba(4, 61, 36, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  padding: 24px 26px 22px;
  max-width: 520px;
}
.enm-feat-card-grid {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}
.enm-feat-card h3 {
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 800;
  margin: 0 0 8px !important;
  line-height: 1.1;
}
.enm-feat-avatar img,
.enm-feat-avatar-fallback {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #25C146;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  display: block;
}
.enm-feat-avatar-fallback {
  background: #0a5233;
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: 96px;
  text-align: center;
}
.enm-feat-where { color: rgba(255,255,255,.8); font-size: 13.5px; margin: 6px 0 0; }

/* quote panel */
.enm-feat-quote {
  background: rgba(0, 42, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  padding: 24px 26px;
}
.enm-feat-quote h3 {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 800;
  margin: 0 0 6px !important;
}
.enm-feat-quote-sub { color: rgba(255,255,255,.8); font-size: 13.5px; margin: 0 0 14px; }
.enm-feat-form input,
.enm-feat-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  margin-bottom: 10px;
  font-family: inherit;
  background: #fff;
  color: #16241d;
}
.enm-feat-form textarea { resize: vertical; }
.enm-feat-form button {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #FFD21F;
  color: #0b1c12;
  font-size: 15.5px;
  font-weight: 800;
  padding: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.enm-feat-form button:hover { background: #FFE45C; }
@media (max-width: 860px) {
  .enm-feat-hero { padding: 24px 20px; }
  .enm-feat-hero-grid { grid-template-columns: 1fr; }
  .enm-feat-card { max-width: none; }
}

/* Mini-map under the featured hero: just the premium assessor's pin */
.enm-feat-map {
  height: 300px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  margin-top: 26px;
  overflow: hidden;
}

/* Process steps under the featured premium hero */
.enm-feat-steps { margin-top: 28px; }
.enm-feat-steps-title {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 800;
  text-align: center;
  margin: 0 0 18px !important;
}
.enm-feat-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.enm-feat-step {
  position: relative;
  background: #fff;
  border: 1px solid #dcebe2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.enm-feat-step img { display: block; width: 100%; height: auto; }
.enm-feat-step h4 {
  color: #16241d !important;
  font-size: 16.5px !important;
  font-weight: 800;
  margin: 14px 18px 6px !important;
}
.enm-feat-step p {
  color: #4b5f55;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 18px 16px;
}
.enm-feat-step-n {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #043D24;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
@media (max-width: 860px) {
  .enm-feat-steps-grid { grid-template-columns: 1fr; }
}

/* Heading above the results list */
.enm-ss-others {
  font-size: 24px !important;
  font-weight: 800;
  color: #16241d !important;
  margin: 30px 0 16px !important;
}

/* ---------- Tier styling in results ---------- */
.enm-ss-pill.premium { background: #FFD21F; color: #0b1c12; border-color: #FFD21F; font-weight: 800; }
.enm-ss-pill.pro { background: #25C146; color: #fff; border-color: #25C146; font-weight: 800; }
.enm-ss-card.tier-premium { border: 2px solid #FFD21F; }
.enm-ss-card.tier-pro { border: 2px solid #25C146; }
.enm-ss-card.tier-premium:not(.nearest),
.enm-ss-card.tier-pro:not(.nearest) { box-shadow: 0 14px 32px rgba(4, 61, 36, 0.14); }

/* ---------- Tier 1 enquiry modal ---------- */
.enm-enq-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 25, 15, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.enm-enq {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: 28px 30px;
  width: 100%;
  max-width: 440px;
}
.enm-enq h3 { font-size: 20px !important; font-weight: 800; color: #16241d !important; margin: 0 0 6px !important; }
.enm-enq p { font-size: 14px; color: #4b5f55; margin: 0 0 14px; }
.enm-enq form input,
.enm-enq form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #dcebe2;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14.5px;
  margin-bottom: 10px;
  font-family: inherit;
}
.enm-enq form input:focus, .enm-enq form textarea:focus { border-color: #25C146; outline: none; }
.enm-enq form button {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #25C146;
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  padding: 13px;
  cursor: pointer;
}
.enm-enq form button:hover { background: #31D957; }
.enm-enq-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f2faf5;
  color: #16241d;
  font-size: 18px;
  cursor: pointer;
}
.enm-enq-msg { color: #0a5233 !important; font-weight: 700; }
