/*
 * VNEXPOWINE interactive floor plan
 *
 * Every rule is scoped under .vnexpo-fp and every class carries a vfp- prefix,
 * so nothing here can collide with the theme or with Elementor's own classes
 * (.card, .btn, .legend and friends are all taken on a live WordPress site).
 */

.vnexpo-fp{
  --vfp-ink:#191319;
  --vfp-ink-soft:#514a52;
  --vfp-ink-faint:#8a838b;
  --vfp-wine:#7c1c2c;
  --vfp-wine-deep:#5a1220;
  --vfp-wine-tint:#f0e1e3;
  --vfp-brass:#a8823f;
  --vfp-paper:#e8e6e0;
  --vfp-surface:#fff;
  --vfp-line:#c9c5bd;
  --vfp-line-soft:#e0ddd6;
  --vfp-green:#2f6b4f;
  --vfp-amber:#8a6410;
  --vfp-shadow:0 1px 2px rgba(25,19,25,.06),0 8px 24px -16px rgba(25,19,25,.28);

  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:15px;
  line-height:1.55;
  color:var(--vfp-ink);
  -webkit-font-smoothing:antialiased;
}
.vnexpo-fp *,.vnexpo-fp *::before,.vnexpo-fp *::after{box-sizing:border-box}

/* Neutralise theme styling on the elements we control. */
.vnexpo-fp p,.vnexpo-fp h2,.vnexpo-fp h3,.vnexpo-fp dl,.vnexpo-fp dd,.vnexpo-fp dt{margin:0;padding:0}
.vnexpo-fp button{
  font:inherit;color:inherit;cursor:pointer;margin:0;
  border-radius:2px;text-transform:none;letter-spacing:normal;box-shadow:none;
}
.vnexpo-fp input{font:inherit;color:inherit;margin:0}
.vnexpo-fp button:focus-visible,.vnexpo-fp input:focus-visible,.vnexpo-fp [tabindex]:focus-visible{
  outline:2px solid var(--vfp-wine);outline-offset:2px
}
.vnexpo-fp .screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap
}

/* ---------- Heading ---------- */
.vfp-head{text-align:center;margin-bottom:22px}
.vfp-title{
  font-family:"Playfair Display",Georgia,serif;font-weight:700;
  font-size:clamp(1.5rem,4vw,2.4rem);line-height:1.1;color:var(--vfp-wine-deep);
}
.vfp-when{
  display:inline-block;margin-top:12px!important;background:var(--vfp-wine);color:#fff;
  padding:6px 18px;font-size:clamp(.78rem,2.2vw,.9rem);font-weight:500
}

/* ---------- Layout ---------- */
.vfp-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.vnexpo-fp.vfp-no-rail .vfp-layout{grid-template-columns:minmax(0,1fr)}
@media (max-width:1080px){ .vfp-layout{grid-template-columns:minmax(0,1fr)} }

.vfp-card{
  background:var(--vfp-surface);border:1px solid var(--vfp-line);
  border-radius:3px;box-shadow:var(--vfp-shadow)
}
.vfp-pad{padding:16px}
.vfp-h{font-family:"Playfair Display",Georgia,serif;font-size:19px;font-weight:500;line-height:1.3}
.vfp-muted{color:var(--vfp-ink-faint);font-size:13.5px}
.vfp-small{font-size:12.5px}
.vfp-row-between{display:flex;justify-content:space-between;align-items:baseline;gap:10px}

