/* Global Unified Button Design System (#16405)
 * Unifies all primary, secondary, ghost, and pro button classes across public & portal pages.
 * Single consistent shape (10px radius), consistent sizing scale, crisp borders,
 * normalized icon sizing, and full Light + Soft Airbnb Night Dark Mode parity.
 */

/* ==========================================================================
   1. Base Geometry & Typography (all button families)
   ========================================================================== */
.button-primary,
.btn-primary,
.button-secondary,
.btn-secondary,
.btn-default,
.btn-pro,
.btn-pro-primary,
.btn-pro-secondary,
.pb-btn,
.pb-btn-primary,
.pb-btn--primary,
.pb-btn-secondary,
.pb-btn-ghost,
.pb-btn--ghost,
.pb-btn-outline,
.button-pill-rausch,
.login-btn,
.support-btn-primary,
.support-btn-secondary,
.pb-dir-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 10px !important;
  height: auto !important;
  min-height: 40px;
  padding: 9px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.005em;
  box-sizing: border-box !important;
  white-space: nowrap;
  text-decoration: none !important;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.button-primary:active,
.btn-primary:active,
.button-secondary:active,
.btn-secondary:active,
.btn-default:active,
.btn-pro:active,
.btn-pro-primary:active,
.btn-pro-secondary:active,
.pb-btn:active,
.pb-btn-primary:active,
.pb-btn--primary:active,
.pb-btn-secondary:active,
.pb-btn-ghost:active,
.pb-btn--ghost:active,
.pb-btn-outline:active {
  transform: scale(0.98);
}

.button-primary:focus-visible,
.btn-primary:focus-visible,
.button-secondary:focus-visible,
.btn-secondary:focus-visible,
.btn-default:focus-visible,
.btn-pro:focus-visible,
.pb-btn:focus-visible,
.pb-btn-ghost:focus-visible {
  outline: 2px solid #ff385c !important;
  outline-offset: 2px !important;
}

/* Normalize icons inside buttons so parent empty-state icon rules never blow up button height */
.button-primary > i,
.btn-primary > i,
.button-secondary > i,
.btn-secondary > i,
.btn-default > i,
.btn-pro > i,
.btn-pro-primary > i,
.btn-pro-secondary > i,
.pb-btn > i,
.pb-btn-primary > i,
.pb-btn--primary > i,
.pb-btn-secondary > i,
.pb-btn-ghost > i,
.pb-btn--ghost > i,
.pb-btn-outline > i {
  font-size: 1em !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: inherit !important;
  flex-shrink: 0;
}

/* ==========================================================================
   2. Consistent Sizing Scale
   ========================================================================== */
.pb-btn-sm,
.btn-sm,
.btn-pro.pb-btn-sm,
.btn-pro.btn-sm {
  min-height: 36px !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}

.pb-btn-xs,
.btn-xs,
.btn-pro.btn-xs,
.btn-pro.pb-btn-xs {
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  gap: 5px !important;
}

.btn-block,
.btn-pro.btn-block {
  width: 100% !important;
}

/* ==========================================================================
   3. Primary Variant (PropertyBin Rausch #ff385c)
   ========================================================================== */
