.nfb-metric-widget {
  --nfb-metric-gap: 14px;
  position: relative;
  display: grid;
  gap: var(--nfb-metric-gap);
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  background: linear-gradient(145deg, #fffaf2 0%, #f5fbff 100%);
  overflow: hidden;
  isolation: isolate;
}

.nfb-metric-widget::before,
.nfb-metric-widget::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}

.nfb-metric-widget::before {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  transform: translate(-26%, 28%);
  background: radial-gradient(circle, rgba(255,255,255,0.7), rgba(255,255,255,0));
}

.nfb-metric-line {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}

.elementor-widget-nuevoflex-property-metrics.nfb-line-layout-column .nfb-metric-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.elementor-widget-nuevoflex-property-metrics.nfb-line-layout-row .nfb-metric-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.elementor-widget-nuevoflex-property-metrics.nfb-line-layout-row .nfb-metric-line-label,
.elementor-widget-nuevoflex-property-metrics.nfb-line-layout-row .nfb-metric-line-value {
  margin-top: 0;
  margin-bottom: 0;
}

.nfb-metric-line-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5f6f84;
  text-transform: none;
}

.nfb-metric-line-value {
  display: block;
  color: #10243d;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.nfb-metric-widget.preset-1 {
  background: linear-gradient(135deg, #fff2db 0%, #f5fbff 100%);
}

.nfb-metric-widget.preset-1 .nfb-metric-line-value { color: #0f4c81; }

.nfb-metric-widget.preset-2 {
  background: linear-gradient(155deg, #10243d 0%, #183b61 100%);
}

.nfb-metric-widget.preset-2 .nfb-metric-line {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.nfb-metric-widget.preset-2 .nfb-metric-line-label { color: rgba(255,255,255,0.74); }
.nfb-metric-widget.preset-2 .nfb-metric-line-value { color: #fff4b3; }

.nfb-metric-widget.preset-3 {
  background: linear-gradient(140deg, #f7f2ff 0%, #fef7f1 100%);
}

.nfb-metric-widget.preset-3 .nfb-metric-line {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(93, 66, 140, 0.08);
}

.nfb-metric-widget.preset-3 .nfb-metric-line-value { color: #7a3cff; }

.nfb-metric-widget.preset-4 {
  background: linear-gradient(180deg, #e8fff4 0%, #f6fff9 100%);
}

.nfb-metric-widget.preset-4 .nfb-metric-line {
  border-left: 5px solid #16a34a;
}

.nfb-metric-widget.preset-4 .nfb-metric-line-value { color: #116530; }

.nfb-metric-widget.preset-5 {
  background: linear-gradient(135deg, #fff1f1 0%, #fff8ef 100%);
}

.nfb-metric-widget.preset-5 .nfb-metric-line {
  background: rgba(255,255,255,0.92);
}

.nfb-metric-widget.preset-5 .nfb-metric-line-value { color: #d14343; }

.nfb-metric-widget.preset-6 {
  background: linear-gradient(135deg, #f0fbff 0%, #f7f5ff 100%);
}

.nfb-metric-widget.preset-6 .nfb-metric-line {
  border-radius: 12px;
}

.nfb-metric-widget.preset-6 .nfb-metric-line-value { color: #0d7ea2; }

.nfb-metric-widget.preset-7 {
  background: linear-gradient(145deg, #161616 0%, #282828 100%);
}

.nfb-metric-widget.preset-7::before {
  background: radial-gradient(circle, rgba(255,184,77,0.28), rgba(255,184,77,0));
}

.nfb-metric-widget.preset-7 .nfb-metric-line {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.nfb-metric-widget.preset-7 .nfb-metric-line-label { color: rgba(255,255,255,0.72); }
.nfb-metric-widget.preset-7 .nfb-metric-line-value { color: #ffbf57; }

.nfb-metric-widget.preset-8 {
  background: linear-gradient(135deg, #ebf8ff 0%, #ffffff 52%, #effff6 100%);
}

.nfb-metric-widget.preset-8 .nfb-metric-line {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
}

.nfb-metric-widget.preset-8 .nfb-metric-line-value { color: #155eef; }

.nfb-metric-widget.preset-9 {
  background: linear-gradient(135deg, #fff9e8 0%, #fff3d8 100%);
}

.nfb-metric-widget.preset-9 .nfb-metric-line {
  border: 1px dashed rgba(145, 102, 26, 0.28);
  background: rgba(255, 251, 240, 0.84);
}

.nfb-metric-widget.preset-9 .nfb-metric-line-value { color: #9a6700; }

.nfb-metric-widget.preset-10 {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.9), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #0f766e 0%, #0b4a6f 100%);
}

.nfb-metric-widget.preset-10 .nfb-metric-line {
  background: rgba(8, 28, 39, 0.26);
  border-color: rgba(255,255,255,0.12);
}

.nfb-metric-widget.preset-10 .nfb-metric-line-label { color: rgba(226, 247, 255, 0.82); }
.nfb-metric-widget.preset-10 .nfb-metric-line-value { color: #d9fff0; }

.nfb-metric-widget-empty {
  padding: 18px;
  border-radius: 20px;
  background: #fff7f5;
  border: 1px solid #f0cfc6;
  color: #8b3a2f;
}

.nfb-token-manager-widget {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 226, 173, 0.48), transparent 34%),
    linear-gradient(145deg, #fff9ef 0%, #f3f9ff 100%);
  box-shadow: 0 18px 42px rgba(15, 42, 74, 0.08);
}

.nfb-token-manager-head {
  margin-bottom: 18px;
}

.nfb-token-manager-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a5c2b;
}

.nfb-token-manager-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  color: #10243d;
}

.nfb-token-manager-head p {
  margin: 8px 0 0;
  color: #5f6f84;
}

.nfb-token-manager-loading,
.nfb-token-manager-error,
.nfb-token-manager-locked {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(16, 36, 61, 0.08);
  color: #42556d;
}

.nfb-token-manager-flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eaf8ef;
  border: 1px solid #9fd4ae;
  color: #1d6c38;
  font-weight: 700;
}

.nfb-token-toolbar,
.nfb-token-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.nfb-token-toolbar label,
.nfb-token-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #5f6f84;
  font-size: 13px;
  font-weight: 700;
}

.nfb-token-toolbar label {
  flex: 1 1 320px;
}

.nfb-token-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nfb-token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nfb-token-grid-full {
  grid-column: 1 / -1;
}

.nfb-token-manager-widget input,
.nfb-token-manager-widget select,
.nfb-token-manager-widget textarea,
.nfb-token-manager-widget button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  padding: 11px 13px;
  font-size: 14px;
}

.nfb-token-manager-widget select[multiple] {
  min-height: 128px;
}

.nfb-token-manager-widget textarea {
  min-height: 110px;
  resize: vertical;
}

.nfb-token-primary,
.nfb-token-secondary,
.nfb-token-danger {
  width: auto;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.nfb-token-primary {
  background: #10243d;
  color: #fff;
}

.nfb-token-secondary {
  background: #eef4ff;
  color: #17345a;
}

.nfb-token-danger {
  background: #b42318;
  color: #fff;
}

.nfb-token-list {
  margin-top: 18px;
}

.nfb-token-list h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #10243d;
}

.nfb-token-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nfb-token-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 61, 0.09);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.nfb-token-card:hover,
.nfb-token-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(16, 36, 61, 0.2);
  box-shadow: 0 12px 28px rgba(15, 42, 74, 0.1);
}

.nfb-token-card strong,
.nfb-token-card small,
.nfb-token-card p {
  display: block;
}

.nfb-token-card small {
  margin-top: 3px;
  color: #8a5c2b;
}

.nfb-token-card p {
  margin: 8px 0 0;
  color: #5f6f84;
  font-size: 13px;
  line-height: 1.45;
}

.nfb-token-selector-widget {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  background: linear-gradient(145deg, #fffdf8 0%, #f2f8ff 100%);
  box-shadow: 0 14px 34px rgba(15, 42, 74, 0.08);
}

.nfb-token-selector-head {
  margin-bottom: 14px;
}

.nfb-token-selector-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5c2b;
}

.nfb-token-selector-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  color: #10243d;
}

.nfb-token-selector-ui label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #5f6f84;
  font-size: 13px;
  font-weight: 700;
}

.nfb-token-selector-ui select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  padding: 12px 14px;
  background: #fff;
  color: #10243d;
}

.nfb-token-selector-status {
  margin-top: 12px;
  color: #8b3a2f;
  font-size: 14px;
}

.nfb-token-selector-results {
  margin-top: 18px;
}

.elementor-widget-nuevoflex-property-search,
.elementor-widget-nuevoflex-property-search .elementor-widget-container {
  position: relative;
  overflow: visible !important;
  z-index: 1;
}

.nfb-search-widget {
  --nfb-search-gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  max-width: 1180px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  background: linear-gradient(145deg, #fff8ef 0%, #f4f9ff 100%);
  box-shadow: 0 18px 42px rgba(15, 42, 74, 0.08);
  overflow: visible;
  opacity: 1;
}

.nfb-search-widget h1,
.nfb-search-widget h2,
.nfb-search-widget h3,
.nfb-search-widget p,
.nfb-search-widget span,
.nfb-search-widget input,
.nfb-search-widget select,
.nfb-search-widget button,
.nfb-search-widget a {
  font-family: "Space Grotesk", sans-serif;
}

.nfb-search-widget p,
.nfb-search-widget .nfb-search-result-meta,
.nfb-search-widget .nfb-search-status {
  font-size: 16px;
}

.nfb-search-widget.is-visible {
  opacity: 1;
}

.nfb-search-toggle {
  display: flex;
  align-items: center;
}

.nfb-search-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  color: #10243d;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.nfb-search-toggle-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 42, 74, 0.12);
}

.nfb-search-toggle-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nfb-search-toggle-text {
  font-size: 14px;
  font-weight: 700;
}

.nfb-search-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  transition: transform .26s ease;
}

.nfb-search-panel {
  display: grid;
  gap: 16px;
}

.nfb-search-collapsible .nfb-search-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .42s ease, opacity .32s ease, transform .32s ease;
  transform: translateY(-10px);
}

.nfb-search-collapsible.is-open .nfb-search-panel {
  max-height: 2400px;
  opacity: 1;
  transform: translateY(0);
}

.nfb-search-collapsible.is-open .nfb-search-toggle-icon {
  transform: rotate(180deg);
}

.nfb-search-mode-accordion {
  gap: 14px;
}

.nfb-search-mode-accordion .nfb-search-toggle-button {
  width: 100%;
}

.nfb-search-mode-dropdown .nfb-search-toggle {
  justify-content: flex-end;
}

.nfb-search-mode-dropdown .nfb-search-toggle-button {
  border-radius: 999px;
  min-width: 220px;
}

.nfb-search-mode-toggle .nfb-search-toggle-button {
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.08);
}

.nfb-search-mode-toggle.is-open .nfb-search-toggle-button {
  background: rgba(16, 36, 61, 0.14);
}

.nfb-search-head {
  display: grid;
  gap: 8px;
}

.nfb-search-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a5c2b;
}

.nfb-search-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 0.98;
  color: #10243d;
}

.nfb-search-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5f6f84;
}

.nfb-search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--nfb-search-gap);
}

.nfb-search-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.nfb-search-field span {
  font-size: 12px;
  font-weight: 700;
  color: #38506d;
}

.nfb-search-field select,
.nfb-search-field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  background: rgba(255,255,255,0.92);
  color: #10243d;
  box-sizing: border-box;
}