/* ---------- Toolbar ---------- */
.vfp-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--vfp-line-soft)}
.vfp-search{position:relative;flex:1 1 190px;min-width:0}
.vfp-search input{
  width:100%;padding:9px 34px 9px 12px;border:1px solid var(--vfp-line);
  border-radius:2px;background:#fdfcfa;box-shadow:none
}
.vfp-search button{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:none;padding:5px 7px;color:var(--vfp-ink-faint);font-size:13px}
.vfp-seg{display:flex;border:1px solid var(--vfp-line);border-radius:2px;overflow:hidden;flex:none}
.vfp-seg button{border:0;background:#fdfcfa;padding:9px 13px;font-size:13.5px;color:var(--vfp-ink-soft);border-left:1px solid var(--vfp-line-soft);white-space:nowrap;border-radius:0}
.vfp-seg button:first-child{border-left:0}
.vfp-seg button[aria-pressed="true"]{background:var(--vfp-wine);color:#fff}
.vfp-zoomers{display:flex;gap:6px;margin-left:auto}
.vfp-icon{width:36px;height:36px;border:1px solid var(--vfp-line);background:#fdfcfa;display:grid;place-items:center;font-size:15px;color:var(--vfp-ink-soft);flex:none;padding:0}
.vfp-icon:hover{border-color:var(--vfp-wine);color:var(--vfp-wine)}
.vfp-icon-wide{width:auto;padding:0 12px;font-size:13.5px}

/* ---------- Plan ---------- */
.vfp-stage{position:relative;background:#fbfaf7;overflow:hidden}
.vfp-stage::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(var(--vfp-line-soft) 1px,transparent 1px),
                   linear-gradient(90deg,var(--vfp-line-soft) 1px,transparent 1px);
  background-size:28px 28px;opacity:.5
}
/* Height is set directly. aspect-ratio combined with max-height makes the
   browser derive the width back from the clamped height, which shrinks the
   box and leaves a white gap beside it inside the card. */
.vfp-box{width:100%;height:clamp(420px,72vh,780px)}
@media (max-width:640px){ .vfp-box{height:clamp(360px,62vh,560px)} }

#vfp-plan{display:block;width:100%;height:100%;touch-action:none;cursor:grab;position:relative}
#vfp-plan.vfp-dragging{cursor:grabbing}

.vnexpo-fp.vfp-fs .vfp-plan-card{position:fixed;inset:0;z-index:99999;border:0;border-radius:0;margin:0}
.vnexpo-fp.vfp-fs .vfp-box{height:calc(100dvh - 108px)}

/* booths */
.vfp-booth rect{stroke:#6f6a70;stroke-width:.7;fill:#fff;transition:fill .12s ease}
.vfp-booth text{font-family:"Inter",sans-serif;font-size:6.6px;fill:var(--vfp-wine);text-anchor:middle;dominant-baseline:central;pointer-events:none}
.vfp-booth{cursor:pointer}
.vfp-booth:hover rect{fill:#fdf3d8}
.vfp-booth.vfp-taken rect{fill:#f4e9eb}
.vfp-booth.vfp-taken .vfp-x{stroke:#6f6a70;stroke-width:.7}
.vfp-booth.vfp-taken{cursor:not-allowed}
.vfp-booth.vfp-taken:hover rect{fill:#eeddde}
.vfp-booth.vfp-pending rect{fill:#f6efdc}
.vfp-booth.vfp-pending .vfp-x{stroke:var(--vfp-amber)}
.vfp-booth.vfp-picked rect{fill:var(--vfp-brass);stroke:#6b511f;stroke-width:1.2}
.vfp-booth.vfp-picked text{fill:#fff;font-weight:600}
.vfp-booth.vfp-active rect{stroke:var(--vfp-wine);stroke-width:1.6}
.vfp-booth.vfp-dim{opacity:.2}
.vfp-booth.vfp-flash rect{fill:#ffe9a8}

.vfp-wall{fill:none;stroke:#2a2429;stroke-width:2.4}
.vfp-wall-thin{fill:none;stroke:#585158;stroke-width:1}
.vfp-fixture{fill:none;stroke:#585158;stroke-width:1}
.vfp-solid{fill:#2a2429}
.vfp-lab{font-family:"Inter",sans-serif;font-size:7.4px;font-weight:600;fill:#332d33;letter-spacing:.04em}
.vfp-lab.vfp-lab-sm{font-size:6.2px;font-weight:500;fill:#6b656b}
.vfp-lab.vfp-lab-lg{font-size:11px;font-weight:600}

.vfp-tip{
  position:absolute;pointer-events:none;z-index:5;background:var(--vfp-ink);color:#fff;
  padding:5px 9px;border-radius:2px;font-size:12.5px;white-space:nowrap;
  opacity:0;transform:translate(-50%,-140%);transition:opacity .1s
}
.vfp-tip.vfp-on{opacity:1}

.vfp-legend{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;padding:11px 14px;border-top:1px solid var(--vfp-line-soft);font-size:13px;color:var(--vfp-ink-soft)}
.vfp-legend span{display:inline-flex;align-items:center;gap:8px}
.vfp-legend .vfp-hint{color:var(--vfp-ink-faint)}
.vfp-swatch{width:17px;height:17px;border:1px solid #6f6a70;background:#fff;flex:none;position:relative}
.vfp-swatch-booked{background:#f4e9eb}
.vfp-swatch-booked::before,.vfp-swatch-booked::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top right,transparent 46%,#6f6a70 46%,#6f6a70 54%,transparent 54%)
}
.vfp-swatch-booked::before{transform:scaleX(-1)}
.vfp-swatch-sel{background:var(--vfp-brass);border-color:#6b511f}

/* ---------- Rail ---------- */
.vfp-rail{display:flex;flex-direction:column;gap:14px}
.vfp-counts{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
.vfp-counts>div{padding:14px 6px;border-left:1px solid var(--vfp-line-soft)}
.vfp-counts>div:first-child{border-left:0}
.vfp-counts b{display:block;font-family:"Playfair Display",Georgia,serif;font-size:27px;font-weight:500;line-height:1.1}
.vfp-counts small{font-size:12px;color:var(--vfp-ink-faint)}
.vfp-counts .vfp-ok b{color:var(--vfp-green)}
.vfp-counts .vfp-no b{color:var(--vfp-wine)}
.vfp-meter{height:5px;background:var(--vfp-line-soft);border-radius:99px;overflow:hidden;margin:0 16px 16px}
.vfp-meter i{display:block;height:100%;background:var(--vfp-wine)}

.vfp-detail-id{font-family:"Playfair Display",Georgia,serif;font-size:34px;line-height:1.05;margin:2px 0 6px}
.vfp-rows{margin-top:12px;font-size:13.5px}
.vfp-rows>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--vfp-line-soft)}
.vfp-rows dt{color:var(--vfp-ink-faint)}
.vfp-rows dd{margin:0;text-align:right}
.vfp-pill{display:inline-block;padding:2px 9px;border-radius:99px;font-size:12px;font-weight:500}
.vfp-pill-ok{background:#e4efe8;color:var(--vfp-green)}
.vfp-pill-no{background:var(--vfp-wine-tint);color:var(--vfp-wine)}
.vfp-pill-hold{background:#f6efdc;color:var(--vfp-amber)}

.vfp-btn{
  display:block;width:100%;margin-top:14px;padding:11px 14px;
  border:1px solid var(--vfp-wine);background:var(--vfp-wine);color:#fff;
  font-weight:500;text-align:center;line-height:1.4
}
.vfp-btn:hover{background:var(--vfp-wine-deep);border-color:var(--vfp-wine-deep)}
.vfp-btn-ghost{background:transparent;color:var(--vfp-wine)}
.vfp-btn-ghost:hover{background:var(--vfp-wine-tint);color:var(--vfp-wine-deep)}
.vfp-btn[disabled]{opacity:.5;cursor:not-allowed}
.vfp-link{background:none;border:0;padding:0;color:var(--vfp-wine);font-size:13px;text-decoration:underline;text-underline-offset:2px}

.vfp-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;max-height:172px;overflow:auto}
.vfp-chip{border:1px solid var(--vfp-line);background:#fdfcfa;padding:5px 9px;font-size:12.5px;color:var(--vfp-ink-soft)}
.vfp-chip:hover{border-color:var(--vfp-wine);color:var(--vfp-wine)}
.vfp-chip.vfp-on{background:var(--vfp-brass);border-color:#6b511f;color:#fff}

/* ---------- Modal ---------- */
.vfp-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px}
.vfp-modal[hidden]{display:none}
.vfp-modal-backdrop{position:absolute;inset:0;background:rgba(25,19,25,.55);backdrop-filter:blur(2px)}
.vfp-modal-card{
  position:relative;width:min(460px,100%);max-height:90vh;overflow:auto;
  background:var(--vfp-surface);border-radius:4px;padding:26px;
  box-shadow:0 24px 60px -20px rgba(25,19,25,.5);
  animation:vfp-rise .18s ease-out
}
@keyframes vfp-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.vfp-modal-x{position:absolute;top:10px;right:12px;border:0;background:none;font-size:24px;line-height:1;color:var(--vfp-ink-faint);padding:4px 8px}
.vfp-modal-x:hover{color:var(--vfp-ink)}
.vfp-modal-h{font-size:23px;margin-bottom:6px}
.vfp-modal-booths{
  margin:14px 0 4px;padding:10px 12px;background:#faf7f2;border:1px solid var(--vfp-line-soft);
  font-size:13.5px;color:var(--vfp-ink-soft)
}
.vfp-modal-booths b{color:var(--vfp-ink);font-weight:600}
.vfp-field{margin-top:12px}
.vfp-field label{display:block;font-size:13px;color:var(--vfp-ink-soft);margin-bottom:5px}
.vfp-field input{width:100%;padding:10px 12px;border:1px solid var(--vfp-line);border-radius:2px;background:#fdfcfa}
.vfp-field input:focus{border-color:var(--vfp-wine)}
.vfp-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:420px){ .vfp-field-pair{grid-template-columns:1fr} }
.vfp-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.vfp-error{margin-top:12px!important;padding:9px 12px;background:var(--vfp-wine-tint);color:var(--vfp-wine-deep);font-size:13px}
.vfp-error[hidden]{display:none}
.vfp-consent{margin-top:10px!important}
.vfp-done-mark{
  width:46px;height:46px;border-radius:50%;background:#e4efe8;color:var(--vfp-green);
  display:grid;place-items:center;font-size:24px;margin-bottom:14px
}
#vfp-modal-done[hidden]{display:none}

@media (prefers-reduced-motion:reduce){
  .vnexpo-fp *,.vfp-modal-card{transition:none!important;animation:none!important}
}

/* ---------- Access gate ---------- */
.vfp-gate{max-width:520px;margin:0 auto;padding:34px 30px;text-align:center}
.vfp-gate-h{font-size:24px;margin-bottom:8px}
.vfp-gate-form{display:flex;gap:8px;margin:18px 0 14px;flex-wrap:wrap}
.vfp-gate-form input{
  flex:1 1 200px;min-width:0;padding:11px 13px;
  border:1px solid var(--vfp-line);border-radius:2px;background:#fdfcfa;
  letter-spacing:.05em
}
.vfp-gate-form input:focus{border-color:var(--vfp-wine)}
.vfp-gate-btn{width:auto;margin-top:0;flex:0 0 auto;padding:11px 20px}
.vfp-gate .vfp-error{text-align:left}
