/* Excellence Realty - components: listing grid, cards, filter bar, archive, pagination.
   Depends on tokens.css + theme.css. */

/* ---- Neutralise Astra's constrained container on our full-bleed templates ---- */
body.post-type-archive-property #content > .ast-container,
body.single-property #content > .ast-container,
body.tax-location #content > .ast-container,
body.tax-property_status #content > .ast-container,
body.tax-property_type #content > .ast-container {
  max-width: 100%;
  padding-inline: 0;
}
body.post-type-archive-property .site-content,
body.single-property .site-content,
body.tax-location .site-content,
body.tax-property_status .site-content,
body.tax-property_type .site-content { padding-block: 0; }

/* ---- Grid ---- */
.er-grid { display: grid; gap: 1.75rem; }
.er-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.er-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .er-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .er-grid--3, .er-grid--2 { grid-template-columns: 1fr; } }

/* ---- Listing card ---- */
.er-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--er-card);
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-xl);
  overflow: hidden;
  box-shadow: var(--er-shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.er-card:hover { transform: translateY(-3px); box-shadow: var(--er-shadow-lift); }

.er-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--er-muted);
}
.er-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.er-card:hover .er-card__img { transform: scale(1.04); }

.er-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--er-font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--er-primary-fg);
  background: var(--er-primary);
  padding: 0.36rem 0.7rem;
  border-radius: var(--er-radius-full);
}

.er-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.er-card__price {
  font-family: var(--er-font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--er-fg);
  margin: 0;
}
.er-card__title {
  font-family: var(--er-font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--er-muted-fg);
  margin: 0.3rem 0 0;
}
.er-card__title a { color: inherit; text-decoration: none; }
.er-card__title a::after { content: ""; position: absolute; inset: 0; }
.er-card:hover .er-card__title a { color: var(--er-fg); }
.er-card__meta {
  font-family: var(--er-font-sans);
  font-size: 0.85rem;
  color: var(--er-muted-fg);
  margin: 0.6rem 0 0;
}
.er-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  font-family: var(--er-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--er-primary);
}

/* ---- Filter bar ---- */
.er-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--er-card);
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-xl);
  box-shadow: var(--er-shadow-soft);
}
.er-filter__field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 170px; }
.er-filter__field label {
  font-family: var(--er-font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--er-muted-fg);
}
.er-filter select {
  font-family: var(--er-font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 3rem;
  color: var(--er-fg);
  background-color: var(--er-bg);
  border: 1px solid var(--er-input);
  border-radius: var(--er-radius-sm);
  padding: 0 2.4rem 0 0.9rem;
  appearance: none; -webkit-appearance: none;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6D76' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.er-filter select:focus-visible { outline: 2px solid var(--er-ring); outline-offset: 1px; }
.er-filter__submit { flex: 0 0 auto; }
.er-filter__reset {
  align-self: center;
  font-family: var(--er-font-sans);
  font-size: 0.82rem;
  color: var(--er-muted-fg);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .er-filter { align-items: stretch; row-gap: 0.85rem; column-gap: 0.75rem; padding: 1rem; }
  .er-filter .er-filter__field { flex: 1 1 42%; min-width: 0; }
  .er-filter .er-filter__submit { flex: 1 1 100%; width: 100%; }
  .er-filter .er-filter__reset { align-self: center; }
}

/* ---- Archive head ---- */
.er-archive__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.4rem 0 0;
  max-width: 20ch;
}

/* ---- Empty state ---- */
.er-empty { text-align: center; max-width: 34rem; margin-inline: auto; padding: 2rem 0 1rem; }
.er-empty__title { font-size: 1.6rem; margin: 0 0 0.6rem; }
.er-empty__text { color: var(--er-muted-fg); margin: 0 0 1.4rem; }

/* ---- Pagination ---- */
.er-archive .pagination { margin-top: 2.5rem; }
.er-archive .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.er-archive .page-numbers {
  font-family: var(--er-font-sans);
  font-size: 0.9rem;
  min-width: 2.4rem;
  padding: 0.55rem 0.7rem;
  text-align: center;
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-sm);
  color: var(--er-fg);
  text-decoration: none;
}
.er-archive .page-numbers.current { background: var(--er-primary); color: var(--er-primary-fg); border-color: var(--er-primary); }
.er-archive .page-numbers:not(.current):hover { border-color: var(--er-primary); color: var(--er-primary); }


