/* Vendor profile page.
 *
 * Everything is prefixed .vp- so nothing here can restyle the vendor list or
 * the dashboard. The tokens are the service and vehicle pages': the three are
 * one design.
 *
 * Breakpoints, widest first:
 *   >= 1080  two columns, sticky contact card on the right
 *   860-1079 one column; reviews summary sits beside the review list
 *   720-859  one column, contact card directly after About
 *   <  720   full-bleed cover, no hero buttons, fixed bottom bar
 */
.vp {
  --vp-accent: #FF385C;
  /* White on #FF385C is 3.5:1. Filled buttons and small pink text use this. */
  --vp-accent-strong: #E11D48;
  --vp-accent-dark: #C81E3C;
  --vp-tint: #FFF0F3;
  --vp-brand: #B8283F;
  --vp-ink: #1C1B1F;
  --vp-body: #4A4549;
  --vp-muted: #6F6A6E;
  --vp-line: #ECE9EA;
  --vp-line-soft: #EFEDEE;
  --vp-surface: #FAF8F9;
  --vp-gutter: clamp(16px, 4vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--vp-gutter) 64px;
  color: var(--vp-ink);
}
.vp *, .vp-bar * { box-sizing: border-box; }
/* :where() so the reset weighs nothing and cannot outrank a class below. */
:where(.vp, .vp-bar) button { font: inherit; color: inherit; }
.vp a, .vp-bar a { text-decoration: none; }

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.vp-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 20px 0 14px; font-size: 13px; color: var(--vp-muted); min-width: 0;
}
.vp-crumbs a { color: var(--vp-muted); padding: 6px 0; }
.vp-crumbs a:hover { color: var(--vp-accent-dark); text-decoration: underline; }
.vp-crumbs-here {
  color: var(--vp-ink); font-weight: 600; min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.vp-cover {
  position: relative; height: clamp(220px, 26vw, 340px); border-radius: 24px;
  overflow: hidden; background: var(--vp-ink);
}
/* No cover uploaded: the brand gradient, never an empty grey box. */
.vp-cover--none {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(135deg, #B8283F, #FF385C);
}
.vp-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-cover-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,12,14,.35) 0%, rgba(14,12,14,0) 35%, rgba(14,12,14,0) 60%, rgba(14,12,14,.35) 100%);
}
.vp-cover-actions { position: absolute; right: clamp(12px, 2vw, 20px); top: clamp(12px, 2vw, 18px); display: flex; gap: 8px; }
.vp-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--vp-ink); font-weight: 700; font-size: 13px; cursor: pointer;
}
.vp-pill:hover { background: #fff; color: var(--vp-accent-dark); }

.vp-id {
  display: flex; align-items: flex-end; gap: clamp(14px, 2.4vw, 24px); flex-wrap: wrap;
  padding: 0 clamp(16px, 2.4vw, 28px);
}
.vp-logo {
  position: relative; flex: none; width: 128px; height: 128px; margin-top: -64px;
  border-radius: 50%; padding: 5px; background: #fff; box-shadow: 0 10px 30px rgba(28,27,31,.18);
}
.vp-logo-initials {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--vp-brand); color: #fff; font-weight: 800; font-size: 40px; letter-spacing: -0.02em;
}
.vp-logo-img {
  position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px);
  border-radius: 50%; object-fit: cover; display: block; background: #fff;
}
.vp-logo-tick {
  position: absolute; right: 4px; bottom: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: #22A05A; border: 3px solid #fff; display: grid; place-items: center;
}
.vp-id-text { flex: 1 1 300px; min-width: 0; padding-top: 14px; }
.vp-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vp-name {
  margin: 0; font-family: inherit; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.03em; color: var(--vp-ink); overflow-wrap: anywhere; min-width: 0;
}
.vp-verified {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: #EEF8F1; color: #1C7A43; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.vp-meta { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--vp-muted); }
.vp-meta-type { font-weight: 600; color: var(--vp-body); overflow-wrap: anywhere; }
.vp-meta-city, .vp-meta-rating { display: inline-flex; align-items: center; gap: 6px; }
/* 32px to look at, 44px to hit. */
.vp-meta-rating { position: relative; color: var(--vp-ink); font-weight: 700; min-height: 32px; }
.vp-meta-rating::before { content: ""; position: absolute; inset: -6px -4px; }
.vp-meta-rating:hover { text-decoration: underline; color: var(--vp-ink); }
.vp-meta-count { font-weight: 500; color: var(--vp-muted); }
.vp-meta-new { padding: 3px 10px; border-radius: 999px; background: var(--vp-surface); border: 1px solid var(--vp-line-soft); font-size: 12px; font-weight: 700; color: var(--vp-body); }
.vp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 14px; }
.vp-hero-actions:empty { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.vp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  white-space: nowrap; cursor: pointer; border: 0;
}
.vp-btn--primary { background: var(--vp-accent-strong); color: #fff; box-shadow: 0 6px 18px rgba(225,29,72,.28); }
.vp-btn--primary:hover { background: var(--vp-accent-dark); color: #fff; }
.vp-btn--outline { border: 1.5px solid var(--vp-ink); color: var(--vp-ink); background: #fff; }
.vp-btn--outline:hover { background: #F6F4F5; color: var(--vp-ink); }
.vp-btn--text { min-height: 44px; background: transparent; color: var(--vp-accent-strong); font-size: 14px; border-radius: 12px; }
.vp-btn--text:hover { background: var(--vp-tint); color: var(--vp-accent-dark); }
.vp-btn--pinkline { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--vp-accent-strong); border-radius: 12px; background: #fff; color: var(--vp-accent-strong); font-size: 14px; }
.vp-btn--pinkline:hover { background: var(--vp-tint); color: var(--vp-accent-dark); }
.vp-btn--dark { min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--vp-ink); color: #fff; font-size: 14px; }
.vp-btn--dark:hover { background: #000; color: #fff; }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.vp-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin-top: clamp(20px, 3vw, 28px); padding: 6px; border: 1px solid var(--vp-line-soft);
  border-radius: 999px; background: var(--vp-surface); width: fit-content; max-width: 100%;
}
.vp-tabs::-webkit-scrollbar { display: none; }
.vp-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; color: var(--vp-muted); font-weight: 700; font-size: 14px; white-space: nowrap;
}
.vp-tab:hover { color: var(--vp-ink); }
.vp-tab.is-on { background: #fff; color: var(--vp-ink); box-shadow: 0 2px 10px rgba(28,27,31,.08); }
.vp-tab-count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--vp-line);
  color: var(--vp-body); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.vp-tab.is-on .vp-tab-count { background: var(--vp-accent-strong); color: #fff; }

/* ── Layout ───────────────────────────────────────────────────────────── */
/* minmax(0, 1fr), never a bare 1fr: an fr track's minimum is its content, so
   one unbreakable review would widen the column and push the page sideways. */
.vp-layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "about" "contact" "rest";
  column-gap: clamp(24px, 4vw, 48px); row-gap: clamp(28px, 4vw, 40px);
  align-items: start; padding-top: clamp(24px, 3vw, 32px);
}
.vp-about { grid-area: about; min-width: 0; padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--vp-line-soft); border-radius: 20px; }
.vp-about--none { display: none; }
.vp-about-title { margin: 0 0 10px; font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--vp-ink); overflow-wrap: anywhere; }
.vp-about .user-text { margin: 0; font-size: 16px; color: var(--vp-body); }
.vp-offers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vp-about-title + .vp-offers { margin-top: 4px; }
.vp-offer { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--vp-tint); color: var(--vp-accent-dark); font-size: 13px; font-weight: 700; }