.nfb-search-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.nfb-search-submit {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  background: #10243d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.nfb-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 42, 74, 0.18);
  filter: brightness(1.04);
}

.nfb-search-status {
  margin: 0;
  min-height: 20px;
  color: #8b3a2f;
  font-size: 16px;
}

.nfb-search-results-shell {
  display: grid;
  gap: 18px;
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition: max-height .42s ease, opacity .34s ease, transform .34s ease, margin-top .34s ease;
}

.nfb-search-results-shell.is-empty-state,
.nfb-search-results-shell.is-loading-state {
  min-height: clamp(420px, 60vh, 680px);
  overflow: hidden;
  border-radius: 24px;
}

.nfb-search-results-shell.is-visible {
  max-height: 12000px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
}

.nfb-search-results-head {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(16, 36, 61, 0.08);
}

.nfb-search-results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nfb-search-view-toggle {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nfb-search-view-btn,
.nfb-search-pagination button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  background: rgba(255,255,255,0.86);
  color: #10243d;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nfb-search-view-btn.is-active,
.nfb-search-pagination button[data-active="1"] {
  background: #10243d;
  color: #fff;
}

.nfb-search-sort-wrap {
  display: grid;
  gap: 8px;
}

.nfb-search-sort-wrap span {
  font-size: 12px;
  font-weight: 700;
  color: #38506d;
}

.nfb-search-sort {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  background: rgba(255,255,255,0.92);
  color: #10243d;
}

.nfb-search-results-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.02;
  color: #10243d;
}

