/* =========================================================
   EstateHub Theme for REMS
   Matches the look & color system of the EstateHub React demo
   ========================================================= */

:root {
  --eh-primary: #6D9E43;
  --eh-primary-dark: #2B6242;
  --eh-primary-darker: #1C402B;
  --eh-cyan: #87AE41;
  --eh-amber: #87AE41;
  --eh-footer-bg: #1C402B;
  --eh-text-dark: #111827;
  --eh-text-body: #374151;
  --eh-text-gray: #6b7280;
  --eh-text-light-gray: #9ca3af;
  --eh-border: #f1f5f9;
  --eh-border-strong: #e5e7eb;
  --eh-bg-page: #f8fafc;
  --eh-radius-sm: 8px;
  --eh-radius: 12px;
  --eh-radius-lg: 16px;
  --eh-radius-xl: 20px;
  --eh-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.06);
  --eh-shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --eh-shadow-lg: 0 10px 30px rgba(16, 24, 40, 0.12);
  --eh-shadow-xl: 0 20px 45px rgba(28, 64, 43, 0.18);
}

body {
  background: var(--eh-bg-page) !important;
  color: var(--eh-text-body);
  font-family: 'Open Sans', 'Poppins', sans-serif;
}

a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }

.eh-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.eh-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--eh-border);
  box-shadow: var(--eh-shadow-sm);
}

.eh-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.eh-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--eh-primary) 0%, var(--eh-primary-darker) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  flex-shrink: 0;
}

.eh-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--eh-text-dark);
  letter-spacing: -.3px;
}

.eh-logo-text span { color: var(--eh-primary); }

/* Uploaded logo image (mark + wordmark baked into one file). Header is 80px
   tall (see .eh-header-inner above); 56px keeps a comfortable margin above
   and below so it doesn't touch the header edges. width:auto keeps the
   image's own aspect ratio instead of stretching it. */
.eh-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.eh-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eh-nav li a {
  font-size: 16px;
  font-weight: 600;
  color: var(--eh-primary);
  text-decoration: none;
  text-transform: capitalize;
}

.eh-nav li a:hover,
.eh-nav li.active a,
.eh-nav li a.eh-active-link { color: var(--eh-primary-dark); }

.eh-nav li.eh-has-dropdown { position: relative; }

.eh-nav .eh-dropdown {
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  min-width: 190px;
  border-radius: var(--eh-radius-sm);
  box-shadow: var(--eh-shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  z-index: 50;
}

.eh-nav .eh-has-dropdown:hover .eh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.eh-nav .eh-dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--eh-text-body);
}

.eh-nav .eh-dropdown li a:hover {
  background: #F3F7F0;
  color: var(--eh-primary);
}

.eh-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.eh-phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--eh-text-body);
  text-decoration: none;
  font-weight: 500;
}

.eh-phone-link:hover { color: var(--eh-primary); }

.eh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.eh-btn-outline {
  color: var(--eh-primary);
  border-color: var(--eh-primary);
  background: #fff;
}

.eh-btn-outline:hover {
  background: var(--eh-primary);
  color: #fff;
}

.eh-btn-primary {
  color: #fff;
  background: var(--eh-primary);
  border-color: var(--eh-primary);
}

.eh-btn-primary:hover {
  background: var(--eh-primary-dark);
  border-color: var(--eh-primary-dark);
  color: #fff;
}

.eh-btn-block { width: 100%; }

.eh-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--eh-text-dark);
  cursor: pointer;
}

.eh-mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--eh-border);
  padding: 16px 20px 20px;
}

.eh-mobile-nav.eh-open { display: block; }

.eh-mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-text-body);
  text-decoration: none;
  border-bottom: 1px solid var(--eh-border);
}

.eh-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

/* Premium pill-style buttons for the mobile menu (Login / Sign Up / Post Property) */
.eh-mobile-actions .eh-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 12px;
  border-width: 1.5px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.eh-mobile-actions .eh-btn i {
  font-size: 14px;
}