/* ================= Single property ================= */
.er-single__back {
  display: inline-block;
  font-family: var(--er-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--er-muted-fg);
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.er-single__back:hover { color: var(--er-primary); }

.er-single__headgrid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.er-single__title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0.35rem 0 0;
  max-width: 22ch;
}
.er-single__meta {
  font-family: var(--er-font-sans);
  color: var(--er-muted-fg);
  margin: 0.6rem 0 0;
}
.er-single__pricebox { text-align: right; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end; }
.er-single__price {
  font-family: var(--er-font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--er-gold);
  margin: 0;
}

/* Gallery */
.er-single__gallery { padding-top: 1.5rem; }
.er-gallery { display: grid; gap: 0.6rem; border-radius: var(--er-radius-xl); overflow: hidden; }
.er-gallery--single { grid-template-columns: 1fr; }
.er-gallery--multi {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
}
.er-gallery--multi .er-gallery__item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.er-gallery__item { display: block; overflow: hidden; }
.er-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; transition: transform 400ms ease; }
.er-gallery--multi .er-gallery__item:first-child img { aspect-ratio: 3 / 2; height: 100%; }
.er-gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 768px) {
  .er-gallery--multi { grid-template-columns: repeat(2, 1fr); }
  .er-gallery--multi .er-gallery__item:first-child { grid-column: 1 / 3; grid-row: auto; }
}

/* Body layout */
.er-single__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) { .er-single__grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.er-single__h2 { font-size: 1.55rem; margin: 2.25rem 0 1rem; }
.er-single__h2:first-child { margin-top: 0; }

.er-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin: 0; }
@media (max-width: 520px) { .er-specs { grid-template-columns: 1fr; } }
.er-specs__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--er-border);
}
.er-specs__row dt { font-family: var(--er-font-sans); font-size: 0.85rem; color: var(--er-muted-fg); }
.er-specs__row dd { font-family: var(--er-font-sans); font-size: 0.9rem; font-weight: 500; color: var(--er-fg); margin: 0; }

.er-prose { max-width: 62ch; }
.er-prose p { margin: 0 0 1rem; line-height: var(--er-leading-relaxed); }

.er-featlist {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}
@media (max-width: 520px) { .er-featlist { grid-template-columns: 1fr; } }
.er-featlist li {
  position: relative;
  padding-left: 1.6rem;
  font-family: var(--er-font-sans);
  font-size: 0.92rem;
  color: var(--er-fg);
}
.er-featlist li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--er-gold);
  font-weight: 700;
}

.er-mapcard {
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-lg);
  padding: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--er-cream);
}
.er-mapcard__addr { margin: 0; font-family: var(--er-font-sans); color: var(--er-fg); }

/* Agent card */
.er-agentcard {
  position: sticky; top: 100px;
  background: var(--er-card);
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-xl);
  box-shadow: var(--er-shadow-soft);
  padding: 1.6rem;
  text-align: center;
}
.er-agentcard__photo {
  width: 96px; height: 96px;
  border-radius: var(--er-radius-full);
  object-fit: cover;
  margin: 0 auto 0.9rem;
  display: block;
}
.er-agentcard__name { font-family: var(--er-font-display); font-weight: 600; font-size: 1.35rem; margin: 0; color: var(--er-fg); }
.er-agentcard__title { font-family: var(--er-font-sans); font-size: 0.85rem; color: var(--er-muted-fg); margin: 0.15rem 0 1.1rem; }
.er-agentcard__actions { display: flex; flex-direction: column; gap: 0.6rem; }
.er-agentcard__actions .er-btn { width: 100%; }
.er-agentcard__line {
  font-family: var(--er-font-sans);
  font-size: 0.9rem;
  color: var(--er-muted-fg);
  text-decoration: none;
  padding: 0.2rem 0;
}
.er-agentcard__line:hover { color: var(--er-primary); }
.er-agentcard__mls { font-family: var(--er-font-sans); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--er-muted-fg); margin: 1rem 0 0; }