.nfb-search-results-copy {
  margin: 0;
  color: #5f6f84;
}

.nfb-search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nfb-search-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.nfb-search-results-list-pane {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.nfb-search-results-map-pane {
  display: none;
  min-width: 0;
  align-self: stretch;
}

.nfb-search-map-hint {
  margin: 0 0 10px;
  font-size: 14px;
  color: #5f6f84;
}

.nfb-search-map-canvas {
  width: 100%;
  height: clamp(520px, calc(100vh - 48px), 960px);
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf4ff, #f8fbff);
  border: 1px solid rgba(16, 36, 61, 0.08);
}

.nfb-search-results-shell.is-dual-view .nfb-search-results-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nfb-search-results-shell.is-dual-view .nfb-search-results-map-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: sticky;
  top: 16px;
  height: fit-content;
}

.nfb-search-results-shell.is-dual-view .nfb-search-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nfb-search-results-shell.is-list-view .nfb-search-results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nfb-search-results-shell.is-loading-state .nfb-search-results-layout {
  opacity: .16;
  filter: blur(3px) saturate(.72);
  pointer-events: none;
}

.nfb-search-loading-overlay,
.nfb-search-empty-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 50;
}

.nfb-search-loading-overlay[hidden],
.nfb-search-empty-overlay[hidden] {
  display: none !important;
}

