/* ── FA variable fallbacks (CSS-kit icons missing in the custom subset) */
.fa-magnifying-glass { --fa: "\f002"; }
.fa-xmark            { --fa: "\f00d"; }
.fa-chevron-right    { --fa: "\f054"; }
.fa-image            { --fa: "\f03e"; }

/* ── Reliable SVG icon for search trigger buttons (font-independent) ── */
.search-trigger i,
.mnav-search-btn i.fa-magnifying-glass,
.mobile-hdr-search i.fa-magnifying-glass {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  background-color: #155945;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* suppress glyph rendering without affecting currentColor */
  font-size: 0;
  line-height: 0;
}

/* ── Reliable SVG for the overlay close button ───────────────────────── */
.search-overlay__close i {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.3 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.3 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}


.search-nav-item {
  display: flex !important;
  align-items: center;
  padding-left: 4px !important;
  padding-right: 4px !important;
}


@media (min-width: 992px) {
  .header-nav .nav > li.search-nav-item {
    margin: 19px 0 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-self: flex-start;
  }

   .header-nav .nav > li.search-nav-item .search-trigger i {
    margin-top: 0 !important;
    margin-left: 0 !important;
    opacity: 1 !important;
  }
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .3s;
  flex-shrink: 0;
  outline: none;
}

.search-trigger:hover {
  background: rgba(21,89,69,.1);
  color: #155945;
  transform: scale(1.15) rotate(3deg);
  box-shadow: 0 0 0 6px rgba(21,89,69,.12);
}

.search-trigger:hover i {
  animation: search-icon-bounce .45s ease;
}

@keyframes search-icon-bounce {
  0%   { transform: scale(1) rotate(0deg); }
  35%  { transform: scale(1.3) rotate(-12deg); }
  60%  { transform: scale(0.9) rotate(6deg); }
  85%  { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.search-trigger:focus-visible {
  outline: 2px solid #155945;
  outline-offset: 2px;
}

.nav-transparent .search-trigger {
  color: #fff;
}

.nav-transparent .search-trigger:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.is-stuck .search-trigger,
.sticky-header.is-fixed .search-trigger {
  color: #052c1a;
}

.is-stuck .search-trigger:hover,
.sticky-header.is-fixed .search-trigger:hover {
  background: rgba(21,89,69,.1);
  color: #155945;
}

.nav-transparent .sticky-header .search-trigger {
  color: #fff;
}

.nav-transparent .sticky-header .search-trigger i {
  background-color: #fff;
}

.nav-transparent .sticky-header .search-trigger:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.nav-transparent .sticky-header .search-trigger:hover i {
  background-color: #fff;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
  outline: none;
  backdrop-filter: blur(4px);
}

.header-search-btn:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.06);
}

.header-search-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,18,12,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-overlay__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(5,18,12,.3);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  transform: translateY(-18px) scale(.98);
  opacity: 0;
  transition: transform .24s cubic-bezier(.16,1,.3,1), opacity .22s;
}

.search-overlay.is-open .search-overlay__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.search-overlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf0f1;
  flex-shrink: 0;
}

.search-overlay__icon {
  color: #9c6f42;
  font-size: 18px;
  flex-shrink: 0;
  padding-top: 1px;
}

.search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #052c1a;
  background: transparent;
  line-height: 1.3;
  padding: 0;
}

.search-overlay__input::placeholder {
  color: #aab3b8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.search-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f3f4;
  color: #54616b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s, color .18s;
  outline: none;
}

.search-overlay__close:hover {
  background: #e2e6e8;
  color: #052c1a;
}

.search-overlay__close:focus-visible {
  outline: 2px solid #155945;
  outline-offset: 2px;
}

.search-overlay__body {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.search-overlay__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px;
  color: #7a9098;
  text-align: center;
}

.search-overlay__hint-icon {
  font-size: 36px;
  color: #c8d4d8;
}

.search-overlay__hint p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.search-overlay__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}

.search-overlay__empty-icon {
  font-size: 36px;
  color: #c8d4d8;
}

.search-overlay__empty p {
  margin: 0;
  color: #7a9098;
  font-size: 15px;
}

.search-overlay__empty strong {
  display: block;
  font-size: 17px;
  color: #344952;
  margin-bottom: 4px;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  border-radius: 12px;
  overflow: hidden;
  transition: background .15s;
}

.search-result-item:focus-within {
  outline: 2px solid #155945;
  outline-offset: -2px;
}

.search-result-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background .15s;
}

.search-result-link:hover,
.search-result-item.is-active .search-result-link {
  background: #f0fbf6;
  text-decoration: none;
  color: inherit;
}

.search-result-img {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #edf0f1;
}

.search-result-img-placeholder {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf0f1, #dde5e7);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 18px;
}