.er-btn--whatsapp { background-color: var(--er-whatsapp); color: var(--er-whatsapp-fg); }

/* CTA band */
.er-single__cta { text-align: center; }
.er-single__ctatitle { color: var(--er-primary-fg); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.6rem; }
.er-single__cta p { color: var(--er-primary-fg); opacity: 0.9; max-width: 44ch; margin: 0 auto 1.5rem; font-family: var(--er-font-sans); }


/* ================= Fluent Forms (Let's Talk) ================= */
.fluentform .ff-el-group { margin-bottom: 1.1rem; }
.fluentform .ff-el-input--label label,
.fluentform label.ff-el-form-label {
  font-family: var(--er-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--er-muted-fg);
  margin-bottom: 0.4rem;
  display: block;
}
.fluentform input.ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
  font-family: var(--er-font-sans);
  font-size: 0.95rem;
  width: 100%;
  color: var(--er-fg);
  background-color: var(--er-bg);
  border: 1px solid var(--er-input);
  border-radius: var(--er-radius-sm);
  padding: 0.78rem 0.95rem;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.fluentform input.ff-el-form-control:focus,
.fluentform select.ff-el-form-control:focus,
.fluentform textarea.ff-el-form-control:focus {
  outline: none;
  border-color: var(--er-primary);
  box-shadow: 0 0 0 3px oklch(0.52 0.09 205 / 0.20);
}
.fluentform textarea.ff-el-form-control { min-height: 130px; resize: vertical; }
.fluentform .ff-el-form-control::placeholder { color: var(--er-muted-fg); opacity: 0.7; }

