/* ============================================================
   BIRTHDAYNAIJA — VENDOR DIRECTORY
   ------------------------------------------------------------
   Built on the site tokens in styles.css. Nothing here invents a
   colour, font or radius the design system does not already
   have, so the directory reads as part of the same product
   rather than a bolted-on marketplace.

   The rules it follows, all from the site design system:
     · cards are 8px, the frame that carries them is 12px
     · mobile content rests on 17px left and right
     · titles are semibold (600); 700 is for marketing headings
     · commenter/meta names are medium (500)
     · body copy is 14px / 1.6, desktop and mobile alike
     · buttons inside a card are small (10/20px, 14px text)
   ============================================================ */

/* ---------- Page shell ----------
   No side padding of its own: on the public page the site's .container
   supplies the gutter, and inside the dashboard the .pf-screen / .pf-tabpanel
   chain already applies the 17px rule. Adding more here stacked the two and
   pushed the cards to 37px from the edge. */
.vdir { padding: 0 0 40px; }

/* The mobile toolbar is .mwall-header, borrowed from Send a Gift, which
   carries its own 17px side padding for a screen that has none. This one
   sits inside .pf-screen, which already pads to 16px — so the header was
   indented 33px while every card below it sat at 16px. */
.mvendor-header { padding-left: 0; padding-right: 0; }
/* "Vendors / Browse / Browse vendors" — the header already says both of
   these, so the panel heading is desktop-only. The count stays. */
[data-vendor-view="mobile"] .vdir__title { display: none; }
[data-vendor-view="mobile"] .vdir__head { margin-bottom: 10px; }
@media (min-width: 900px) { .vdir { padding-bottom: 64px; } }

/* ---------- Header: title, count, search ---------- */
.vdir__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0 16px;
}
.vdir__title {
  font-family: var(--poppins);
  font-weight: 600;              /* semibold — a screen title, not a hero */
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}
.vdir__sub {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-800);
  margin: 0;
}

.vdir__search {
  position: relative;
  margin-bottom: 14px;
}
.vdir__search input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;                  /* flex/grid children default to auto */
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--inter);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.vdir__search input:focus {
  outline: none;
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(255, 75, 43, .12);
}
.vdir__search svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--grey-500);
  pointer-events: none;
}

/* ---------- Category chips ----------
   Same shape as the My Posting filter tabs, so the two filter rows in the
   product are recognisably one control. */
.vcats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;            /* pair the axes, or a stray vertical bar appears */
  padding-bottom: 4px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.vcats::-webkit-scrollbar { display: none; }
.vcat {
  flex-shrink: 0;
  background: var(--grey-100);
  border: none;
  border-radius: 99px;
  font-family: var(--poppins);
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
  padding: 7px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.vcat:hover { background: #e4e4e4; }
.vcat.is-active { background: var(--ink); color: #fff; }

/* ---------- Grid ---------- */
.vgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Vendor card ----------
   Figma 269:3631. The photo leads, because that is what someone browsing a
   directory actually judges on; the price sits in a footer of its own so
   every card's price lands on the same line however long the blurb runs. */
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.vcard:hover {
  border-color: #dcdcdc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}
.vcard:focus-visible { outline: 2px solid var(--g1); outline-offset: 2px; }

.vcard__shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--grey-100);
}
.vcard__shot--none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--grey-500);
  font-family: var(--inter);
  font-size: 12px;
}
.vcard__shot--none svg { width: 26px; height: 26px; }

.vcard__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 0;
  flex: 1;
  min-width: 0;
}
.vcard__cat {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
  margin: 0;
}
.vcard__name {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0;
}
.vcard__place {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--inter);
  font-size: 13px;
  color: var(--text-800);
  margin: 0;
  min-width: 0;
}
.vcard__place svg { width: 13px; height: 13px; flex-shrink: 0; }
.vcard__desc {
  font-family: var(--inter);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-800);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
}
.vcard__price { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vcard__price-lbl {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
}
.vcard__price-val {
  font-family: var(--poppins);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.vcard__go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color .18s, background-color .18s;
}
.vcard:hover .vcard__go { border-color: var(--ink); background: var(--grey-100); }

/* Featured: a gradient hairline rather than a loud badge. */
.vcard--featured { border-color: transparent; box-shadow: 0 0 0 1.5px var(--g2); }
.vcard__star {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 75, 43, .09);
  border-radius: 99px;
  padding: 4px 10px;
  font-family: var(--poppins);
  font-size: 11px;
  font-weight: 600;
  color: var(--g1);
}
.vcard__star svg { width: 12px; height: 12px; }

/* ---------- Vendor detail sheet ----------
   Slides in from the right at full height over the directory. The list stays
   where it was behind it, so closing one listing and opening the next does
   not cost the reader their place. */
.vsheet {
  position: fixed;
  inset: 0;
  z-index: 1200;                /* above the profile nav and the wall modal */
  display: block;
}
/* A component with an unconditional display: beats the browser's own
   [hidden] rule, which is how this kind of panel ends up permanently open. */
.vsheet[hidden] { display: none; }

.vsheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .45);
  opacity: 0;
  transition: opacity .26s var(--ease, cubic-bezier(.16,1,.3,1));
}
.vsheet.is-open .vsheet__scrim { opacity: 1; }

.vsheet__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .16);
  transform: translateX(100%);
  transition: transform .28s var(--ease, cubic-bezier(.16,1,.3,1));
}
.vsheet.is-open .vsheet__panel { transform: translateX(0); }

/* Header bar: the panel's title and its way out, on their own row so
   neither can land on the content. */
.vsheet__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.vsheet__toptitle {
  font-family: var(--poppins);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.vsheet__close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.vsheet__close:hover { background: var(--grey-100); border-color: #dcdcdc; }
.vsheet__close svg { width: 17px; height: 17px; }

.vsheet__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vsheet__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
}
.vsheet__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vsheet__head {
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vsheet__logo {
  /* Positioned, because .vsheet__cover above it is — and a positioned
     sibling paints over a static one, which hid the top half of the logo
     behind the cover. */
  position: relative;
  z-index: 1;
  width: 68px; height: 68px;
  margin-top: -34px;            /* overlaps the cover, the one place it belongs */
  border-radius: 16px;
  border: 3px solid #fff;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
.vsheet__logo--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.vsheet__name {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}
.vsheet__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* The location is a link to Google Maps, so it has to look like one — the
   same text sits as plain metadata on the card and must not. */
.vsheet__map {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.vsheet__map:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}
.vsheet__map:hover svg { color: var(--g1); }

.vsheet__sec { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.vsheet__sec:last-child { border-bottom: 0; padding-bottom: 28px; }
/* Semibold, not bold. This project's rule is semibold inside a card and
   700 nowhere near it; uppercase at 12px with letter-spacing already reads
   as a heading without the extra weight. */
.vsheet__label {
  font-family: var(--poppins);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 0 0 8px;
}
.vsheet__text {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-800);
  margin: 0;
  white-space: pre-line;        /* keeps the paragraph breaks the vendor typed */
}
.vsheet__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.vsheet__shots img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.vsheet__chans { display: flex; flex-wrap: wrap; gap: 8px; }
/* These are real actions, so they size themselves rather than stretching to
   thirds of a row the way the in-card buttons do. */
.vsheet__chans .vbtn { flex: 0 0 auto; }

/* The page behind must not scroll while the sheet is open, or a phone scrolls
   the directory instead of the panel. */
body.vsheet-open { overflow: hidden; }

/* On a phone the panel is the screen — Jiji-style full-bleed layout. */
@media (max-width: 600px) {
  .vsheet__panel { width: 100%; box-shadow: none; }
  .vsheet__shots { grid-template-columns: repeat(2, 1fr); }

  /* Hide the header bar — back button lives on the hero image instead. */
  .vsheet__top { display: none; }

  /* Hero fills top of screen edge-to-edge, no top offset from header. */
  .vsheet__hero { aspect-ratio: 4 / 3; }

  /* Back button overlaid top-left of the hero image. */
  .vsheet__back {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .vsheet__back svg { width: 18px; height: 18px; }

  /* CTA bar shadow on mobile for visual lift. */
  .vsheet__cta { box-shadow: 0 -2px 12px rgba(0,0,0,.10); padding: 12px 16px env(safe-area-inset-bottom, 20px); }

  /* Bigger tap targets on phone. */
  .vsheet__chan-btn { height: 42px; font-size: 13px; }
}

/* Desktop: back-button is hidden (we have the header bar instead). */
@media (min-width: 601px) {
  .vsheet__back { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vsheet__panel, .vsheet__scrim { transition: none; }
  .vcard, .vcard__go svg { transition: none; }
}

/* ---------- Empty state ----------
   The directory reuses .wallempty from the Birthday Wall, the same way the
   Send a Gift screen does — one empty state across the product.

   It needs this one rule to show at all: .wallempty is display:none unless it
   carries [data-empty], and these carry their own hook attributes instead so
   wall.js's own [data-empty] queries do not pick them up. A component class
   with an unconditional display: also beats the browser's [hidden] default,
   which is why :not([hidden]) is part of the selector. */
.wallempty[data-vd-empty]:not([hidden]),
.wallempty[data-vendor-empty]:not([hidden]) { display: flex; }
.wallempty[data-vd-empty][hidden],
.wallempty[data-vendor-empty][hidden] { display: none !important; }

/* ---------- "Promote your business" banner ---------- */
.vpromo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  color: #fff;
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 760px) {
  .vpromo { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; }
}
.vpromo__title {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 4px;
}
.vpromo__text {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: .94;
  max-width: 460px;
}
.vpromo__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 99px;
  border: none;
  background: #fff;
  color: var(--g1);
  font-family: var(--poppins);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s, box-shadow .18s;
}
.vpromo__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- Promotion plans ---------- */
.vplans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 4px 0 20px;
}
@media (min-width: 820px) { .vplans { grid-template-columns: repeat(3, 1fr); } }

.vplan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.vplan:hover { border-color: #dcdcdc; transform: translateY(-2px); }
.vplan.is-selected {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(255, 75, 43, .12);
}
.vplan__tag {
  position: absolute;
  top: -9px; left: 18px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  font-family: var(--poppins);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 99px;
  padding: 3px 10px;
}
.vplan__name {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}
.vplan__price {
  font-family: var(--poppins);
  font-weight: 600;             /* semibold — the amount, like the gift amount */
  font-size: 26px;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}
.vplan__per {
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-500);
  margin: 0;
}
.vplan__blurb {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-800);
  margin: 0;
}
.vplan__check {
  position: absolute;
  top: 16px; right: 16px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s;
}
.vplan.is-selected .vplan__check {
  background: var(--g1);
  border-color: var(--g1);
}
.vplan__check svg { width: 11px; height: 11px; color: #fff; opacity: 0; transition: opacity .18s; }
.vplan.is-selected .vplan__check svg { opacity: 1; }

/* ---------- Status badges (extends .bn-status from profile.css) ---------- */
.bn-status--live    { background: #ecfdf5; color: #059669; }
.bn-status--expired { background: #f4f4f5; color: #71717a; }

/* ---------- My listing panel (inside the dashboard) ---------- */
.vmine {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.vmine__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vmine__name {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 4px;
}
.vmine__meta {
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-800);
  margin: 0;
}
.vmine__note {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: #b45309;
  background: #fff8e6;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
}
.vmine__bar {
  height: 6px;
  border-radius: 99px;
  background: var(--grey-100);
  overflow: hidden;
}
.vmine__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--g1), var(--g3));
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.vmine__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Vendor form ----------
   There is no vendor form styling here on purpose. The form is built from the
   dashboard's own primitives — .mpf__field, .mpf__label, .mpf__input,
   .mpf__textarea, .mpf__upload-zone — so it looks like Submit a birthday and
   Send a gift rather than a third form style. Only the uploaded thumbnail,
   which those primitives have no equivalent for, is defined here. */
.vupload__thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--grey-100);
  margin: 0 auto 8px;
  display: block;
}

