/* ========================================================
   EDITORIAL — 50&50 Property
   ----------------------------------------------------------
   Reusable editorial primitives for the operational pages
   (admin, dashboards, wizards). Inter throughout — weight
   and color carry the hierarchy; italic kept only on hero
   title emphasis where the slant reads as accent, not script.
   ======================================================== */

:root {
  --ed-display: 'Inter', system-ui, -apple-system, sans-serif;
  --ed-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ed-thread: linear-gradient(90deg,
    transparent,
    rgba(167, 139, 250, 0.35) 30%,
    rgba(6, 182, 212, 0.30) 70%,
    transparent);
  --ed-card: rgba(17, 24, 39, 0.55);
  --ed-card-elevated: rgba(17, 24, 39, 0.72);
  --ed-rule-soft: rgba(255, 255, 255, 0.06);
  --ed-rule-mid:  rgba(255, 255, 255, 0.10);
}

/* ─── Page header ─── */
.ed-header {
  position: relative;
  padding: 2.25rem 0 1.75rem;
  margin-bottom: 1.75rem;
}
.ed-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(180px, 28%, 360px);
  height: 1px;
  background: var(--ed-thread);
}
.ed-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ed-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.ed-header__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.55);
}
.ed-header__title {
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin: 0 0 0.55rem;
}
.ed-header__title em {
  font-style: italic;
  color: var(--primary-light);
}
.ed-header__lede {
  font-family: var(--ed-body);
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}

/* ─── Editorial panel ─── */
.ed-panel {
  background: var(--ed-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ed-rule-soft);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  position: relative;
}
.ed-panel + .ed-panel { margin-top: 1rem; }

.ed-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--ed-rule-soft);
}
.ed-panel__title {
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 0;
}
.ed-panel__kicker {
  font-family: var(--ed-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Tabs (used for admin status switchers) ─── */
.ed-tabs {
  display: inline-flex;
  gap: 0;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--ed-rule-mid);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.ed-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--ed-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}
.ed-tab:hover { color: var(--text-primary); }
.ed-tab[aria-selected="true"],
.ed-tab.active {
  color: var(--text-primary);
  background: rgba(167, 139, 250, 0.18);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

/* ─── Status pills (small, restrained) ─── */
.ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ed-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
}
.ed-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.ed-pill--pending,
.ed-pill--submitted { color: #fbbf24; }
.ed-pill--verified,
.ed-pill--approved,
.ed-pill--owner    { color: #34d399; }
.ed-pill--rejected,
.ed-pill--needs_revision { color: #f87171; }
.ed-pill--third_party,
.ed-pill--info     { color: #60a5fa; }
.ed-pill--neutral  { color: var(--text-muted); }

/* ─── List row (used for identity queue, lead lists) ─── */
.ed-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--ed-card);
  border: 1px solid var(--ed-rule-soft);
  border-radius: 14px;
  margin-bottom: 0.55rem;
  transition: border-color 200ms ease, transform 200ms ease;
}
.ed-row:hover {
  border-color: var(--ed-rule-mid);
  transform: translateY(-1px);
}
.ed-row__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ed-rule-soft);
  font-size: 1.15rem;
  font-family: var(--ed-display);
  font-weight: 600;
  color: var(--text-secondary);
}
.ed-row__title {
  font-family: var(--ed-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}
.ed-row__meta {
  font-family: var(--ed-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: center;
}
.ed-row__meta strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── Buttons (editorial variants) ─── */
.ed-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--ed-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.62rem 1.15rem;
  border-radius: 10px;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ed-btn:hover { transform: translateY(-1px); }
.ed-btn:active { transform: translateY(0); }

.ed-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.30);
}
.ed-btn--primary:hover {
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.45);
}
.ed-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--ed-rule-mid);
}
.ed-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}
.ed-btn--danger {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.ed-btn--danger:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.6);
}