.button-primary,
.btn-primary,
.btn-pro-primary,
.pb-btn-primary,
.pb-btn--primary,
.button-pill-rausch,
.login-btn,
.support-btn-primary,
.pb-dir-search-btn {
  background-color: var(--color-primary, #ff385c) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-primary, #ff385c) !important;
  box-shadow: 0 1px 2px rgba(255, 56, 92, 0.18);
}

.button-primary:hover,
.btn-primary:hover,
.btn-pro-primary:hover,
.pb-btn-primary:hover,
.pb-btn--primary:hover,
.button-pill-rausch:hover,
.login-btn:hover,
.support-btn-primary:hover,
.pb-dir-search-btn:hover {
  background-color: var(--color-primary-active, #e00b41) !important;
  border-color: var(--color-primary-active, #e00b41) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(255, 56, 92, 0.28);
}

/* ==========================================================================
   4. Secondary Variant (Clean neutral border — no harsh black rings)
   ========================================================================== */
.button-secondary,
.btn-secondary,
.btn-default,
.btn-pro-secondary,
.pb-btn-secondary,
.pb-btn-outline,
.support-btn-secondary {
  background-color: #ffffff !important;
  color: #222222 !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.button-secondary:hover,
.btn-secondary:hover,
.btn-default:hover,
.btn-pro-secondary:hover,
.pb-btn-secondary:hover,
.pb-btn-outline:hover,
.support-btn-secondary:hover {
  background-color: #f7f7f7 !important;
  border-color: #9ca3af !important;
  color: #111111 !important;
}

/* ==========================================================================
   5. Ghost Variant (Subtle bordered transparent)
   ========================================================================== */
.pb-btn-ghost,
.pb-btn--ghost {
  background-color: transparent !important;
  color: #222222 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none;
}

.pb-btn-ghost:hover,
.pb-btn--ghost:hover {
  background-color: #f7f7f7 !important;
  border-color: #d1d5db !important;
  color: #111111 !important;
}

/* ==========================================================================
   6. Dark Mode Parity (Soft Airbnb Night tokens)
   ========================================================================== */
html[data-pb-theme="dark"] .button-secondary,
html[data-pb-theme="dark"] .btn-secondary,
html[data-pb-theme="dark"] .btn-default,
html[data-pb-theme="dark"] .btn-pro-secondary,
html[data-pb-theme="dark"] .pb-btn-secondary,
html[data-pb-theme="dark"] .pb-btn-outline,
html[data-pb-theme="dark"] .support-btn-secondary,
[data-pb-theme="dark"] .button-secondary,
[data-pb-theme="dark"] .btn-secondary,
[data-pb-theme="dark"] .btn-default,
[data-pb-theme="dark"] .btn-pro-secondary,
[data-pb-theme="dark"] .pb-btn-secondary,
[data-pb-theme="dark"] .pb-btn-outline,
[data-pb-theme="dark"] .support-btn-secondary {
  background-color: #242424 !important;
  color: #f7f7f7 !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-pb-theme="dark"] .button-secondary:hover,
html[data-pb-theme="dark"] .btn-secondary:hover,
html[data-pb-theme="dark"] .btn-default:hover,
html[data-pb-theme="dark"] .btn-pro-secondary:hover,
html[data-pb-theme="dark"] .pb-btn-secondary:hover,
html[data-pb-theme="dark"] .pb-btn-outline:hover,
html[data-pb-theme="dark"] .support-btn-secondary:hover,
[data-pb-theme="dark"] .button-secondary:hover,
[data-pb-theme="dark"] .btn-secondary:hover,
[data-pb-theme="dark"] .btn-default:hover,
[data-pb-theme="dark"] .btn-pro-secondary:hover,
[data-pb-theme="dark"] .pb-btn-secondary:hover,
[data-pb-theme="dark"] .pb-btn-outline:hover,
[data-pb-theme="dark"] .support-btn-secondary:hover {
  background-color: #2e2e2e !important;
  border-color: #525252 !important;
  color: #ffffff !important;
}

html[data-pb-theme="dark"] .pb-btn-ghost,
html[data-pb-theme="dark"] .pb-btn--ghost,
[data-pb-theme="dark"] .pb-btn-ghost,
[data-pb-theme="dark"] .pb-btn--ghost {
  background-color: transparent !important;
  color: #f7f7f7 !important;
  border: 1px solid #383838 !important;
}

html[data-pb-theme="dark"] .pb-btn-ghost:hover,
html[data-pb-theme="dark"] .pb-btn--ghost:hover,
[data-pb-theme="dark"] .pb-btn-ghost:hover,
[data-pb-theme="dark"] .pb-btn--ghost:hover {
  background-color: #242424 !important;
  border-color: #525252 !important;
  color: #ffffff !important;
}

/* Full-width form CTAs keep width, consistent radius + centered text */
.account-form-actions .button-primary,
.account-form-actions .button-secondary,
.login-actions .button-primary,
.login-btn {
  width: 100%;
}