/* ---------- Motion ---------- */
@keyframes vcard-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vcard, .vplan { animation: vcard-in .26s cubic-bezier(.16,1,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  .vcard, .vplan { animation: none; }
  .vcard:hover, .vplan:hover, .vpromo__cta:hover { transform: none; }
}


/* ---------- Vendor screen header ----------
   .pf-screen__head is display:flex so the back control and the title sit on
   one line. Adding .pf-mobile-only broke that: its mobile rule sets
   display:block, it is later in profile.css, and both are single-class
   selectors — so block won. The back icon and the title stacked.
   Two classes beat one, whatever the order. */
.pf-screen__head.pf-mobile-only { display: none; }
@media (max-width: 860px) {
  .pf-screen__head.pf-mobile-only { display: flex; }
}

/* ── Category row: scroll affordance ──
   .vcats hides its scrollbar, so on a desktop nothing indicated the row
   continued past the edge — the last chip simply sat clipped. An arrow shows
   only on the side that has something left to reach, and a short fade tells
   you the row runs on even before you notice the arrow. */
.vcats-wrap { position: relative; }

.vcats-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* The row has 18px of margin under it; centring on the chips, not the
     padded box, keeps the arrow level with them. */
  margin-top: -11px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
  cursor: pointer;
  z-index: 2;
  transition: background .15s, border-color .15s, transform .15s;
}
.vcats-nav svg { width: 16px; height: 16px; }
.vcats-nav:hover { background: var(--grey-100); border-color: var(--grey-500); }
.vcats-nav:active { transform: translateY(-50%) scale(.94); }
/* A component toggled by the hidden attribute needs this, or the
   unconditional display above wins and the arrow never goes away. */
.vcats-nav[hidden] { display: none; }

.vcats-nav--prev { left: -6px; }
.vcats-nav--next { right: -6px; }
.vcats-nav--prev svg { transform: rotate(180deg); }

/* The fade sits under the arrow and stops at the chips' own baseline. */
.vcats-wrap--more::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: calc(100% - 18px);
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 72%);
  z-index: 1;
}

/* Phones swipe the row, so the arrows would only take up space there. */
@media (max-width: 860px) {
  .vcats-nav { display: none; }
  .vcats-wrap--more::after { display: none; }
}

/* ── Vendors toggle: Browse vendors / My Listing ──
   The same segmented control the Birthday Wall uses for "Birthday Wall /
   My Posting". Scoped to vendors rather than borrowing the wall's classes,
   because those are defined for the phone screens and this one has to look
   the same at every width.

   Before this the member's own listing sat stacked on top of the directory,
   so one screen was doing two unrelated jobs: here is your business, and
   also here is everyone else's. */
/* Toggle on the left, the one action on the right. The bottom margin moved
   here from .vseg so the row spaces itself whether or not it wraps. */
.vseg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
/* Carries .dwall-toolbar__cta, whose rule lives in profile.css. vendors.css
   also loads on vendors.html, where that file does not, so the spec is
   repeated here rather than inherited across pages. Keep the two in step. */
/* With the toggle gone the row carries only the action, so it sits right.
   A member who already has a listing gets no action at all — the row is
   then genuinely empty and must not leave its margin behind. */
.vseg-row--solo { justify-content: flex-end; }
.vseg-row--solo:empty { display: none; }

.vseg-row__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
  border-radius: 100px;
}
.vseg-row__cta img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

/* Both children keep their natural width. The toggle's labels are nowrap on
   top of a min-width:0 flex child, so letting the toggle shrink does not
   shrink the text — it slides the two labels over each other. */
.vseg-row > .vseg { flex: 0 0 auto; }

.vseg {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--grey-100);
  border-radius: 8px;
  padding: 3px;
}

/* On a narrow screen the toggle takes the row and the action sits under it,
   full width, rather than being squeezed to an unreadable stub. */
/* Below 861px the toggle and the action each take the full row — between
   those widths they used to share it, which is where the toggle was being
   squeezed hardest. Full width also means the two halves can split evenly. */
@media (max-width: 860px) {
  .vseg-row { flex-wrap: wrap; }
  .vseg-row > .vseg { flex: 1 1 100%; }
  .vseg-row__cta { flex: 1 1 100%; justify-content: center; }
  /* Scoped to the row so it outranks the base .vseg__btn rule, which is
     later in the file and would otherwise win on source order. */
  .vseg-row .vseg__btn { flex: 1 1 0; }
}
/* Each button is as wide as its own label. It used to be flex:1 with
   min-width:0 — equal halves that were free to shrink below their text, so
   the label simply overflowed its box: 22px of padding on the left and 1px
   on the right, and at 700px wide the text ran 20px past the control. */
.vseg__btn {
  position: relative;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 18px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-800);
  cursor: pointer;
  transition: background-color .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
/* The active state is painted on the button itself. A separate pill had to
   assume both halves were exactly 50% — the assumption that broke above,
   and it never animated anyway: picking a side re-renders the control, so
   the pill was redrawn in place rather than sliding to it. */
.vseg__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
}
.vseg__pill { display: none; }

@media (min-width: 861px) {
  /* No max-width. It was capping the toggle at 360px back when it had the
     row to itself; sharing the row with the action, the cap squeezed the two
     labels until they overlapped — the buttons stayed side by side and the
     nowrap text ran straight over the boundary. It sizes to its labels now. */
  /* The pill is a fixed 50%, so the two buttons must be equal width — which
     means the padding has to clear the LONGER of the two labels, or that one
     spills past its half. "Browse vendors" is the one that sets this. */
  .vseg__btn { height: 38px; font-size: 14px; padding: 0 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Vendor directory — redesign
   Figma: 269:3631 (desktop), 269:3430 (mobile), 269:3340 (filters),
   269:3266 (sort), 269:3028 / 269:2966 (detail).
   Built on the site tokens in styles.css, not the Figma file's own — the
   two name the same colours differently and mixing them is how a screen
   ends up half in one system.
   ═══════════════════════════════════════════════════════════════════════ */

/* ---------- Hero ---------- */
.vhero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
}
.vhero__text { min-width: 0; }
.vhero__title {
  font-family: var(--poppins);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.vhero__sub {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-800);
  margin: 0;
  max-width: 62ch;
}
/* Height, padding and radius come from .dwall-toolbar__cta, which it now
   carries; only the icon tint and not-shrinking are its own. */
.vhero__cta { flex-shrink: 0; }
.vhero__cta img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

/* ---------- Search row ---------- */
.vsearch {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: stretch;
  padding-bottom: 22px;
}
.vsearch__field {
  position: relative;
  /* Sized, not stretched. Figma groups the three controls at the left with
     the rest of the row empty; letting the field take the remaining width
     turned it into a banner the width of the page. */
  flex: 0 1 360px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.vsearch__icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--grey-500);
  pointer-events: none;
}
.vsearch__input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--inter);
  font-size: 14px;
  color: var(--ink);
}
.vsearch__input::placeholder { color: var(--grey-500); }
.vsearch__input:focus { outline: none; border-color: var(--grey-500); }
/* Safari draws its own clear button on type=search and it collides with the
   rounded field. */