.nfb-search-loading-popup,
.nfb-search-empty-popup {
  width: min(560px, 100%);
  max-height: calc(100% - 24px);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  overflow: auto;
}

.nfb-search-loading-popup {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(232, 241, 250, .96));
  color: #0f4c5c;
  box-shadow: 0 24px 60px rgba(10, 26, 48, .18);
  border: 1px solid rgba(15, 76, 92, .14);
  animation: nfbSearchLoadingZoom 1.2s ease-in-out infinite;
}

.nfb-search-loading-phase {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.nfb-search-loading-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15, 76, 92, .86);
}

.nfb-search-results-shell.is-empty-state .nfb-search-results-layout {
  opacity: .18;
  filter: blur(2px) saturate(.8);
  pointer-events: none;
}

.nfb-search-empty-popup {
  background: linear-gradient(135deg, rgba(0, 35, 82, .96), rgba(242, 95, 92, .94));
  color: #fff;
  box-shadow: 0 24px 60px rgba(10, 26, 48, .28);
  border: 1px solid rgba(255, 255, 255, .16);
}

.nfb-search-empty-popup strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.nfb-search-empty-popup p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}

.nfb-search-empty-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.nfb-search-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.nfb-search-empty-btn:hover {
  transform: translateY(-2px);
}

.nfb-search-empty-btn-search {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 28px rgba(0, 35, 82, .18);
}

.nfb-search-empty-btn-whatsapp {
  background: #25d366;
  color: #073a1d;
  box-shadow: 0 14px 28px rgba(37, 211, 102, .25);
}

.nfb-search-empty-btn-phone {
  background: #fff;
  color: #0f4c5c;
  box-shadow: 0 14px 28px rgba(255, 255, 255, .18);
}

.nfb-search-empty-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}

.nfb-search-map-dialog {
  display: grid;
  gap: 12px;
  width: min(290px, calc(100vw - 112px));
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.96) 100%);
  box-shadow: 0 18px 32px rgba(15, 42, 74, 0.12);
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.gm-style [role="dialog"]:hover .nfb-search-map-dialog,
.nfb-search-map-dialog:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #10243d 0%, #e8455f 54%, #ff9f68 100%);
  box-shadow: 0 22px 38px rgba(16, 36, 61, 0.24);
}

.nfb-search-map-dialog-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  max-height: 168px;
  overflow: hidden;
  border-radius: 14px;
}

.nfb-search-map-dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nfb-search-map-dialog strong,
.nfb-search-map-dialog p {
  margin: 0;
}

.nfb-search-map-dialog-body {
  display: grid;
  gap: 8px;
}

.nfb-search-map-dialog strong {
  font-size: 16px;
  line-height: 1.18;
  color: #10243d;
}

.nfb-search-map-dialog-location {
  font-size: 13px;
  line-height: 1.35;
  color: #5f6f84;
}

.nfb-search-map-dialog-price {
  font-size: 17px;
  font-weight: 700;
  color: #10243d;
}