.eh-mobile-actions .eh-btn-outline {
  background: #fff;
  border-color: var(--eh-primary);
  color: var(--eh-primary);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.eh-mobile-actions .eh-btn-outline:hover,
.eh-mobile-actions .eh-btn-outline:active {
  background: var(--eh-primary);
  color: #fff;
  transform: translateY(1px);
}

.eh-mobile-actions .eh-btn-primary {
  background: linear-gradient(135deg, var(--eh-primary) 0%, var(--eh-primary-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 98, 66, 0.28);
}

.eh-mobile-actions .eh-btn-primary:hover,
.eh-mobile-actions .eh-btn-primary:active {
  box-shadow: 0 8px 20px rgba(43, 98, 66, 0.38);
  transform: translateY(1px);
}

/* =========================================================
   HERO
   ========================================================= */
.eh-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--eh-primary-darker) 0%, var(--eh-primary-dark) 50%, var(--eh-primary) 100%);
  padding: 64px 20px 96px;
}

.eh-hero::before,
.eh-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .18;
}

.eh-hero::before {
  width: 420px;
  height: 420px;
  background: #fff;
  top: -160px;
  left: -160px;
}

.eh-hero::after {
  width: 420px;
  height: 420px;
  background: var(--eh-cyan);
  bottom: -180px;
  right: -160px;
}

.eh-hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.eh-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin: 0 0 14px;
}

.eh-hero p.eh-hero-sub {
  color: #E9F0E3;
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 36px;
}

.eh-hero-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
}

.eh-hero-tabs label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  user-select: none;
}

.eh-hero-tabs input { display: none; }

.eh-hero-tabs input:checked + label,
.eh-hero-tabs label.eh-tab-active {
  background: #fff;
  color: var(--eh-primary);
  box-shadow: var(--eh-shadow-lg);
}

.eh-search-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--eh-shadow-xl);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  text-align: left;
}

/* Each field is now its own rounded "chip" with an icon badge, instead of a
   bare label separated only by a thin divider line - this is what actually
   reads as "premium" (modern portal style) rather than a plain native form
   row. The divider lines are gone; spacing/background now does that job. */
.eh-search-field {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 30px 8px 10px;
  border-radius: 12px;
  background: #F8FAF6;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.eh-search-field:hover,
.eh-search-field:focus-within {
  background: #F0F5EA;
  box-shadow: inset 0 0 0 1.5px rgba(109, 158, 67, .45);
}

.eh-search-field i.fa {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(109, 158, 67, .14);
  color: var(--eh-primary-dark);
  font-size: 14px;
}

/* Custom chevron replaces each browser's own default select arrow, so all
   three fields look identical across Chrome/Firefox/Safari/mobile instead
   of each rendering its own native arrow style. Note: this can only style
   the closed field itself - the open dropdown LIST (the popup with the
   options) is drawn by the OS/browser, not by the page, so its highlight
   color can't be changed from CSS on desktop. */
.eh-search-field::after {
  content: "\f107";
  font-family: "FontAwesome";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--eh-text-light-gray);
  font-size: 13px;
  pointer-events: none;
}

.eh-search-field select,
.eh-search-field input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-text-body);
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
}

/* Once eh-custom-select.js runs, the real <select> is only there to hold the
   value for form submission - the label span below is what's actually
   shown, so the native control is fully hidden rather than just styled. */
.eh-search-field select.eh-native-select { display: none; }

.eh-search-field .eh-select-label {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
}

.eh-search-field .eh-select-label.is-placeholder {
  color: var(--eh-text-light-gray);
  font-weight: 600;
}

.eh-search-field.is-open {
  background: #F0F5EA;
  box-shadow: inset 0 0 0 1.5px rgba(109, 158, 67, .45);
}

.eh-search-field.is-invalid {
  background: #FDF2F2;
  box-shadow: inset 0 0 0 1.5px #E45C5C;
}

.eh-search-field.is-open::after { transform: translateY(-50%) rotate(180deg); }

