/* ══════════════════════════════════════════
   Marketplace search / results page  (/find/)
══════════════════════════════════════════ */

/* ── Hero search bar ── */
.marketplace-hero {
  background: linear-gradient(160deg, #111827 0%, #1c1a10 100%);
  padding: 4rem 0 3.5rem;
}

.marketplace-hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tp-orange-light);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.marketplace-hero-back-link {
  color: var(--tp-orange-light);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.marketplace-hero-back-link:hover { color: #fff; }

.marketplace-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.marketplace-hero-subtitle {
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.marketplace-search-bar {
  max-width: 560px;
}

/* Slim hero variant — city / cuisine listing pages (no search bar) */
.marketplace-hero--slim {
  padding: 2.5rem 0 2rem;
}
.marketplace-hero--slim .marketplace-hero-title { font-size: 1.6rem; }

@media (max-width: 575.98px) {
  .marketplace-hero           { padding: 2.5rem 0 2rem; }
  .marketplace-hero-title     { font-size: 1.5rem; }
  .marketplace-hero-subtitle  { font-size: .92rem; margin-bottom: 1.25rem; }
  .marketplace-hero--slim     { padding: 1.75rem 0 1.5rem; }
  .marketplace-hero--slim .marketplace-hero-title { font-size: 1.3rem; }
}

/* ── Cuisine filter strip ── */
.marketplace-filters {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.marketplace-filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.marketplace-filter-scroll::-webkit-scrollbar { display: none; }

.marketplace-cuisine-pill {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 500;
  color: #495057;
  background: #f1f3f5;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.marketplace-cuisine-pill:hover,
.marketplace-cuisine-pill.active {
  background: var(--tp-orange);
  color: #fff;
}

/* ── Results area ── */
.marketplace-results {
  padding: 2rem 0 4rem;
  background: #f8f9fa;
  min-height: 420px;
}

.marketplace-result-count {
  font-size: .875rem;
  color: #6c757d;
  margin-bottom: 1.25rem;
}

/* ── Restaurant card ── */
.marketplace-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: .625rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  height: 100%;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}

.marketplace-card:hover {
  box-shadow: 0 6px 24px rgba(249,115,22,.14);
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.3);
  color: inherit;
}

.marketplace-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.marketplace-card-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e9ecef;
}

.marketplace-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.marketplace-card:hover .marketplace-card-cover-img {
  transform: scale(1.04);
}

@media (max-width: 575.98px) {
  .marketplace-card-cover { height: 140px; }
}

.marketplace-card-claimed-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(255,255,255,.92);
  color: #065f46;
  border-radius: 100px;
  padding: .2rem .45rem;
  font-size: .85rem;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}


.marketplace-card-body {
  padding: .85rem 1rem .5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.marketplace-card-name {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: #212529;
  line-height: 1.3;
}

.marketplace-card-cuisine {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #ea580c;
  background: #fff3ea;
  padding: .15rem .55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.marketplace-card-city {
  font-size: .82rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: auto;
  padding-top: .5rem;
}

.marketplace-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem .85rem;
  border-top: 1px solid rgba(0,0,0,.06);
  gap: .5rem;
}

.marketplace-card-status {
  font-size: .72rem;
  font-weight: 600;
}
.marketplace-card-status--live {
  color: #198754;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.marketplace-card-status--live .bi-circle-fill { font-size: .45rem; }
.marketplace-card-status--unclaimed { color: #adb5bd; }

.marketplace-card-btn {
  font-size: .78rem;
  padding: .25rem .75rem;
  flex-shrink: 0;
}

.marketplace-clear-link {
  font-size: .82rem;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap;
}
.marketplace-clear-link:hover { color: var(--tp-orange); }

.marketplace-card-cta {
  font-size: .8rem;
  font-weight: 600;
  color: #f97316;
  margin-top: auto;
  padding-top: .6rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ── Empty / no-results state ── */
.marketplace-empty-state {
  text-align: center;
  padding: 4rem 0;
}

.marketplace-empty-icon {
  font-size: 3.5rem;
  color: var(--tp-orange-light);
  margin-bottom: 1rem;
}

.marketplace-empty-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .5rem;
}

.marketplace-empty-text {
  color: #6c757d;
  max-width: 380px;
  margin: 0 auto;
}


/* ══════════════════════════════════════════
   Marketplace landing page  (/marketplace/)
══════════════════════════════════════════ */

/* ── Hero ── */
.marketplace-landing-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  /*
   * Content is anchored to the bottom so the food image is fully
   * visible in the upper portion of the hero. The gradient scrim
   * only darkens the lower strip where the text and search bar sit.
   *
   * Place your hero photo at  static/marketplace/img/hero.jpg
   * Recommended: wide landscape shot of a table with several dishes.
   * The gradient is a silent fallback when the image is absent.
   */
  align-items: flex-end;
  background:
    linear-gradient(
      to bottom,
      transparent           0%,
      transparent           38%,
      rgba(0,0,0,.58)       68%,
      rgba(0,0,0,.78)      100%
    ),
    url('../marketplace/img/hero.jpg') center / cover no-repeat,
    #1a1209;
}

.marketplace-landing-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.marketplace-landing-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tp-orange-light);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.marketplace-landing-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .75rem;
  /* text-shadow keeps the headline readable on any food photo */
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.marketplace-landing-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin: 0 auto 2rem;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

.marketplace-landing-search-bar {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .marketplace-landing-hero         { min-height: 460px; }
  .marketplace-landing-title        { font-size: 2rem; }
  .marketplace-landing-subtitle     { font-size: 1rem; }
  .marketplace-landing-hero-content { padding-bottom: 2.5rem; }
}

@media (max-width: 575.98px) {
  .marketplace-landing-hero         { min-height: 380px; }
  .marketplace-landing-title        { font-size: 1.65rem; }
  .marketplace-landing-hero-content { padding-bottom: 2rem; }
}

/* ── Browse by Cuisine grid ── */
.marketplace-landing-cuisines {
  padding: 3.5rem 0;
  background: #fff;
}

.marketplace-landing-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
}

.marketplace-cuisine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}

.marketplace-cuisine-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1.1rem .5rem;
  border-radius: .625rem;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration: none;
  color: #495057;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.marketplace-cuisine-tile:hover {
  background: #fff3ea;
  border-color: rgba(249,115,22,.3);
  color: #ea580c;
  transform: translateY(-2px);
  text-decoration: none;
}

.marketplace-cuisine-tile-icon {
  font-size: 2rem;
  line-height: 1;
}

.marketplace-cuisine-tile-label {
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .01em;
}

@media (max-width: 575.98px) {
  .marketplace-cuisine-grid          { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .marketplace-cuisine-tile          { padding: .85rem .25rem; }
  .marketplace-cuisine-tile-icon     { font-size: 1.65rem; }
  .marketplace-cuisine-tile-label    { font-size: .7rem; }
}

/* ── How it works strip ── */
.marketplace-landing-how {
  padding: 3.5rem 0 4rem;
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,.06);
}

.marketplace-landing-how-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: .5rem;
}

.marketplace-landing-how-subtitle {
  color: #6c757d;
  margin-bottom: 2.5rem;
}

.marketplace-how-step {
  text-align: center;
}

.marketplace-how-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff3ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  border: 2px solid rgba(249,115,22,.2);
}

.marketplace-how-step-title {
  font-size: .95rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: .35rem;
}

.marketplace-how-step-text {
  font-size: .85rem;
  color: #6c757d;
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}