.nfb-search-map-dialog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(232, 69, 95, 0.12);
  color: #c53353;
  text-decoration: none;
  font-weight: 700;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.nfb-search-map-dialog-link:hover {
  transform: translateY(-1px);
}

.gm-style [role="dialog"]:hover .nfb-search-map-dialog strong,
.gm-style [role="dialog"]:hover .nfb-search-map-dialog p,
.gm-style [role="dialog"]:hover .nfb-search-map-dialog span,
.gm-style [role="dialog"]:hover .nfb-search-map-dialog a,
.nfb-search-map-dialog:hover strong,
.nfb-search-map-dialog:hover p,
.nfb-search-map-dialog:hover span,
.nfb-search-map-dialog:hover a {
  color: #fff4ef;
}

.gm-style [role="dialog"]:hover .nfb-search-map-dialog-link,
.nfb-search-map-dialog:hover .nfb-search-map-dialog-link {
  background: rgba(255, 255, 255, 0.16);
}

.nfb-search-result-specs,
.nfb-search-map-dialog-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nfb-search-result-specs-item,
.nfb-search-map-dialog-specs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.06);
  color: #10243d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.nfb-search-result-specs-icon,
.nfb-search-map-dialog-specs-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.nfb-search-result-specs-icon svg,
.nfb-search-map-dialog-specs-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gm-style [role="dialog"]:hover .nfb-search-map-dialog-specs-item,
.nfb-search-map-dialog:hover .nfb-search-map-dialog-specs-item {
  background: rgba(255, 255, 255, 0.14);
  color: #fff4ef;
}

.nfb-search-result-card,
.nfb-search-empty {
  border: 1px solid rgba(16, 36, 61, 0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 42, 74, 0.08);
}

.nfb-search-result-card {
  display: grid;
  min-height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.nfb-search-result-card.is-map-focused {
  border-color: rgba(21, 94, 239, 0.4);
  box-shadow: 0 24px 44px rgba(21, 94, 239, 0.18);
}

.nfb-search-result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 36, 61, 0.18);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 22px 38px rgba(15, 42, 74, 0.16);
}

.nfb-search-result-media-wrap {
  position: relative;
}

.nfb-search-media-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}

.nfb-search-media-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 18px rgba(15, 42, 74, 0.16);
}

.nfb-search-media-badge-new {
  background: rgba(22, 163, 74, 0.9);
  color: #f0fff4;
}

.nfb-search-media-badge-open-house {
  background: rgba(37, 99, 235, 0.9);
  color: #eff6ff;
}

.nfb-search-media-badge-reduced {
  background: rgba(220, 38, 38, 0.92);
  color: #fff1f2;
}

.nfb-search-media-badge-type {
  background: rgba(15, 36, 61, 0.82);
  color: #fff;
}

.nfb-search-result-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #edf4ff, #f8fbff);
  overflow: hidden;
}

.nfb-search-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .34s ease, opacity .34s ease;
}

.nfb-search-result-media img.is-slide-left {
  animation: nfbSearchSlideLeft .34s ease;
}

.nfb-search-result-media img.is-slide-right {
  animation: nfbSearchSlideRight .34s ease;
}

.nfb-search-result-media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eaf2ff 0%, #f4f9ff 100%);
}

.nfb-search-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.72);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.nfb-search-media-prev {
  left: 12px;
}

.nfb-search-media-next {
  right: 12px;
}

.nfb-search-media-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.nfb-search-result-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.nfb-search-result-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.05;
  color: #10243d;
}

.nfb-search-result-body p {
  margin: 0;
  color: #5f6f84;
}

.nfb-search-result-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nfb-search-result-bottom strong {
  font-size: 18px;
  color: #10243d;
}

.nfb-search-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #10243d;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.nfb-search-result-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 42, 74, 0.14);
}

.nfb-search-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #8b3a2f;
}

@keyframes nfbSearchLoadingZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.nfb-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nfb-search-pagination button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.nfb-search-page-dots {
  color: #5f6f84;
  font-weight: 700;
}