/* Custom options panel - this is the part a native <select> popup can't be
   restyled into. Rendered on-brand instead of the OS's own list box. */
.eh-select-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--eh-border-strong);
  box-shadow: var(--eh-shadow-lg);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 60;
}

.eh-search-field.is-open .eh-select-panel { display: block; }

.eh-select-option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--eh-text-body);
  cursor: pointer;
  transition: background-color .12s ease;
}

.eh-select-option:hover { background: rgba(109, 158, 67, .12); }

.eh-select-option.is-selected {
  background: var(--eh-primary);
  color: #fff;
  font-weight: 700;
}

.eh-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--eh-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 0 30px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.eh-search-submit:hover {
  background: var(--eh-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(43, 98, 66, .28);
}

.eh-trending-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.eh-trending-tags span.eh-label { color: #DAE7D0; font-size: 13px; }

.eh-trending-tags a {
  color: #F3F7F0;
  font-size: 13px;
  background: rgba(255, 255, 255, .12);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.eh-trending-tags a:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 767px) {
  .eh-hero h1 { font-size: 30px; }
  .eh-search-card { flex-direction: column; padding: 8px; gap: 6px; }

  /* Bug fix: "flex: 1 1 200px" (set above for the desktop row layout) sets a
     200px FLEX-BASIS. In a row that basis means "min width 200px", which is
     fine - but once the card switches to flex-direction: column here, that
     same basis is read as a 200px HEIGHT, and flex-grow: 1 then stretches
     each field to share out the leftover vertical space on top of that. That
     combination is exactly what made each dropdown balloon into a tall,
     mostly-empty field on mobile. Resetting flex-grow/basis lets each field
     size to its own content again. */
  .eh-search-field {
    flex: 0 1 auto;
    width: 100%;
    padding: 12px 30px 12px 10px;
  }

  .eh-search-field::after { right: 12px; }
  .eh-search-submit { padding: 14px; border-radius: 12px; margin-top: 2px; }
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.eh-section { padding: 56px 0; }
.eh-section.eh-section-tight { padding: 44px 0; }
.eh-section-white { background: #fff; }

.eh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eh-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--eh-text-dark);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eh-section-title i.eh-star { color: var(--eh-amber); }

.eh-section-sub {
  color: var(--eh-text-gray);
  font-size: 14px;
  margin: 0;
}

.eh-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eh-view-all:hover { color: var(--eh-primary-dark); gap: 10px; }

.eh-text-center { text-align: center; }

/* =========================================================
   TRENDING CITIES
   ========================================================= */
.eh-cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.eh-city-card {
  position: relative;
  border-radius: var(--eh-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--eh-shadow-sm);
  display: block;
  text-decoration: none;
}

.eh-city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.eh-city-card:hover img { transform: scale(1.1); }

.eh-city-card:hover { box-shadow: var(--eh-shadow-xl); }

.eh-city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 65%);
}

.eh-city-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  color: #fff;
}

.eh-city-info .eh-city-name {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.eh-city-info .eh-city-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  margin: 2px 0 0;
}

@media (max-width: 992px) { .eh-cities-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .eh-cities-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   PROPERTY CARDS
   ========================================================= */
.eh-properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 992px) { .eh-properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .eh-properties-grid { grid-template-columns: 1fr; } }

.eh-card {
  background: #fff;
  border-radius: var(--eh-radius-lg);
  border: 1px solid var(--eh-border);
  box-shadow: var(--eh-shadow-sm);
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: box-shadow .25s ease, transform .25s ease;
}

.eh-card:hover {
  box-shadow: var(--eh-shadow-xl);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}

.eh-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E9F0E3;
}

.eh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.eh-card:hover .eh-card-img img { transform: scale(1.07); }

.eh-badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.eh-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .2px;
}