.vsearch__input::-webkit-search-decoration,
.vsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.vsearch__area { position: relative; flex: 0 0 auto; }
.vsearch__select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--inter);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  max-width: 190px;
}
.vsearch__chev,
.vfilters__chev {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-800);
  pointer-events: none;
}
.vsearch__go {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-family: var(--poppins);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s;
}
.vsearch__go:hover { background: #2b2b2b; }

/* ---------- Category block ---------- */
.vcats-block { padding-bottom: 24px; }
.vcats-label {
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

/* ---------- Results header ---------- */
/* Figma 269:3711 — heading on the left, the two controls on the right. */
.vres__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.vres__titles { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vres__title {
  font-family: var(--poppins);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;                 /* Figma colours/text/900 */
  margin: 0;
}
.vres__sub {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 20px;
  color: #666;                 /* Figma colours/text/800 */
  margin: 0;
}
.vres__tools { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }

.vpop { position: relative; }
.vtool {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s, background-color .18s;
}
/* Filters: a button. Border colors/border/border-primary, with the file's
   shadow-xs and its skeuomorphic inner border. */
.vtool--filters {
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid #d5d7da;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #414651;              /* Figma colors/text/text-secondary-(700) */
  box-shadow: 0 1px 2px rgba(10, 13, 18, .05),
              inset 0 0 0 1px rgba(10, 13, 18, .18),
              inset 0 -2px 0 0 rgba(10, 13, 18, .05);
}
.vtool--filters:hover { background: #fafafa; }
/* Sort: a quieter selector — lighter stroke, regular weight, muted text. */
.vtool--sort {
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);   /* #dfe4ed is this project's --line */
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #666;
}
.vtool--sort:hover { border-color: #cfd6e2; }
/* Native width and height on both, per the design's assets. */
.vtool__ico  { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.vtool__chev { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.vtool__sortlbl { display: inline-block; }

/* A filter is on — the control has to say so when the panel is shut. */
.vtool__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g1);
}

/* ---------- Filters popover ---------- */
.vfilters {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
  animation: vkebab-in .16s ease-out both;
}
.vfilters[hidden] { display: none; }
.vfilters__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.vfilters__title {
  font-family: var(--poppins);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}
.vfilters__sub {
  font-family: var(--inter);
  font-size: 13px;
  color: var(--text-800);
  margin: 0;
}
.vfilters__x {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-800);
  cursor: pointer;
}
.vfilters__x:hover { background: var(--grey-100); color: var(--ink); }
.vfilters__x svg { width: 16px; height: 16px; }

.vfilters__body { padding: 14px 16px 16px; }
.vfilters__label {
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.vfilters__body .vfilters__label + .vfilters__label,
.vfilters__note + .vfilters__label { margin-top: 16px; }
.vfilters__row { display: flex; gap: 10px; }
.vfilters__cell { flex: 1 1 0; min-width: 0; display: block; }
.vfilters__hint {
  display: block;
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
  margin-bottom: 4px;
}
.vfilters__input,
.vfilters__select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--inter);
  font-size: 14px;
  color: var(--ink);
}
.vfilters__input:focus,
.vfilters__select:focus { outline: none; border-color: var(--grey-500); }
.vfilters__note {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
  margin: 6px 0 0;
}
.vfilters__selectwrap { position: relative; }
.vfilters__select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }

.vfilters__foot {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.vfilters__reset {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.vfilters__reset:hover { border-color: var(--ink); }
.vfilters__apply { flex: 1 1 auto; height: 38px; border-radius: 8px; }

/* ---------- Sort popover ---------- */
.vsort {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(260px, calc(100vw - 32px));
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
  animation: vkebab-in .16s ease-out both;
}
.vsort[hidden] { display: none; }
.vsort__head {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
  margin: 0;
  padding: 6px 10px 8px;
}
.vsort__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.vsort__item:hover { background: var(--grey-100); }
.vsort__item.is-on { background: rgba(255, 75, 43, .08); }
.vsort__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vsort__title {
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.vsort__item.is-on .vsort__title { color: var(--g1); }
.vsort__sub {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
}
.vsort__check { width: 16px; height: 16px; flex-shrink: 0; color: var(--g1); }

/* ---------- Load more ---------- */
.vmore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.vmore__count {
  font-family: var(--inter);
  font-size: 13px;
  color: var(--text-800);
  margin: 0;
}
.vmore__btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.vmore__btn:hover { border-color: var(--ink); background: var(--grey-100); }
.vmore__btn[hidden] { display: none; }

/* ---------- Detail sheet: redesign content ---------- */
.vsheet__sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.vsheet__sechead .vsheet__label { margin: 0; }
.vsheet__count {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
}

.vshots { display: grid; gap: 8px; }
.vshots__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--grey-100);
}
/* Beyond the first, the rest ride along underneath at half height — the
   gallery is context for the first photo, not a second gallery. */
.vshots--many { grid-template-columns: repeat(2, 1fr); }
.vshots--many .vshots__img:first-child { grid-column: 1 / -1; }
.vshots--many .vshots__img:not(:first-child) { aspect-ratio: 4 / 3; }
.vshots__none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--grey-100);
  color: var(--grey-500);
  font-family: var(--inter);
  font-size: 12px;
}
.vshots__none svg { width: 26px; height: 26px; }

.vsheet__ident { display: flex; flex-direction: column; gap: 8px; }
.vsheet__cat {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
  margin: 0;
}
.vsheet__ident .vsheet__name { margin: 0; }

/* Starting price — the figure someone is comparing on, so it gets a panel
   rather than a line in a paragraph. */
.vprice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 4px;
  background: #f5f5f5;
  border-radius: 8px;
}
.vprice__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vprice__lbl {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
}
.vprice__val {
  font-family: var(--poppins);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.vprice__note {
  font-family: var(--inter);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-800);
  text-align: right;
  max-width: 170px;
  flex-shrink: 0;
}

.vsheet__prod {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--grey-100);
  margin-bottom: 10px;
}
.vsheet__prodtitle {
  font-family: var(--poppins);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.vaddr { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.vaddr__pin { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-800); margin-top: 1px; }
.vaddr__lines { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vaddr__place {
  font-family: var(--poppins);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.vaddr__note {
  font-family: var(--inter);
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey-500);
  margin: 0;
}

.vmap { position: relative; border-radius: 8px; overflow: hidden; background: var(--grey-100); }
.vmap__frame { width: 100%; height: 210px; border: 0; display: block; }
.vmap__open {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.vmap__open:hover { background: var(--grey-100); }

/* ── Hero image (full-width, no padding, Jiji-style) ── */
.vsheet__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--grey-100);
  cursor: pointer;
  overflow: hidden;
}
.vsheet__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.vsheet__hero:hover .vsheet__hero-img { transform: scale(1.02); }
.vsheet__hero-count {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
}

/* ── Contact: Jiji-style direct buttons ──
   Lives as a direct child of .vsheet__panel (NOT inside .vsheet__scroll),
   so it naturally sits at the bottom of the flex column on all screen sizes
   without needing position:sticky (which breaks inside overflow:auto). */
.vsheet__cta {
  flex-shrink: 0;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
/* Primary row: WhatsApp + Call side by side, full width */
.vsheet__primary-chans {
  display: flex;
  gap: 8px;
}
.vsheet__chan-btn svg { width: 16px; height: 16px; }
.vsheet__chan-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
}
/* Secondary row: smaller chips for email/website/instagram */
.vsheet__secondary-chans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.vsheet__secondary-chans .vbtn { flex: 0 0 auto; }
.vsheet__ctanote {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--text-800);
  text-align: center;
  margin: 10px 0 0;
}
.vsheet__chans[hidden] { display: none; }

