/* Vendor pages (/vendors/...), generated by scripts/vendor-pages. Builds on site.css. */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.muted { color: var(--ink-soft); }
.intro-tight { padding-block: clamp(40px, 6vw, 72px); }

.crumbs { max-width: 1140px; margin: 0 auto; padding: 18px var(--gutter-r) 0 var(--gutter-l); display: flex; gap: 10px; font-size: 0.66rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.crumbs a { color: var(--plum); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--gold-line); }
.crumbs-center { padding: 0; justify-content: center; }

.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blush), var(--champagne-light)); }
.photo-placeholder span { font-family: var(--display); font-style: italic; font-size: 3rem; color: var(--rose); }

/* ---------- Vendor types (index) ---------- */
.types { list-style: none; margin: 0 auto; padding: 0; max-width: 1140px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 24px; }
.types a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); }
.type-arch { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid var(--champagne); outline: 1px solid var(--champagne); outline-offset: 5px; margin-bottom: 14px; background: var(--blush); }
.type-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.types a:hover img { transform: scale(1.04); }
.type-name { font-family: var(--display); font-size: 1.3rem; }
.type-count { font-size: 0.66rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 520px) { .types { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .type-name { font-size: 1.1rem; } }

/* ---------- Vendor list ---------- */
.vlist-section { padding-top: clamp(32px, 5vw, 56px); }
.vlist { list-style: none; margin: 0 auto; padding: 0; max-width: 1140px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; }
.vcard { position: relative; }
.vcard-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.vcard-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--champagne); background: var(--blush); margin-bottom: 10px; }
.vcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vcard-link:hover img { transform: scale(1.03); }
.vcard-place { display: flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-soft); }
.vcard-place svg { width: 13px; height: 13px; color: var(--plum); flex-shrink: 0; }
.vcard-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; }
.vcard-link:hover .vcard-name { color: var(--plum); }
.vcard-price { font-size: 0.84rem; color: var(--ink-soft); }
.vcard-picks { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.pick-icon { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,0.92); border: 1px solid var(--champagne); cursor: pointer; color: var(--plum); border-radius: 50%; box-shadow: 0 2px 10px rgba(43,36,39,0.12); }
.pick-icon svg { width: 22px; height: 22px; }
.pick-icon:hover { background: var(--white); border-color: var(--plum); }
.pick-icon[aria-pressed="true"] svg { fill: currentColor; }
.pick-icon[data-pick="yes"][aria-pressed="true"] svg path:last-child { stroke: var(--white); }

/* ---------- Vendor page ---------- */
.vendor { max-width: 1140px; margin: 0 auto; padding: 18px var(--gutter-r) clamp(56px, 8vw, 96px) var(--gutter-l); }
.vendor-top { display: grid; gap: clamp(28px, 4vw, 48px); }

/* Desktop: a strip across the page, three photos in view. Phones: one at a time. */
.gallery { --per-view: 3; --gap: 6px; position: relative; height: clamp(300px, 34vw, 440px); border: 1px solid var(--champagne); outline: 1px solid var(--champagne); outline-offset: 6px; background: var(--blush); }
.gallery[data-count="1"] { --per-view: 1; }
.gallery[data-count="2"] { --per-view: 2; }
.gallery-track { display: flex; gap: var(--gap); height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); width: 0; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery-track:focus-visible { outline-offset: -4px; }
@media (max-width: 860px) { .gallery { --per-view: 1; --gap: 0px; height: auto; aspect-ratio: 4 / 3; } }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(43,36,39,0.72); color: var(--white); font-size: 0.62rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; padding: 6px 10px; pointer-events: none; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.94); color: var(--plum-ink); border: 1px solid var(--champagne); box-shadow: 0 2px 12px rgba(43,36,39,0.18); transition: opacity .2s, background .2s; }
.gallery-btn svg { width: 20px; height: 20px; }
.gallery-btn:hover { background: var(--white); border-color: var(--plum); }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-next svg { transform: scaleX(-1); }
@media (max-width: 520px) { .gallery-btn { width: 40px; height: 40px; } .gallery-prev { left: 8px; } .gallery-next { right: 8px; } }

