/**
 * Wehome Badge — components.md §7
 * Semantic bg+border+text sets only. No left/top color stripe.
 */
.wh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: 999px;
  background: var(--wh-surface, #f2f4f6);
  color: var(--wh-tx2, #4e5968);
  font-family: var(--wh-ff, Pretendard, -apple-system, sans-serif);
  font-size: var(--wh-text-xs, 0.75rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  vertical-align: middle;
  white-space: nowrap;
}

.wh-badge--radius-sm {
  border-radius: var(--wh-radius-xs, 10px);
}

.wh-badge--neutral {
  background: var(--wh-surface, #f2f4f6);
  border-color: var(--wh-bd, rgba(0, 0, 0, 0.06));
  color: var(--wh-tx2, #4e5968);
}

.wh-badge--info {
  background: var(--wh-info-bg, #f3eefa);
  border-color: var(--wh-info-bd, #d9ccf0);
  color: var(--wh-brand, #681dc7);
}

.wh-badge--ok,
.wh-badge--success {
  background: var(--wh-ok-bg, #ecfdf5);
  border-color: var(--wh-ok-bd, #a7f3d0);
  color: var(--wh-ok, #0f766e);
}

.wh-badge--warn,
.wh-badge--warning {
  background: var(--wh-warn-bg, #fffbeb);
  border-color: var(--wh-warn-bd, #fde68a);
  color: var(--wh-warn-tx, #92400e);
}

.wh-badge--err,
.wh-badge--error {
  background: var(--wh-err-bg, #fef2f2);
  border-color: var(--wh-err-bd, #fecaca);
  color: var(--wh-err-tx, #b91c1c);
}

.wh-badge--brand {
  background: var(--wh-brand, #681dc7);
  border-color: var(--wh-brand, #681dc7);
  color: #fff;
}

.wh-badge .material-symbols-outlined {
  font-size: var(--wh-icon-sm, 20px);
  line-height: 1;
}

/* Listing / room property chips — travel.md §1
 * Instant = ok tint (no second-brand blue). Premier/superhost = brand tint (no Airbnb gold).
 * Type recedes vs stay name / price: --wh-text-xs · weight 600.
 */
.r26-badge,
.sd-badge,
.rm-badge,
.alt-r26-badge,
.kps-badge,
#mpp-badge.r26-badge {
  font-family: var(--wh-ff, Pretendard, -apple-system, sans-serif);
  font-size: var(--wh-text-xs, 0.75rem);
  font-weight: 600;
}

.r26-badge-superhost,
.sd-badge-superhost,
.rm-badge-premiumhost,
.alt-r26-badge-superhost,
.kps-badge-sup,
#mpp-badge.r26-badge-superhost {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  border-color: var(--wh-info-bd, #D9CCF0);
}

.r26-badge-instant,
.sd-badge-instant,
.rm-badge-instantbook,
.alt-r26-badge-instant,
.kps-badge-ins,
#mpp-badge.r26-badge-instant {
  background: var(--wh-ok-bg, #ecfdf5);
  color: var(--wh-ok, #0f766e);
  border-color: var(--wh-ok-bd, #a7f3d0);
}

.r26-badge-popular,
.sd-badge-popular,
.rm-badge-popular,
.alt-r26-badge-popular,
.kps-badge-pop,
#mpp-badge.r26-badge-popular {
  background: var(--wh-warn-bg, #fffbeb);
  color: var(--wh-warn-tx, #92400e);
  border-color: var(--wh-warn-bd, #fde68a);
}

.r26-badge-new,
.sd-badge-new,
.rm-badge-new,
.alt-r26-badge-new,
#mpp-badge.r26-badge-new {
  background: var(--wh-surface, #f4f5f7);
  color: var(--wh-tx, #191f28);
  border-color: var(--wh-bd, rgba(0, 0, 0, 0.06));
}

.r26-badge-selfcheckin,
.r26-badge-accept,
.sd-badge-selfcheckin,
.rm-badge-selfcheckin,
.alt-r26-badge-selfcheckin,
#mpp-badge.r26-badge-selfcheckin {
  background: var(--wh-info-bg, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  border-color: var(--wh-info-bd, #D9CCF0);
}

/* Listing photo overlay — premium host only. Text chip (Guest Favorite pattern), not a logo tile. */
.wh-premium-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  min-width: var(--wh-touch-min, 44px);
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}
.wh-premium-mark:focus-visible {
  outline: 2px solid var(--wh-focus-ring, #681DC7);
  outline-offset: 2px;
  border-radius: var(--wh-radius-sharp, 10px);
}
.wh-premium-mark__tile {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--wh-radius-sharp, 10px);
  background: #fff;
  color: var(--wh-tx, #191f28);
  font-family: var(--wh-ff, Pretendard, sans-serif);
  font-size: var(--wh-text-xs, 0.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--wh-tracking-body, -0.02em);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  transform: translateZ(0);
  transition:
    transform var(--wh-motion-hover, 120ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1)),
    background-color var(--wh-motion-hover, 120ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1));
}
@media (hover: hover) and (pointer: fine) {
  .wh-premium-mark:hover .wh-premium-mark__tile {
    background-color: var(--wh-brand-tint, #F3EEFA);
    transform: translateY(-1px);
  }
}
.wh-premium-mark:active .wh-premium-mark__tile {
  transform: scale(var(--wh-scale-press, 0.96));
  transition-duration: var(--wh-motion-hover, 120ms);
  transition-timing-function: var(--wh-ease-press, cubic-bezier(0.4, 0, 0.2, 1));
}
@media (prefers-reduced-motion: reduce) {
  .wh-premium-mark__tile {
    transition: none;
  }
  .wh-premium-mark:hover .wh-premium-mark__tile,
  .wh-premium-mark:active .wh-premium-mark__tile {
    transform: none;
  }
}
.wh-premium-mark--list {
  top: 6px;
  left: 6px;
  min-width: 0;
  min-height: 0;
}
.wh-premium-mark--list .wh-premium-mark__tile {
  padding: 4px 8px;
}