/* ── Gallery lightbox ── */
.vgallery {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vgallery[hidden] { display: none; }
body.vgallery-open { overflow: hidden; }
.vgallery__track {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vgallery__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.vgallery__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.vgallery__close:hover { background: rgba(255,255,255,.24); }
.vgallery__close svg { width: 20px; height: 20px; }
.vgallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.vgallery__arrow:hover { background: rgba(255,255,255,.24); }
.vgallery__arrow svg { width: 20px; height: 20px; }
.vgallery__arrow--prev { left: 16px; transform: translateY(-50%) scaleX(-1); }
.vgallery__arrow--next { right: 16px; }
.vgallery__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-family: var(--inter);
  font-size: 13px;
  pointer-events: none;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .vhero { flex-direction: column; gap: 14px; padding-bottom: 18px; }
  .vhero__cta { width: 100%; justify-content: center; }
  .vsearch { flex-wrap: wrap; }
  .vsearch__field { flex: 1 1 100%; }
  .vsearch .varea { flex: 1 1 0; width: auto; }
  .vsearch .varea__btn { width: 100%; min-width: 0; }
  .vsearch__go { flex: 0 0 auto; }
  /* Stacked, but still left-aligned: the base rule centres the row's two
     halves against each other, and turning it into a column made that
     centre every line of text on the screen. */
  .vres__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .vres__tools { width: 100%; }
  .vres__tools .vpop { flex: 1 1 0; }
  .vres__tools .vtool { width: 100%; justify-content: center; }
  /* A popover anchored to a half-width button hangs off whichever edge its
     button is nearest, so each one opens away from that edge. */
  .vfilters, .vsort { width: min(320px, calc(100vw - 32px)); }
  .vres__tools .vpop:first-child .vfilters,
  .vres__tools .vpop:first-child .vsort { left: 0; right: auto; }
  .vres__tools .vpop:last-child .vfilters,
  .vres__tools .vpop:last-child .vsort { right: 0; left: auto; }
  .vprice { flex-direction: column; align-items: flex-start; gap: 6px; }
  .vprice__note { text-align: left; max-width: none; }
  .vmore { justify-content: center; }
  .vmore__btn { width: 100%; }
}

/* The hero's CTA is the desktop route into the form. On a phone the screen
   header already carries a plus for exactly that, and two buttons offering
   the same thing on one screen is the duplicate this replaced. */
@media (max-width: 860px) { .vhero__cta { display: none; } }

/* Featured sits on top of a photograph now, so it needs its own ground —
   brand text on an unknown image was unreadable. */
.vcard__star {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* One cover, then the product images — at most two, side by side. */
.vprod { display: grid; gap: 8px; margin-bottom: 10px; }
.vprod--two { grid-template-columns: repeat(2, 1fr); }
.vprod .vsheet__prod { margin-bottom: 0; }
.vprod--two .vsheet__prod { aspect-ratio: 1; }
/* A hint under a section heading, for the fields that need a reason. */
.mpf__hint-row {
  font-family: var(--inter);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-800);
  margin: -6px 0 14px;
}

/* The My Listing empty state's button carries .dwall-toolbar__cta for the
   plus icon, which needs tinting the same way the hero's does. */
.wallempty .dwall-toolbar__cta img { filter: brightness(0) invert(1); }

/* ---------- .vbtn ----------
   Lost when the card CSS was replaced: the block that defined these sat
   between .vcard__actions and .vcard--featured, and the replacement took
   the whole range. Everything wearing .vbtn — the contact channels, the
   sheet's Edit / Delete / Extend — rendered as bare markup with 24px
   icons and wrapping labels until this came back. */
.vbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-family: var(--poppins);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.vbtn svg { width: 16px; height: 16px; flex-shrink: 0; }
.vbtn:hover  { background: #fafafa; border-color: #dcdcdc; }
.vbtn:active { transform: translateY(1px); }

.vbtn--wa {
  background: #25d366;          /* WhatsApp's own green: people look for it */
  border-color: #25d366;
  color: #fff;
}
.vbtn--wa:hover { background: #1fbe5a; border-color: #1fbe5a; }

.vbtn--grad {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-color: transparent;
  color: #fff;
}
.vbtn--grad:hover { filter: brightness(1.04); background: linear-gradient(135deg, var(--g1), var(--g2)); }

/* Destructive. Not --red, which is validation — the danger red the
   confirmation dialog's icon uses. */
.vbtn--danger { background: #d92d20; border-color: #d92d20; color: #fff; }
.vbtn--danger:hover { background: #b42318; border-color: #b42318; }

/* The channel row wraps into even rows rather than one long line. */
.vsheet__chans { display: flex; flex-wrap: wrap; gap: 8px; }
.vsheet__chans .vbtn { flex: 0 0 auto; }

/* ---------- Area picker ---------- */
.varea { width: 100%; }
.varea__btn { width: 100%; justify-content: space-between; height: 44px; }
.vsearch .varea { flex: 0 0 auto; width: auto; }
.vsearch .varea__btn { width: auto; min-width: 170px; }
/* Anchored left, not right: it inherits .vsort, whose menu hangs from the
   right edge of a control that sits at the right of the toolbar. This one
   sits at the left, so right-anchoring threw it off the screen. */
.varea__menu { left: 0; right: auto; width: min(300px, calc(100vw - 32px)); }
/* 37 places will not fit on a phone, so the list scrolls inside the
   popover rather than the popover running off the screen. */
.varea__list { max-height: 280px; overflow-y: auto; }
.varea__list .vsort__item { gap: 8px; }

/* "On request" is not a price — it is the absence of one, so it should not
   be set at the size and weight a price gets. */
.vprice__val--none {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-800);
}
.vcard__price-val--none { font-weight: 500; color: var(--text-800); }

/* ---------- Dropdowns and inputs: the Send a Gift filter control ----------
   Spec copied from .dwall-filter-btn in profile.css — 1.5px #dfe4ed, Inter
   13px #555, and a chevron that turns when the menu opens. Repeated here
   rather than inherited because vendors.css also loads on vendors.html,
   where profile.css does not. Keep the two in step.

   The Filters button is deliberately NOT included: Figma 269:3711 gives it
   its own border and shadow, and it is a button rather than a field. */
.vtool--sort,
.varea__btn {
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #dfe4ed;
  border-radius: 8px;
  background: #fff;
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 400;
  color: #555;
  transition: border-color .18s, background .15s;
}
.vtool--sort:hover,
.vtool--sort[aria-expanded="true"],
.varea__btn:hover,
.varea__btn[aria-expanded="true"] { border-color: #aab0bc; background: #f9f9f9; }

.vtool--sort .vtool__chev,
.varea__btn .vtool__chev {
  width: 14px; height: 14px;
  flex-shrink: 0;
  opacity: .55;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.vtool--sort[aria-expanded="true"] .vtool__chev,
.varea__btn[aria-expanded="true"] .vtool__chev { transform: rotate(180deg); }

/* The text fields take the same stroke, so a row of controls reads as one
   set rather than three different borders. */
.vsearch__input,
.vfilters__input {
  border: 1.5px solid #dfe4ed;
  font-size: 13px;
  color: #555;
  transition: border-color .18s, background .15s;
}
.vsearch__input { height: 40px; border-radius: 8px; }
.vsearch__input:focus,
.vfilters__input:focus { outline: none; border-color: #aab0bc; background: #f9f9f9; }
.vsearch__go { height: 40px; }

/* The menus they open match the gift menu's own frame. */
.vsort, .vfilters { border: 1.5px solid #dfe4ed; box-shadow: 0 4px 20px rgba(0, 0, 0, .10); }

/* ---------- Your listing: status and actions ----------
   Lost with the .vbtn block in the same replacement. Rebuilt with the
   layout the actions actually need: extending is the one with money
   attached so it takes the full width, and edit and delete share the row
   beneath it. */
.vsheet__validity { background: #fafafa; }
.vsheet__vtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.vsheet__vtop .vsheet__label { margin: 0; }
.vsheet__validity .vmine__bar { margin-top: 12px; }

.vsheet__own {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line);
}
.vsheet__own-primary {
  width: 100%;
  height: 46px;
  font-size: 15px;
}
.vsheet__own-row { display: flex; gap: 10px; }
/* min-width:0 matters: .vbtn is nowrap, so without it a long label keeps
   its button from ever shrinking to half the row and the pair overflows
   the panel — which is exactly what they were doing. */
.vsheet__own-row .vbtn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
}
.vsheet__own-row .vbtn svg { flex-shrink: 0; }

/* ---------- Mobile spacing ----------
   .mwall-header pads 17px top and nothing at the bottom, because every
   other screen using it ends in a segmented control that carries its own
   margin. The vendor screen's toggle is gone, so the title and plus sat
   directly on top of the search field. */
.mvendor-header { padding-bottom: 16px; }

@media (max-width: 860px) {
  /* Room between each band of the screen, which was reading as one block. */
  .vsearch { padding-bottom: 26px; }
  .vcats-block { padding-bottom: 28px; }
  .vres__head { padding-top: 26px; padding-bottom: 18px; }
  .vres__tools { margin-top: 4px; }
}

/* Same reason as .pf-screen--my-posting: with the toggle gone there is
   nothing under the title row to space it from what follows. */
.mvendor-header--sub { padding-bottom: 16px; }

/* ===========================================================
   Phone directory — Airbnb-style single control row
   ===========================================================
   The screen used to open with three stacked rows of controls (search,
   then area + Find vendors, then Filters + Sort), a "Browse by category"
   label and a second "Vendors" heading, which put the first card below
   the fold. It now opens the way Airbnb's results screen does: one search
   row, one chip row, then listings. Area, budget and sort moved into the
   sheet behind the tune button.
   Scoped to the mobile area so the desktop toolbar is untouched. */

.vsearch--m {
  display: flex;
  flex-wrap: nowrap;            /* beats the 860px rule's flex-wrap: wrap */
  /* stretch, not center: the field and the tune button were each setting
     their own height — 40 and 46 — so they sat at different sizes and the
     difference moved with the font metrics on whatever device rendered
     them. The row's height is the field's, and the button takes it. */
  align-items: stretch;
  gap: 10px;
  padding-bottom: 14px;
}
/* The one number that decides the row. */
.vsearch--m .vsearch__field,
.vsearch--m .vsearch__input { height: 48px; }
/* The field takes the row; the base mobile rule gives it 100% and pushes
   the button onto a line of its own. */
.vsearch--m .vsearch__field { flex: 1 1 auto; min-width: 0; }

/* The wrapper is the flex item, so it is what the row stretches; the
   button then fills it. Stretching the button directly does nothing —
   it is not a child of the row. */
.vsearch__tunewrap { flex: 0 0 auto; align-self: stretch; }

/* Same 1.5px #dfe4ed stroke as every other control on this screen, square
   with the search field rather than a circle, so the row reads as one. */
.vsearch__tune {
  position: relative;
  width: 48px;
  height: 100%;                 /* fills the stretched wrapper */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #dfe4ed;
  /* Same corner as the field it sits beside: at 12 against the field's 8
     the two read as different kinds of control. */
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.vsearch__tune:hover  { border-color: var(--grey-500); }
.vsearch__tune:active { background: var(--grey-100); }
.vsearch__tune .vtool__ico { width: 20px; height: 20px; }
/* The dot says a filter is on without opening the sheet to find out. */
.vsearch__tune .vtool__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g2);
  border: 2px solid #fff;
}
.vsearch__tune .vtool__dot[hidden] { display: none; }

/* With the label gone the chips sit straight under the search row, and
   the gap below them matches the gap above rather than being twice it. */
.vsearch--m + .vcats-block { padding-bottom: 6px; }
.vsearch--m + .vcats-block .vcats-wrap { margin-bottom: 0; }

/* One quiet line, not a heading block. The rule divided "browse" from
   "results" back when a second heading followed it; with the heading gone
   it was a line floating above one sentence. */
.vres__head--m {
  display: block;
  padding: 0 0 12px;
  border-top: 0;
}
.vres__head--m .vres__sub { margin: 0; }

/* ---------- the filter sheet ---------- */

body.vfilters-open { overflow: hidden; }

.vfilters--sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;                /* above the detail sheet's 1200 */
  display: block;
  width: auto;                  /* beats the 860px rule's fixed width */
}
.vfilters--sheet[hidden] { display: none; }

.vfilters--sheet .vfilters__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  animation: vf-scrim-in .2s ease both;
}

.vfilters--sheet .vfilters__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
  animation: vf-sheet-in .26s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes vf-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vf-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .vfilters--sheet .vfilters__scrim,
  .vfilters--sheet .vfilters__panel { animation: none; }
}

/* Airbnb's header: the title centred-weight on the left, close on the
   right, a hairline under it so the body reads as the scrolling part. */
.vfilters--sheet .vfilters__head {
  flex: 0 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.vfilters--sheet .vfilters__title { font-size: 18px; }

.vfilters--sheet .vfilters__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 20px;
}

/* The footer stays put while the body scrolls, and carries the count. */
.vfilters--sheet .vfilters__foot {
  flex: 0 0 auto;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}
.vfilters--sheet .vfilters__apply { flex: 1 1 auto; }

/* The area picker fills the sheet's width rather than sitting at its
   desktop 170px, and its menu opens inside the sheet. */
.vfilters--sheet .varea { width: 100%; }
.vfilters--sheet .varea__btn { width: 100%; min-width: 0; justify-content: space-between; }
.vfilters--sheet .varea__menu { width: 100%; left: 0; right: auto; }

/* Sort as pills, because a menu inside a sheet is a popover inside a
   popover. The choice is the pill, so there is no tick to carry. */
.vfsort { display: flex; flex-wrap: wrap; gap: 8px; }
.vfsort__opt {
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 500;
  color: #555;
  padding: 10px 16px;
  border: 1.5px solid #dfe4ed;
  border-radius: 99px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.vfsort__opt:hover { border-color: var(--grey-500); }
.vfsort__opt.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* The tab bar sits above the sheet whatever z-index the sheet carries —
   raising it to 99999 in a live page made no difference, so the stacking
   fight is not winnable from here. It is also not worth winning: the
   reference behaves the same way, covering the tab bar entirely while the
   sheet is open. Hiding it removes the overlap and the puzzle at once, and
   the sheet's own close, scrim and Escape are the way back. */
body.vfilters-open .pf-bottom-nav { display: none; }

/* Sections, the way the reference groups them: a hairline and real air
   between budget, area and sort, instead of three labels running on. */
.vfilters--sheet .vfilters__note + .vfilters__label,
.vfilters--sheet .varea + .vfilters__label {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.vfilters--sheet .vfilters__label { font-size: 15px; margin-bottom: 12px; }
.vfilters--sheet .vfilters__input { height: 46px; }

/* In the sheet the state list expands in place instead of hanging off the
   button as a popover. The body is a scrolling box, so an absolutely
   positioned menu 280px tall was clipped at its edge; in flow it simply
   pushes Sort down and the body scrolls to it, which is also the plainer
   thing to use on a phone. */
.vfilters--sheet .varea__menu {
  position: static;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
  border: 1.5px solid #dfe4ed;
}
.vfilters--sheet .varea__list { max-height: 240px; }

/* Match the budget fields — the picker inherits .vtool's 40px, which left
   it visibly shorter than the two inputs directly above it. */
.vfilters--sheet .varea__btn { height: 46px; }

/* 20+20 around the rule read as a gap rather than a separator. */
.vfilters--sheet .vfilters__note + .vfilters__label,
.vfilters--sheet .varea + .vfilters__label {
  margin-top: 16px;
  padding-top: 16px;
}

/* My Listing: the content lines up with the photo above it.
   The card carries both .mpost-card and .vmine, so the photo is inset by
   .vmine's 18px padding while the body added 14px more on each side — the
   avatar, name, message, status and buttons all sat 14px inside the
   picture's edges instead of squaring with them. The photo's position is
   right; the body just stops adding to it. */
.mpost-card.vmine > .mpost-card__body { padding-left: 0; padding-right: 0; }

/* ===========================================================
   Vendor Directory — Figma 283:4168 / 283:4403
   =========================================================== */

/* ---------- category row ---------- */
.vcats-block { padding-bottom: 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
.vsearch--m + .vcats-block { padding-bottom: 0; }

.vcats { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scroll-behavior: smooth; }
.vcats::-webkit-scrollbar { display: none; }
.vcats { scrollbar-width: none; }

.vcat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* The 2px bar under the chosen one is a bottom border that is simply
     transparent on the rest, so nothing shifts when the choice moves. */
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.vcat__ico { width: 28px; height: 28px; object-fit: contain; display: block; }
.vcat__label {
  font-family: var(--inter);
  font-weight: 500;
  font-size: 12px;
  color: #717680;
  white-space: nowrap;
  padding-bottom: 10px;
  transition: color .15s ease;
}
.vcat:hover .vcat__label { color: var(--ink); }
.vcat.is-active { border-bottom-color: var(--g1); }
.vcat.is-active .vcat__label { color: var(--g1); font-weight: 600; padding-bottom: 8px; }

.vcats-nav { background: #fff; }
.vcats-nav--prev img { transform: rotate(180deg); }

/* ---------- the toolbar ---------- */
.vsearch--bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vsearch--bar .vsearch__field { flex: 0 0 337px; max-width: 100%; }
.vsearch__icon--img { flex-shrink: 0; display: block; }

.vpill-wrap { position: relative; flex: 0 0 auto; }
.vpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #d5d7da;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  font-family: var(--inter);
  font-weight: 500;
  font-size: 14px;
  color: #414651;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
.vpill img { display: block; flex-shrink: 0; }
.vpill__chev { width: 14px; height: 14px; transition: transform .15s ease; }
.vpill:hover { border-color: #aab0bc; background: #f9f9f9; }
.vpill[aria-expanded="true"] { border-color: var(--ink); }
.vpill[aria-expanded="true"] .vpill__chev { transform: rotate(180deg); }
.vpill .vtool__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--g2); flex-shrink: 0;
}
.vpill .vtool__dot[hidden] { display: none; }

/* ---------- State popover — Figma 283:3941 ---------- */
.vstate { width: min(340px, calc(100vw - 32px)); padding: 0; }
.vstate__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 20px 20px 12px;
}
.vstate__title { font-family: var(--poppins); font-weight: 600; font-size: 15px; color: var(--ink); margin: 0; }
.vstate__count { font-family: var(--inter); font-size: 12px; color: var(--text-800); margin: 0; }

/* 37 rows will not fit on any screen, so the list scrolls inside the
   popover rather than the popover running off the page. */
.vstate__list { max-height: 260px; overflow-y: auto; padding: 0 20px; }
.vstate__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; cursor: pointer;
}
.vstate__name { font-family: var(--inter); font-size: 14px; color: var(--ink); }
.vstate__box {
  width: 16px; height: 16px; flex-shrink: 0; margin: 0;
  accent-color: var(--g1); cursor: pointer;
}
.vstate .vfilters__foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .vcats-block { margin-bottom: 16px; }
  .vcat { padding: 8px 10px 0; }
  .vcat__label { font-size: 11px; }
}

/* The .vcat chips this row replaces were pills with a filled background
   and their own radius. Those rules sit earlier in this file, so they are
   turned off by name here rather than deleted by a range replacement —
   which is how unrelated rules have gone missing from this file before. */
.vcats .vcat {
  background: none;
  border-radius: 0;
  color: inherit;
  height: auto;
  padding: 8px 12px 0;
  font-size: inherit;
  font-weight: inherit;
}
.vcats .vcat.is-active { background: none; color: inherit; }
.vcats .vcat:hover { background: none; }

/* A brand-coloured disc, as drawn. The chevron asset is stroked white
   because of it — on the white button this row used to have, it was
   invisible. The asset is right; the button was wrong. */
.vcats-wrap--more::after { display: none; }
.vcats-nav {
  width: 32px; height: 32px;
  border: 0;
  background: var(--g1);
  box-shadow: 0 2px 10px rgba(255, 75, 43, .34);
}
.vcats-nav:hover { background: var(--g2); }
.vcats-nav img { width: 16px; height: 16px; display: block; }
.vcats-nav--next { right: -4px; }
.vcats-nav--prev { left: -4px; }

/* ===========================================================
   Vendor card — Figma 283:4299, field for field
   ===========================================================
   Appended so these win over the older .vcard block earlier in this file
   without a range replacement, which has silently deleted neighbouring
   rules in here twice before. */
.vcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 13, 18, .05);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vcard:hover { border-color: #c7cedb; box-shadow: 0 4px 16px rgba(10, 13, 18, .1); transform: none; }
.vcard:focus-visible { outline: 2px solid var(--g1); outline-offset: 2px; }

.vcard__shotwrap { position: relative; width: 100%; height: 200px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.vcard__shot { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.vcard__shot--none {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--grey-100); color: var(--grey-500);
}

/* A dark translucent pill on the photo, not the white chip this card had:
   white on a bright photograph is where a badge disappears. */
.vcard__verified {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .6);
  font-family: var(--inter);
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}
.vcard__verified img { display: block; flex-shrink: 0; }

.vcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; width: 100%; }

/* The name leads. */
.vcard__name {
  font-family: var(--poppins); font-weight: 500; font-size: 16px; color: #333;
  margin: 0; width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vcard__cat { font-family: var(--inter); font-size: 12px; color: #666; margin: 0; width: 100%; }
.vcard__place {
  display: flex; align-items: center; gap: 4px; margin: 0; width: 100%;
  font-family: var(--inter); font-size: 12px; color: #717680;
}
.vcard__place img { display: block; flex-shrink: 0; }
.vcard__desc {
  font-family: var(--inter); font-size: 13px; line-height: 18px; color: #666;
  margin: 0; width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.vcard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0 0; width: 100%; margin: 0; border: 0;
}
.vcard__price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcard__price-lbl { font-family: var(--inter); font-size: 11px; color: #717680; }
.vcard__price-val { font-family: var(--inter); font-weight: 700; font-size: 15px; color: #333; }
.vcard__price-val--none { font-weight: 500; font-size: 14px; color: var(--text-800); }

.vcard__go {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  background: #fff;
  font-family: var(--inter); font-weight: 600; font-size: 13px; color: #333;
  white-space: nowrap;
  width: auto; height: auto;
  transition: border-color .15s ease, background-color .15s ease;
}
.vcard:hover .vcard__go { border-color: #aab0bc; background: #f9f9f9; }

/* The search field is a pill in the design, the same radius as the filters
   beside it. It was an 8px rectangle, which made it read as a different
   kind of control from the three pills it sits in a row with. */
.vsearch__field { border-radius: 9999px; }
.vsearch__input { border-radius: 9999px; }

/* ===========================================================
   Filter popovers — Figma 283:4115, 283:3941, 283:3802
   ===========================================================
   One panel treatment across all three, as the file has it: 10px radius,
   a 1px #e7e7e7 hairline, and a soft shadow. */
.vfilters, .vstate, .vsort--pop {
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  background: #fff;
}
.vfilters, .vsort--pop { width: min(320px, calc(100vw - 32px)); padding: 0; }
.vfilters--sheet { width: auto; border: 0; border-radius: 0; box-shadow: none; }

.vfilters__head { padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.vfilters__title { font-family: var(--poppins); font-weight: 600; font-size: 15px; color: #222; margin: 0; }
.vfilters__body { padding: 16px 20px 0; }

/* ---- Budget range: the histogram IS the control ----
   This was a drawing: an SVG of someone else's price distribution with the
   handles painted on, and two text boxes underneath doing the real work. So
   the one thing that looked draggable was not, and the things that worked
   asked you to already know what a cake costs. The bars are now this
   directory's own starting prices and the handles are real. */
.vrange { margin: 0 0 4px; }

.vrange__hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 76px;
  margin: 0 10px 0;          /* half a knob, so the end bars sit under the ends of the track */
  pointer-events: none;      /* the track below owns every pointer */
}
.vrange__bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: #f0d9d3;       /* outside the chosen range */
  transition: background-color .12s;
}
.vrange__bar.is-in { background: var(--g1); }

.vrange__track {
  position: relative;
  height: 20px;
  margin: 0 10px 18px;       /* clears the knob, which overhangs the track */
  touch-action: none;        /* a drag must not also scroll the sheet */
}
/* The rail and the chosen span sit on the same centre line. */
.vrange__track::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: #e6e0dd;
  border-radius: 2px;
}
.vrange__fill {
  position: absolute; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--g1);
  border-radius: 2px;
}
.vrange__knob {
  position: absolute; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  padding: 0;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  cursor: grab;
  touch-action: none;
  transition: transform .12s, box-shadow .12s;
}
.vrange__knob:hover { transform: scale(1.06); }
.vrange__knob:focus-visible { outline: 2px solid var(--g1); outline-offset: 2px; }
.vrange__knob.is-dragging {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
}

.vrange__readout {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  margin: 0 0 6px;
}
/* The note closes the block, so it carries the gap to whatever follows. */
.vrange .vfilters__note { margin: 0 0 4px; }

.vfilters__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 20px;
}
.vfilters__reset {
  border: 0; background: none; cursor: pointer; padding: 0;
  font-family: var(--inter); font-size: 13px; color: #b8b8b8;
}
.vfilters__reset:hover { color: var(--ink); }
/* Dark, not the brand gradient — the file's own button. */
.vfilters__apply {
  min-width: 150px; height: 40px; padding: 0 18px;
  border: 0; border-radius: 8px; background: #222; color: #fff; cursor: pointer;
  font-family: var(--inter); font-weight: 700; font-size: 13px;
}
.vfilters__apply:hover { background: #000; }

/* ---------- sort ---------- */
.vsort--pop { padding: 0; }
.vsort__opts { display: flex; flex-direction: column; padding: 8px 20px 4px; }
.vsort--pop .vsort__item {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 0;
  border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
  border-radius: 0;
}
.vsort--pop .vsort__item:hover { background: none; }
.vsort--pop .vsort__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.vsort--pop .vsort__title { font-family: var(--inter); font-size: 14px; color: #111; }
.vsort--pop .vsort__sub { font-family: var(--inter); font-size: 12px; color: #404040; }
/* A radio, as drawn, rather than the tick this used to show. */
.vsort__radio {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid #dfe4ed; border-radius: 50%; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vsort--pop .vsort__item.is-on .vsort__radio {
  border: 5px solid var(--g1);
}
.vsort--pop .vsort__item.is-on .vsort__title { font-weight: 600; }

/* ---------- state ---------- */
.vstate .vfilters__foot { padding: 14px 20px 18px; }

/* ===========================================================
   Vendor detail page — Figma 283:3531 / 283:4556
   =========================================================== */
.vdetail[hidden] { display: none; }

.vdt-crumbs { display: flex; align-items: center; gap: 10px; padding: 0 0 20px; }
.vdt-back { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; flex-shrink: 0; }
.vdt-back img { display: block; }
.vdt-back:active { transform: scale(.94); }
.vdt-crumb { font-family: var(--inter); font-size: 14px; color: var(--text-800); }
.vdt-crumb__sep { color: var(--grey-500); }
.vdt-crumb--now { color: var(--ink); font-weight: 600; }

/* The design's two columns: content, then a rail that stays beside it. */
.vdt-cols { display: flex; align-items: flex-start; gap: 24px; }
.vdt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vdt-rail { flex: 0 0 320px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }

.vdt-card { background: #fff; border: 1px solid #dfe4ed; border-radius: 12px; padding: 20px; }
.vdt-h3 { font-family: var(--poppins); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0; }

/* ---------- gallery ---------- */
.vdt-gallery { padding: 0; overflow: hidden; }
.vdt-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--grey-100); }
.vdt-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdt-hero__count {
  position: absolute; left: 14px; bottom: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.6); color: #fff;
  font-family: var(--inter); font-size: 12px; font-weight: 500;
}
.vdt-thumbs { display: flex; gap: 10px; padding: 12px; }
.vdt-thumb {
  position: relative; flex: 1 1 0; aspect-ratio: 4 / 3;
  padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: var(--grey-100); cursor: pointer;
}
.vdt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdt-thumb.is-on { outline: 2px solid var(--g1); outline-offset: -2px; }
.vdt-thumb__more {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 16px;
}
.vdt-thumb__more small { font-size: 10px; font-weight: 500; }

/* ---------- about ---------- */
.vdt-cat { font-family: var(--inter); font-size: 12px; color: var(--text-800); margin: 0 0 4px; }
.vdt-name { font-family: var(--poppins); font-weight: 600; font-size: 24px; color: var(--ink); margin: 0; }
.vdt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; }
.vdt-verified, .vdt-place {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--inter); font-size: 13px;
}
.vdt-verified { color: var(--g1); font-weight: 600; }
.vdt-place { color: var(--text-800); }
.vdt-verified img, .vdt-place img { display: block; flex-shrink: 0; }
.vdt-lede { font-family: var(--poppins); font-weight: 600; font-size: 17px; color: var(--ink); margin: 18px 0 0; }
.vdt-copy { font-family: var(--inter); font-size: 14px; line-height: 1.6; color: var(--text-800); margin: 10px 0 0; }

.vdt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.vdt-tag {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--inter); font-size: 12px; color: var(--text-800); background: #fff;
}
.vdt-rule { height: 1px; background: var(--line); margin: 20px 0; }

.vdt-grid { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.vdt-grid__row { display: flex; align-items: baseline; gap: 20px; }
.vdt-grid dt { flex: 0 0 150px; font-family: var(--inter); font-size: 13px; color: var(--text-800); margin: 0; }
.vdt-grid dd { flex: 1 1 auto; margin: 0; font-family: var(--inter); font-size: 13px; color: var(--ink); }

/* ---------- location ---------- */
.vdt-loc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vdt-dir {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  font-family: var(--inter); font-weight: 600; font-size: 13px; color: var(--g1);
}
.vdt-dir img { display: block; }
.vdt-addr {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0;
  font-family: var(--inter); font-size: 13px; color: var(--ink);
}
.vdt-addr img { flex-shrink: 0; margin-top: 1px; }
.vdt-map { margin: 14px 0 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.vdt-map iframe { width: 100%; height: 240px; border: 0; display: block; }
.vdt-mapnote { font-family: var(--inter); font-size: 12px; color: var(--grey-500); margin: 8px 0 0; }

.vdt-report {
  align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--inter); font-size: 13px; color: var(--g1); text-decoration: underline;
}

/* ---------- promo ---------- */
.vdt-promo {
  position: relative; overflow: hidden;
  background: #151313; border-radius: 14px; padding: 36px 24px; text-align: center;
}
.vdt-promo__t { font-family: var(--poppins); font-weight: 700; font-size: 22px; color: #fff; margin: 0; }
.vdt-promo__b { font-family: var(--inter); font-size: 13px; color: rgba(255,255,255,.72); margin: 10px auto 0; max-width: 460px; }
.vdt-promo__cta {
  margin: 20px 0 0; padding: 12px 24px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3)); color: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 13px; text-transform: uppercase;
}

/* ---------- more vendors ---------- */
.vdt-more__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.vdt-more__sub { font-family: var(--inter); font-size: 13px; color: var(--text-800); margin: 4px 0 0; }
.vdt-more__all { border: 0; background: none; cursor: pointer; font-family: var(--inter); font-weight: 600; font-size: 13px; color: var(--g1); }

/* ---------- rail ---------- */
.vdt-price__lbl { font-family: var(--inter); font-size: 12px; color: var(--text-800); margin: 0; }
.vdt-price__val { font-family: var(--poppins); font-weight: 700; font-size: 26px; color: var(--ink); margin: 2px 0 0; }
.vdt-nego {
  display: inline-block; margin: 10px 0 0; padding: 3px 10px; border-radius: 99px;
  background: var(--grey-100); font-family: var(--inter); font-size: 11px; color: var(--text-800);
}
.vdt-price__note { font-family: var(--inter); font-size: 12px; line-height: 1.55; color: var(--text-800); margin: 12px 0 0; }
.vdt-contact {
  width: 100%; margin: 16px 0 0; padding: 13px 16px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3)); color: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 14px;
}
.vdt-price__warn {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0;
  font-family: var(--inter); font-size: 11px; color: var(--grey-500);
}