.vendor-head { display: flex; flex-direction: column; gap: 12px; }
/* Desktop: name, words and buttons on the left; the at-a-glance facts beside them. */
@media (min-width: 861px) {
  .vendor-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); row-gap: 12px; align-content: start; }
  .vendor-head > * { grid-column: 1; }
  .vendor-head > .facts { grid-column: 2; grid-row: 1 / span 8; align-self: start; margin-top: 0; }
}
.vendor-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); overflow-wrap: anywhere; }
.rating { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.rating svg { width: 16px; height: 16px; color: var(--plum); }
/* Descriptive words, not controls: plain italic text, nothing boxed like the buttons. */
.keywords { margin: -2px 0 0; font-family: var(--display); font-style: italic; font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft); }

.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.pick { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px; cursor: pointer; text-decoration: none;
  background: var(--white); color: var(--plum-ink); border: 1px solid var(--plum-ink); outline: 1px solid var(--gold-line); outline-offset: 3px;
  font: 600 0.66rem var(--body); letter-spacing: 2px; text-transform: uppercase; transition: background .25s, color .25s; }
.pick svg { width: 18px; height: 18px; flex-shrink: 0; }
.pick:hover { background: var(--blush); }
.pick[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--white); }
.pick[aria-pressed="true"] svg { fill: currentColor; }
.pick-yes[aria-pressed="true"] svg { fill: var(--champagne); color: var(--champagne); }
.pick-yes[aria-pressed="true"] svg path:last-child { stroke: var(--plum); }
.pick.is-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(241,230,212,0.75) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer .9s ease-out forwards; }
@keyframes shimmer { to { transform: translateX(100%); } }

.yes-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; background: var(--blush); border-left: 2px solid var(--plum); padding: 12px 14px; font-size: 0.88rem; }
.yes-note[hidden] { display: none; }
.yes-note svg { width: 18px; height: 18px; color: var(--plum); fill: var(--champagne); }
.yes-note span { flex: 1; font-weight: 600; color: var(--plum-ink); }
.yes-note .text-btn:disabled { color: var(--ink-soft); text-decoration: none; cursor: default; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--champagne); border: 1px solid var(--champagne); margin-top: 8px; }
.fact { background: var(--white); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fact small { font-size: 0.6rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-soft); }
.fact b { font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.fact-big { flex-direction: column-reverse; }
.fact-big b { font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; color: var(--plum); overflow-wrap: anywhere; }
.facts > :last-child:nth-child(odd), .fact-wide { grid-column: 1 / -1; }

.vendor-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .vendor-body { grid-template-columns: 1fr; } }
.vendor-main { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.vendor-main h2 { margin: 8px 0 14px; }
.vendor-main p { margin: 0 0 14px; max-width: 68ch; }

.included { background: var(--white); border: 1px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -7px; padding: 28px 30px; }
.included h3 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--plum); margin: 18px 0 8px; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; }
.included li { position: relative; padding-left: 18px; font-size: 0.92rem; }
.included li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border: 1px solid var(--plum); transform: rotate(45deg); }

.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(320px, 46vw, 520px); }
.mosaic-img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.mosaic-img.is-arch { grid-row: 1 / 3; border-radius: 999px 999px 0 0; }
@media (max-width: 520px) { .mosaic { height: 360px; } }

.reviews blockquote { margin: 12px 0 20px; padding: 0; text-align: center; }
.reviews blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.5; color: var(--ink); margin: 0 auto 10px; max-width: 34ch; }
.reviews blockquote p::before { content: "\201C"; } .reviews blockquote p::after { content: "\201D"; }
.reviews cite { color: var(--plum); font-style: normal; letter-spacing: 3px; }
.review { border-top: 1px solid #EFE7DC; padding: 14px 0; }
.review p { margin: 0 0 4px; }
.review small { color: var(--plum); letter-spacing: 2px; }

.contact { position: sticky; top: 24px; background: var(--white); border: 1px solid var(--champagne); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact li { display: flex; flex-direction: column; min-width: 0; }
.contact small { font-size: 0.6rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-soft); }
.contact a:not(.btn) { color: var(--plum); font-size: 0.9rem; overflow-wrap: anywhere; text-underline-offset: 3px; }
.contact .btn { text-align: center; margin-top: 4px; }
@media (max-width: 860px) { .contact { position: static; } }

.back-link { margin: clamp(40px, 6vw, 64px) 0 0; text-align: center; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--plum); font-size: 0.68rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .type-arch img, .vcard-photo img, .pick { transition: none; }
  .pick.is-shimmer::after { display: none; }
}