.vp-contact {
  grid-area: contact; min-width: 0; padding: clamp(20px, 2.4vw, 24px); border: 1px solid var(--vp-line);
  border-radius: 22px; background: #fff; box-shadow: 0 12px 40px rgba(28,27,31,.08);
}
.vp-contact-label { font-size: 13px; color: var(--vp-muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vp-rows { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 14px; }
.vp-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; min-width: 0; }
.vp-row:hover { background: var(--vp-surface); }
.vp-row-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--vp-tint); color: var(--vp-accent-strong); display: grid; place-items: center; flex: none; }
.vp-row-text { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; min-height: 44px; color: var(--vp-ink); }
a.vp-row-text:hover { color: var(--vp-ink); }
.vp-row-key { display: block; font-size: 12px; color: var(--vp-muted); }
.vp-row-value { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
/* 32px to look at, 44px to hit. */
.vp-copy {
  position: relative; flex: none; height: 32px; padding: 0 10px; border: 1px solid var(--vp-line);
  border-radius: 999px; background: #fff; color: var(--vp-body); font-size: 12px; font-weight: 700; cursor: pointer;
}
.vp-copy::before { content: ""; position: absolute; inset: -6px -4px; }
.vp-copy:hover { border-color: var(--vp-ink); }
.vp-copy.is-done { color: #1C7A43; border-color: #BFE3CD; }
.vp-contact .btn-block + .btn-block { margin-top: 10px; }
.vp-contact .vp-btn--text { margin-top: 6px; }
.vp-copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.vp-rest { grid-area: rest; min-width: 0; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 52px); }
#services.vp-anchor { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 52px); }
/* Where an in-page link lands: clear of the fixed site header. */
.vp-anchor, #overview { scroll-margin-top: calc(var(--nav-height, 150px) + 16px); }
.vp-section { min-width: 0; }
.vp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vp-section-head .vp-h2 { margin-bottom: 0; }
.vp-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--vp-accent-strong); text-transform: uppercase; }
.vp-h2 { margin: 4px 0 16px; font-family: inherit; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: var(--vp-ink); overflow-wrap: anywhere; }
.vp-h2-count { color: var(--vp-muted); font-weight: 700; }

