/* ============================================================
   EV Service Marketplace (Phase 4) — public pages
   Premium Thumbtack/Urban-Company feel on the FindElectro palette.
   Font is global Poppins; classes are .vm-* to stay self-contained.
   ============================================================ */
.vm {
    /* Aligned to the FindElectro theme (--fe-*): teal #008C9D primary, navy ink. */
    --vm-primary: #00A8BD; --vm-primary-2: #008C9D; --vm-accent: #00B4C9;
    --vm-nav: #0B1424; --vm-nav-2: #0F1B2D;
    --vm-ink: #0F1B2D; --vm-muted: #64748B; --vm-line: #E2EAEE; --vm-bg: #F4FAFC;
    color: var(--vm-ink);
}
.vm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.vm-section { padding: 44px 0; }
.vm-section-tight { padding: 26px 0; }
.vm-bg { background: var(--vm-bg); }

/* ---- Hero ---- */
.vm-hero { position: relative; background: linear-gradient(135deg, var(--vm-nav) 0%, var(--vm-nav-2) 60%, #0d3b39 100%); color: #fff; overflow: hidden; }
.vm-hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,140,157,.35), transparent 70%); }
.vm-hero-inner { position: relative; z-index: 1; padding: 62px 0 72px; }
.vm-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 12px; }
.vm-hero p { color: #C6D3E4; font-size: 1.08rem; max-width: 620px; margin: 0 0 26px; }
.vm-hero-stats { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.vm-hero-stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--vm-accent); }
.vm-hero-stat span { font-size: .85rem; color: #9fb0c7; }

/* ---- Search bar ---- */
.vm-search { background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(6,15,30,.28); padding: 10px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.vm-search .vm-search-field { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; background: #F5F8FB; border-radius: 11px; padding: 0 12px; }
.vm-search .vm-search-field i { color: var(--vm-primary-2); }
.vm-search input, .vm-search select { border: 0; background: transparent; width: 100%; height: 48px; font-size: .95rem; color: var(--vm-ink); outline: none; }
.vm-search .vm-search-btn { flex: 0 0 auto; }

/* ---- Buttons ---- */
.vm-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; padding: 0 22px; height: 48px;
    border-radius: 11px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: filter .15s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.vm-btn-primary { background: linear-gradient(135deg, var(--vm-primary), var(--vm-primary-2)); color: #fff; box-shadow: 0 8px 20px rgba(0,140,157,.32); }
.vm-btn-primary:hover { color: #fff; filter: brightness(1.06); }
.vm-btn-ghost { background: #fff; border-color: var(--vm-line); color: var(--vm-ink); }
.vm-btn-ghost:hover { border-color: var(--vm-primary); color: var(--vm-primary-2); }
.vm-btn-sm { height: 38px; padding: 0 15px; font-size: .84rem; border-radius: 9px; }
.vm-btn-block { width: 100%; justify-content: center; }

/* ---- Section head ---- */
.vm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vm-head h2 { font-weight: 800; font-size: 1.5rem; margin: 0; }
.vm-head p { color: var(--vm-muted); margin: 4px 0 0; font-size: .95rem; }
.vm-head a { color: var(--vm-primary-2); font-weight: 700; text-decoration: none; font-size: .9rem; white-space: nowrap; }

/* ---- Breadcrumbs ---- */
.vm-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--vm-muted); padding: 16px 0; }
.vm-crumbs a { color: var(--vm-muted); text-decoration: none; }
.vm-crumbs a:hover { color: var(--vm-primary-2); }
.vm-crumbs .sep { opacity: .5; }

/* ---- Category / type cards ---- */
.vm-grid { display: grid; gap: 16px; }
.vm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.vm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.vm-tile { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--vm-line); border-radius: 14px;
    padding: 20px; text-decoration: none; color: var(--vm-ink); transition: transform .16s, box-shadow .16s, border-color .16s; }
.vm-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(15,27,45,.12); border-color: var(--vm-primary); color: var(--vm-ink); }
.vm-tile-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
    background: rgba(0,140,157,.12); color: var(--vm-primary-2); }
.vm-tile b { font-weight: 700; font-size: 1rem; }
.vm-tile span { color: var(--vm-muted); font-size: .82rem; }

/* ---- Service chips ---- */
.vm-cat-block { background: #fff; border: 1px solid var(--vm-line); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.vm-cat-block h3 { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.vm-cat-block h3 i { color: var(--vm-primary-2); }
.vm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px; background: #F5F8FB;
    border: 1px solid var(--vm-line); color: var(--vm-ink); text-decoration: none; font-size: .86rem; font-weight: 500; transition: background .14s, color .14s, border-color .14s; }
.vm-chip:hover { background: var(--vm-primary); color: #fff; border-color: var(--vm-primary); }

/* ---- Vendor card ---- */
.vm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vm-line); border-radius: 16px; overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s; }
.vm-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15,27,45,.14); border-color: var(--vm-primary); }
.vm-card-media { position: relative; height: 158px; background: #EEF2F7; }
.vm-card-media img { width: 100%; height: 100%; object-fit: cover; }
.vm-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,36,0) 55%, rgba(11,20,36,.55)); }
.vm-card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.vm-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 20px; color: #fff; }
.vm-badge-verified { background: #16a34a; }
.vm-badge-featured { background: linear-gradient(135deg, #FF6A3D, #FF3D6E); }
.vm-badge-open { background: rgba(11,20,36,.72); }
.vm-badge-closed { background: rgba(120,20,20,.72); }
.vm-card-logo { position: absolute; bottom: -22px; left: 16px; width: 52px; height: 52px; border-radius: 12px; border: 3px solid #fff;
    background: #fff center/cover no-repeat; box-shadow: 0 4px 12px rgba(0,0,0,.18); z-index: 3; display: grid; place-items: center; font-weight: 800; color: var(--vm-primary-2); }
.vm-card-body { padding: 28px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.vm-card-title { font-weight: 700; font-size: 1.06rem; margin: 0 0 2px; }
.vm-card-title a { color: var(--vm-ink); text-decoration: none; }
.vm-card-title a:hover { color: var(--vm-primary-2); }
.vm-card-type { font-size: .8rem; color: var(--vm-muted); margin-bottom: 10px; }
.vm-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--vm-muted); margin-bottom: 12px; }
.vm-card-meta i { color: var(--vm-primary-2); margin-right: 3px; }
.vm-stars { color: #F5A623; font-weight: 700; }
.vm-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.vm-tag { font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #F1F5F9; color: var(--vm-muted); }
.vm-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #EEF2F7; }
.vm-card-price b { color: var(--vm-ink); font-weight: 800; }
.vm-card-price span { font-size: .72rem; color: var(--vm-muted); display: block; }

/* ---- Layout: content + sidebar ---- */
.vm-split { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.vm-sidebar { background: #fff; border: 1px solid var(--vm-line); border-radius: 16px; padding: 20px; position: sticky; top: 90px; }
.vm-filter-group { padding: 14px 0; border-bottom: 1px solid var(--vm-line); }
.vm-filter-group:last-child { border-bottom: 0; }
.vm-filter-group h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--vm-muted); margin: 0 0 10px; font-weight: 700; }
.vm-field { width: 100%; height: 42px; border: 1px solid var(--vm-line); border-radius: 10px; padding: 0 12px; font-size: .9rem; color: var(--vm-ink); background: #fff; }
.vm-field:focus { outline: none; border-color: var(--vm-primary); box-shadow: 0 0 0 3px rgba(0,140,157,.15); }
.vm-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--vm-ink); padding: 4px 0; cursor: pointer; }

/* ---- Panels / detail ---- */
.vm-panel { background: #fff; border: 1px solid var(--vm-line); border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.vm-panel h3 { font-weight: 800; font-size: 1.2rem; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.vm-panel h3 i { color: var(--vm-primary-2); }

/* ---- Package cards ---- */
.vm-pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vm-pkg { border: 1px solid var(--vm-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.vm-pkg:hover { border-color: var(--vm-primary); box-shadow: 0 10px 24px rgba(15,27,45,.1); }
.vm-pkg-tier { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--vm-primary-2); }
.vm-pkg-name { font-weight: 700; font-size: 1.05rem; margin: 4px 0; }
.vm-pkg-price { font-size: 1.6rem; font-weight: 800; color: var(--vm-ink); margin-bottom: 4px; }
.vm-pkg-price small { font-size: .8rem; color: var(--vm-muted); font-weight: 600; }
.vm-pkg ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.vm-pkg ul li { font-size: .84rem; color: var(--vm-muted); display: flex; gap: 7px; }
.vm-pkg ul li i { color: #16a34a; }

/* ---- Profile hero ---- */
.vm-phero { position: relative; height: 260px; background: #142337 center/cover no-repeat; border-radius: 0 0 20px 20px; }
.vm-phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,36,.15), rgba(11,20,36,.75)); border-radius: 0 0 20px 20px; }
.vm-phead { position: relative; margin-top: -70px; z-index: 2; display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.vm-phead-logo { width: 112px; height: 112px; border-radius: 20px; border: 4px solid #fff; background: #fff center/cover no-repeat;
    box-shadow: 0 10px 26px rgba(0,0,0,.2); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--vm-primary-2); flex: 0 0 auto; }
.vm-phead-main { flex: 1 1 300px; padding-bottom: 6px; }
.vm-phead-main h1 { font-weight: 800; font-size: 1.8rem; margin: 0 0 4px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.vm-phead-sub { color: #dbe4f0; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vm-phead-sub i { color: var(--vm-accent); }
.vm-verified { display: inline-flex; align-items: center; gap: 5px; background: #16a34a; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.vm-hours { list-style: none; padding: 0; margin: 0; }
.vm-hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--vm-line); font-size: .9rem; }
.vm-hours li:last-child { border-bottom: 0; }
.vm-hours .today { font-weight: 700; color: var(--vm-primary-2); }

.vm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vm-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

.vm-empty { text-align: center; padding: 40px 20px; color: var(--vm-muted); }
.vm-empty i { font-size: 2rem; color: #c3cddb; display: block; margin-bottom: 10px; }

.vm-faq { border-bottom: 1px solid var(--vm-line); padding: 14px 0; }
.vm-faq:last-child { border-bottom: 0; }
.vm-faq b { display: block; color: var(--vm-ink); margin-bottom: 4px; }
.vm-faq p { margin: 0; color: var(--vm-muted); font-size: .9rem; }

.vm-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .vm-split { grid-template-columns: 1fr; }
    .vm-sidebar { position: static; }
    .vm-cards, .vm-pkgs, .vm-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .vm-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .vm-cards, .vm-pkgs, .vm-grid-3, .vm-grid-4, .vm-grid-2 { grid-template-columns: 1fr; }
    .vm-gallery { grid-template-columns: repeat(2, 1fr); }
    .vm-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .vm-tile, .vm-card { transition: none; }
    .vm-tile:hover, .vm-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ *
 | Booking engine (Phase 5) — form inputs, service picker, summary
 * ------------------------------------------------------------------ */
.vm-label { display: block; font-size: .8rem; font-weight: 600; color: var(--vm-ink); margin: 0 0 5px; }
.vm-input { width: 100%; border: 1px solid var(--vm-line); border-radius: 10px; padding: 10px 12px; font-size: .9rem;
    color: var(--vm-ink); background: #fff; outline: none; transition: border-color .14s, box-shadow .14s; }
.vm-input:focus { border-color: var(--vm-primary); box-shadow: 0 0 0 3px rgba(0,140,157,.14); }
select.vm-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6B80' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.vm-book-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 4px; }
.vm-book-head h1 { font-size: 1.6rem; font-weight: 800; }
.vm-book-group-label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--vm-muted); margin: 16px 0 8px; }
.vm-book-group-label:first-child { margin-top: 4px; }

.vm-book-service { border: 1px solid var(--vm-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; transition: border-color .14s, background .14s; }
.vm-book-service.is-on { border-color: var(--vm-primary); background: rgba(0,140,157,.04); }
.vm-book-service-head { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; }
.vm-book-service-head input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--vm-primary); flex: none; }
.vm-book-service-name { flex: 1; }
.vm-book-service-name b { color: var(--vm-ink); }
.vm-book-service-price { font-size: .82rem; color: var(--vm-muted); white-space: nowrap; }
.vm-book-pkgs { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; padding-left: 28px; }
.vm-book-pkg { display: flex; align-items: center; gap: 9px; font-size: .86rem; cursor: pointer; margin: 0; color: var(--vm-ink); }
.vm-book-pkg input[type=radio] { accent-color: var(--vm-primary); flex: none; }
.vm-book-pkg-price { display: block; font-size: .78rem; color: var(--vm-muted); }

.vm-book-loc { display: flex; flex-wrap: wrap; gap: 10px; }
.vm-book-loc-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--vm-line); border-radius: 10px;
    padding: 10px 14px; cursor: pointer; font-size: .88rem; margin: 0; flex: 1; min-width: 200px; }
.vm-book-loc-opt input { accent-color: var(--vm-primary); }
.vm-book-loc-opt i { color: var(--vm-primary-2); }

.vm-book-summary { position: sticky; top: 90px; }
.vm-book-summary-list { list-style: none; padding: 0; margin: 10px 0 0; }
.vm-book-summary-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--vm-line); font-size: .86rem; }
.vm-book-summary-list li b { color: var(--vm-ink); white-space: nowrap; }
.vm-book-summary-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--vm-line); }
.vm-book-summary-total b { font-size: 1.3rem; font-weight: 800; color: var(--vm-ink); }
.vm-book-cta { background: linear-gradient(135deg, rgba(0,140,157,.08), rgba(0,180,201,.05)); border-color: rgba(0,140,157,.3); }

.vm-badge-pending { background: #f59e0b; }

.vm-book-done { text-align: center; padding: 34px 26px; }
.vm-book-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center;
    font-size: 2rem; margin: 0 auto 14px; box-shadow: 0 10px 26px rgba(22,163,74,.32); }
.vm-book-done h1 { font-size: 1.7rem; font-weight: 800; }
.vm-book-ref { display: inline-block; background: var(--vm-bg); border: 1px dashed var(--vm-line); border-radius: 10px;
    padding: 8px 16px; margin: 12px 0 20px; font-size: .95rem; letter-spacing: .02em; }
.vm-book-done-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; margin: 0 0 20px; }
.vm-book-done-grid > div { background: var(--vm-bg); border-radius: 10px; padding: 12px 14px; }
.vm-book-done-grid b { display: block; margin-top: 3px; }
.vm-book-done-services { text-align: left; border-top: 1px solid var(--vm-line); padding-top: 16px; }

@media (max-width: 640px) {
    .vm-book-done-grid { grid-template-columns: 1fr; }
}