.vdt-id { display: flex; align-items: center; gap: 12px; }
.vdt-id__pic { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.vdt-id__body { min-width: 0; }
.vdt-id__name { font-family: var(--poppins); font-weight: 600; font-size: 14px; color: var(--ink); margin: 0; }
.vdt-id__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.vdt-chip { padding: 3px 9px; border-radius: 99px; background: var(--grey-100); font-family: var(--inter); font-size: 11px; color: var(--text-800); }
.vdt-chip--ok { background: #ecfdf3; color: #067647; }

.vdt-tips { margin: 12px 0 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.vdt-tips li { font-family: var(--inter); font-size: 12px; line-height: 1.55; color: var(--text-800); }

.vdt-vnote { border-color: #fde3dd; background: #fff8f6; }
.vdt-vnote__head { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--poppins); font-weight: 600; font-size: 13px; color: var(--ink); }
.vdt-vnote__body { font-family: var(--inter); font-size: 12px; line-height: 1.55; color: var(--text-800); margin: 8px 0 0; }

.vdt-similar {
  width: 100%; padding: 12px 16px; border: 1px solid var(--g1); border-radius: 99px;
  background: #fff; color: var(--g1); cursor: pointer;
  font-family: var(--poppins); font-weight: 600; font-size: 13px;
}
.vdt-similar:hover { background: #fff5f2; }

/* ---------- phone: one column, Figma 283:4556 ---------- */
@media (max-width: 900px) {
  .vdt-cols { flex-direction: column; gap: 16px; }
  .vdt-rail { flex: 1 1 auto; width: 100%; position: static; }
  .vdt-name { font-size: 20px; }
  .vdt-card { padding: 16px; }
  .vdt-grid__row { flex-direction: column; gap: 2px; }
  .vdt-grid dt { flex: 0 0 auto; }
  .vdt-promo { padding: 28px 18px; }
  .vdt-promo__t { font-size: 18px; }
  .vdt-more__grid .vcard { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Vendor polish, 2026-10-24
--------------------------------------------------------------------------- */

/* "View vendor" — Poppins 600, which is what every other button on this site
   uses and what reads as semibold. It had drifted to Inter 600, which at 13px
   looks like regular weight beside the price it sits next to.

   And no grey fill on hover. The card itself already lifts on hover; filling
   the button as well made the card look like it had two hover states, and the
   grey read as a disabled control rather than a live one. The border alone
   carries it. */
.vcard__go {
  font-family: var(--poppins);
  font-weight: 600;
  color: var(--ink);
}
.vcard:hover .vcard__go {
  background: #fff;
  border-color: var(--ink);
}

/* My Listing: one card, not a banner.
   The panel is ~1090px wide, and the card was taking all of it — with a 16/9
   cover that made a single listing a 1056x594 grey slab before any of its own
   content. Capped so it reads as a card showing how the listing looks to
   everyone else, which is what the screen is for. Full width on a phone,
   where the viewport is already the right size. */
.mpost-card.vmine {
  max-width: 560px;
  margin-left: 0;
  margin-right: auto;
}
@media (max-width: 760px) {
  .mpost-card.vmine { max-width: none; }
}

/* ---------------------------------------------------------------------------
   Verification offer (vendor), 2026-10-24
   Listing is free; this is the one thing a vendor pays for. One card rather
   than a row of plans to choose between, because there is nothing to choose.
--------------------------------------------------------------------------- */
.vverify {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}
.vverify__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vverify__head img { flex: none; }
.vverify__name {
  font-family: var(--poppins);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.vverify__price {
  font-family: var(--poppins);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}
.vverify__per {
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-800);
}
.vverify__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vverify__list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-800);
}
/* A tick drawn in CSS rather than an inline SVG per row: three identical
   marks in one list is the case a pseudo-element is for. */
.vverify__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--g1);
  border-bottom: 2px solid var(--g1);
  transform: rotate(-45deg);
}
.vverify__note {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--grey-500);
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
   Figma 283:4400 — the directory's "Browse more" footer row.
   Count on the left, Load more on the right. The row and the button existed
   already but had drifted from the design on every measurable axis: the row
   sat 20px below the grid instead of 8, the text was 13px instead of 14, the
   button was a 38px-tall pill-padded control with a flat border and no
   shadow.

   The button keeps Poppins rather than the kit's Inter, per Chuck
   2026-10-24: the design system's font wins over the Figma file's for
   buttons, the same call made for View vendor.
--------------------------------------------------------------------------- */
.vmore { padding-top: 8px; }

.vmore__count {
  font-size: 14px;
  line-height: 20px;
}

.vmore__btn {
  /* Padding, not a fixed height: 8px top and bottom around a 20px line box
     is the design's own 36px, and it stays right if the label ever wraps. */
  height: auto;
  padding: 8px 12px;
  border-color: #d5d7da;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #414651;
  /* The kit's skeuomorphic button: a hairline drop shadow, an inner border,
     and a 2px inner bottom edge that gives it its slight lift. */
  box-shadow:
    0 1px 2px 0 rgba(10, 13, 18, .05),
    inset 0 0 0 1px rgba(10, 13, 18, .18),
    inset 0 -2px 0 0 rgba(10, 13, 18, .05);
}
.vmore__btn:hover {
  border-color: #b8bcc4;
  background: #fafafa;
  color: var(--ink);
}
.vmore__btn:active {
  /* Press the lift out rather than moving the button. */
  box-shadow:
    inset 0 0 0 1px rgba(10, 13, 18, .18),
    inset 0 1px 2px 0 rgba(10, 13, 18, .08);
}

/* ===========================================================================
   Public vendors page — Figma 284:4906 (desktop) / 284:5204 (mobile)
   The directory itself is the dashboard's, painted by the same engine into
   [data-vendor-area]; only the page frame around it lives here.
   =========================================================================== */

.vpub { padding-top: 32px; }

.vpub__head { padding-bottom: 24px; }
.vpub__title {
  font-family: var(--poppins);
  font-size: clamp(28px, 4vw, 40px);
  /* Semibold, not bold. */
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
}
.vpub__sub {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-800);
  margin-top: 8px;
}

/* Both views are in the DOM at once and CSS picks one, the same contract the
   dashboard uses — so the engine never has to ask how wide the window is. */
.vpub__area--mobile  { display: none; }
.vpub__area--desktop { display: block; }
@media (max-width: 860px) {
  .vpub__area--desktop { display: none; }
  .vpub__area--mobile  { display: block; }
  .vpub { padding-top: 8px; }
  .vpub__head { padding-bottom: 8px; }
}

/* ---------------------------------------------------------------------------
   Figma 284:5119 / 284:5336 — the public pricing section.
   Listing is free; verification is ₦50,000 a year. Same two facts the vendor
   dashboard enforces, said once where someone deciding whether to join reads.
--------------------------------------------------------------------------- */
.vpay {
  background: #fff;
  padding: 120px 80px;
}
.vpay__in {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}
.vpay__head {
  font-family: var(--poppins);
  font-weight: 400;
  font-size: 54px;
  line-height: 1.23;
  letter-spacing: -2.16px;
  color: var(--ink);
  text-align: center;
  max-width: 1168px;
}
.vpay__cards {
  display: flex;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.vpcard {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 32px 0 rgba(15, 23, 42, .05);
  width: 410px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
/* The paid card carries the heavier border in the design — the one visual
   cue that separates the two, since neither is labelled "recommended". */
.vpcard--hi { border-width: 2px; }

.vpcard__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}
.vpcard__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vpcard__badge {
  align-self: flex-start;
  background: #f3f4f6;
  color: #0f172a;
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.vpcard__badge--dark { background: #0f172a; color: #fff; }

.vpcard__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--inter);
}
.vpcard__price b {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}
.vpcard__price span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}
.vpcard__desc {
  font-family: var(--inter);
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
}

.vpcard__rule {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0;
}

.vpcard__feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vpcard__feats-hd {
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9ca3af;
}
.vpcard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vpcard__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--inter);
  font-size: 14px;
  line-height: 20px;
  color: #374151;
}
.vpcard__tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #eafaf1;
  color: #16a34a;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.vpcard__cta { padding: 16px 24px 24px; }