/* ── Listing cards: one system for services, packages and vehicles ────── */
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.vp-card {
  display: flex; flex-direction: column; gap: 14px; padding: 10px; border: 1px solid var(--vp-line-soft);
  border-radius: 20px; background: #fff; color: var(--vp-ink); min-width: 0;
  transition: box-shadow .2s, transform .2s;
}
.vp-card:hover { color: var(--vp-ink); }
.vp-card-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #F3F1F2; }
.vp-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.vp-card-pill {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.95); font-size: 11px; font-weight: 700; color: var(--vp-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vp-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 6px 6px; }
.vp-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.vp-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vp-card-tag { padding: 3px 9px; border-radius: 999px; background: #F6F4F5; color: var(--vp-body); font-size: 12px; font-weight: 600; }
.vp-card-tag--deal { background: #EEF8F1; color: #1C7A43; }
.vp-card-seats { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--vp-muted); }
.vp-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.vp-card-price { min-width: 0; }
.vp-card-price-label { display: block; font-size: 11px; font-weight: 700; color: var(--vp-muted); letter-spacing: .04em; text-transform: uppercase; }
.vp-card-amount { display: block; font-size: 20px; font-weight: 800; color: var(--vp-accent); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.vp-card-amount--text { font-size: 15px; color: var(--vp-ink); }
.vp-card-unit { font-size: 13px; font-weight: 600; color: var(--vp-muted); letter-spacing: 0; }
.vp-card-view { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--vp-tint); color: var(--vp-accent-strong); font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
@media (hover: hover) {
  .vp-card:hover { box-shadow: 0 14px 34px rgba(28,27,31,.1); transform: translateY(-2px); }
  .vp-card:hover .vp-card-photo img { transform: scale(1.05); }
}
.vp-more, .vp-bulk {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 0 18px;
  border: 1px solid var(--vp-line); border-radius: 12px; background: #fff; color: var(--vp-ink);
  font-weight: 700; font-size: 14px; cursor: pointer; max-width: 100%;
}
.vp-bulk { padding: 8px 18px; }
.vp-more:hover, .vp-bulk:hover { border-color: var(--vp-ink); color: var(--vp-ink); }

/* ── Reviews ──────────────────────────────────────────────────────────── */
.vp-reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vp-summary { padding: 20px; border-radius: 20px; background: var(--vp-surface); border: 1px solid var(--vp-line-soft); }
.vp-summary-score { display: flex; align-items: baseline; gap: 8px; }
.vp-summary-avg { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.vp-summary-of { font-size: 14px; color: var(--vp-muted); font-weight: 600; }
.vp-stars { display: flex; gap: 3px; margin-top: 8px; }
.vp-stars--small { gap: 2px; margin-top: 3px; }
.vp-summary-based { font-size: 13px; color: var(--vp-muted); margin-top: 6px; }
.vp-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.vp-bar-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--vp-body); }
.vp-bar-track { height: 6px; border-radius: 3px; background: var(--vp-line); overflow: hidden; }
.vp-bar-fill { display: block; height: 100%; background: var(--vp-accent); border-radius: 3px; }
.vp-bar-count { text-align: right; color: var(--vp-muted); }
.vp-review-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vp-review { padding: 18px 20px; border: 1px solid var(--vp-line-soft); border-radius: 20px; background: #fff; min-width: 0; }
.vp-review-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vp-review-avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.vp-review-who { flex: 1; min-width: 0; }
.vp-review-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-review-date { flex: none; font-size: 12px; color: var(--vp-muted); }
.vp-review .user-text { font-size: 15px; line-height: 1.6; color: var(--vp-body); overflow-wrap: anywhere; }
.vp-review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vp-review-photos img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.vp-review-reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--vp-surface); border-left: 3px solid var(--vp-brand); }
.vp-review-reply-label { font-size: 12px; font-weight: 800; color: var(--vp-body); margin-bottom: 4px; overflow-wrap: anywhere; }
.vp-review-reply .user-text { margin: 0; font-size: 14px; }
.vp-all-reviews { align-self: flex-start; }
.vp-empty { padding: 28px 20px; border: 1px dashed var(--vp-line); border-radius: 20px; text-align: center; background: var(--vp-surface); }
.vp-empty-title { margin: 0; font-size: 17px; font-weight: 800; }
.vp-empty-text { margin: 6px 0 0; font-size: 14px; color: var(--vp-muted); overflow-wrap: anywhere; }
.vp-empty .vp-btn { margin-top: 16px; }