.search-result-body {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 15px;
  font-weight: 700;
  color: #052c1a;
  line-height: 1.3;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-result-addr {
  font-size: 13px;
  color: #5a7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.search-result-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #edf7f3;
  color: #155945;
  flex-shrink: 0;
  white-space: nowrap;
}

.search-result-price {
  font-size: 13px;
  font-weight: 700;
  color: #9c6f42;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
}

.search-result-arrow {
  color: #c8d4d8;
  font-size: 13px;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.search-result-link:hover .search-result-arrow,
.search-result-item.is-active .search-result-arrow {
  color: #1c7f62;
  transform: translateX(2px);
}

.search-skeletons {
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-skeleton {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
}

.search-skeleton__img {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f3f4 25%, #e3e8ea 50%, #f0f3f4 75%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  flex-shrink: 0;
}

.search-skeleton__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-skeleton__line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f3f4 25%, #e3e8ea 50%, #f0f3f4 75%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.search-skeleton__line:first-child { width: 70%; }
.search-skeleton__line:last-child  { width: 48%; animation-delay: .15s; }

@keyframes skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.search-overlay__count {
  font-size: 12px;
  color: #8a9ea8;
  padding: 6px 22px 0;
  flex-shrink: 0;
}

mark.search-hl {
  background: none;
  color: #9c6f42;
  font-weight: 700;
}

.mnav-search-btn,
.header-nav .mnav-search-btn,
.mnav-search-btn span {
  color: #052c1a !important;
}

.mnav-search-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .2s;
}

.mnav-search-btn:hover {
  background: rgba(21,89,69,.08);
  color: #155945 !important;
}

.mnav-search-btn:hover span {
  color: #155945 !important;
}

.mnav-search-btn:hover i {
  animation: search-icon-bounce .4s ease;
}

.mnav-search-btn i {
  font-size: 16px;
  color: #155945 !important;
  width: 20px;
  text-align: center;
}

.mnav-search-item {
  padding-top: 8px;
  margin-top: 4px;
}

/* ── Mobile CTA call button ─────────────────────────────────────────────────── */
.mnav-cta {
  padding: 12px 16px 16px;
}

.mnav-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #155945, #1c7f62);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: .3px;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 6px 20px rgba(21,89,69,.25);
}

.mnav-cta-btn i {
  color: #fff !important;
  font-size: 16px;
}

.mnav-cta-btn:hover,
.mnav-cta-btn:active {
  background: linear-gradient(135deg, #0f3d2e, #155945) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(21,89,69,.32);
  transform: translateY(-1px);
  text-decoration: none;
}

.mnav-cta-btn:hover i,
.mnav-cta-btn:active i {
  color: #fff !important;
}

/* ── Back-to-objects link on object detail page ────────────────────────── */
.object-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.18s, gap 0.18s;
}

.object-back-link i {
  font-size: 0.72rem;
  transition: transform 0.18s;
}

.object-back-link:hover {
  color: #d7b39a;
  gap: 9px;
  text-decoration: none;
}

.object-back-link:hover i {
  transform: translateX(-3px);
}

.object-back-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Page intro: extra top padding on mobile so eyebrow clears sticky header ── */
/* Base rule assumes 72px header + 1.5rem padding. On mobile the header is taller   */
/* and .page-intro-eyebrow has margin-top:-2.5rem pulling content up into padding.  */
@media (max-width: 991px) {
  .page-intro {
    /*
     * The mobile header is fixed and its logo/nav row is taller on real
     * iPhones than in desktop webviews. Keep the first page-intro content
     * below it, including the back link on object detail pages.
     */
    padding-top: calc(2rem + 128px + env(safe-area-inset-top)) !important;
  }

  /*
   * The desktop eyebrow intentionally pulls into the intro padding. On
   * mobile that puts contact/FAQ headings underneath the fixed header.
   */
  .page-intro .page-intro-eyebrow {
    margin-top: 0;
  }
}

/* ── Mobile nav group: search icon + hamburger floated together ────────── */
.mobile-nav-group {
  display: none; /* hidden on desktop */
  float: right;
  align-items: center;
  gap: 2px;
  margin-top: 14px;
  margin-bottom: 14px;
}

@media (max-width: 991px) {
  .mobile-nav-group {
    display: flex;
  }
  /* Cancel the toggler's own float/margin since it's now inside the group */
  .mobile-nav-group .navbar-toggler {
    float: none !important;
    margin: 0 !important;
    display: block !important;
  }
}

/* ── Mobile header search icon (shows next to hamburger on ≤991px) ────── */
.mobile-hdr-search {
  display: none; /* hidden on desktop; group handles mobile visibility */
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #155945;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  transition: background .18s;
  padding: 0;
}

.mobile-hdr-search:hover,
.mobile-hdr-search:focus-visible {
  background: rgba(21,89,69,.1);
}

.mobile-hdr-search:focus-visible {
  outline: 2px solid #155945;
  outline-offset: 2px;
}

.mobile-hdr-search i.fa-magnifying-glass {
  width: 17px;
  height: 17px;
}

.mobile-hdr-search.is-search-open i {
  background-color: #155945;
}

@media (max-width: 991px) {
  .mobile-hdr-search {
    display: inline-flex;
  }
}

@media (max-width: 991px) {
  .search-nav-item {
    display: none !important;
  }

  .search-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .search-overlay__panel {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .search-overlay__header {
    padding: 16px 16px 12px;
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .search-overlay__input {
    font-size: 17px;
  }

  .search-result-addr {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .search-result-price {
    font-size: 12px;
    padding-left: 4px;
  }
  .search-result-addr {
    max-width: 130px;
  }
}

@media (max-width: 991px) {
  .header-quick-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .header-quick-actions .header-center,
  .header-quick-actions .contact-slide-show {
    margin-right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}
