/* ============================
   RESULTS PAGE
============================ */

body { background: linear-gradient(to bottom, #f4f8fb, #ffffff); }

.results-page {
  width: 100%;
  /* body is a flex column; without min-width:0 the wide card rows stretch
     this item past the viewport instead of scrolling inside .row-scroll */
  min-width: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 60px;
}

/* -- Page header -- */
.results-header {
  padding: 40px 0 0;
}
.results-header-inner {
  margin-bottom: 24px;
}
.results-header-inner h1 {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ff-ink);
  margin-bottom: 6px;
  line-height: 1.2;
}
.results-subheading {
  font-size: 0.88rem;
  color: var(--ff-muted-4);
  font-family: var(--ff-font-body);
}

/* -- Filter bar -- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 36px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1.5px solid var(--ff-line);
  border-radius: 50px;
  background: #fff;
  font-family: var(--ff-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ff-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.filter-btn i { color: #ccc; font-size: 0.78rem; transition: color 0.2s; }
.filter-btn:hover {
  border-color: rgba(0,194,238,0.4);
  color: var(--ff-brand);
  background: rgba(0,194,238,0.04);
}
.filter-btn:hover i { color: var(--ff-brand); }
.filter-btn.active {
  border-color: var(--ff-brand);
  color: var(--ff-brand);
  background: rgba(0,194,238,0.07);
  box-shadow: 0 0 0 3px rgba(0,194,238,0.10);
}
.filter-btn.active i { color: var(--ff-brand); }

/* -- Active filter tag -- */
.active-filter-tag {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 16px;
  background: rgba(0,194,238,0.10);
  border: 1.5px solid rgba(0,194,238,0.25);
  color: #009ec0;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--ff-font-body);
}
.active-filter-tag.visible { display: flex; }
.active-filter-tag button {
  background: rgba(0,194,238,0.2);
  border: none;
  color: #009ec0;
  cursor: pointer;
  font-size: 0.7rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.active-filter-tag button:hover { background: rgba(0,194,238,0.35); }

/* -- Filter dropdowns -- */
.filter-dropdown {
  display: none;
  background: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: -16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 40px rgba(0,194,238,0.08), 0 2px 12px rgba(0,0,0,0.06);
  animation: dropIn 0.18s ease;
  border: 1.5px solid rgba(0,194,238,0.12);
}
.filter-dropdown.open { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.filter-dropdown h3 {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 0.85rem;
  color: var(--ff-ink);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-dropdown h3 i { color: var(--ff-brand); }
.filter-qual-hint {
  font-size: 0.8rem;
  color: var(--ff-muted-5);
  margin-bottom: 14px;
  margin-top: -12px;
  font-family: var(--ff-font-body);
}
.filter-options {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.filter-option {
  padding: 10px 14px;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  background: #fafafa;
  font-family: var(--ff-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ff-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.filter-option:hover {
  border-color: rgba(0,194,238,0.4);
  background: rgba(0,194,238,0.05);
  color: var(--ff-brand);
}
.filter-option.selected {
  background: var(--ff-brand);
  border-color: var(--ff-brand);
  color: #fff;
}
.filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.btn-clear {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--ff-line);
  background: #fff;
  font-family: var(--ff-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ff-muted-3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-clear:hover { border-color: var(--ff-muted-5); color: #333; }
.btn-apply {
  padding: 9px 26px;
  border-radius: 50px;
  border: none;
  background: var(--ff-brand);
  color: #fff;
  font-family: var(--ff-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-apply:hover {
  background: #00aed4;
  box-shadow: 0 0 16px rgba(0,194,238,0.3);
}

/* -- Availability filter -- */
.avail-filter-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.avail-filter-field { display: flex; flex-direction: column; gap: 6px; }
.avail-filter-field label {
  font-family: var(--ff-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.avail-filter-input {
  padding: 9px 12px;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  background: #fafafa;
  font-family: var(--ff-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.avail-filter-input:focus { border-color: var(--ff-brand); }
@media (max-width: 700px) {
  .avail-filter-grid { grid-template-columns: repeat(2,1fr); }
}

/* -- Loading -- */
.results-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  justify-content: center;
  font-family: var(--ff-font-body);
  font-size: 0.92rem;
  color: var(--ff-muted-5);
  font-weight: 600;
}
.loading-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--ff-line);
  border-top-color: var(--ff-brand);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -- Provider rows -- */
.rows-container { margin-top: 8px; }

.provider-row { margin-bottom: 48px; }

/* Top row - cyan accent */
.provider-row.row-top .row-title { color: var(--ff-brand); }
.provider-row.row-top .row-icon  { background: rgba(0,194,238,0.10); color: var(--ff-brand); }
.provider-row.row-top .row-nav-btn:hover { border-color: var(--ff-brand); background: var(--ff-brand); color: #fff; }

/* Offers row - warm amber */
.provider-row.row-offers .row-title { color: #e67e22; }
.provider-row.row-offers .row-icon  { background: #fff8e1; color: #e67e22; }

/* Events row - violet */
.provider-row.row-events .row-title { color: var(--ff-accent-purple); }
.provider-row.row-events .row-icon  { background: rgba(139,92,246,0.10); color: var(--ff-accent-purple); }
.provider-row.row-events .row-count { background: rgba(139,92,246,0.10); color: var(--ff-accent-purple); }
.provider-row.row-events .row-nav-btn:hover { border-color: var(--ff-accent-purple); background: var(--ff-accent-purple); color: #fff; }

/* -- Row header -- */
.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}
.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--ff-muted-3);
  flex-shrink: 0;
}
.row-title {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 1.15rem;
  color: var(--ff-ink);
}
.row-count {
  background: rgba(0,194,238,0.10);
  color: var(--ff-brand);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--ff-font-body);
}
.row-nav { display: flex; gap: 8px; }
.row-nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ff-line);
  background: #fff;
  color: var(--ff-muted-4);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.row-nav-btn:hover {
  border-color: var(--ff-ink);
  background: var(--ff-ink);
  color: #fff;
}

/* -- Scroll strip -- */
.row-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  padding-left: 2px;
  padding-right: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.row-scroll::-webkit-scrollbar { display: none; }

/* -- Provider card -- */
.provider-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(0,194,238,0.10);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
}

/* Cyan top accent line on hover */
.provider-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ff-brand), transparent);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 1;
}
.provider-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,194,238,0.30);
  box-shadow: 0 12px 32px rgba(0,194,238,0.12), 0 4px 10px rgba(0,0,0,0.06);
}
.provider-card:hover::before { opacity: 1; }

.pc-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
  background: #f0f4f7;
}
.pc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: saturate(0.9);
}
.provider-card:hover .pc-img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.pc-offer-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e67e22; color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  font-family: var(--ff-font-body);
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(230,126,34,0.4);
  max-width: calc(100% - 20px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-offer-badge i { font-size: 0.62rem; flex-shrink: 0; }

.pc-body { padding: 14px 14px 12px; }

.pc-name {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 0.8rem;
  color: var(--ff-ink);
  margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-name mark {
  background: #e8f9ff;
  color: #00a8c8;
  border-radius: 3px;
  padding: 0 2px;
}
.pc-services {
  font-size: 0.74rem;
  color: var(--ff-muted-4);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: var(--ff-font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pc-stars-wrap {
  display: flex; align-items: center; gap: 4px; min-width: 0;
}
.pc-stars { color: #f5a623; font-size: 0.65rem; letter-spacing: 0.5px; }
.pc-rating-num {
  font-size: 0.78rem; font-weight: 800;
  color: var(--ff-ink); font-family: var(--ff-font-body);
}
.pc-rating-count {
  font-size: 0.70rem; color: #ccc; font-family: var(--ff-font-body);
}
.pc-no-reviews {
  font-size: 0.70rem; color: #ccc;
  font-weight: 600; font-family: var(--ff-font-body);
}
.pc-dist {
  font-size: 0.72rem; font-weight: 700;
  color: var(--ff-muted-5); display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; font-family: var(--ff-font-body); white-space: nowrap;
}
.pc-dist i { color: var(--ff-brand); font-size: 0.65rem; }

/* -- Event card (Events Near You row) -- */
.event-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(139,92,246,0.14);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 12px 32px rgba(139,92,246,0.14), 0 4px 10px rgba(0,0,0,0.06);
}
.ec-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 52%;
  overflow: hidden;
  background: #f2f0fa;
}
.ec-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.event-card:hover .ec-img { transform: scale(1.05); }
.ec-date-badge {
  position: absolute; top: 10px; left: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 5px 9px 4px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  font-family: var(--ff-font-body);
}
.ec-date-day   { display: block; font-size: 1rem; font-weight: 800; color: var(--ff-ink); }
.ec-date-month { display: block; font-size: 0.6rem; font-weight: 700; color: var(--ff-accent-purple); letter-spacing: 0.6px; margin-top: 2px; }
.ec-price-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--ff-accent-purple); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  font-family: var(--ff-font-body);
  box-shadow: 0 2px 8px rgba(139,92,246,0.4);
}
.ec-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ec-title {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 0.8rem;
  color: var(--ff-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-provider {
  font-size: 0.73rem; color: var(--ff-accent-purple); font-weight: 700;
  font-family: var(--ff-font-body);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-provider i { font-size: 0.62rem; }
.ec-meta {
  font-size: 0.72rem; color: #999; font-weight: 500;
  font-family: var(--ff-font-body);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-meta i { color: #c4b5fd; font-size: 0.68rem; flex-shrink: 0; }
.ec-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.ec-cta {
  font-size: 0.72rem; font-weight: 800; color: var(--ff-accent-purple);
  font-family: var(--ff-font-body);
  display: flex; align-items: center; gap: 5px;
}
.ec-cta i { font-size: 0.62rem; transition: transform 0.2s; }
.event-card:hover .ec-cta i { transform: translateX(3px); }
.ec-dist {
  font-size: 0.72rem; font-weight: 700;
  color: var(--ff-muted-5); display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; font-family: var(--ff-font-body); white-space: nowrap;
}
.ec-dist i { color: var(--ff-accent-purple); font-size: 0.65rem; }

/* -- Branch badge -- */
.pc-branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0099cc;
  background: var(--ff-brand-tint);
  border: 1px solid var(--ff-brand-soft);
  border-radius: 50px;
  padding: 3px 9px;
  margin-bottom: 6px;
}
.pc-branch-badge i { font-size: 0.65rem; }

/* -- Fav button -- */
.pc-fav-btn {
  position: absolute; top: 9px; right: 9px;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.88rem; color: #ccc;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: color 0.2s, transform 0.15s;
  z-index: 2;
}
.pc-fav-btn:hover { transform: scale(1.15); color: var(--ff-danger); }
.pc-fav-btn.faved { color: var(--ff-danger); }

/* -- No results -- */
.no-results-block {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 14px;
  padding: 80px 20px;
  background: #fff; border-radius: 24px;
  border: 1.5px solid rgba(0,194,238,0.12);
  max-width: 500px; margin: 40px auto;
  box-shadow: 0 4px 24px rgba(0,194,238,0.07);
}
.no-results-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0,194,238,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--ff-brand);
}
.no-results-block h2 {
  font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls);
  font-size: 1.2rem; color: var(--ff-ink);
}
.no-results-block p {
  font-size: 0.88rem; color: var(--ff-muted-4);
  line-height: 1.7; max-width: 340px;
  font-family: var(--ff-font-body);
}
.no-results-btn {
  margin-top: 6px;
  display: inline-block;
  background: var(--ff-brand); color: #fff;
  padding: 12px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 700;
  font-size: 0.88rem; font-family: var(--ff-font-body);
  transition: background 0.2s, box-shadow 0.2s;
}
.no-results-btn:hover {
  background: #00aed4;
  box-shadow: 0 0 18px rgba(0,194,238,0.35);
}

.no-search-results {
  text-align: center; padding: 60px 20px; color: #ccc;
  font-family: var(--ff-font-body);
}
.no-search-results i { font-size: 2.5rem; margin-bottom: 14px; display: block; color: var(--ff-brand); opacity: 0.4; }
.no-search-results h3 { font-size: 1rem; color: #999; margin-bottom: 8px; font-family: var(--ff-font-display); font-weight: var(--ff-display-fw); text-transform: var(--ff-display-tt); letter-spacing: var(--ff-display-ls); }
.no-search-results p  { font-size: 0.85rem; }

/* -- Responsive -- */
@media (max-width: 900px) {
  .filter-options { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .results-page { padding: 0 16px 40px; }
  .provider-card { flex: 0 0 180px; }
  .event-card { flex: 0 0 230px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .results-page { padding: 0 12px 32px; }
  .results-header { padding: 24px 0 0; }
  .provider-card { flex: 0 0 clamp(150px, 42vw, 180px); }
  .event-card { flex: 0 0 clamp(200px, 68vw, 240px); }
  .filter-options { grid-template-columns: 1fr; }
  .filter-bar { padding: 14px 0 16px; gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 0.76rem; }
  .row-nav { display: none; }
  .provider-row { margin-bottom: 32px; }
}
@media (max-width: 360px) {
  .provider-card { flex: 0 0 140px; }
}

/* =============================================================================
   RESULTS — DELIVEROO-LED REDESIGN
   -----------------------------------------------------------------------------
   Appended last so it supersedes the rules above without unpicking them.

   The two substantive changes:

   1. Provider names move from the condensed display face to the body face,
      sentence-case. Anton at 0.8rem uppercase was the single biggest legibility
      problem on this page — names were cramped and truncating mid-word
      ("KIDS KICKERS FOO…"). Section headings keep Anton, so the page still
      reads as the same family: display face for headings, body face for the
      names of things in a list.

   2. Cards get materially wider with a calmer 16:10 image, so the rails stop
      feeling like a contact sheet.
   ========================================================================== */

/* -- Page header: more air, quieter subheading ----------------------------- */
.results-header { padding: 44px 0 0; }
.results-header-inner { margin-bottom: 26px; }
.results-subheading {
  font-family: var(--ff-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-brand-deep);
}

/* -- Filter bar: flat and quiet until touched ------------------------------ */
.filter-bar {
  padding: 16px 0 18px;
  border-top: none;
  border-bottom: 1px solid var(--ff-line-soft);
  margin-bottom: 34px;
}
.filter-btn {
  border: 1.5px solid var(--ff-line);
  box-shadow: none;
  font-size: 0.8rem;
  padding: 10px 18px;
}
.filter-btn:hover { box-shadow: 0 2px 10px rgba(0,194,238,0.14); }
.filter-btn.active { box-shadow: 0 2px 12px rgba(0,194,238,0.20); }

/* -- Row header ------------------------------------------------------------ */
.provider-row { margin-bottom: 46px; }
.row-title { font-size: 1.25rem; }
.row-count {
  font-family: var(--ff-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
}

/* Arrows are pointless when the strip doesn't overflow — script.js adds
   .row-static once it has measured the row. */
.provider-row.row-static .row-nav { display: none; }

.row-scroll { gap: 20px; padding-bottom: 6px; }

/* -- The card -------------------------------------------------------------- */
.provider-card {
  flex: 0 0 268px;
  border: 1px solid var(--ff-line-soft);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.04);
  transition: transform 0.24s var(--ff-ease),
              box-shadow 0.24s var(--ff-ease),
              border-color 0.24s var(--ff-ease);
}
.provider-card:hover {
  transform: translateY(-4px);
  border-color: var(--ff-brand-a18);
  box-shadow: 0 18px 40px rgba(16,24,40,0.13), 0 3px 10px rgba(0,194,238,0.10);
}
/* The old hover accent line fought the image's rounded top edge. */
.provider-card::before { display: none; }

.pc-img-wrap { padding-top: 62%; background: var(--ff-surface-3); }
.pc-img { filter: none; }
.provider-card:hover .pc-img { transform: scale(1.05); filter: none; }

/* -- Favourite: a proper white tile rather than a floating glyph ----------- */
.pc-fav-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  border: none;
  box-shadow: 0 2px 8px rgba(16,24,40,0.16);
  color: var(--ff-muted-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ff-t-fast), background var(--ff-t-fast), color var(--ff-t-fast);
}
.pc-fav-btn:hover { transform: scale(1.08); background: #fff; color: var(--ff-danger); }
.pc-fav-btn.faved { color: var(--ff-danger); }

/* -- Offer chip ------------------------------------------------------------ */
.pc-offer-badge {
  top: 12px; left: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  box-shadow: 0 2px 10px rgba(230,126,34,0.45);
}

/* -- Body ------------------------------------------------------------------ */
.pc-body { padding: 15px 16px 16px; }

.pc-name {
  font-family: var(--ff-font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ff-ink);
  margin-bottom: 5px;
  /* Two lines then ellipsis, rather than clipping a long name mid-word. */
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.pc-services {
  font-size: 0.8rem;
  color: var(--ff-muted-2);
  font-weight: 400;
  margin-bottom: 13px;
}

.pc-footer {
  border-top: 1px solid var(--ff-line-soft);
  padding-top: 11px;
}

/* Rating reads as a small chip, the way a delivery app scores a restaurant. */
.pc-stars-wrap {
  gap: 5px;
  background: var(--ff-brand-tint);
  border-radius: var(--ff-r-pill);
  padding: 4px 10px;
}
.pc-stars { font-size: 0.6rem; }
.pc-rating-num { font-size: 0.8rem; font-weight: 700; }
.pc-rating-count { font-size: 0.68rem; color: var(--ff-muted-3); }

/* Nothing to score yet: drop the chip so it doesn't read as a rating of zero. */
.pc-stars-wrap:has(.pc-no-reviews) { background: none; padding: 4px 0; }
.pc-no-reviews { font-size: 0.72rem; color: var(--ff-muted-3); font-weight: 500; }

.pc-dist { font-size: 0.75rem; color: var(--ff-muted-2); font-weight: 600; }

/* =============================================================================
   SEARCH / FILTER RESULTS AS A GRID
   A curated row is a rail you browse sideways; a result set is something you
   scan. Deliveroo makes the same split, and it stops a 40-provider search from
   hiding 36 of them off-screen.
   ========================================================================== */
.provider-row.row-grid .row-nav { display: none; }

.provider-row.row-grid .row-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}

.provider-row.row-grid .provider-card { flex: initial; width: auto; }

@media (max-width: 900px) {
  .provider-card { flex: 0 0 240px; }
  .provider-row.row-grid .row-scroll {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 560px) {
  .provider-card { flex: 0 0 clamp(200px, 62vw, 240px); }
  .provider-row.row-grid .row-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pc-name { font-size: 0.92rem; }
}

/* =============================================================================
   EVENT CARD — MATCHED TO THE REDESIGNED PROVIDER CARD
   Appended last, following this file's existing convention.

   The Deliveroo-led redesign above restyled .provider-card but never gave
   .event-card the same treatment, so the two sat in sibling scroll rows on the
   same page at different sizes: 268px vs 260px base, 240px vs 230px below
   900px, and image crops of 62% vs 52%. Geometry, border weight, radius and
   resting shadow are matched here.

   The purple accent is NOT touched — events are deliberately purple against the
   providers' cyan, the same way the dashboards' semantic header tints are left
   alone. Only the shape is unified.
   ========================================================================== */
.event-card {
  flex: 0 0 268px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.event-card:hover {
  /* Was -5px against the provider card's -4px. */
  transform: translateY(-4px);
}
.ec-img-wrap { padding-top: 62%; }

@media (max-width: 900px) {
  .event-card { flex: 0 0 240px; }
}
@media (max-width: 560px) {
  .event-card { flex: 0 0 clamp(200px, 62vw, 240px); }
}