/* ─── Doc frame (used for cédula previews in admin review) ─── */
.ed-doc {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--ed-rule-soft);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-doc img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 200ms ease;
}
.ed-doc img:hover { transform: scale(1.01); }

/* ─── Readouts (key/value pairs for review modals) ─── */
.ed-readout {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ed-readout__label {
  font-family: var(--ed-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ed-readout__value {
  font-family: var(--ed-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.ed-readout__value--display {
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.018em;
}

/* ─── Modal (replaces inline modal styles) ─── */
.ed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 2rem;
  animation: ed-fade-in 200ms ease;
}
.ed-modal {
  width: min(960px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--ed-card-elevated);
  border: 1px solid var(--ed-rule-mid);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  position: relative;
  animation: ed-rise 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-modal__head {
  position: sticky;
  top: 0;
  background: var(--ed-card-elevated);
  backdrop-filter: blur(20px);
  padding: 1.4rem 1.75rem 1rem;
  border-bottom: 1px solid var(--ed-rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2;
}
.ed-modal__title {
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--text-primary);
}
.ed-modal__title em {
  font-style: italic;
  color: var(--primary-light);
}
.ed-modal__close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.ed-modal__close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-primary); }
.ed-modal__body { padding: 1.4rem 1.75rem; }
.ed-modal__foot {
  position: sticky;
  bottom: 0;
  background: var(--ed-card-elevated);
  backdrop-filter: blur(20px);
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid var(--ed-rule-soft);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

@keyframes ed-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ed-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1);     }
}

/* ─── Verification result card (used in publish.html step 3) ─── */
.ed-verdict {
  position: relative;
  padding: 1.4rem 1.5rem;
  background: var(--ed-card);
  border: 1px solid var(--ed-rule-soft);
  border-radius: 16px;
  overflow: hidden;
}
.ed-verdict::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--ed-thread);
  filter: blur(0.3px);
}
.ed-verdict__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.ed-verdict__label {
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin: 0;
}
.ed-verdict__label em {
  font-style: italic;
  color: var(--primary-light);
}
.ed-verdict__confidence {
  font-family: var(--ed-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ed-verdict__reasons {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-verdict__reasons li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  font-family: var(--ed-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.ed-verdict__reasons li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.ed-verdict__cbr {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--ed-rule-soft);
  font-family: var(--ed-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.ed-verdict__cbr strong {
  color: var(--text-primary);
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ─── Map/list view toggle (used in search.html) ─── */
.ed-view-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--ed-rule-mid);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--ed-body);
}
.ed-view-toggle__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}
.ed-view-toggle__btn:hover { color: var(--text-primary); }
.ed-view-toggle__btn.active {
  color: var(--text-primary);
  background: rgba(167, 139, 250, 0.18);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

/* ─── Map shell ─── */
.ed-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ed-rule-soft);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.ed-map .leaflet-container {
  background: #0b0f1a;
}

/* ─── Auth pre-fill banner ─── */
.auth-prefill-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.auth-prefill-banner strong { color: var(--text-primary); font-weight: 600; }
.auth-prefill-banner__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  display: inline-block;
}

/* ─── Tools page chrome (mortgage/appraiser/commission/refer) ─── */
.tools-stage {
  max-width: 1080px;
  margin: 90px auto 4rem;
  padding: 0 1.5rem;
}
.tools-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 920px) { .tools-split { grid-template-columns: 1fr; } }

.tools-form {
  background: var(--ed-card);
  border: 1px solid var(--ed-rule-soft);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tools-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.tools-form input,
.tools-form select,
.tools-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--ed-rule-mid);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.tools-form input:focus,
.tools-form select:focus,
.tools-form textarea:focus {
  outline: 0;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}