.eh-badge-primary { background: var(--eh-primary); color: #fff; }
.eh-badge-light { background: rgba(255, 255, 255, .92); color: var(--eh-text-body); }
.eh-badge-amber { background: var(--eh-amber); color: #fff; }

.eh-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eh-text-light-gray);
  box-shadow: var(--eh-shadow-sm);
}

.eh-card-body { padding: 16px; }

.eh-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.eh-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--eh-text-dark);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eh-card-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--eh-primary);
  white-space: nowrap;
}

.eh-card-location {
  font-size: 13px;
  color: var(--eh-text-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}

.eh-card-features {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--eh-text-body);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.eh-card-features span { display: flex; align-items: center; gap: 5px; }
.eh-card-features i { color: var(--eh-text-light-gray); }

.eh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--eh-border);
  font-size: 12px;
  color: var(--eh-text-gray);
}

.eh-card-footer i.eh-verified { color: #22c55e; }

.eh-empty-state {
  background: #fff;
  border-radius: var(--eh-radius-lg);
  padding: 60px 20px;
  text-align: center;
  color: var(--eh-text-gray);
  box-shadow: var(--eh-shadow-sm);
}

/* =========================================================
   CTA
   ========================================================= */
.eh-cta {
  position: relative;
  background: linear-gradient(135deg, var(--eh-primary-darker), var(--eh-primary));
  padding: 64px 20px;
  text-align: center;
  overflow: hidden;
}

.eh-cta h3 {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 22px;
}

.eh-cta .eh-btn { padding: 12px 28px; font-size: 15px; }

/* =========================================================
   FOOTER
   ========================================================= */
.eh-footer {
  background: var(--eh-footer-bg);
  color: #b6c2d6;
  padding: 56px 0 0;
}

.eh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.eh-footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 340px;
  margin: 14px 0;
}

.eh-footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}

.eh-footer-contact a:hover { color: #fff; }

.eh-footer-social { display: flex; gap: 10px; margin-top: 16px; }

.eh-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.eh-footer-social a:hover { background: var(--eh-primary); }

.eh-footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
}

.eh-footer-col ul { list-style: none; margin: 0; padding: 0; }

.eh-footer-col ul li { margin-bottom: 10px; }

.eh-footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
}