.vpcard__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 14px 16px;
  border-radius: 27px;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition: transform .18s, box-shadow .18s;
}
.vpcard__btn--dark {
  background: #0f172a;
  box-shadow: 0 4px 6px rgba(15, 23, 42, .1);
}
.vpcard__btn--grad {
  font-weight: 700;
  /* The design's own angle and stops, not the site's standard g1→g2→g3. */
  background: linear-gradient(8.89deg, #ff4b2b 25%, #ff416c 50%, #ff8e53 75%);
  box-shadow: 0 4px 6px rgba(255, 65, 108, .2);
}
.vpcard__btn:hover { transform: translateY(-1px); }
.vpcard__btn--dark:hover  { box-shadow: 0 6px 12px rgba(15, 23, 42, .16); }
.vpcard__btn--grad:hover  { box-shadow: 0 6px 12px rgba(255, 65, 108, .3); }

/* The mobile frame: the cards stack and the headline drops to 32px. */
@media (max-width: 1060px) {
  .vpay { padding: 64px 16px; }
  .vpay__in { gap: 30px; }
  .vpay__head {
    /* 8.2vw hits the design's 32px at its own 390px frame, rather than the
       27px a 7vw curve gave there, and still eases down on a 320 screen. */
    font-size: clamp(26px, 8.2vw, 32px);
    line-height: 1.25;
    letter-spacing: -1.28px;
  }
  .vpay__cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .vpcard { width: 100%; max-width: 420px; }
}

/* ---------------------------------------------------------------------------
   Public page, phone — Figma 284:5204.
   The design puts two cards to a row on a phone, not one, and drops the
   "View vendor" button: the whole card is the tap target there, so a second
   one inside it is a smaller version of the same action.

   Scoped to .vpub. The dashboard's own mobile directory is approved as it
   stands and this must not reach it.
--------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .vpub .vgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  /* Two to a row means half the width, so the type steps down with it —
     the design's own sizes, not the one-up card's shrunk by eye. */
  .vpub .vcard__name  { font-size: 13px; }
  .vpub .vcard__cat,
  .vpub .vcard__place { font-size: 10px; }
  .vpub .vcard__desc  { font-size: 10px; }
  .vpub .vcard__price-lbl { font-size: 10px; }
  .vpub .vcard__price-val { font-size: 12px; }
  .vpub .vcard__go { display: none; }
  .vpub .vcard__shotwrap { height: 140px; }
}

