.marketplace-page {
  display: grid;
  gap: 1rem;
}

.mp-hero,
.mp-search,
.mp-note,
.mp-empty-modern {
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(15, 23, 42, .08);
}

.mp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1rem;
  align-items: stretch;
  background:
    radial-gradient(900px 320px at 0 0, rgba(91, 124, 250, .20), transparent 60%),
    radial-gradient(600px 280px at 100% 0, rgba(14, 165, 233, .12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
}

.mp-hero__content {
  min-width: 0;
}

.mp-eyebrow {
  display: inline-flex;
  margin-bottom: .6rem;
  color: var(--brand-700, #3450d8);
  font-weight: 950;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mp-eyebrow--small {
  margin-bottom: .3rem;
}

.mp-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.mp-hero p {
  margin: .9rem 0 0;
  max-width: 760px;
  color: #475569;
  font-weight: 700;
  line-height: 1.55;
}

.mp-hero__quick {
  display: grid;
  align-content: center;
  gap: .35rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.mp-hero__quick-label {
  color: #64748b;
  font-size: .8rem;
  font-weight: 900;
}

.mp-hero__quick strong {
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 950;
}

.mp-hero__quick span {
  color: #64748b;
  font-size: .88rem;
  font-weight: 750;
}

.mp-search {
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(15,23,42,.06);
}

.mp-search__form {
  display: grid;
  gap: 1rem;
}

.mp-search-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px auto;
  gap: .8rem;
  align-items: end;
}

.mp-field {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.mp-field label,
.mp-sectors__head strong {
  color: #334155;
  font-size: .84rem;
  font-weight: 950;
}

.mp-input-shell {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  border-radius: 17px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  padding: 0 .85rem;
}

.mp-input-shell i {
  color: #64748b;
}

.mp-input-shell input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-weight: 850;
  color: #0f172a;
}

.mp-field select {
  width: 100%;
  min-height: 48px;
  border-radius: 17px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  padding: 0 .9rem;
  font-weight: 850;
  color: #0f172a;
}

.mp-actions {
  display: flex;
  gap: .55rem;
  align-items: center;
  flex-wrap: wrap;
}

.mp-actions .btn,
.mp-empty-modern__actions .btn {
  min-height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
}

.mp-locate {
  background: #fff !important;
}

.mp-location-status {
  padding: .75rem .9rem;
  border-radius: 16px;
  background: rgba(34,197,94,.08);
  color: #166534;
  font-weight: 800;
  border: 1px solid rgba(34,197,94,.18);
}

.mp-location-status.is-error {
  background: rgba(239,68,68,.08);
  color: #991b1b;
  border-color: rgba(239,68,68,.18);
}

.mp-sectors {
  display: grid;
  gap: .65rem;
}

.mp-sectors__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.mp-sectors__head div {
  display: grid;
  gap: .1rem;
}

.mp-sectors__head span {
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}

.mp-reset-link {
  color: var(--brand-700, #3450d8);
  text-decoration: none;
  font-weight: 900;
  font-size: .86rem;
}

.mp-sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mp-sector-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .48rem .76rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  cursor: pointer;
  font-weight: 850;
  color: #334155;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.mp-sector-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(91,124,250,.26);
}

.mp-sector-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-sector-chip.is-selected {
  background: rgba(91,124,250,.10);
  color: var(--brand-700, #3450d8);
  border-color: rgba(91,124,250,.34);
}

.mp-note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: rgba(255,255,255,.88);
  color: #475569;
  font-weight: 750;
}

.mp-note i {
  color: var(--brand-700, #3450d8);
  margin-top: .15rem;
}

.mp-results {
  display: grid;
  gap: .9rem;
}

.mp-results__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.mp-results__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 950;
  letter-spacing: -.04em;
}

.mp-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  color: #475569;
  font-size: .82rem;
  font-weight: 900;
}

.mp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .95rem;
}

.mp-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 42px rgba(15,23,42,.06);
}

.mp-card__hero {
  position: relative;
  height: 158px;
  background:
    linear-gradient(135deg, rgba(91,124,250,.18), rgba(14,165,233,.12)),
    #f8fafc;
}

.mp-card__hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-distance-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}

.mp-card__logo {
  position: absolute;
  left: 14px;
  bottom: -25px;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 12px 26px rgba(15,23,42,.18);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: var(--brand-700, #3450d8);
}

.mp-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-card__body {
  padding: 2.15rem 1rem 1rem;
  display: grid;
  gap: .75rem;
}

.mp-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.mp-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.15;
}

.mp-card__location {
  margin: .3rem 0 0;
  color: #64748b;
  font-size: .86rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.mp-rating {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: .1rem;
  padding: .35rem .5rem;
  border-radius: 14px;
  background: rgba(245,158,11,.10);
}

.mp-rating strong {
  color: #0f172a;
  font-weight: 950;
}

.mp-rating span {
  color: #64748b;
  font-size: .76rem;
  font-weight: 850;
}

.mp-chip-row,
.mp-services,
.mp-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.mp-chip-row span,
.mp-services span,
.mp-contact span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  color: #334155;
  font-size: .78rem;
  font-weight: 850;
}

.mp-services span {
  background: rgba(91,124,250,.08);
  color: var(--brand-700, #3450d8);
}

.mp-description {
  margin: 0;
  color: #475569;
  line-height: 1.5;
  font-size: .9rem;
  font-weight: 650;
}

.mp-card__actions {
  display: flex;
  margin-top: .2rem;
}

.mp-card__actions .btn {
  width: 100%;
  border-radius: 999px;
}

.mp-empty-modern {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(91,124,250,.16), transparent 65%),
    rgba(255,255,255,.92);
}

.mp-empty-modern__icon {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(91,124,250,.10);
  color: var(--brand-700, #3450d8);
  font-size: 1.55rem;
}

.mp-empty-modern h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 950;
}

.mp-empty-modern p {
  margin: .35rem 0 0;
  color: #64748b;
  line-height: 1.5;
  font-weight: 700;
}

.mp-empty-modern__actions {
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.marketplace-page.is-loading {
  cursor: progress;
}

.marketplace-page.is-loading .mp-submit,
.marketplace-page.is-loading .mp-locate {
  opacity: .72;
  pointer-events: none;
}

.mp-locate.is-loading i {
  animation: mpSpin .8s linear infinite;
}

@keyframes mpSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .mp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-search-main {
    grid-template-columns: minmax(220px, 1fr) 140px;
  }

  .mp-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .mp-hero {
    grid-template-columns: 1fr;
  }

  .mp-search-main,
  .mp-card-grid {
    grid-template-columns: 1fr;
  }

  .mp-actions .btn {
    flex: 1 1 180px;
  }

  .mp-sectors__head,
  .mp-results__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .mp-hero,
  .mp-search,
  .mp-note,
  .mp-empty-modern {
    border-radius: 22px;
  }

  .mp-card {
    border-radius: 22px;
  }

  .mp-card__hero {
    height: 140px;
  }

  .mp-empty-modern {
    grid-template-columns: 1fr;
  }

  .mp-empty-modern__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .mp-actions,
  .mp-empty-modern__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mp-actions .btn,
  .mp-empty-modern__actions .btn {
    width: 100%;
  }
}