/* v9.6.25.25: scoped rental form, seller section and directory crosslinks.
 * Embedded page rules use TWO IDs (body:has(#page) #form). The earlier
 * one-ID repair could not win, regardless of its load order. Both actual
 * form/container IDs provide a stable boundary without changing other forms.
 * Never force input/select display: WPForms and Nice Select own visibility. */
html body.elika-list-rentals-form-modern #wpforms-36100 {
  box-sizing: border-box !important;
  position: relative !important;
  left: auto !important;
  width: calc(100% - 40px) !important;
  max-width: 1120px !important;
  margin: 0 auto 72px !important;
  padding: clamp(22px, 4vw, 52px) !important;
  background: #fbfaf7 !important;
  border: 1px solid #cbc6bb !important;
  box-shadow: none !important;
  text-align: left !important;
}
/* Counter the two-ID inline container selector without relying on :has(). */
html body.elika-list-rentals-form-modern #canvas-content #wpforms-36100 {
  left: auto !important;
  width: calc(100% - 40px) !important;
  max-width: 1120px !important;
  margin: 0 auto 72px !important;
  padding: clamp(22px, 4vw, 52px) !important;
  background: #fbfaf7 !important;
  border: 1px solid #cbc6bb !important;
  box-shadow: none !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100::before { content: none !important; display: none !important; }
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .wpforms-field-container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .wpforms-field-container > .wpforms-field {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .wpforms-field-textarea { grid-column: 1 / -1 !important; }
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .wpforms-field-container > .wpforms-field > .wpforms-field-label {
  position: static !important;
  inset: auto !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  transform: none !important;
  color: #29332c !important;
  -webkit-text-fill-color: #29332c !important;
  background: transparent !important;
  font: 700 11px/1.5 Arial, Helvetica, sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea, .nice-select) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #aaa69d !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #20231f !important;
  -webkit-text-fill-color: #20231f !important;
  box-shadow: none !important;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 textarea { min-height: 160px !important; resize: vertical !important; }
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 :is(input, select, textarea):focus {
  padding: 14px 16px !important;
  border-color: #29332c !important;
  outline: 2px solid #29332c !important;
  outline-offset: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .iti { width: 100% !important; }
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .iti input[type="tel"],
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .iti input[type="tel"]:focus { padding-left: 64px !important; }
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .wpforms-submit-container { margin: 28px 0 0 !important; padding: 0 !important; border: 0 !important; }
html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 button[type="submit"] { width: 100% !important; min-width: 0 !important; }
html body.elika-list-rentals-form-modern #elika-list-rentals-bottom .elr-contact h2,
html body.elika-list-rentals-form-modern #elika-list-rentals-bottom .elr-contact h2 :is(span, a) {
  color: #fbfaf7 !important;
  -webkit-text-fill-color: #fbfaf7 !important;
}
html body.elika-list-rentals-form-modern #elr-form { scroll-margin-top: 140px; }
@media (max-width: 760px) {
  html body.elika-list-rentals-form-modern #wpforms-36100 #wpforms-form-36100 .wpforms-field-container { grid-template-columns: minmax(0, 1fr) !important; }
}

/* The seller addition does not restyle any existing section or heading. */
html body #els-page-v1 #els-coop-selling { padding: clamp(56px, 6vw, 96px) 24px; background: #f4f1ea; color: #20231f; }
html body #els-page-v1 #els-coop-selling .els-coop-inner { width: 100%; max-width: 1180px; margin: 0 auto; }
html body #els-page-v1 #els-coop-selling h2 { max-width: 900px; margin: 16px 0 28px; color: #20231f !important; font: 400 clamp(34px, 4vw, 58px)/1.08 Georgia, serif; letter-spacing: -.035em; text-transform: none; }
html body #els-page-v1 #els-coop-selling .els-coop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 32px 0; }
html body #els-page-v1 #els-coop-selling h3 { margin: 0 0 12px; color: #20231f !important; font: 400 25px/1.2 Georgia, serif; text-transform: none; }
html body #els-page-v1 #els-coop-selling p { color: #4d4b46; font: 400 16px/1.65 Arial, sans-serif; }
html body #els-page-v1 #els-coop-selling a { color: #29332c; text-decoration: underline; text-underline-offset: 4px; }
html body #els-page-v1 #els-coop-selling .els-coop-note { padding-top: 24px; border-top: 1px solid #cbc6bb; font-size: 13px; }
@media (max-width: 760px) { html body #els-page-v1 #els-coop-selling .els-coop-grid { grid-template-columns: minmax(0, 1fr); } }

/* Stay within each page's existing diligence container; allow mobile wrapping. */
html body #ecd-page #ecd-building-directory-links,
html body #eco-page #eco-building-directory-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  width: 100%; min-width: 0; margin: 0 0 32px; padding: 0;
}
html body #ecd-page #ecd-building-directory-links a,
html body #eco-page #eco-building-directory-links a {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  min-height: 44px; padding: 8px 0; box-sizing: border-box;
  color: #29332c !important; -webkit-text-fill-color: #29332c !important;
  font: 700 13px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .04em;
  text-decoration: underline; text-underline-offset: 5px; white-space: normal;
}
html body #ecd-page #ecd-building-directory-links a:focus-visible,
html body #eco-page #eco-building-directory-links a:focus-visible {
  outline: 2px solid #29332c; outline-offset: 4px;
}

/* v30: seller resource headings begin at the same height in each row. */
html body #els-page-v1 #els-resources .els-resource { justify-content:flex-start!important; }
html body #els-page-v1 #els-resources .els-resource__body { margin-top:48px!important; }