/* ---------------------------------------------------------------------------
   Public page, phone — the 16px side gutter.
   On a phone the public page has no container around the directory, so the
   search row, the count line, the cards and the Load more row all ran to the
   screen edge while the heading above them was inset. The design (284:5204)
   gives "Discovery controls" and "Vendor results" px-16 each.

   The category row is deliberately NOT in here: it scrolls sideways, and a
   right gutter would make the next category look like the last one.
--------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* .vdetail is a sibling of the directory, not inside it, so the gutter
     added for the search row and the results never reached the vendor
     detail page — it ran edge to edge from the breadcrumb all the way down
     to "More for your celebration". */
  .vpub__area--mobile .vdetail,
  .vpub__area--mobile .vsearch--m,
  .vpub__area--mobile .vres {
    /* --pad-x, not a literal 16, because the page heading directly above
       these comes from .container and uses it. Hardcoding 16 left the search
       field four pixels inside the heading — close enough to look like a
       mistake rather than a margin. One token, so they cannot drift. */
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    box-sizing: border-box;
  }
}

/* The directory's retry, shown only when a load has actually failed. Inline
   in the count line rather than a block of its own: it replaces one sentence
   and should not push the page around. */
.vdir__retry {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--g1);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.vdir__retry:hover { color: var(--g2); }

/* ---------------------------------------------------------------------------
   Phone: contact where it can be reached.

   The rail is the second column on a desktop, so stacking it put "Starting
   from" and Contact vendor underneath the gallery, the description, the map,
   the report link, the promo band AND the three other vendors — the one
   action the page exists for was the last thing on it.

   display:contents dissolves the two column wrappers on a phone so every
   card becomes a direct child of .vdt-cols and can be ordered individually.
   The order below is the reading order: see who they are, then reach them,
   then everything else.
--------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .vdt-main, .vdt-rail { display: contents; }

  /* .vdt-cols is already a flex column here, so these are its items. */
  .vdt-cols > *,
  .vdt-main > *,
  .vdt-rail > * { order: 50; }

  .vdt-crumbs  { order: 1; }
  .vdt-gallery { order: 2; }
  .vdt-about   { order: 3; }
  .vdt-price   { order: 4; }   /* the point of the page */
  .vdt-loc     { order: 5; }
  .vdt-id      { order: 6; }
  .vdt-safety  { order: 7; }
  .vdt-vnote   { order: 8; }
  .vdt-report  { order: 9; }
  .vdt-promo   { order: 10; }
  .vdt-more    { order: 11; }
  .vdt-similar { order: 12; }

  /* display:contents drops the wrappers, and with them the gap they set on
     their own children — so the column has to space every card itself.

     align-items has to be reset too. .vdt-cols is flex-start for the desktop
     two-column layout, which stops the rail stretching to the main column's
     height. Once the wrappers dissolve, every card is a direct item of that
     same container, and flex-start sizes each one to its own content — so
     the About card stopped short of the right edge while the gallery and
     price cards, whose content is wider, happened to look fine. */
  .vdt-cols {
    gap: 16px;
    align-items: stretch;
  }
}

/* ---------------------------------------------------------------------------
   Report a listing.
   The confirm shell, with a form in it instead of a sentence.
--------------------------------------------------------------------------- */
.vrep { text-align: left; max-width: 460px; }