.eh-footer-col ul li a:hover { color: #fff; }

.eh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.eh-footer-bottom-links { display: flex; gap: 22px; }
.eh-footer-bottom-links a { color: #94a3b8; text-decoration: none; }
.eh-footer-bottom-links a:hover { color: #fff; }

@media (max-width: 992px) {
  .eh-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .eh-footer-about { grid-column: span 2; }
}

/* =========================================================
   RESPONSIVE NAV BEHAVIOR
   ========================================================= */
@media (max-width: 991px) {
  .eh-nav,
  .eh-header-actions .eh-desktop-only { display: none !important; }
  .eh-mobile-toggle { display: block; }
}

@media (min-width: 992px) {
  .eh-mobile-nav { display: none !important; }
}

/* =========================================================
   PAGE HEADER (used on Properties listing page)
   ========================================================= */
.eh-page-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 8px;
}

.eh-eyebrow {
  color: var(--eh-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.eh-page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--eh-primary-dark);
  margin: 0 0 8px;
}

.eh-page-sub {
  color: var(--eh-text-gray);
  font-size: 15px;
  margin: 0 0 8px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.eh-about-hero {
  background: #F3F7F0;
  padding: 76px 20px;
  text-align: center;
}

.eh-about-hero-inner { max-width: 780px; margin: 0 auto; }

.eh-about-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: #2B6242;
  margin: 0 0 32px;
  line-height: 1.2;
}

/* Card wrapper that frames the (DB-driven) about description content */
/* NOTE: the text inside this card comes from the database (Admin > About Us
   editor, saved via the old nicEdit rich-text box). Testing showed the
   saved HTML does NOT use <b>/<strong>/<h1-h6> tags for "Real Estate
   Management System", "Our Vision:", "Our Goal:" - it's plain inline-styled
   text (e.g. a <span style="color:blue;font-weight:bold">), so a CSS rule
   that only targets heading/bold TAGS can't find them - it either misses
   them (still blue) or, if made too broad, turns everything grey including
   the "headings" (since CSS alone can't tell a styled span apart from a
   styled paragraph without a tag to hook onto).
   Fix: color is handled in two layers -
   1) CSS below - a grey fallback on every element, and green on real
      heading/bold TAGS, for whenever the content *does* use those tags.
   2) JS below (in about.php, right after this card) - inspects each
      element's actual rendered boldness/size (whatever inline style set it
      to) and assigns the green "heading" look to anything that reads as
      bold/larger-than-body text, and strips any inline color so nothing
      blue can survive. This is what makes it correct regardless of which
      tag the old editor happened to use. */
.eh-about-hero-card,
.eh-about-hero-card * {
  color: var(--eh-text-gray) !important;
}

.eh-about-hero-card h1,
.eh-about-hero-card h2,
.eh-about-hero-card h3,
.eh-about-hero-card h4,
.eh-about-hero-card h5,
.eh-about-hero-card h6,
.eh-about-hero-card strong,
.eh-about-hero-card b,
.eh-about-hero-card .eh-about-heading {
  color: var(--eh-primary-dark) !important;
  display: block;
  font-weight: 700 !important;
}

.eh-about-hero-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(43, 98, 66, .08);
  padding: 44px 56px;
  text-align: center;
}

.eh-about-hero-card p {
  color: var(--eh-text-gray);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 22px;
}

.eh-about-hero-card p:last-child { margin-bottom: 0; }

/* Sub-headings such as "Real Estate Management System", "Our Vision:", "Our Goal:"
   - whether they arrive as real <b>/<strong> tags, or as plain styled text
   that the ehAboutCard script above tags with .eh-about-heading */
.eh-about-hero-card b,
.eh-about-hero-card strong,
.eh-about-hero-card .eh-about-heading {
  display: block;
  color: var(--eh-primary) !important;
  font-weight: 700 !important;
  font-size: 20px;
  margin: 28px 0 12px;
}

.eh-about-hero-card p:first-child > b:first-child,
.eh-about-hero-card p:first-child > strong:first-child,
.eh-about-hero-card > b:first-child,
.eh-about-hero-card > strong:first-child,
.eh-about-hero-card p:first-child > .eh-about-heading:first-child,
.eh-about-hero-card > .eh-about-heading:first-child {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .eh-about-hero-card { padding: 32px 24px; }
}

.eh-about-body-wrap {
  background: linear-gradient(180deg, #F3F7F0 0%, #ffffff 100%);
  padding: 70px 20px;
}

.eh-about-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 44px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(43, 98, 66, .08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eh-about-body h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #2B6242;
  margin: 8px 0 16px;
}

.eh-about-body p {
  color: var(--eh-text-gray);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 20px;
}

.eh-check-list { display: flex; flex-direction: column; gap: 14px; }

.eh-check-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #374151;
  font-size: 15px;
}

.eh-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eh-check-icon i { color: #22c55e; font-size: 13px; }

.eh-stat-panel {
  background: linear-gradient(135deg, var(--eh-primary) 0%, var(--eh-primary-darker) 100%);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.eh-stat-box {
  background: rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 22px;
  transition: transform .25s ease, background .25s ease;
}

.eh-stat-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .18);
}

.eh-stat-box .eh-stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  margin: 0;
}

.eh-stat-box .eh-stat-label {
  color: #E9F0E3;
  font-size: 14px;
  margin: 4px 0 0;
}

@media (max-width: 860px) {
  .eh-about-body { grid-template-columns: 1fr; padding: 36px 24px; }
  .eh-about-hero h1 { font-size: 30px; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.eh-contact-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 20px;
}

.eh-contact-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.eh-contact-head h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: #2B6242;
  margin: 8px 0 12px;
}

.eh-contact-head p { color: var(--eh-text-gray); font-size: 15px; margin: 0; }

