/* FileMakr — search results page (enterprise layout) */
.pr-page--search {
  --sp-blue: #2A47FF;
  --sp-orange: #F17F23;
  --sp-ink: #0E1220;
  --sp-muted: #64748B;
  --sp-line: #E2E8F0;
  --sp-bg: #F7F8FC;
  --sp-panel: #EEF3FF;
}

.pr-page--search .pr-page__body {
  padding-top: 0;
}

.pr-page--search .fm-dir-strip.pr-explore {
  padding-top: 0;
}

.pr-page--search .fm-dir-strip__inner {
  padding-top: 0;
}

/* ---- Header ---- */
.pr-search-head {
  padding: 18px 20px 22px;
  background: #fff;
  border-bottom: 1px solid var(--sp-line);
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .pr-search-head {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.pr-search-head__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.3;
  color: var(--sp-muted);
}

.pr-search-head__crumb a {
  color: var(--sp-muted);
  text-decoration: none;
}

.pr-search-head__crumb a:hover { color: var(--sp-blue); }

.pr-search-head__crumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: #94A3B8;
}

.pr-search-head__title {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--sp-ink);
}

.pr-search-head__title em {
  font-style: normal;
  font-weight: 800;
  color: var(--sp-orange);
}

/* One row: combo search (~72%) + type tabs */
.pr-search-head__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Unified search bar — input + button inside one shell */
.pr-search-head__combo {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 54px;
  padding: 5px 6px 5px 16px;
  border: 1px solid #D5DCE8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.pr-search-head__combo:focus-within {
  border-color: #B8C4FF;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(42, 71, 255, 0.1);
}

.pr-search-head__input-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.pr-search-head__input-ico {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
  color: #94A3B8;
}

.pr-search-head__submit i {
  font-size: 15px;
  line-height: 1;
}

.pr-search-head__tab i {
  font-size: 15px;
  line-height: 1;
}

.pr-search-head__tab .far.fa-lightbulb {
  font-size: 14px;
}

.pr-search-head__input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sp-ink);
}

.pr-search-head__input-wrap input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.pr-search-head__submit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: var(--sp-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}

.pr-search-head__submit svg {
  flex: 0 0 auto;
}

.pr-search-head__submit:hover {
  filter: brightness(1.04);
}

/* Type toggle pills — right of search bar */
.pr-search-head__tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.pr-search-head__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 54px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #D5DCE8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #475569;
  text-decoration: none !important;
  background: #fff;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pr-search-head__tab svg {
  flex: 0 0 auto;
  color: #64748B;
}

.pr-search-head__tab.is-active {
  border-color: var(--sp-blue);
  color: var(--sp-blue);
  background: #EEF3FF;
  font-weight: 700;
  box-shadow: none;
}

.pr-search-head__tab.is-active svg {
  color: var(--sp-blue);
}

.pr-search-head__tab:hover:not(.is-active) {
  border-color: #CBD5E1;
  color: var(--sp-ink);
}

@media (max-width: 991.98px) {
  .pr-search-head__row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pr-search-head__combo {
    flex: 1 1 100%;
    width: 100%;
  }

  .pr-search-head__tabs {
    flex: 1 1 100%;
    width: 100%;
  }

  .pr-search-head__tab {
    flex: 1;
    min-width: 0;
  }
}

/* ---- Meta toolbar ---- */
.pr-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 18px;
  padding: 18px 0 0;
}

.pr-search-meta__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 280px;
}

.pr-search-meta__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #EEF3FF;
  color: var(--sp-blue);
}

.pr-search-meta__icon .feather-folder {
  font-size: 18px;
  line-height: 1;
}

.pr-search-meta__copy {
  min-width: 0;
  padding-top: 1px;
}

.pr-search-meta__count {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--sp-ink);
  line-height: 1.35;
}

.pr-search-meta__count strong {
  font-weight: 800;
}

.pr-search-meta__sub {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--sp-muted);
  line-height: 1.45;
}

.pr-search-meta__sub[hidden] { display: none !important; }

.pr-search-meta__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-top: 1px;
}

.pr-search-meta__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 248px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D5DCE8;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.pr-search-meta__search:focus-within {
  border-color: #93A4FF;
  box-shadow: 0 0 0 3px rgba(42, 71, 255, 0.08);
}

.pr-search-meta__search .feather-search {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  color: #94A3B8;
}

.pr-search-meta__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sp-ink);
}

.pr-search-meta__search input::placeholder {
  color: #94A3B8;
}

.pr-search-meta__tech {
  height: 40px;
  min-width: 158px;
  padding: 0 34px 0 14px;
  border: 1px solid #D5DCE8;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-ink);
  cursor: pointer;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .pr-search-meta { flex-direction: column; align-items: stretch; }
  .pr-search-meta__tools { width: 100%; }
  .pr-search-meta__search { flex: 1; width: auto; }
}

