/* Social proof enquiry/view popup (real data, clickable) */
.vb-social-proof {
  --vb-sp-maroon: #7a1228;
  --vb-sp-side: 20px;
  --vb-sp-bottom: 28px;
  position: fixed;
  left: var(--vb-sp-side);
  bottom: var(--vb-sp-bottom);
  top: auto;
  right: auto;
  z-index: 9990;
  width: min(340px, calc(100vw - 40px));
  max-width: min(340px, calc(100vw - 40px));
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow:
    0 10px 28px rgba(78, 16, 35, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px 40px 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.vb-social-proof::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a53040 0%, var(--vb-sp-maroon) 100%);
}

.vb-social-proof:hover {
  color: inherit;
  box-shadow:
    0 14px 36px rgba(78, 16, 35, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.vb-social-proof.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .vb-social-proof.is-visible:hover {
    transform: translateY(-2px) scale(1);
  }
}

.vb-social-proof-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #a53040 0%, var(--vb-sp-maroon) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(122, 18, 40, 0.25);
}

.vb-social-proof-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vb-social-proof-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #f6f1ee;
  flex: 0 0 44px;
  box-shadow: inset 0 0 0 1px rgba(122, 18, 40, 0.08);
}

.vb-social-proof-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vb-social-proof-text strong {
  color: var(--vb-sp-maroon);
  font-weight: 700;
}

.vb-social-proof-go {
  flex: 0 0 auto;
  color: #c4a4ad;
  font-size: 18px;
  line-height: 1;
  display: none;
}

.vb-social-proof-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f7f2f3;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.vb-social-proof-close:hover,
.vb-social-proof-close:focus-visible {
  color: var(--vb-sp-maroon);
  background: #f0e4e7;
  outline: none;
}

/* Tablet */
@media (max-width: 991px) {
  .vb-social-proof {
    --vb-sp-side: 16px;
    --vb-sp-bottom: 24px;
    width: min(320px, calc(100vw - 32px));
    max-width: min(320px, calc(100vw - 32px));
  }
}

/*
  Mobile: modern bottom-left toast.
  Leaves space on the right for WhatsApp + call FABs.
*/
@media (max-width: 767px) {
  .vb-social-proof {
    left: 12px;
    right: auto;
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: min(280px, calc(100vw - 100px));
    max-width: min(280px, calc(100vw - 100px));
    padding: 10px 34px 10px 10px;
    gap: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
      0 12px 32px rgba(78, 16, 35, 0.18),
      0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(24px) scale(0.96);
  }

  .vb-social-proof::before {
    width: 3px;
    border-radius: 18px 0 0 18px;
  }

  .vb-social-proof.is-visible {
    transform: translateY(0) scale(1);
  }

  .vb-social-proof.is-visible:active {
    transform: translateY(1px) scale(0.99);
  }

  .vb-social-proof-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 14px;
    box-shadow: none;
  }

  .vb-social-proof-thumb {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
  }

  .vb-social-proof-body {
    gap: 8px;
  }

  .vb-social-proof-text {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .vb-social-proof-go {
    display: inline-flex;
    align-items: center;
    margin-right: -4px;
  }

  .vb-social-proof-close {
    top: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    background: rgba(247, 242, 243, 0.95);
  }
}

@media (max-width: 380px) {
  .vb-social-proof {
    left: 10px;
    width: calc(100vw - 92px);
    max-width: calc(100vw - 92px);
    padding-left: 8px;
  }

  .vb-social-proof-icon {
    display: none;
  }

  .vb-social-proof-text {
    font-size: 11.5px;
  }
}

/* Landscape phones: keep compact, avoid covering content */
@media (max-width: 767px) and (max-height: 430px) {
  .vb-social-proof {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: min(260px, calc(100vw - 100px));
    max-width: min(260px, calc(100vw - 100px));
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .vb-social-proof-text {
    -webkit-line-clamp: 1;
  }
}