.tools-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.tools-result {
  position: sticky;
  top: 90px;
  padding: 1.75rem;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.10), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 18px;
}
.tools-result__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.tools-result__big {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -0.032em;
  line-height: 1;
  color: var(--text-primary);
  margin: 0.55rem 0 1rem;
}
.tools-result__big em {
  font-style: normal;
  color: var(--primary-light);
}
.tools-result__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--ed-rule-soft);
}
.tools-result__row:last-child { border-bottom: 0; }
.tools-result__row strong {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.tools-result__hint {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.55;
}

/* ─── Price suggestion card (used in publish.html) ─── */
.ed-suggestion {
  margin-top: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  font-family: var(--ed-body);
  display: flex;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}
.ed-suggestion__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.ed-suggestion__range {
  font-family: var(--ed-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}
.ed-suggestion__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   § ED-SELECT — custom dropdown (replaces native <select> popup)
   Wraps a hidden native <select> for form/JS compatibility.
   ============================================================ */
.ed-select {
  position: relative;
  display: block;
  width: 100%;
}
.ed-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ed-select__trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ed-rule-mid);
  border-radius: 11px;
  font-family: var(--ed-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ed-select__trigger:hover { border-color: rgba(255, 255, 255, 0.2); }
.ed-select__trigger:focus-visible {
  outline: none;
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.06);
}
.ed-select__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-select__caret {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.ed-select.is-open .ed-select__trigger {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.06);
}
.ed-select.is-open .ed-select__caret { transform: rotate(180deg); }

/* The list is rendered with `position: fixed` so it escapes any ancestor
   that establishes a stacking / overflow context (e.g. `.pub-card` uses
   `overflow: hidden` for its rounded backdrop-blur edges, which would
   otherwise clip the dropdown). Coordinates (top/left/width) are set
   inline by the JS via getBoundingClientRect on open. */
.ed-select__list {
  position: fixed;
  z-index: 2000;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.98), rgba(13, 18, 30, 0.98));
  border: 1px solid var(--ed-rule-mid);
  border-radius: 12px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(167, 139, 250, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.ed-select__list.ed-select__list--above { transform: translateY(4px); }
/* List lives on <body> (escapes ancestor containing blocks created by
   transform/filter/backdrop-filter), so the open-state must be expressed on
   the list itself rather than on a .ed-select ancestor. */
.ed-select__list.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ed-select__list.is-open.ed-select__list--above { transform: translateY(0); }
.ed-select__list li {
  padding: 0.5rem 0.7rem;
  font-family: var(--ed-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ed-select__list li:hover,
.ed-select__list li.is-active {
  background: rgba(167, 139, 250, 0.12);
  color: #fff;
}
.ed-select__list li.is-selected {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.18));
  color: #fff;
}
.ed-select__list::-webkit-scrollbar { width: 6px; }
.ed-select__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* Compact density for dense toolbars (use class `ed-select--sm`).
   Sits inline so flex toolbars can place it next to other compact controls
   instead of stretching to 100% of the row. min-width fits the longest
   option label (e.g. "Mayor superficie") without truncation. */
.ed-select--sm {
  width: auto;
  display: inline-block;
  min-width: 11.5rem;
  max-width: 100%;
}
.ed-select--sm .ed-select__trigger {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 10px;
}
.ed-select--sm .ed-select__list li {
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
}

/* ============================================================
   § ED-INPUT — text / number inputs in the editorial line
   ============================================================ */
.ed-input,
.ed-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ed-rule-mid);
  border-radius: 11px;
  font-family: var(--ed-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ed-input { width: 100%; outline: none; }
.ed-input::placeholder,
.ed-input-wrap input::placeholder { color: var(--text-muted); }
.ed-input:hover,
.ed-input-wrap:hover { border-color: rgba(255, 255, 255, 0.2); }
.ed-input:focus,
.ed-input-wrap:focus-within {
  outline: none;
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.06);
}
.ed-input-wrap__icon { color: var(--text-muted); flex-shrink: 0; }
.ed-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-family: var(--ed-body);
  font-size: 0.9rem;
}
.ed-input[type="number"]::-webkit-outer-spin-button,
.ed-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ed-input[type="number"] { -moz-appearance: textfield; }