.nfb-search-anim-none { opacity: 1; }
.nfb-search-can-animate.nfb-search-anim-slide-up { opacity: 0; transform: translateY(28px); transition: transform .55s ease, opacity .55s ease; }
.nfb-search-can-animate.nfb-search-anim-slide-up.is-visible { opacity: 1; transform: translateY(0); }
.nfb-search-can-animate.nfb-search-anim-slide-left { opacity: 0; transform: translateX(-32px); transition: transform .55s ease, opacity .55s ease; }
.nfb-search-can-animate.nfb-search-anim-slide-left.is-visible { opacity: 1; transform: translateX(0); }
.nfb-search-can-animate.nfb-search-anim-slide-right { opacity: 0; transform: translateX(32px); transition: transform .55s ease, opacity .55s ease; }
.nfb-search-can-animate.nfb-search-anim-slide-right.is-visible { opacity: 1; transform: translateX(0); }
.nfb-search-can-animate.nfb-search-anim-fade { opacity: 0; transition: opacity .55s ease; }
.nfb-search-can-animate.nfb-search-anim-fade.is-visible { opacity: 1; }
.nfb-search-can-animate.nfb-search-anim-scale { opacity: 0; transform: scale(.94); transition: transform .55s ease, opacity .55s ease; }
.nfb-search-can-animate.nfb-search-anim-scale.is-visible { opacity: 1; transform: scale(1); }
.nfb-search-can-animate.nfb-search-anim-drop { opacity: 0; transform: translateY(-24px); transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s ease; }
.nfb-search-can-animate.nfb-search-anim-drop.is-visible { opacity: 1; transform: translateY(0); }
.nfb-search-can-animate.nfb-search-anim-cascade .nfb-search-field,
.nfb-search-can-animate.nfb-search-anim-cascade .nfb-search-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: transform .45s ease, opacity .45s ease;
}
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field,
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-actions {
  opacity: 1;
  transform: translateY(0);
}
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(1) { transition-delay: .03s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(2) { transition-delay: .06s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(3) { transition-delay: .09s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(4) { transition-delay: .12s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(5) { transition-delay: .15s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(6) { transition-delay: .18s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-field:nth-child(7) { transition-delay: .21s; }
.nfb-search-can-animate.nfb-search-anim-cascade.is-visible .nfb-search-actions { transition-delay: .24s; }

.nfb-search-widget.search-preset-1 { background: linear-gradient(145deg, #fff7ea 0%, #f4f9ff 100%); }
.nfb-search-widget.search-preset-2 { background: linear-gradient(145deg, #10243d 0%, #183b61 100%); }
.nfb-search-widget.search-preset-2 .nfb-search-title,
.nfb-search-widget.search-preset-2 .nfb-search-subtitle,
.nfb-search-widget.search-preset-2 .nfb-search-field span { color: #edf4ff; }
.nfb-search-widget.search-preset-2 .nfb-search-kicker { color: #ffd38f; }
.nfb-search-widget.search-preset-2 .nfb-search-field select,
.nfb-search-widget.search-preset-2 .nfb-search-field input { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.nfb-search-widget.search-preset-2 .nfb-search-submit { background: #ffd38f; color: #10243d; }
.nfb-search-widget.search-preset-3 { background: linear-gradient(135deg, #f5f0ff 0%, #fff7f0 100%); }
.nfb-search-widget.search-preset-4 { background: linear-gradient(180deg, #e6fff5 0%, #f7fffb 100%); }
.nfb-search-widget.search-preset-4 .nfb-search-submit { background: #0f766e; }
.nfb-search-widget.search-preset-5 { background: linear-gradient(135deg, #fff1f1 0%, #fff9ef 100%); }
.nfb-search-widget.search-preset-5 .nfb-search-submit { background: #b42318; }
.nfb-search-widget.search-preset-6 { background: linear-gradient(135deg, #eff9ff 0%, #f8f5ff 100%); }
.nfb-search-widget.search-preset-6 .nfb-search-field select,
.nfb-search-widget.search-preset-6 .nfb-search-field input { border-radius: 12px; }
.nfb-search-widget.search-preset-7 { background: linear-gradient(145deg, #1a1a1a 0%, #2e2e2e 100%); }
.nfb-search-widget.search-preset-7 .nfb-search-title,
.nfb-search-widget.search-preset-7 .nfb-search-subtitle,
.nfb-search-widget.search-preset-7 .nfb-search-field span { color: rgba(255,255,255,0.86); }
.nfb-search-widget.search-preset-7 .nfb-search-kicker { color: #ffbf57; }
.nfb-search-widget.search-preset-7 .nfb-search-field select,
.nfb-search-widget.search-preset-7 .nfb-search-field input { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.1); }
.nfb-search-widget.search-preset-7 .nfb-search-submit { background: #ffbf57; color: #191919; }
.nfb-search-widget.search-preset-8 { background: linear-gradient(135deg, #ebf8ff 0%, #ffffff 52%, #effff6 100%); }
.nfb-search-widget.search-preset-8 .nfb-search-field select,
.nfb-search-widget.search-preset-8 .nfb-search-field input { background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.72)); }
.nfb-search-widget.search-preset-9 { background: linear-gradient(135deg, #fff9e8 0%, #fff2d2 100%); }
.nfb-search-widget.search-preset-9 .nfb-search-field select,
.nfb-search-widget.search-preset-9 .nfb-search-field input { border-style: dashed; }
.nfb-search-widget.search-preset-10 { background: linear-gradient(135deg, #0f766e 0%, #0b4a6f 100%); }
.nfb-search-widget.search-preset-10 .nfb-search-title,
.nfb-search-widget.search-preset-10 .nfb-search-subtitle,
.nfb-search-widget.search-preset-10 .nfb-search-field span { color: #e2f7ff; }
.nfb-search-widget.search-preset-10 .nfb-search-kicker { color: #fff0b6; }
.nfb-search-widget.search-preset-10 .nfb-search-field select,
.nfb-search-widget.search-preset-10 .nfb-search-field input { background: rgba(8, 28, 39, 0.28); color: #fff; border-color: rgba(255,255,255,0.14); }
.nfb-search-widget.search-preset-10 .nfb-search-submit { background: #d9fff0; color: #0b4a6f; }
.nfb-search-widget.search-preset-11 { background: linear-gradient(135deg, #faf3ea 0%, #ffffff 100%); border-radius: 36px; }
.nfb-search-widget.search-preset-12 { background: linear-gradient(135deg, #edf4ff 0%, #ffffff 50%, #fff3ed 100%); }
.nfb-search-widget.search-preset-12 .nfb-search-submit { background: linear-gradient(135deg, #155eef, #7a3cff); }
.nfb-search-widget.search-preset-13 { background: linear-gradient(155deg, #fff5fb 0%, #f9f5ff 100%); }
.nfb-search-widget.search-preset-13 .nfb-search-field select,
.nfb-search-widget.search-preset-13 .nfb-search-field input { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
.nfb-search-widget.search-preset-14 { background: linear-gradient(135deg, #f1fff2 0%, #f8fff9 100%); }
.nfb-search-widget.search-preset-14 .nfb-search-submit { background: #16a34a; }
.nfb-search-widget.search-preset-15 { background: linear-gradient(135deg, #fff3e6 0%, #fffdf8 55%, #eef7ff 100%); }
.nfb-search-widget.search-preset-15 .nfb-search-head { padding-bottom: 8px; border-bottom: 1px solid rgba(16, 36, 61, 0.08); }

@media (max-width: 1100px) {
  .nfb-search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-layout {
    grid-template-columns: 1fr;
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-map-pane {
    position: relative;
    top: auto;
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nfb-search-results-shell.is-list-view .nfb-search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nfb-metric-widget {
    padding: 18px;
    border-radius: 22px;
  }

  .nfb-metric-line {
    padding: 14px 16px;
  }

  .nfb-token-grid,
  .nfb-token-list-grid {
    grid-template-columns: 1fr;
  }

  .nfb-token-toolbar,
  .nfb-token-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nfb-search-widget {
    padding: 18px;
    border-radius: 22px;
  }

  .nfb-search-form {
    grid-template-columns: 1fr;
  }

  .nfb-search-results-grid {
    grid-template-columns: 1fr;
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-layout {
    grid-template-columns: 1fr;
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-map-pane {
    order: 2;
    position: relative;
    top: auto;
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-list-pane {
    order: 1;
  }

  .nfb-search-results-shell.is-dual-view .nfb-search-results-grid {
    grid-template-columns: 1fr;
  }

  .nfb-search-results-shell.is-list-view .nfb-search-results-grid {
    grid-template-columns: 1fr;
  }

  .nfb-search-map-canvas {
    min-height: 48vh;
  }

  .nfb-search-results-toolbar {
    align-items: stretch;
  }

  .nfb-search-view-toggle {
    width: 100%;
  }

  .nfb-search-view-btn,
  .nfb-search-sort-wrap,
  .nfb-search-sort {
    width: 100%;
  }

}

@keyframes nfbSearchSlideLeft {
  from {
    opacity: .6;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nfbSearchSlideRight {
  from {
    opacity: .6;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
