/* หน้า สถานที่จัดงานและการเดินทาง (venue.html) */

.vm-page {
  --vm-venue: #e0531f;
  --vm-gate: #1f5fbf;
  --vm-parking: #23944a;
  --vm-ink: var(--conf-navy, #1a2e4e);
  background-color: var(--conf-cream, #f6f1ea);
  font-family: 'Prompt', 'Kanit', sans-serif;
}

/* ---------- การ์ดสถานที่จัดงาน ---------- */
.vm-venue-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.1rem;
  background: linear-gradient(120deg, #fff 0%, #fff8f2 100%);
  border: 1px solid rgba(224, 83, 31, 0.18);
  box-shadow: 0 10px 28px rgba(26, 46, 78, 0.07);
}
.vm-venue-card__icon {
  flex: 0 0 3.4rem;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: var(--vm-venue);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 18px rgba(224, 83, 31, 0.32);
}
.vm-venue-card__body { flex: 1; min-width: 0; }
.vm-venue-card__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--vm-venue);
}
.vm-venue-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vm-ink);
}
.vm-venue-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-size: 0.9rem;
  color: #5d6676;
}
.vm-venue-card__meta i { color: var(--vm-venue); margin-right: 0.2rem; }

.vm-btn-nav {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  background: var(--vm-venue);
  border: 0;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(224, 83, 31, 0.3);
}
.vm-btn-nav:hover, .vm-btn-nav:focus { background: #c4421a; color: #fff; }

.vm-btn-outline {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  border: 2px solid var(--vm-ink);
  color: var(--vm-ink);
  font-weight: 600;
  background: transparent;
}
.vm-btn-outline:hover, .vm-btn-outline:focus { background: var(--vm-ink); color: #fff; }

@media (max-width: 767.98px) {
  .vm-venue-card { flex-wrap: wrap; padding: 1.1rem; }
  .vm-venue-card__icon { flex-basis: 2.8rem; width: 2.8rem; height: 2.8rem; font-size: 1.3rem; }
  .vm-venue-card__title { font-size: 1.05rem; }
  .vm-btn-nav { width: 100%; }
}

/* ---------- ปุ่มรายชื่อโรงแรม ---------- */
.vm-hotel-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 1.5rem;
  border-radius: 1.1rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(212, 160, 23, 0.35) 0%, rgba(212, 160, 23, 0) 55%),
    linear-gradient(120deg, #1a2e4e 0%, #24406b 60%, #2c4c7c 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(26, 46, 78, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.vm-hotel-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(240, 200, 90, 0.45);
  pointer-events: none;
}
.vm-hotel-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  animation: vm-hotel-shine 5s ease-in-out infinite;
}
@keyframes vm-hotel-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.vm-hotel-cta:hover, .vm-hotel-cta:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(26, 46, 78, 0.36);
}
.vm-hotel-cta:focus-visible { outline: 3px solid #f0c85a; outline-offset: 3px; }

.vm-hotel-cta__thumbs {
  flex: 0 0 auto;
  display: flex;
  padding-left: 0.6rem;
}
.vm-hotel-cta__thumbs img {
  width: 4.6rem;
  height: 4.6rem;
  margin-left: -0.9rem;
  border-radius: 0.9rem;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s;
}
.vm-hotel-cta__thumbs img:nth-child(1) { transform: rotate(-7deg); }
.vm-hotel-cta__thumbs img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-4px); }
.vm-hotel-cta__thumbs img:nth-child(3) { transform: rotate(7deg); }
.vm-hotel-cta:hover .vm-hotel-cta__thumbs img:nth-child(1) { transform: rotate(-11deg) translateX(-4px); }
.vm-hotel-cta:hover .vm-hotel-cta__thumbs img:nth-child(2) { transform: translateY(-8px) scale(1.05); }
.vm-hotel-cta:hover .vm-hotel-cta__thumbs img:nth-child(3) { transform: rotate(11deg) translateX(4px); }