/* ---- Empty state card ---- */
.pr-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 28px 24px;
  border: 1px solid #D5DCE8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
  text-align: center;
  box-sizing: border-box;
}

.pr-search-empty[hidden] { display: none !important; }

.pr-search-empty__art {
  position: relative;
  width: 148px;
  height: 118px;
  margin: 0 auto 22px;
}

.pr-search-empty__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 71, 255, 0.14) 0%, rgba(42, 71, 255, 0.04) 52%, transparent 72%);
  pointer-events: none;
}

.pr-search-empty__spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}

.pr-search-empty__spark--1 { top: 10px; left: 22px; width: 7px; height: 7px; background: #F17F23; }
.pr-search-empty__spark--2 { top: 28px; right: 16px; width: 5px; height: 5px; background: #2A47FF; }
.pr-search-empty__spark--3 { bottom: 24px; left: 12px; width: 5px; height: 5px; background: #2A47FF; }
.pr-search-empty__spark--4 { bottom: 12px; right: 28px; width: 6px; height: 6px; background: #F17F23; }
.pr-search-empty__spark--5,
.pr-search-empty__spark--6 {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #93A4FF;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.75;
}
.pr-search-empty__spark--5 { top: 18px; right: 42px; }
.pr-search-empty__spark--6 { bottom: 34px; left: 36px; font-size: 10px; }

.pr-search-empty__illus {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.pr-search-empty__illus .feather-folder {
  font-size: 52px;
  line-height: 1;
  color: var(--sp-blue);
}

.pr-search-empty__illus-search {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 30px !important;
  line-height: 1;
  color: var(--sp-blue);
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(42, 71, 255, 0.12);
}

.pr-search-empty__title {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sp-ink);
}

.pr-search-empty__lead-line {
  max-width: 56ch;
  margin: 0 auto 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sp-muted);
}

.pr-search-empty__lead-line strong {
  color: var(--sp-ink);
  font-weight: 700;
}

.pr-search-empty__lead-sub {
  max-width: 56ch;
  margin: 0 auto 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sp-muted);
}

.pr-search-empty__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #EEF3FF;
  border: 1px solid rgba(42, 71, 255, 0.14);
  text-align: left;
  box-sizing: border-box;
}

.pr-search-empty__cta-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
}

.pr-search-empty__cta-star {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--sp-blue);
  box-shadow: 0 2px 8px rgba(42, 71, 255, 0.1);
}

.pr-search-empty__cta-star .feather-star {
  font-size: 17px;
  line-height: 1;
}

.pr-search-empty__cta-text {
  min-width: 0;
}

.pr-search-empty__cta-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--sp-ink);
  line-height: 1.3;
}

.pr-search-empty__cta-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--sp-muted);
}

.pr-search-empty__cta-action {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pr-search-empty__cta-copy {
    flex: 1 1 240px;
  }

  .pr-search-empty__cta-action {
    flex: 1 1 340px;
  }
}

.pr-search-empty__input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #D5DCE8;
  background: #fff;
  box-sizing: border-box;
}

.pr-search-empty__input:focus-within {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 3px rgba(42, 71, 255, 0.08);
}

.pr-search-empty__input .feather-list {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  color: #94A3B8;
}

.pr-search-empty__input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sp-ink);
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.pr-search-empty__wa {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: #25D366;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.pr-search-empty__wa .fab.fa-whatsapp {
  font-size: 18px;
  line-height: 1;
}

.pr-search-empty__wa:hover { filter: brightness(1.04); }

.pr-search-empty__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pr-search-empty__links li {
  margin: 0;
  padding: 0;
}

.pr-search-empty__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid #C7D4F7;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-blue);
  text-decoration: none !important;
  line-height: 1;
}

.pr-search-empty__links a i {
  font-size: 14px;
  line-height: 1;
}

.pr-search-empty__links a:hover {
  background: #F8FAFF;
  border-color: #93A4FF;
}

.pr-search-empty__trust {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #E2E8F0;
  list-style: none;
  text-align: left;
}

.pr-search-empty__trust > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
}

.pr-search-empty__trust > li + li {
  border-top: 1px solid #EEF2F7;
}

.pr-search-empty__trust-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  background: #EEF3FF;
  color: var(--sp-blue);
  box-shadow: inset 0 0 0 1px rgba(42, 71, 255, 0.08);
}

.pr-search-empty__trust-ico i {
  font-size: 16px;
  line-height: 1;
}

.pr-search-empty__trust-body {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.pr-search-empty__trust-head {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--sp-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pr-search-empty__trust-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sp-muted);
}

@media (min-width: 768px) {
  .pr-search-empty__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 18px;
  }

  .pr-search-empty__trust > li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 18px;
  }

  .pr-search-empty__trust > li + li {
    border-top: 0;
    border-left: 1px solid #E2E8F0;
  }

  .pr-search-empty__trust > li:first-child {
    padding-left: 0;
  }

  .pr-search-empty__trust > li:last-child {
    padding-right: 0;
  }

  .pr-search-empty__trust-body {
    padding-top: 0;
  }
}

