/* Public vendor listing: directory card + profile popup content.
   Shared by /vendors.html and /vendor/public-profile.html; markup comes from
   /js/vendor-listing-render.js. The surrounding page supplies the grid; the
   profile popup shell (.vd-backdrop > .vd-modal > .vd-modal-close) is shared
   here so the directory and the planner open the same popup. */

/* Card */
.vd-card { background:var(--color-surface); border:1px solid var(--color-border-block); border-radius:14px; overflow:hidden; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; display:flex; flex-direction:column; }
.vd-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(120,100,80,0.12); }
.vd-card-photo { aspect-ratio:4/3; background:linear-gradient(135deg,var(--color-surface-warm),var(--color-surface-sand)); display:flex; align-items:center; justify-content:center; color:var(--color-text-muted); font-family: var(--font-subheader); font-size:2rem; }
.vd-card-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.vd-card-body { padding:16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.vd-card-name { font-size:1.15rem; font-weight:600; color:var(--color-text); }
.vd-card-meta { font-size:0.85rem; color:var(--color-accent-clay); }
.vd-card-loc { font-size:0.85rem; color:var(--color-accent-deep); }
.vd-card-desc { font-size:0.88rem; color:var(--color-accent-deep); margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vd-price { color:var(--color-success); font-weight:700; letter-spacing:1px; font-family: var(--font-number); }

/* Profile popup shell */
.vd-backdrop { position:fixed; inset:0; background:rgba(30,24,18,0.55); display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; overflow-y:auto; z-index:2000; }
.vd-backdrop.hidden { display:none; }
.vd-modal { position:relative; background:var(--color-surface); border-radius:16px; max-width:640px; width:100%; overflow:hidden; text-align:left; }
.vd-modal-close { position:absolute; top:16px; right:20px; z-index:1; background:rgba(255,255,255,0.9); border:none; border-radius:50%; width:34px; height:34px; font-size:1.1rem; cursor:pointer; color:var(--color-text); display:inline-flex; align-items:center; justify-content:center; padding:0; }
.vd-modal-close:hover { background:var(--color-surface); }

/* Profile popup content */
.vd-modal-banner { aspect-ratio:16/7; background:linear-gradient(135deg,var(--color-surface-warm),var(--color-surface-sand)); }
.vd-modal-banner img { width:100%; height:100%; object-fit:cover; display:block; }
.vd-modal-body { padding:24px; }
.vd-modal-title { font-family: var(--font-subheader); font-weight:normal; font-size:1.8rem; color:var(--color-text-strong); }
.vd-modal-sub { color:var(--color-accent-clay); margin-bottom:12px; }
.vd-section { margin:16px 0; }
.vd-section h4 { font-size:0.8rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--color-accent-clay); margin-bottom:8px; }
.vd-about { color:var(--color-text); line-height:1.6; white-space:pre-line; }
.vd-badges { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.vd-badge { background:var(--color-surface-warm); border:1px solid var(--color-border-linen); border-radius:16px; padding:3px 10px; font-size:0.85rem; }
.vd-services { list-style:disc; padding-left:20px; color:var(--color-text); line-height:1.6; }
.vd-social { display:flex; flex-wrap:wrap; gap:10px; }
.vd-social a { font-size:0.9rem; color:var(--color-success); text-decoration:none; border:1px solid var(--color-border-linen); border-radius:14px; padding:3px 10px; }
.vd-social a:hover { background:var(--color-surface-warm); }
.vd-contact div { margin-bottom:4px; }
.vd-contact-label { display:inline-block; min-width:64px; margin-right:8px; font-size:0.8rem; color:var(--color-accent-clay); }
.vd-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:8px; }
.vd-gallery img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; border:1px solid var(--color-border); }
.vd-cal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.vd-cal-head h4 { margin-bottom:0; }
.vd-cal-nav { display:flex; gap:4px; }
.vd-cal-label { display:inline-flex; gap:4px; margin-right:auto; }
.vd-cal-select { height:26px; padding:0 4px; border:1px solid var(--color-border-linen); border-radius:6px; background:var(--color-surface); color:var(--color-text); font:inherit; font-size:0.8rem; cursor:pointer; width:auto; margin:0; }
.vd-cal-btn { width:26px; height:26px; border:1px solid var(--btn-secondary-border); border-radius:50%; background:var(--btn-secondary-bg); color:var(--btn-secondary-text); font-size:1rem; line-height:1; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.vd-cal-btn:hover:not(:disabled) { background:var(--color-surface-warm); }
.vd-cal-btn:disabled { opacity:0.35; cursor:default; }
.vd-cal { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.vd-cal-dow { text-align:center; font-size:0.66rem; color:var(--color-text-disabled); }
.vd-cal-day { aspect-ratio:1; border:1px solid var(--color-border); border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:0.75rem; color:var(--color-text-secondary); }
.vd-cal-day.empty { border:none; }
.vd-cal-day.available { background:var(--color-surface-warm); border-color:var(--color-success); }
.vd-cal-day.partial { background:#fbf1d6; border-color:var(--color-border); }
.vd-cal-day.unavailable { background:var(--color-surface-warm); border-color:#e6b6b6; color:#a33; }
.vd-legend { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; font-size:0.78rem; color:var(--color-text-muted); }
.vd-legend span { display:inline-flex; align-items:center; gap:5px; }
.vd-swatch { width:11px; height:11px; border-radius:3px; display:inline-block; }
.vd-swatch.available { background:var(--color-success); } .vd-swatch.partial { background:var(--color-surface-warm); } .vd-swatch.unavailable { background:#e6b6b6; }
.vd-cta { margin-top:20px; padding:16px; background:var(--color-surface-warm); border-radius:12px; text-align:center; }
.vd-cta p { color:var(--color-accent-deep); margin-bottom:10px; font-family: var(--font-body); }
.vd-cta a { display:inline-block; background:var(--color-primary-hover); color:var(--color-surface-cream); padding:8px 20px; border-radius:20px; text-decoration:none; font-size:0.9rem; }
.vd-cta a:hover { background:var(--color-primary); }