.eh-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.eh-contact-info {
  background: #F3F7F0;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eh-contact-item { display: flex; align-items: center; gap: 16px; }

.eh-contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eh-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.eh-contact-item-title { font-weight: 700; color: #2B6242; margin: 0; font-size: 15px; }
.eh-contact-item-text { color: var(--eh-text-gray); margin: 2px 0 0; font-size: 14px; }

.eh-contact-hours {
  padding-top: 20px;
  border-top: 1px solid #E9F0E3;
}

.eh-contact-hours p:first-child { font-weight: 700; color: #2B6242; margin: 0 0 6px; }
.eh-contact-hours p:last-child { color: var(--eh-text-gray); font-size: 14px; margin: 0; }

.eh-contact-form {
  background: #fff;
  border: 1px solid var(--eh-border-strong);
  border-radius: 20px;
  box-shadow: var(--eh-shadow-sm);
  padding: 32px;
}

.eh-form-group { margin-bottom: 18px; }

.eh-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.eh-form-group input,
.eh-form-group textarea {
  width: 100%;
  border: 1px solid var(--eh-border-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--eh-text-body);
  outline: none;
  font-family: inherit;
}

.eh-form-group input:focus,
.eh-form-group textarea:focus { border-color: var(--eh-primary); }

.eh-form-group textarea { min-height: 130px; resize: vertical; }

.eh-form-submit {
  width: 100%;
  background: var(--eh-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.eh-form-submit:hover { background: var(--eh-primary-dark); }

.eh-form-success {
  text-align: center;
  padding: 40px 10px;
}

.eh-form-success i {
  font-size: 52px;
  color: #22c55e;
  margin-bottom: 14px;
  display: block;
}

.eh-form-success h2 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #2B6242; font-size: 20px; margin: 0 0 6px; }
.eh-form-success p { color: var(--eh-text-gray); font-size: 14px; margin: 0; }

@media (max-width: 860px) {
  .eh-contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PROPERTIES LISTING PAGE (sidebar + grid)
   ========================================================= */
.eh-listing-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.eh-filter-panel {
  background: #fff;
  border: 1px solid var(--eh-border-strong);
  border-radius: var(--eh-radius-lg);
  box-shadow: var(--eh-shadow-sm);
  padding: 20px;
  position: sticky;
  top: 96px;
}

.eh-filter-block { margin-bottom: 26px; }
.eh-filter-block:last-child { margin-bottom: 0; }

.eh-filter-block h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--eh-primary-dark);
  margin: 0 0 12px;
}

.eh-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.eh-filter-list a {
  font-size: 14px;
  color: var(--eh-text-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eh-filter-list a:hover,
.eh-filter-list a.eh-active { color: var(--eh-primary); font-weight: 600; }

.eh-filter-list a i { font-size: 12px; color: var(--eh-text-light-gray); }

.eh-listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.eh-listing-count { font-size: 14px; font-weight: 600; color: #2B6242; }

.eh-view-toggle { display: flex; gap: 8px; }

.eh-view-toggle a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--eh-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eh-text-gray);
  text-decoration: none;
}

.eh-view-toggle a.eh-active { background: var(--eh-primary); border-color: var(--eh-primary); color: #fff; }

.eh-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  list-style: none;
  padding: 0;
}

.eh-pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--eh-border-strong);
  color: var(--eh-text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.eh-pagination li a:hover { border-color: var(--eh-primary); color: var(--eh-primary); }
.eh-pagination li.eh-disabled a { opacity: .45; pointer-events: none; }
.eh-pagination li.eh-active a { background: var(--eh-primary); border-color: var(--eh-primary); color: #fff; }

@media (max-width: 900px) {
  .eh-listing-layout { grid-template-columns: 1fr; }
  .eh-filter-panel { position: static; }
}
/* Prevent the browser's blue/yellow autofill highlight on inputs from
   breaking the green theme (this is a browser behavior, not a CSS color) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--eh-text-body) !important;
}