.fluentform .ff-btn-submit,
.fluentform button.ff-btn-submit {
  font-family: var(--er-font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1;
  background-color: var(--er-gold) !important;
  color: var(--er-gold-fg) !important;
  border: 0 !important;
  border-radius: var(--er-radius-full) !important;
  padding: 0.95rem 2rem !important;
  cursor: pointer;
  transition: filter 160ms ease;
}
.fluentform .ff-btn-submit:hover { filter: brightness(0.94); }

.fluentform .ff-el-is-error input.ff-el-form-control,
.fluentform .ff-el-is-error textarea.ff-el-form-control,
.fluentform .ff-el-is-error select.ff-el-form-control { border-color: var(--er-destructive); }
.fluentform .error.text-danger,
.fluentform .ff-el-is-error .error { color: var(--er-destructive); font-size: 0.82rem; margin-top: 0.3rem; }

.ff-message-success,
.fluentform_success .ff-message-success {
  font-family: var(--er-font-sans);
  color: var(--er-fg);
  background: var(--er-cream);
  border: 1px solid var(--er-border);
  border-radius: var(--er-radius-lg);
  padding: 1.25rem 1.4rem;
  line-height: var(--er-leading-relaxed);
}

/* single-line full name (last/middle hidden) */
.fluentform .ff-name-field-wrapper > .ff-t-container { display: block; }
.fluentform .ff-name-field-wrapper > .ff-t-container > .ff-t-cell { width: 100% !important; padding: 0 !important; }


/* ============ Single-property interactive gallery ============ */
.er-single__gallery { padding-top: 1.5rem; }
.er-pgallery { display: flex; flex-direction: column; gap: 0.75rem; }
.er-pgallery__stage {
  position: relative;
  aspect-ratio: 16 / 7.5;
  border-radius: var(--er-radius-xl);
  overflow: hidden;
  background: var(--er-muted);
  box-shadow: var(--er-shadow-soft);
}
.er-pgallery__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 320ms ease;
}
.er-pgallery__slide.is-active { opacity: 1; visibility: visible; }
.er-pgallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.er-pgallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid oklch(1 0 0 / 0.4);
  border-radius: var(--er-radius-full);
  background: oklch(0.2 0.035 258 / 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.er-pgallery__nav:hover { background: oklch(0.2 0.035 258 / 0.8); }
.er-pgallery__nav--prev { left: 0.9rem; }
.er-pgallery__nav--next { right: 0.9rem; }
.er-pgallery__counter {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  font-family: var(--er-font-sans); font-size: 0.78rem; font-weight: 500;
  color: #fff;
  background: oklch(0.2 0.035 258 / 0.7);
  padding: 0.3rem 0.7rem;
  border-radius: var(--er-radius-full);
}

.er-pgallery__thumbs {
  display: flex; gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}
.er-pgallery__thumb {
  flex: 0 0 auto;
  width: 104px; height: 68px;
  padding: 0; border: 2px solid transparent;
  border-radius: var(--er-radius-md);
  overflow: hidden; cursor: pointer;
  background: var(--er-muted);
  opacity: 0.55;
  transition: opacity 160ms ease, border-color 160ms ease;
}
.er-pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-pgallery__thumb:hover { opacity: 0.85; }
.er-pgallery__thumb.is-active { opacity: 1; border-color: var(--er-primary); }

@media (max-width: 640px) {
  .er-pgallery__stage { aspect-ratio: 16 / 9; }
  .er-pgallery__thumb { width: 84px; height: 56px; }
  .er-pgallery__nav { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* retire the old bento gallery rules (kept harmless if referenced) */
.er-gallery--multi, .er-gallery--single { display: none; }

/* ================= Shared icon + property card (one component everywhere) ================= */
.er-icon { display: inline-block; flex: none; vertical-align: -0.14em; }
.er-icon--inline { vertical-align: middle; }
.er-lp-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
@media (max-width: 560px) { .er-lp-grid { grid-template-columns: 1fr; } }
.er-lp-card { display: flex; }
.er-lp-card[hidden] { display: none; }
/* ---- property card (design-matched) ---- */
.er-lp-pc {
  position: relative;
  display: flex; flex-direction: column; width: 100%; height: 100%;
  overflow: hidden; border-radius: 22px; background: var(--er-card);
  box-shadow: 0 1px 2px oklch(0.2 0.03 250 / 0.04), 0 12px 32px -12px oklch(0.2 0.03 250 / 0.16);
  transition: box-shadow .4s ease;
}
.er-lp-pc:hover { box-shadow: 0 2px 4px oklch(0.2 0.03 250 / 0.06), 0 28px 60px -24px oklch(0.2 0.03 250 / 0.28); }
.er-lp-pc__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--er-muted); }
.er-lp-pc__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.er-lp-pc:hover .er-lp-pc__img { transform: scale(1.05); }
.er-lp-pc__status, .er-lp-pc__type {
  position: absolute; top: 16px; border-radius: 999px; padding: 5px 12px;
  font-family: var(--er-font-sans); font-size: 12px; font-weight: 500;
}
.er-lp-pc__status { left: 16px; background: oklch(0.985 0.006 95 / 0.95); color: oklch(0.235 0.045 220); }
.er-lp-pc__type { right: 16px; background: oklch(0.2 0.035 258 / 0.72); color: oklch(0.98 0.01 85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.er-lp-pc__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.er-lp-pc__price { font-family: var(--er-font-display); font-weight: 500; font-size: 28px; line-height: 1; color: var(--er-fg); margin: 0; }
.er-lp-pc__title { font-family: var(--er-font-display); font-weight: 500; letter-spacing: -0.01em; font-size: 21px; line-height: 1.2; margin: 10px 0 0; color: var(--er-fg); }
.er-lp-pc__title a { color: inherit; text-decoration: none; }
.er-lp-pc__title a::after { content: ""; position: absolute; inset: 0; }
.er-lp-pc__city { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-family: var(--er-font-sans); font-size: 14px; color: var(--er-muted-fg); }
.er-lp-pc__specs {
  margin: 18px 0 0; padding: 16px 0 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--er-border);
  font-family: var(--er-font-sans); font-size: 14px; color: var(--er-muted-fg);
}
.er-lp-pc__specs li { display: flex; align-items: center; gap: 6px; }
.er-lp-pc__cta {
  margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--er-font-sans); font-size: 14px; font-weight: 500; color: var(--er-gold);
}
.er-lp-pc__specs .er-icon, .er-lp-pc__city .er-icon, .er-lp-pc__cta .er-icon { width: 16px; height: 16px; }
.er-lp-pc__city .er-icon { width: 14px; height: 14px; }

/* filter: standardised field heights + submit icon */
.er-filter__field { flex: 1 1 190px; min-width: 0; }
.er-filter__field label { margin-bottom: 0.1rem; }
.er-filter__submit { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding-inline: 1.4rem; white-space: nowrap; }
.er-filter__submit .er-icon { width: 16px; height: 16px; }
.er-filter select:hover { border-color: var(--er-primary); }

/* ---- Office info list (icons via er_icon) ---- */
.er-office { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.er-office li { display: flex; align-items: flex-start; gap: 0.7rem; font-family: var(--er-font-sans); font-size: 0.95rem; line-height: 1.5; color: var(--er-muted-fg); }
.er-office li > span { min-width: 0; }
.er-office a { color: var(--er-primary); text-decoration: none; word-break: break-word; }
.er-office a:hover { color: var(--er-gold); }
.er-office__ico { flex: none; width: 17px; height: 17px; margin-top: 0.18rem; color: var(--er-gold); }
.er-office__langs { color: var(--er-muted-fg); }

/* ================= Global floating WhatsApp button ================= */
.er-wa {
  position: fixed; z-index: 90;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 18px -4px oklch(0.2 0.03 250 / 0.35), 0 2px 6px oklch(0.2 0.03 250 / 0.2);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.er-wa:hover, .er-wa:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px -4px oklch(0.2 0.03 250 / 0.4); color: #fff; }
.er-wa:focus-visible { outline: 3px solid var(--er-ring); outline-offset: 3px; }
.er-wa .er-icon { width: 30px; height: 30px; }
@media (max-width: 640px) { .er-wa { width: 52px; height: 52px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); } }
@media print { .er-wa { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .er-wa { transition: none; } .er-wa:hover { transform: none; } }

/* ================= Facts & Features (ACF repeater on single property) ================= */
.er-facts { margin: 0 0 2.25rem; }
.er-facts__title { margin-top: 0; }
.er-facts__grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.4rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.er-facts__item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.75rem 0; border-bottom: 1px solid var(--er-border); }
.er-facts__ico { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; color: var(--er-gold); }
.er-facts__text { display: flex; flex-direction: column; min-width: 0; }
.er-facts__label { font-family: var(--er-font-sans); font-size: 0.8rem; color: var(--er-muted-fg); }
.er-facts__value { font-family: var(--er-font-sans); font-size: 0.95rem; font-weight: 500; color: var(--er-fg); word-break: break-word; }
.er-facts__desc { font-family: var(--er-font-sans); font-size: 0.82rem; color: var(--er-muted-fg); margin-top: 0.1rem; }
@media (max-width: 520px) { .er-facts__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { .er-facts__grid { grid-template-columns: 1fr; } }
.er-pgallery__nav .er-icon { width: 22px; height: 22px; }
.er-single__back .er-icon { width: 16px; height: 16px; vertical-align: -0.2em; }

/* FF select: match the rounded inputs (was using the native dropdown chrome) */
.fluentform select.ff-el-form-control {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6D76' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}

/* archive: close the dead gap between the search/filter head and the results grid
   (two stacked .er-section blocks were stacking 96px + 96px of vertical padding) */
.er-archive .er-archive__head { padding-bottom: 2.75rem; }
.er-archive .er-archive__head + .er-section { padding-top: 2.75rem; }
@media (max-width: 782px) { .er-archive .er-archive__head { padding-bottom: 2rem; } .er-archive .er-archive__head + .er-section { padding-top: 2rem; } }

/* card: stay left-aligned + image fills, regardless of section context */
.er-lp-pc, .er-lp-pc__body, .er-lp-pc__body * { text-align: left; }
.er-lp-pc__specs { justify-content: flex-start; }
.er-lp-pc__cta { align-self: flex-start; }
.er-lp-pc__media img, .er-lp-pc__media .er-lp-pc__img {
  width: 100%; height: 100%; object-fit: cover; display: block; max-width: none;
}
/* badge: single-line pill (a stray line-height:0 on the media box had squished it flat) */
.er-lp-pc__status, .er-lp-pc__type { line-height: 1.2; white-space: nowrap; }