/* ---------------------------------------------------------------- filters
   Category pages: a sidebar on desktop, a full-screen sheet on phones.
   /js/category-filters.js fills #vfilters and #vtoolbar. */
.vbrowse { max-width: 1140px; margin: 0 auto; }
.vbrowse.has-filters { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.vbrowse.has-filters .vlist { max-width: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vresults { min-width: 0; }

/* Map on a category page: opens above the list; the list follows the map's view. */
.vmap { height: clamp(320px, 46vh, 460px); margin-bottom: 32px; border: 1px solid var(--champagne); outline: 1px solid var(--champagne); outline-offset: 6px; background: var(--blush); z-index: 0; }
.vmap[hidden] { display: none; }
.vmap.leaflet-container { font-family: var(--body); }
.vmap-error { margin: 0; padding: 24px; color: var(--ink-soft); }
.vf-map[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--white); }
.vpin span { display: block; width: 26px; height: 26px; background: var(--plum); border: 2px solid var(--white); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 8px rgba(43,36,39,0.35); }
.vmap .leaflet-popup-content-wrapper { border-radius: 0; padding: 0; }
.vmap .leaflet-popup-content { margin: 0; }
.pin-list { max-height: 260px; overflow-y: auto; }
.pin-list .pin-card + .pin-card { border-top: 1px solid var(--blush); }
.pin-card { display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; min-width: 200px; color: var(--ink); text-decoration: none; }
.pin-card img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
.pin-card b { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--plum-ink); }
.pin-card small { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--ink-soft); }
.vfilters { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; }
.vf-head { display: none; }
.vf-head h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0; color: var(--plum-ink); }
.vf-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--plum-ink); cursor: pointer; padding: 4px 8px; }
.vf-group { border: 0; border-top: 1px solid var(--champagne); margin: 0; padding: 18px 0 16px; min-width: 0; }
.vf-group:first-of-type { border-top: 0; padding-top: 0; }
.vf-group legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-size: 0.66rem; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--plum); }
.vf-field { margin-bottom: 10px; clear: both; }
.vf-field label { display: block; font-size: 0.74rem; color: var(--ink-soft); margin-bottom: 5px; }
.vf-field select, .vf-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--gold-line); border-radius: 0; background: var(--cream); font: inherit; font-size: 0.88rem; color: var(--ink); }
.vf-field select:focus, .vf-field input:focus { outline: none; border-color: var(--plum); background: var(--white); box-shadow: 0 0 0 1px var(--plum); }
.vf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; clear: both; }
.vf-sub { clear: both; margin: 8px 0 8px; font-size: 0.72rem; font-style: italic; font-family: var(--display); color: var(--ink-soft); }
.vf-chips { clear: both; display: flex; flex-wrap: wrap; gap: 7px; }
.vf-chip { position: relative; cursor: pointer; }
.vf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vf-chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--champagne); background: var(--white); font-size: 0.78rem; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.vf-chip:hover span { border-color: var(--gold-line); }
.vf-chip input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--white); }
.vf-chip input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.vf-note { font-size: 0.74rem; line-height: 1.5; color: var(--ink-soft); margin: 4px 0 16px; }
.vf-foot { display: flex; gap: 10px; padding-top: 6px; }
.vf-done { display: none; }

.vtoolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; min-height: 40px; }
.vf-open { display: none; }
.vf-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--plum); color: var(--white); font-size: 0.66rem; letter-spacing: 0; }
.vf-count { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }
.vf-clear { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vnone { text-align: center; padding: 48px 16px; border: 1px solid var(--champagne); background: var(--cream); }
.vnone p { font-family: var(--display); font-size: 1.2rem; color: var(--plum-ink); margin: 0 0 16px; }

@media (max-width: 960px) {
  .vbrowse.has-filters { display: block; }
  .vf-open { display: inline-flex; }
  .vfilters { position: fixed; inset: 0; z-index: 60; max-height: none; top: 0; background: var(--white); padding: 20px 20px 0; overflow-y: auto; display: none; }
  .vf-is-open .vfilters { display: block; }
  .vf-is-open { overflow: hidden; }
  .vf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .vf-foot { position: sticky; bottom: 0; background: var(--white); padding: 14px 0 max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--champagne); margin-top: 8px; }
  .vf-foot .btn { flex: 1; justify-content: center; }
  .vf-done { display: inline-flex; }
}