/* ── Fixed UI ─────────────────────────────────────────────────────────── */
.vp-bar { display: none; }
.vp-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1300;
  padding: 12px 18px; border-radius: 999px; background: #1C1B1F; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 28px rgba(28,27,31,.3); max-width: calc(100vw - 32px);
}

@media (min-width: 860px) {
  .vp-reviews { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (min-width: 1080px) {
  .vp-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "about contact" "rest contact"; }
  /* With no About card the first row is empty; let the rest start at the top. */
  .vp-layout:has(.vp-about--none) { grid-template-areas: "rest contact"; }
  .vp-contact { position: sticky; top: calc(var(--nav-height, 150px) + 16px); }
  .vp-reviews { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1240px) {
  .vp-reviews { grid-template-columns: 240px minmax(0, 1fr); }
}
/* A short desktop window: a sticky card taller than the space under the
   header would have its last button permanently off screen. */
@media (min-width: 1080px) and (max-height: 759.98px) {
  .vp-contact { position: static; }
}
@media (max-width: 719.98px) {
  .vp { padding-bottom: 28px; }
  .vp-cover { height: clamp(170px, 48vw, 260px); border-radius: 0; margin: 0 calc(-1 * var(--vp-gutter)); }
  .vp-id { padding: 0; }
  .vp-logo { width: 96px; height: 96px; margin-top: -48px; }
  .vp-logo-initials { font-size: 30px; }
  .vp-hero-actions { display: none; }
  .vp-pill { padding: 0; }
  .vp-pill-text { display: none; }
  .vp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: flex; align-items: center; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--vp-line, #ECE9EA); box-shadow: 0 -6px 20px rgba(28,27,31,.06);
  }
  .vp-bar-call { width: 48px; height: 48px; flex: none; border: 1.5px solid #1C1B1F; border-radius: 14px; color: #1C1B1F; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; }
  .vp-bar-call--wide { flex: 1; width: auto; }
  .vp-bar-inquiry { flex: 1; min-width: 0; height: 48px; border-radius: 14px; background: #E11D48; color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; white-space: nowrap; }
  .vp-bar-inquiry:hover { color: #fff; }
  /* Room for the bar under the footer, and the assistant launcher lifted
     clear of it. */
  body:has(.vp-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.vp-bar) #planveta-assistant { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .vp-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 399.98px) {
  .vp-review-date { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-card, .vp-card-photo img { transition: none; }
  .vp-card:hover { transform: none; }
  .vp-card:hover .vp-card-photo img { transform: none; }
}