.vrep__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 4px;
}
.vrep__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vrep__field > span {
  font-family: var(--poppins);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
/* The dialog styles its own fields rather than borrowing .mpf__input from
   profile.css: the public vendors page does not load that stylesheet, so the
   textarea there fell back to the browser default and rendered monospace. */
.vrep .mpf__input,
.vrep .mpf__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--inter);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s;
  -webkit-appearance: none;
}
.vrep .mpf__input { height: 46px; padding: 0 14px; }
.vrep .mpf__input:focus,
.vrep .mpf__textarea:focus { border-color: var(--g1); }
.vrep .mpf__textarea { min-height: 96px; resize: vertical; }
.vrep ::placeholder { color: var(--grey-500); }

/* A vendor's page is its own screen and the design (283:4556) opens it at
   the breadcrumb. The public page's "Vendors" heading would otherwise sit
   above a breadcrumb that already says exactly where you are, so it steps
   aside while a listing is open. */
body.bn-vdt-open .vpub__head { display: none; }

/* ---------------------------------------------------------------------------
   Vendor detail — Jiji layout, 2026-10-27
   Phone: photo edge to edge with a photo count, tap for a full-screen swipe
   gallery; under it location, name, price + Negotiable, then WhatsApp and
   Call side by side. Desktop keeps its layout; the price card gets the same
   two buttons in place of the old "Contact vendor" button (which did nothing).
--------------------------------------------------------------------------- */
.vdt-hero { cursor: pointer; }
.vdt-hero__count { display: inline-flex; align-items: center; gap: 5px; }
.vdt-hero__count svg { display: block; }

.vdt-price__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2px 0 0; }
.vdt-price__row .vdt-price__val { margin: 0; }
/* No price set: "On request" is a note, not a number — smaller than a price. */
.vdt-price__val.is-request { font-size: 18px; font-weight: 600; }
.vdt-price__row .vdt-nego { margin: 0; }

/* Two equal buttons that always fit their card — min-width:0 lets them
   shrink instead of pushing out of the card. */
.vdt-chans { display: flex; gap: 8px; margin: 16px 0 0; width: 100%; }
.vdt-chan {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 12px; box-sizing: border-box;
  border-radius: 10px; text-decoration: none; white-space: nowrap;
  font-family: var(--poppins); font-weight: 600; font-size: 13px;
  transition: background-color .18s, color .18s, border-color .18s;
}
.vdt-chan span { overflow: hidden; text-overflow: ellipsis; }
.vdt-chan svg { width: 16px; height: 16px; flex-shrink: 0; }
.vdt-chan--wa    { border: 1.5px solid #25d366; color: #128c4a; background: #fff; }
.vdt-chan--wa:hover { background: #effcf4; }
.vdt-chan--phone { border: 0; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3)); }
.vdt-chan--phone:hover { filter: brightness(1.05); }
.vdt-chans2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.vdt-chan2 {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--inter); font-size: 12px; color: var(--ink); text-decoration: none;
}
.vdt-chan2 svg { width: 14px; height: 14px; }
.vdt-nochan { font-family: var(--inter); font-size: 13px; color: var(--text-800); margin: 14px 0 0; }

/* The quick block is phone-only. */
.vdt-quick { display: none; }

@media (max-width: 900px) {
  .vdt-crumbs { padding-bottom: 0; }

  /* Photo edge to edge: break out of the page's side padding. */
  .vdt-gallery {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--grey-100);
  }
  .vdt-hero { aspect-ratio: 4 / 3; }
  .vdt-hero__count { left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; }
  .vdt-thumbs { display: none; }

  .vdt-quick { display: block; order: 3; }
  .vdt-quick__place {
    display: flex; align-items: center; gap: 6px; margin: 0;
    font-family: var(--inter); font-size: 13px; color: var(--text-800);
  }
  .vdt-quick__place img { flex-shrink: 0; }
  .vdt-quick__ok {
    margin-left: auto; padding: 3px 9px; border-radius: 6px;
    background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 600;
  }
  .vdt-quick__name {
    font-family: var(--poppins); font-weight: 600; font-size: 20px; line-height: 1.3;
    color: var(--ink); margin: 12px 0 0;
  }
  .vdt-quick__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
  .vdt-quick__val { font-family: var(--poppins); font-weight: 700; font-size: 22px; color: var(--g1); }
  .vdt-quick__val.is-request { font-size: 17px; font-weight: 600; }
  .vdt-quick__nego { font-family: var(--inter); font-size: 13px; font-weight: 600; color: var(--text-800); }
  .vdt-quick .vdt-chans { margin-top: 16px; }
  .vdt-quick .vdt-chan { height: 42px; }

  /* Already said in the quick block — don't say it twice. */
  .vdt-price { display: none; }
  .vdt-about .vdt-cat,
  .vdt-about .vdt-name,
  .vdt-about .vdt-meta { display: none; }
  .vdt-about .vdt-lede { margin-top: 0; }
  .vdt-about .vdt-meta + .vdt-copy { margin-top: 0; }
  .vdt-about { order: 4; }
}

/* Phone: the breadcrumb row sits 17px from the screen edge, back chevron
   first, measured from the viewport rather than the page's own padding. */
@media (max-width: 900px) {
  .vdt-crumbs {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4px 17px 8px;
    gap: 6px;
    min-width: 0;
  }
  /* The icon is a 40px circle with the chevron 17px in; trim the button to
     the chevron so it lands on the 17px line. */
  .vdt-back { width: 22px; height: 40px; overflow: visible; }
  .vdt-back img { margin-left: -17px; }
  .vdt-crumb { white-space: nowrap; }
  .vdt-crumb--now { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* Owner's name under the business name — who you will actually deal with. */
.vowner { font-family: var(--inter); font-size: 13px; color: var(--text-800); margin: 2px 0 0; }
.vowner--lg { font-size: 14px; margin-top: 4px; }
@media (max-width: 900px) {
  .vdt-about .vdt-owner { display: none; }   /* already in the quick block */
  /* Price: smaller, so "Price on request" doesn't shout. */
  .vdt-quick__val { font-size: 18px; font-weight: 600; }
}
@media (max-width: 900px) {
  .vdt-back img { width: 40px; height: 40px; max-width: none; }
  .vdt-about .vdt-meta + .vdt-tags,
  .vdt-about .vdt-meta + .vdt-owner + .vdt-tags { margin-top: 0; }
}
@media (max-width: 900px) { .vdt-back { width: 14px; } .vdt-crumbs { gap: 8px; } }

/* ============================================================
   Guest "Join to continue" modal — same styles as wall.css
   ============================================================ */
.bngm { position: fixed; inset: 0; z-index: 9000; display: flex;
        align-items: flex-end; justify-content: center; }
.bngm[hidden] { display: none; }
.bngm__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55);
               opacity: 0; transition: opacity .25s ease; }
.bngm.is-open .bngm__scrim { opacity: 1; }
.bngm__card { position: relative; z-index: 1; background: #fff; border-radius: 24px 24px 0 0;
              width: 100%; max-width: 480px; padding: 28px 24px 36px;
              text-align: center;
              transform: translateY(100%);
              transition: transform .28s cubic-bezier(.16,1,.3,1); }
.bngm.is-open .bngm__card { transform: translateY(0); }
.bngm__x { position: absolute; top: 14px; right: 14px; background: none; border: none;
           cursor: pointer; color: #666; padding: 4px; line-height: 1;
           display: flex; align-items: center; justify-content: center; }
.bngm__x:hover { color: #111; }
.bngm__icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.bngm__title { font-family: var(--poppins); font-size: 20px; font-weight: 700;
               color: var(--ink); margin: 0 0 8px; }
.bngm__body  { font-family: var(--inter); font-size: 14px; line-height: 1.55;
               color: var(--text-800); margin: 0 0 24px; }
.bngm__btns  { display: flex; flex-direction: column; gap: 10px; }
.bngm__signup { display: block; }
.bngm__login  { display: block; background: var(--grey-100); color: var(--ink);
                font-family: var(--poppins); font-weight: 600; font-size: 14px;
                text-transform: uppercase; letter-spacing: .04em;
                padding: 12px 20px; border-radius: 99px; text-decoration: none;
                transition: background .15s; }
.bngm__login:hover { background: #e0e0e0; }

@media (min-width: 600px) {
  .bngm { align-items: center; }
  .bngm__card { border-radius: 20px; padding: 36px 32px 40px;
                transform: translateY(20px) scale(.97); opacity: 0;
                transition: transform .25s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
  .bngm.is-open .bngm__card { transform: translateY(0) scale(1); opacity: 1; }
  .bngm__btns { flex-direction: row; justify-content: center; }
  .bngm__signup, .bngm__login { flex: 1; max-width: 180px; }
}

/* ── Listing photos + verification documents as attachment cards ─────────
   (BNAttach, 2026-10-27). Cards themselves are styled by bn-attach.css. */
.vphotos { display: flex; flex-direction: column; gap: 10px; }
.vphotos__group { padding-bottom: 4px; }
.vphotos__add {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, background-color .15s;
}
.vphotos__add:hover { border-color: var(--g2); background: #fffaf8; }
.vphotos__add[hidden] { display: none; }
.vphotos__add-ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grey-100);
  display: inline-flex; align-items: center; justify-content: center; color: var(--g1);
}
.vphotos__add-ico svg { width: 20px; height: 20px; }
.vphotos__add-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vphotos__add-txt b { font-family: var(--poppins); font-weight: 600; font-size: 14px; color: var(--ink); }
.vphotos__add-txt span { font-family: var(--inter); font-size: 12px; color: var(--grey-500); }

.vdoc-slot { margin: 0 0 14px; }
.vdoc-slot__t { margin: 0 0 2px; font-family: var(--inter); font-size: 13px; font-weight: 600; color: var(--ink); }
.vdoc-slot__opt { font-weight: 400; color: var(--grey-500); }
.vdoc-slot__h { margin: 0 0 6px; font-family: var(--inter); font-size: 12px; color: var(--grey-500); }
.vdoc-pick {
  display: flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 6px;
  padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff;
  font-family: var(--poppins); font-weight: 600; font-size: 13px; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.vdoc-pick:hover { border-color: var(--g2); background: #fffaf8; }
.vdoc-pick[hidden] { display: none; }
.vdoc-pick svg { width: 18px; height: 18px; color: var(--g1); flex: none; }
.vdoc-pick__h { margin-left: auto; font-family: var(--inter); font-weight: 400; font-size: 12px; color: var(--grey-500); }
[data-vd-card] .att { margin-top: 6px; }