.vm-hotel-cta__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.vm-hotel-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f0c85a;
}
.vm-hotel-cta__title { font-size: 1.4rem; font-weight: 700; line-height: 1.35; }
.vm-hotel-cta__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}
.vm-hotel-cta__meta i { margin-right: 0.3rem; color: #f0c85a; }

.vm-hotel-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5d36b 0%, #d4a017 55%, #b8860b 100%);
  color: #1a2e4e;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.2s;
}
.vm-hotel-cta__btn i { transition: transform 0.2s; }
.vm-hotel-cta:hover .vm-hotel-cta__btn { box-shadow: 0 10px 26px rgba(212, 160, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.vm-hotel-cta:hover .vm-hotel-cta__btn i { transform: translateX(4px); }

@media (max-width: 767.98px) {
  .vm-hotel-cta { flex-wrap: wrap; gap: 0.9rem 1rem; padding: 1.1rem; }
  .vm-hotel-cta__thumbs img { width: 3.6rem; height: 3.6rem; margin-left: -0.75rem; }
  .vm-hotel-cta__title { font-size: 1.2rem; }
  .vm-hotel-cta__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-hotel-cta, .vm-hotel-cta__thumbs img, .vm-hotel-cta__btn i { transition: none; }
  .vm-hotel-cta::after { animation: none; display: none; }
}

/* ---------- การ์ดแผนที่ ---------- */
.vm-card {
  position: relative;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(26, 46, 78, 0.08);
  box-shadow: 0 14px 34px rgba(26, 46, 78, 0.08);
  overflow: hidden;
}
.vm-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(26, 46, 78, 0.07);
}
.vm-card__title { margin: 0 0 0.15rem; font-size: 1.15rem; font-weight: 700; color: var(--vm-ink); }
.vm-card__hint { font-size: 0.85rem; color: #6b7380; }

.vm-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vm-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 46, 78, 0.15);
  background: #fff;
  color: var(--vm-ink);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.vm-filter__btn:hover { border-color: rgba(26, 46, 78, 0.35); }
.vm-filter__btn.is-active { background: var(--vm-ink); border-color: var(--vm-ink); color: #fff; }
.vm-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.vm-filter__btn--venue .vm-dot { background: var(--vm-venue); }
.vm-filter__btn--gate .vm-dot { background: var(--vm-gate); }
.vm-filter__btn--parking .vm-dot { background: var(--vm-parking); }
.vm-filter__btn.is-active .vm-dot { box-shadow: 0 0 0 2px #fff; }

.vm-scroll {
  position: relative;
  background: #faf9f6;
}
.vm-map {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.vm-map img { display: block; width: 100%; height: auto; pointer-events: none; }
.vm-pins { position: absolute; inset: 0; }

/* ---------- หมุด ---------- */
.vm-pin {
  --pin: var(--vm-venue);
  --size: 2.1rem;
  position: absolute;
  z-index: 3;
  display: block;
  width: var(--size);
  height: calc(var(--size) * 1.42);
  transform: translate(-50%, -100%) scale(var(--vz-k, 1));
  transform-origin: 50% 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.2s, filter 0.2s;
}
.vm-pin--gate { --pin: var(--vm-gate); }
.vm-pin--parking { --pin: var(--vm-parking); }
.vm-pin--venue { --size: 2.6rem; z-index: 5; }

.vm-pin__head {
  position: absolute;
  left: 0;
  top: calc(var(--size) * 0.21);
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50% 50% 50% 0;
  background: var(--pin);
  border: 2px solid #fff;
  transform: rotate(-45deg);
  box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, background-color 0.18s;
}
.vm-pin__txt {
  transform: rotate(45deg);
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-size: calc(var(--size) * 0.4);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.vm-pin__txt .bi { font-size: calc(var(--size) * 0.5); }

.vm-pin__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.15rem);
  transform: translateX(-50%);
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(26, 46, 78, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.vm-pin--venue .vm-pin__label { background: var(--vm-venue); font-size: 0.78rem; padding: 0.15rem 0.55rem; }
.vm-pin--label-left .vm-pin__label { left: auto; right: calc(100% + 0.2rem); top: 30%; transform: none; }
.vm-pin--label-right .vm-pin__label { left: calc(100% + 0.2rem); top: 30%; transform: none; }

.vm-pin--venue::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: 1.4rem;
  height: 0.7rem;
  margin-left: -0.7rem;
  border-radius: 50%;
  background: rgba(224, 83, 31, 0.45);
  animation: vm-pulse 1.8s ease-out infinite;
  z-index: -1;
}
@keyframes vm-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .vm-pin--venue::after { animation: none; } }

.vm-pin:hover, .vm-pin:focus-visible, .vm-pin.is-open, .vm-pin.is-hl { z-index: 20; }
.vm-pin:hover .vm-pin__head,
.vm-pin:focus-visible .vm-pin__head,
.vm-pin.is-open .vm-pin__head,
.vm-pin.is-hl .vm-pin__head { transform: rotate(-45deg) scale(1.18); }
.vm-pin:focus-visible { outline: none; }
.vm-pin:focus-visible .vm-pin__head { box-shadow: 0 0 0 3px rgba(26, 46, 78, 0.55); }

.vm-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  min-width: 11rem;
  max-width: min(16rem, 80vw);
  padding: 0.6rem 0.75rem 0.65rem;
  border-radius: 0.7rem;
  background: var(--vm-ink, #1a2e4e);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 26px rgba(26, 46, 78, 0.3);
  pointer-events: none;
  z-index: 30;
}
.vm-tip[hidden] { display: none !important; }
.vm-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--vm-ink, #1a2e4e);
}
.vm-tip strong { display: block; font-size: 0.9rem; line-height: 1.35; }
.vm-tip span { display: block; margin-top: 0.15rem; font-size: 0.78rem; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.vm-tip em { display: block; margin-top: 0.35rem; font-style: normal; font-size: 0.74rem; color: #ffd28a; }

/* ตัวกรอง */
.vm-map[data-filter='venue'] .vm-pin:not(.vm-pin--venue),
.vm-map[data-filter='gate'] .vm-pin:not(.vm-pin--gate),
.vm-map[data-filter='parking'] .vm-pin:not(.vm-pin--parking) { opacity: 0.18; filter: grayscale(1); }
.vm-map[data-filter='venue'] .vm-pin:not(.vm-pin--venue) .vm-pin__label,
.vm-map[data-filter='gate'] .vm-pin:not(.vm-pin--gate) .vm-pin__label,
.vm-map[data-filter='parking'] .vm-pin:not(.vm-pin--parking) .vm-pin__label { display: none; }

.vm-pin__label-short { display: none; }

@media (max-width: 767.98px) {
  .vm-pin { --size: 1.5rem; }
  .vm-pin--venue { --size: 1.9rem; }
  .vm-pin__label { font-size: 0.62rem; }
  .vm-pin--venue .vm-pin__label { font-size: 0.68rem; }
  .vm-pin__label-full { display: none; }
  .vm-pin__label-short { display: inline; }
  .vm-map.vz-far .vm-pin:not(.vm-pin--venue) .vm-pin__label { display: none; }
  .vm-map.vz-far .vm-pin--venue .vm-pin__label { top: -0.45rem; }
}

/* โหมดหาพิกัด ?pick=1 */
.vm-map.is-picking { cursor: crosshair; }
.vm-pick {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 40;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font: 600 0.85rem/1.3 'Space Grotesk', monospace;
}
.vm-pick-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 0 3px #fff;
  pointer-events: none;
  z-index: 35;
}

/* ---------- ปุ่มดาวน์โหลดแผนผัง (มุมขวาบนของผัง) ---------- */
.vd-frame { position: relative; }
.vd-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(26, 46, 78, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--vm-ink, #1a2e4e);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(26, 46, 78, 0.16);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.vd-btn .bi { font-size: 1rem; line-height: 1; }
.vd-btn:hover, .vd-btn:focus-visible {
  background: var(--vm-ink, #1a2e4e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 46, 78, 0.28);
  transform: translateY(-1px);
}
.vd-btn:focus-visible { outline: 3px solid rgba(224, 83, 31, 0.45); outline-offset: 2px; }
.vd-btn:disabled { cursor: progress; }
.vd-btn.is-busy .bi { animation: vd-spin 0.9s linear infinite; }
@keyframes vd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vd-btn.is-busy .bi { animation: none; } }
@media (max-width: 575.98px) {
  .vd-btn { top: 0.5rem; right: 0.5rem; padding: 0.4rem 0.75rem; font-size: 0.78rem; }
}

/* ---------- ซูมแผนผัง (สองนิ้วถ่าง / ปุ่ม + −) ---------- */
.vm-scroll, .vf-scroll { overflow: hidden; touch-action: pan-y; }
.vd-frame.is-zoomed .vm-scroll,
.vd-frame.is-zoomed .vf-scroll { touch-action: none; cursor: grab; }
.vd-frame.is-dragging .vm-scroll,
.vd-frame.is-dragging .vf-scroll { cursor: grabbing; }
.vm-map, .vf-plan { transform-origin: 0 0; }
.vz-anim, .vz-anim .vm-pin { transition: transform 0.28s ease; }

.vz-ctrl {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 25;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(26, 46, 78, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(26, 46, 78, 0.16);
}
.vz-btn {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vm-ink, #1a2e4e);
  font-size: 1.05rem;
  cursor: pointer;
}
.vz-btn + .vz-btn { border-left: 1px solid rgba(26, 46, 78, 0.1); }
.vz-btn:hover:not(:disabled) { background: rgba(26, 46, 78, 0.08); }
.vz-btn:disabled { color: rgba(26, 46, 78, 0.28); cursor: default; }
.vz-btn:focus-visible { outline: 3px solid rgba(224, 83, 31, 0.45); outline-offset: -3px; }

.vz-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 24;
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 46, 78, 0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.3s;
}
.vz-hint.is-gone { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .vz-hint { display: inline-flex; }
}
@media (max-width: 575.98px) {
  .vz-ctrl { left: 0.5rem; bottom: 0.5rem; }
  .vz-btn { width: 2.1rem; height: 2.1rem; font-size: 0.95rem; }
  .vz-hint { right: 0.5rem; bottom: 0.65rem; }
}

/* ---------- รายการจุด ---------- */
.vm-list {
  height: 100%;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(26, 46, 78, 0.08);
  box-shadow: 0 10px 24px rgba(26, 46, 78, 0.06);
}
.vm-list__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--vm-ink);
}
.vm-list--venue .vm-list__title i { color: var(--vm-venue); }
.vm-list--gate .vm-list__title i { color: var(--vm-gate); }
.vm-list--parking .vm-list__title i { color: var(--vm-parking); }
.vm-list__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.vm-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(26, 46, 78, 0.08);
  background: #fbfaf8;
  color: var(--vm-ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.vm-item:hover, .vm-item:focus-visible, .vm-item.is-hl {
  border-color: rgba(26, 46, 78, 0.25);
  box-shadow: 0 6px 14px rgba(26, 46, 78, 0.08);
  transform: translateY(-1px);
  color: var(--vm-ink);
}
.vm-item__badge {
  flex: 0 0 2.1rem;
  display: grid;
  place-items: center;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: var(--vm-venue);
  color: #fff;
  font: 700 0.85rem/1 'Kanit', sans-serif;
}
.vm-item--gate .vm-item__badge { background: var(--vm-gate); }
.vm-item--parking .vm-item__badge { background: var(--vm-parking); }
.vm-item__text { flex: 1; min-width: 0; }
.vm-item__name { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.vm-item__detail { display: block; font-size: 0.78rem; color: #6b7380; line-height: 1.35; }
.vm-item__nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(26, 46, 78, 0.07);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vm-ink);
  white-space: nowrap;
}

/* ---------- รถไฟฟ้า ---------- */
.vm-transit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(26, 46, 78, 0.08);
  box-shadow: 0 10px 24px rgba(26, 46, 78, 0.06);
  color: #5d6676;
  font-size: 0.92rem;
}
.vm-transit__icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  background: rgba(26, 46, 78, 0.08);
  color: var(--vm-ink);
  font-size: 1.35rem;
}
.vm-transit__title { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 700; color: var(--vm-ink); }

/* ---------- ผังอาคารสถานที่จัดงาน ---------- */
.vf-card {
  --vf-reg: #e0531f;
  --vf-meeting: #8e3a8a;
  --vf-expo: #1f6fd1;
  --vf-poster: #0d8f8a;
  --vf-food: #23944a;
  --vf-floor: #fffdf8;
}
.vf-zone--reg, .vf-key--reg, .vf-item--reg { --c: var(--vf-reg); }
.vf-zone--meeting, .vf-key--meeting, .vf-item--meeting { --c: var(--vf-meeting); }
.vf-zone--expo, .vf-key--expo, .vf-item--expo { --c: var(--vf-expo); }
.vf-zone--poster, .vf-key--poster, .vf-item--poster { --c: var(--vf-poster); }
.vf-zone--food, .vf-key--food, .vf-item--food { --c: var(--vf-food); }

.vf-card__tools { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.vf-view {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(26, 46, 78, 0.07);
}
.vf-view__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vm-ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.vf-view__btn.is-active { background: var(--vm-ink); color: #fff; box-shadow: 0 4px 10px rgba(26, 46, 78, 0.2); }

.vf-card[data-view='3d'] .vf-svg--2d,
.vf-card[data-view='2d'] .vf-svg--3d { display: none; }

.vf-plan-photo {
  margin: 0;
  padding: 0.35rem 0.5rem 0.55rem;
}
.vf-plan-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(26, 46, 78, 0.06);
}

.vf-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: #4d5668;
}
.vf-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.vf-key {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: var(--c);
  color: #fff;
  font-size: 0.78rem;
}
.vf-ico {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 0.95rem;
  border-radius: 0.2rem;
  font: 700 0.6rem/1 'Kanit', sans-serif;
}
.vf-ico--wc {
  display: inline-flex;
  gap: 0;
  height: 1.35rem;
  padding: 0 0.25rem;
  border-radius: 0.4rem;
  background: #e3ecf7;
  border: 1px solid #a9bdd6;
  color: #3d6aa3;
  font-size: 0.8rem;
}
.vf-ico--stair {
  border: 1px solid #a39b8e;
  background: repeating-linear-gradient(0deg, #fff 0 2px, #b9b1a3 2px 3px);
}
.vf-ico--stair-main {
  border: 1px solid #d08a0e;
  background: repeating-linear-gradient(0deg, #fff1cf 0 2px, #e0a83a 2px 3px);
}
.vf-ico--lift { background: #e9e9ee; border: 1px solid #a7a7b5; color: #6d6d80; font-size: 0.7rem; }
.vf-ico--entry { color: var(--vm-ink); font-size: 0.95rem; }

.vf-floor { padding: 1.1rem 1.4rem 1.35rem; }
.vf-floor + .vf-floor { border-top: 1px dashed rgba(26, 46, 78, 0.14); }
.vf-floor__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.vf-floor__no {
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  border-radius: 0.65rem;
  background: var(--vm-ink);
  color: #fff;
  font: 700 0.95rem/1.2 'Kanit', sans-serif;
}
.vf-floor__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--vm-ink); }
.vf-floor__sub { margin: 0; font-size: 0.82rem; color: #6b7380; }

.vf-scroll {
  border-radius: 0.9rem;
  background: radial-gradient(ellipse at 50% 40%, #fbf8f2 0%, #efe9df 100%);
  border: 1px solid rgba(26, 46, 78, 0.07);
}
.vf-plan { padding: 0.6rem 0.4rem; }
.vf-plan svg { display: block; width: 100%; height: auto; }

.vf-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.vf-item { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.vf-item .vm-item__badge { background: var(--c); }

@media (max-width: 991.98px) {
  .vf-card__tools { align-items: flex-start; width: 100%; }
  .vf-legend { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
  .vf-floor { padding: 0.95rem 0.9rem 1.1rem; }
  .vf-plan { padding: 2.6rem 0.15rem 2.9rem; }
}

/* ---------- องค์ประกอบใน SVG ---------- */
.vf-svg text { font-family: 'Prompt', 'Kanit', sans-serif; text-anchor: middle; dominant-baseline: central; }

.vf-zone { cursor: pointer; outline: none; }
.vf-zone.is-pulse .vf-zone__box,
.vf-zone.is-pulse .vf3-carpet__p,
.vf-zone.is-pulse .vf3-tag__bg { animation: vf-blink 0.6s ease-in-out 3; }
@keyframes vf-blink { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .vf-zone.is-pulse .vf-zone__box,
  .vf-zone.is-pulse .vf3-carpet__p,
  .vf-zone.is-pulse .vf3-tag__bg { animation: none; }
}

.vf-route { fill: none; stroke: var(--vf-meeting); stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.vf-route-head { fill: var(--vf-meeting); }
.vf-entry__txt { fill: var(--vm-ink); font-size: 12px; font-weight: 700; }

/* 2 มิติ */
.vf-outline { fill: var(--vf-floor); stroke: var(--vm-ink); stroke-width: 2.5; stroke-linejoin: round; }
.vf-canopy, .vf-walk { fill: #efe9dd; stroke: #8b93a3; stroke-width: 1.2; stroke-dasharray: 5 4; }
.vf-gap { stroke: var(--vf-floor); stroke-width: 5; }
.vf-room rect { fill: #ebe6dc; stroke: #c6beb0; stroke-width: 1; }
.vf-room__label { fill: #8a8376; font-weight: 500; }
.vf-wc rect { fill: #e3ecf7; stroke: #a9bdd6; stroke-width: 1; }
.vf-wc__ico { fill: #3d6aa3; }
.vf-wc__txt { fill: #3d6aa3; font-weight: 600; }
.vf-stair rect { fill: #fff; stroke: #a39b8e; stroke-width: 1; }
.vf-stair path { stroke: #bdb5a7; stroke-width: 1; }
.vf-stair--main rect { fill: #fff1cf; stroke: #d08a0e; stroke-width: 1.6; }
.vf-stair--main path { stroke: #e0a83a; }
.vf-lift rect { fill: #e9e9ee; stroke: #a7a7b5; stroke-width: 1; }
.vf-lift path { fill: #6d6d80; }
.vf-zone__box {
  fill: var(--c);
  stroke: #fff;
  stroke-width: 2;
  transition: stroke 0.15s, stroke-width 0.15s, opacity 0.15s;
}
.vf-zone__ico { fill: #fff; pointer-events: none; }
.vf-zone__label { fill: #fff; font-weight: 600; pointer-events: none; }
.vf-zone:hover .vf-zone__box,
.vf-zone:focus-visible .vf-zone__box,
.vf-zone.is-hl .vf-zone__box {
  stroke: var(--vm-ink);
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(26, 46, 78, 0.35));
}
.vf-entry__arrow { fill: none; stroke: var(--vm-ink); stroke-width: 2.6; }
.vf-arrow-head { fill: var(--vm-ink); }
.vf-steps { stroke: var(--vm-ink); stroke-width: 1.2; }
.vf-callout__line { stroke: #d08a0e; stroke-width: 1.5; stroke-dasharray: 3 3; }
.vf-callout__dot, .vf-callout__pill { fill: #d08a0e; }
.vf-callout__txt { fill: #fff; font-size: 11.5px; font-weight: 600; }

/* 3 มิติ — แต่ละกล่องมีด้าน f (หน้า) r (ขวา) t (บน) */
.vf-svg--3d polygon { stroke-linejoin: round; }
.vf3-slab-f { fill: #c9bda9; }
.vf3-slab-r { fill: #b2a58f; }
.vf3-plate { fill: var(--vf-floor); stroke: #c9bfae; stroke-width: 1; }
.vf3-patch { fill: #ece5d8; stroke: #9aa1ae; stroke-width: 1; stroke-dasharray: 4 3; }
.vf3-room { fill: #f1ece3; }
.vf3-wcfloor { fill: #e4edf8; }
.vf3-stairbase { fill: #e8e2d7; }
.vf3-stairbase--main { fill: #f7dfa6; }

.vf3-wall .f { fill: #ddd4c5; stroke: #ddd4c5; stroke-width: 0.5; }
.vf3-wall .r { fill: #cbc1b1; stroke: #cbc1b1; stroke-width: 0.5; }
.vf3-wall .t { fill: #fbf8f2; stroke: #fbf8f2; stroke-width: 0.5; }
.vf3-wall--out .f { fill: #c7bba8; stroke: #c7bba8; }
.vf3-wall--out .r { fill: #b5a893; stroke: #b5a893; }
.vf3-wall--out .t { fill: #f4eee3; stroke: #f4eee3; }

.vf3-step .f { fill: #d9d2c5; }
.vf3-step .r { fill: #c9c1b3; }
.vf3-step .t { fill: #fffdf9; }
.vf3-step--main .f { fill: #e9ae3f; }
.vf3-step--main .r { fill: #d69a2a; }
.vf3-step--main .t { fill: #ffe7ae; }
.vf3-step polygon { stroke: rgba(120, 100, 70, 0.25); stroke-width: 0.4; }

.vf3-lift .f { fill: #aeb0c0; }
.vf3-lift .r { fill: #9799ab; }
.vf3-lift .t { fill: #d9dae4; }

.vf3-furn .f { fill: #e6e0d5; }
.vf3-furn .r { fill: #d5cec1; }
.vf3-furn .t { fill: #ffffff; }
.vf3-furn polygon { stroke: rgba(90, 80, 60, 0.18); stroke-width: 0.4; }
.vf3-furn--c .f { fill: var(--c); }
.vf3-furn--c .r { fill: color-mix(in srgb, var(--c) 78%, #000); }
.vf3-furn--c .t { fill: color-mix(in srgb, var(--c) 55%, #fff); }
.vf3-board .f { fill: color-mix(in srgb, var(--c) 30%, #fff); stroke: var(--c); stroke-width: 0.6; }
.vf3-board .r { fill: color-mix(in srgb, var(--c) 70%, #000); }
.vf3-board .t { fill: var(--c); }
.vf3-screen .f { fill: #2b3b58; }
.vf3-screen .r { fill: #1d2a42; }
.vf3-screen .t { fill: #4a5b7a; }
.vf3-stage .f { fill: #b9906a; }
.vf3-stage .r { fill: #a27b57; }
.vf3-stage .t { fill: #d9b48c; }

.vf3-carpet__p {
  fill: color-mix(in srgb, var(--c) 20%, #fff);
  stroke: var(--c);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  transition: fill 0.15s;
}
.vf3-carpet--room .vf3-carpet__p { fill: color-mix(in srgb, var(--c) 26%, #fff); stroke-dasharray: none; }
.vf3-carpet.is-hl .vf3-carpet__p { fill: color-mix(in srgb, var(--c) 42%, #fff); stroke-width: 2; }

.vf3-room__label { fill: #9a9284; font-weight: 500; pointer-events: none; }
.vf3-route { stroke-width: 2.6; filter: drop-shadow(0 0 1.5px #fff); }
.vf3-entry { fill: var(--vm-ink); }

.vf3-tag__bg { fill: var(--c, #d08a0e); transition: filter 0.15s; }
.vf3-tag__stem { stroke: var(--c, #d08a0e); stroke-width: 1.4; }
.vf3-tag__dot { fill: var(--c, #d08a0e); stroke: #fff; stroke-width: 1.2; }
.vf3-tag__ico { fill: #fff; pointer-events: none; }
.vf3-tag__txt { fill: #fff; font-weight: 600; pointer-events: none; }
.vf3-tag { filter: drop-shadow(0 3px 5px rgba(26, 46, 78, 0.25)); }
.vf3-tag.vf-zone:hover .vf3-tag__bg,
.vf3-tag.vf-zone:focus-visible .vf3-tag__bg,
.vf3-tag.is-hl .vf3-tag__bg { stroke: var(--vm-ink); stroke-width: 2; }
.vf3-tag--stair { --c: #d08a0e; }

.vf3-wc__bg { fill: #fff; stroke: #a9bdd6; stroke-width: 0.8; }
.vf3-wc__ico { fill: #3d6aa3; }
.vf3-wc__txt { fill: #3d6aa3; font-weight: 600; }