@media (max-width: 767.98px) {
  .pr-search-empty {
    padding: 16px 10px 14px;
  }

  .pr-search-empty__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pr-search-empty__cta-copy {
    flex: 0 0 auto;
    width: 100%;
  }

  .pr-search-empty__cta-action {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pr-search-empty__input {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }

  .pr-search-empty__input input {
    height: 40px;
    min-height: 0;
    line-height: 1.2;
    padding: 0;
  }

  .pr-search-empty__wa {
    width: 100%;
    height: 42px;
  }

  .pr-search-empty__trust > li {
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 0;
  }

  .pr-search-empty__trust > li + li {
    border-left: 0;
    border-top: 1px solid #EEF2F7;
  }

  .pr-search-empty__trust > li:first-child {
    padding-top: 0;
  }
}

.pr-page--search .pr-toolbar-sticky-wrap { display: none; }
.pr-page--search #Grid:not(:empty) { margin-top: 0; }

/* ---- Mobile: 10px side gutters only ---- */
@media (max-width: 991.98px) {
  .pr-explore .pr-search-empty {
    margin-top: 4px;
  }

  .pr-page--search .pr-page__body {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 0 !important;
  }

  .pr-page--search .pr-search-head {
    padding: 14px 10px 16px !important;
  }

  .pr-page--search .fm-dir-strip.pr-explore {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }

  .pr-page--search .fm-dir-strip__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .pr-search-head__title {
    margin-bottom: 14px;
    font-size: 1.45rem;
  }

  .pr-search-head__row {
    gap: 8px;
  }

  .pr-search-meta {
    margin-bottom: 10px;
    padding-top: 10px;
    gap: 10px;
  }

  .pr-search-meta__left {
    flex: 1 1 100%;
  }

  .pr-search-meta__tools {
    width: 100%;
    flex: 1 1 100%;
  }

  .pr-search-meta__search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .pr-search-meta__tech {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .pr-search-empty {
    padding: 16px 10px 14px;
    border-radius: 14px;
  }

  .pr-search-empty__art {
    width: 108px;
    height: 90px;
    margin-bottom: 12px;
  }

  .pr-search-empty__title {
    margin-bottom: 8px;
    font-size: 1.15rem;
  }

  .pr-search-empty__lead-line,
  .pr-search-empty__lead-sub {
    font-size: 13px;
    line-height: 1.45;
    padding-left: 0;
    padding-right: 0;
  }

  .pr-search-empty__lead-line {
    margin-bottom: 4px;
  }

  .pr-search-empty__lead-sub {
    margin-bottom: 12px;
  }

  .pr-search-empty__cta {
    margin-bottom: 10px;
    padding: 10px;
    gap: 10px;
  }

  .pr-search-empty__cta-copy {
    flex: 0 0 auto;
    width: 100%;
    gap: 10px;
    align-items: flex-start;
  }

  .pr-search-empty__cta-star {
    width: 34px;
    height: 34px;
  }

  .pr-search-empty__cta-star .feather-star {
    font-size: 15px;
  }

  .pr-search-empty__cta-title {
    font-size: 13px;
  }

  .pr-search-empty__cta-sub {
    font-size: 12px;
    line-height: 1.35;
  }

  .pr-search-empty__cta-action {
    flex: 0 0 auto;
    width: 100%;
    gap: 8px;
  }

  .pr-search-empty__input {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 10px;
  }

  .pr-search-empty__input input {
    height: 40px;
    min-height: 0;
    font-size: 13px;
  }

  .pr-search-empty__wa {
    height: 42px;
    font-size: 13px;
  }

  .pr-search-empty__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .pr-search-empty__links li:first-child {
    grid-column: 1 / -1;
  }

  .pr-search-empty__links a {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12.5px;
    box-sizing: border-box;
  }

  .pr-search-empty__trust {
    padding-top: 10px;
  }

  .pr-search-empty__trust > li {
    padding: 8px 0;
    gap: 10px;
  }

  .pr-search-empty__trust-ico {
    width: 32px;
    height: 32px;
  }

  .pr-search-empty__trust-ico i {
    font-size: 14px;
  }

  .pr-search-empty__trust-head {
    font-size: 12.5px;
  }

  .pr-search-empty__trust-desc {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .pr-page--search .fm-dir-popgrid {
    gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .pr-search-head__combo {
    height: 48px;
    padding: 4px 4px 4px 12px;
  }

  .pr-search-head__submit,
  .pr-search-head__input-wrap input {
    height: 38px;
  }

  .pr-search-head__submit {
    padding: 0 12px;
    font-size: 13px;
  }

  .pr-search-head__tab {
    height: 44px;
    padding: 0 10px;
    font-size: 12.5px;
    gap: 6px;
  }

  .pr-search-head__tab i {
    font-size: 14px;
  }
}
