/**
 * Business Manager Frontend Styles
 * Uses CSS custom properties (color tokens) for theming
 */

/* Modern Base Variables */
:root {
  --bm-color-primary: #3b82f6;
  --bm-color-primary-hover: #2563eb;
  --bm-color-secondary: #1e40af;
  --bm-color-accent: #f59e0b;
  --bm-color-accent-hover: #d97706;
  --bm-color-success: #10b981;
  --bm-color-error: #ef4444;
  --bm-color-warning: #f59e0b;
  --bm-color-surface: #ffffff;
  --bm-color-surface-2: #f8fafc;
  --bm-color-surface-3: #e2e8f0;
  --bm-color-border: #e2e8f0;
  --bm-color-border-hover: #cbd5e1;
  --bm-color-text: #0f172a;
  --bm-color-text-muted: #64748b;
  --bm-color-text-light: #94a3b8;

  /* Spacing */
  --bm-spacing-xs: 0.25rem;
  --bm-spacing-sm: 0.5rem;
  --bm-spacing-md: 1rem;
  --bm-spacing-lg: 1.5rem;
  --bm-spacing-xl: 2rem;
  --bm-spacing-xxl: 3rem;

  /* Typography */
  --bm-font-size-sm: 0.875rem;
  --bm-font-size-base: 1rem;
  --bm-font-size-lg: 1.125rem;
  --bm-font-size-xl: 1.25rem;
  --bm-font-size-xxl: 1.5rem;

  /* Border radius */
  --bm-radius-sm: 0.25rem;
  --bm-radius-base: 0.375rem;
  --bm-radius-lg: 0.5rem;

  /* Modern Shadows */
  --bm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --bm-shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --bm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --bm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --bm-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --bm-shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* Gradients */
  --bm-gradient-primary: linear-gradient(135deg, var(--bm-color-primary) 0%, var(--bm-color-secondary) 100%);
  --bm-gradient-accent: linear-gradient(135deg, var(--bm-color-accent) 0%, var(--bm-color-accent-hover) 100%);
  --bm-gradient-surface: linear-gradient(to bottom, var(--bm-color-surface) 0%, var(--bm-color-surface-2) 100%);
}

/* Reset and base styles */
.bm-single *,
.bm-form *,
.bm-shortcode * {
  box-sizing: border-box;
}

/* Single Business Page Styles */
.bm-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--bm-spacing-md);
  color: var(--bm-color-text);
}

.bm-single__hero {
  position: relative;
  margin-bottom: var(--bm-spacing-xl);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  background: var(--bm-color-surface-2);
}

.bm-single__cover img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.bm-single__hero-content {
  display: flex;
  align-items: flex-end;
  gap: var(--bm-spacing-lg);
  padding: var(--bm-spacing-lg);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
}

.bm-single__logo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--bm-radius-base);
  border: 3px solid white;
  box-shadow: var(--bm-shadow-lg);
}

.bm-single__title {
  font-size: var(--bm-font-size-xxl);
  margin: 0;
  font-weight: 700;
}

.bm-single__subtitle {
  font-size: var(--bm-font-size-lg);
  margin-top: var(--bm-spacing-xs);
  opacity: 0.9;
}

.bm-single__meta {
  margin-bottom: var(--bm-spacing-xl);
}

.bm-single__categories {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  flex-wrap: wrap;
}

.bm-single__category {
  background: var(--bm-color-primary);
  color: white;
  padding: var(--bm-spacing-xs) var(--bm-spacing-sm);
  border-radius: var(--bm-radius-sm);
  text-decoration: none;
  font-size: var(--bm-font-size-sm);
  transition: background-color 0.2s ease;
}

.bm-single__category:hover {
  background: var(--bm-color-secondary);
  color: white;
}

.bm-single__section-title {
  font-size: var(--bm-font-size-xl);
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-lg) 0;
  padding-bottom: var(--bm-spacing-sm);
  border-bottom: 2px solid var(--bm-color-border);
}

/* Contact Section */
.bm-single__contact {
  margin-bottom: var(--bm-spacing-xxl);
}

.bm-single__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--bm-spacing-lg);
}

.bm-single__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--bm-spacing-sm);
  padding: var(--bm-spacing-md);
  background: var(--bm-color-surface);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  transition: box-shadow 0.2s ease;
}

.bm-single__contact-item:hover {
  box-shadow: var(--bm-shadow-base);
}

.bm-single__contact-item--full {
  grid-column: 1 / -1;
}

.bm-single__contact-icon {
  color: var(--bm-color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.bm-single__contact-label {
  display: block;
  font-weight: 600;
  color: var(--bm-color-text-muted);
  font-size: var(--bm-font-size-sm);
  margin-bottom: var(--bm-spacing-xs);
}

.bm-single__contact-value a {
  color: var(--bm-color-primary);
  text-decoration: none;
}

.bm-single__contact-value a:hover {
  text-decoration: underline;
}

.bm-single__address {
  line-height: 1.5;
}

/* Modern Social Media Section */
.bm-single__social {
  margin-bottom: var(--bm-spacing-xxl);
}

.bm-social {
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
}

.bm-social--list {
  display: flex;
  flex-direction: column;
  gap: var(--bm-spacing-md);
}

.bm-social--icons {
  display: flex;
  gap: var(--bm-spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.bm-social--buttons {
  display: flex;
  gap: var(--bm-spacing-md);
  flex-wrap: wrap;
}

.bm-social__link {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  padding: var(--bm-spacing-md) var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border: 2px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
  text-decoration: none;
  color: var(--bm-color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  box-shadow: var(--bm-shadow-sm);
  position: relative;
  overflow: hidden;
}

.bm-social__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bm-gradient-primary);
  transition: left 0.3s ease;
  z-index: 0;
}

.bm-social__link:hover::before {
  left: 0;
}

.bm-social__link:hover {
  color: white;
  border-color: var(--bm-color-primary);
  transform: translateY(-2px);
  box-shadow: var(--bm-shadow-lg);
}

.bm-social__icon,
.bm-social__label {
  position: relative;
  z-index: 1;
}

.bm-social--icons .bm-social__link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  justify-content: center;
  padding: 0;
}

.bm-social--icons .bm-social__label {
  display: none;
}

.bm-single__social-icon {
  color: inherit;
}

/* Gallery Section */
.bm-single__gallery {
  margin-bottom: var(--bm-spacing-xxl);
}

.bm-single__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--bm-spacing-md);
}

.bm-single__gallery-item {
  position: relative;
  border-radius: var(--bm-radius-base);
  overflow: hidden;
  background: var(--bm-color-surface-2);
  aspect-ratio: 1;
}

.bm-single__gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.bm-single__gallery-link:hover .bm-single__gallery-image {
  transform: scale(1.05);
}

/* Modern Map Section */
.bm-single__map {
  margin-bottom: var(--bm-spacing-xxl);
}

.bm-map {
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
}

.bm-map__container {
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  box-shadow: var(--bm-shadow-md);
}

.bm-map__canvas {
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bm-color-border);
  transition: all 0.3s ease;
}

.bm-map__canvas:hover {
  box-shadow: var(--bm-shadow-lg);
}

.bm-map__fallback {
  text-align: center;
  padding: var(--bm-spacing-xxl);
  background: var(--bm-gradient-surface);
  border-radius: var(--bm-radius-lg);
  border: 2px dashed var(--bm-color-border);
}

.bm-map__fallback-link {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  color: var(--bm-color-primary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--bm-spacing-md) var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  border: 1px solid var(--bm-color-border);
  transition: all 0.3s ease;
  box-shadow: var(--bm-shadow-sm);
}

.bm-map__fallback-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--bm-shadow-md);
  border-color: var(--bm-color-primary);
  color: var(--bm-color-primary-hover);
}

.bm-single__map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
}

.bm-single__map-fallback {
  text-align: center;
  padding: var(--bm-spacing-xl);
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
}

.bm-single__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  color: var(--bm-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.bm-single__map-link:hover {
  text-decoration: underline;
}

/* Actions Section */
.bm-single__actions {
  margin-top: var(--bm-spacing-xxl);
  padding-top: var(--bm-spacing-xl);
  border-top: 1px solid var(--bm-color-border);
}

.bm-single__actions-content {
  display: flex;
  gap: var(--bm-spacing-md);
  flex-wrap: wrap;
}

.bm-single__action-button {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  padding: var(--bm-spacing-sm) var(--bm-spacing-lg);
  background: var(--bm-color-primary);
  color: white;
  border: none;
  border-radius: var(--bm-radius-base);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-single__action-button:hover {
  background: var(--bm-color-secondary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--bm-shadow-base);
}

.bm-single__action-button--share {
  background: var(--bm-color-accent);
}

/* Modern Form Styles */
.bm-form {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--bm-spacing-xxl);
  background: var(--bm-gradient-surface);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-xl);
  border: 1px solid var(--bm-color-border);
  position: relative;
  overflow: hidden;
}

.bm-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bm-gradient-primary);
}

.bm-form__header {
  margin-bottom: var(--bm-spacing-xl);
  text-align: center;
}

.bm-form__title {
  font-size: var(--bm-font-size-xxl);
  color: var(--bm-color-text);
  margin: 0;
}

.bm-form__fieldset {
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  padding: var(--bm-spacing-lg);
  margin-bottom: var(--bm-spacing-xl);
}

.bm-form__legend {
  font-weight: 700;
  font-size: var(--bm-font-size-lg);
  color: var(--bm-color-text);
  padding: 0 var(--bm-spacing-sm);
}

.bm-form__field {
  margin-bottom: var(--bm-spacing-lg);
}

.bm-form__label {
  display: block;
  font-weight: 600;
  color: var(--bm-color-text);
  margin-bottom: var(--bm-spacing-xs);
}

.bm-form__required {
  color: var(--bm-color-accent);
  margin-left: var(--bm-spacing-xs);
}

.bm-form__input,
.bm-form__textarea {
  width: 100%;
  padding: var(--bm-spacing-md) var(--bm-spacing-sm);
  border: 2px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
  font-size: var(--bm-font-size-base);
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bm-color-surface);
  box-shadow: var(--bm-shadow-inner);
}

.bm-form__input:hover,
.bm-form__textarea:hover {
  border-color: var(--bm-color-border-hover);
}

.bm-form__input:focus,
.bm-form__textarea:focus {
  outline: none;
  border-color: var(--bm-color-primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1), var(--bm-shadow-md);
  transform: translateY(-1px);
}

.bm-form__help {
  font-size: var(--bm-font-size-sm);
  color: var(--bm-color-text-muted);
  margin-top: var(--bm-spacing-xs);
  line-height: 1.4;
}

.bm-form__messages {
  margin-bottom: var(--bm-spacing-lg);
  padding: var(--bm-spacing-md);
  border-radius: var(--bm-radius-base);
  display: none;
}

.bm-form__messages.bm-form__messages--success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  display: block;
}

.bm-form__messages.bm-form__messages--error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  display: block;
}

/* Error Summary Styles */
.bm-form__error-summary {
  padding: var(--bm-spacing-sm) 0;
}

.bm-form__error-summary strong {
  display: block;
  margin-bottom: var(--bm-spacing-sm);
  font-size: var(--bm-font-size-lg);
}

.bm-form__error-summary ul {
  margin: var(--bm-spacing-sm) 0 0 var(--bm-spacing-lg);
  padding: 0;
  list-style: none;
}

.bm-form__error-summary li {
  margin-bottom: var(--bm-spacing-xs);
  padding-left: var(--bm-spacing-sm);
  position: relative;
}

.bm-form__error-summary li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--bm-color-error);
  font-weight: bold;
}

.bm-form__error-link {
  color: #991b1b;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bm-form__error-link:hover {
  color: #7f1d1d;
  text-decoration: none;
}

/* Field Error Styles */
.bm-form__field-error {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-xs);
  margin-top: var(--bm-spacing-xs);
  padding: var(--bm-spacing-xs) var(--bm-spacing-sm);
  background: #fee2e2;
  border-left: 3px solid var(--bm-color-error);
  border-radius: var(--bm-radius-sm);
  color: #991b1b;
  font-size: var(--bm-font-size-sm);
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.bm-form__field-error .dashicons {
  color: var(--bm-color-error);
  font-size: 16px;
  width: 16px;
  height: 16px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error State for Input Fields */
.bm-form__input.error,
.bm-form__textarea.error,
.bm-form__select.error,
.bm-category-select.error + .select2-container .select2-selection {
  border-color: var(--bm-color-error) !important;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.bm-form__input.error:focus,
.bm-form__textarea.error:focus,
.bm-form__select.error:focus {
  border-color: var(--bm-color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* TinyMCE error state */
.mce-tinymce.error {
  border: 2px solid var(--bm-color-error) !important;
  border-radius: var(--bm-radius-base);
}

/* Success state for corrected fields */
.bm-form__input.success,
.bm-form__textarea.success,
.bm-form__select.success {
  border-color: var(--bm-color-success);
  background: #f0fdf4;
}

/* Character counter warning */
.bm-form__character-counter.warning {
  color: var(--bm-color-warning);
  font-weight: 600;
}

/* Checkbox styles */
.bm-form__checkboxes {
  display: grid;
  gap: var(--bm-spacing-sm);
}

.bm-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--bm-spacing-sm);
  cursor: pointer;
  padding: var(--bm-spacing-sm);
  border-radius: var(--bm-radius-base);
  transition: background-color 0.2s ease;
}

.bm-form__checkbox-label:hover {
  background: var(--bm-color-surface-2);
}

.bm-form__checkbox {
  margin-top: 2px;
  flex-shrink: 0;
}

.bm-form__checkbox-desc {
  display: block;
  font-size: var(--bm-font-size-sm);
  color: var(--bm-color-text-muted);
  margin-top: var(--bm-spacing-xs);
}

/* Media upload styles */
.bm-form__media-upload,
.bm-form__gallery-upload {
  border: 2px dashed var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  padding: var(--bm-spacing-lg);
  text-align: center;
  transition: border-color 0.2s ease;
}

.bm-form__media-upload:hover,
.bm-form__gallery-upload:hover {
  border-color: var(--bm-color-primary);
}

.bm-form__media-button,
.bm-form__gallery-button {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  background: var(--bm-color-primary);
  color: white;
  border: none;
  padding: var(--bm-spacing-sm) var(--bm-spacing-lg);
  border-radius: var(--bm-radius-base);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.bm-form__media-button:hover,
.bm-form__gallery-button:hover {
  background: var(--bm-color-secondary);
}

.bm-form__media-preview {
  margin-top: var(--bm-spacing-md);
  display: none;
}

.bm-form__media-preview.has-image {
  display: block;
}

.bm-form__media-preview img {
  max-width: 200px;
  height: auto;
  border-radius: var(--bm-radius-base);
  box-shadow: var(--bm-shadow-base);
}

/* Gallery grid */
.bm-form__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--bm-spacing-md);
  margin-top: var(--bm-spacing-md);
}

.bm-form__gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--bm-radius-base);
  overflow: hidden;
  border: 1px solid var(--bm-color-border);
}

.bm-form__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-form__gallery-remove {
  position: absolute;
  top: var(--bm-spacing-xs);
  right: var(--bm-spacing-xs);
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.bm-form__gallery-remove:hover {
  background: rgba(220, 38, 38, 1);
}

/* Social media repeater */
.bm-form__social-repeater {
  position: relative;
}

.bm-form__social-items {
  display: grid;
  gap: var(--bm-spacing-md);
  margin-bottom: var(--bm-spacing-md);
}

.bm-form__social-items:empty::before {
  content: "No social media links added yet. Click the button below to add your first link.";
  display: block;
  padding: var(--bm-spacing-lg);
  text-align: center;
  color: var(--bm-color-text-muted);
  font-style: italic;
  background: var(--bm-color-surface-2);
  border: 2px dashed var(--bm-color-border);
  border-radius: var(--bm-radius-base);
}

.bm-form__social-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: var(--bm-spacing-sm);
  align-items: start;
  padding: var(--bm-spacing-md);
  background: var(--bm-color-surface-2);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  transition: all 0.2s ease;
}

.bm-form__social-item:hover {
  border-color: var(--bm-color-primary);
  box-shadow: var(--bm-shadow-sm);
}

.bm-form__social-select {
  width: 100%;
  padding: var(--bm-spacing-sm) var(--bm-spacing-md);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  font-size: var(--bm-font-size-base);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.bm-form__social-select:focus {
  outline: none;
  border-color: var(--bm-color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bm-form__social-url {
  width: 100%;
  padding: var(--bm-spacing-sm) var(--bm-spacing-md);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  font-size: var(--bm-font-size-base);
  background: white;
  transition: border-color 0.2s ease;
}

.bm-form__social-url:focus {
  outline: none;
  border-color: var(--bm-color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bm-form__social-url::placeholder {
  color: var(--bm-color-text-light);
  font-size: var(--bm-font-size-sm);
}

.bm-form__social-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--bm-radius-base);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bm-form__social-remove:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: scale(1.05);
}

.bm-form__social-remove .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.bm-form__social-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bm-spacing-sm);
  background: white;
  color: var(--bm-color-primary);
  border: 2px dashed var(--bm-color-primary);
  padding: var(--bm-spacing-md) var(--bm-spacing-lg);
  border-radius: var(--bm-radius-base);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--bm-font-size-base);
  transition: all 0.2s ease;
  width: 100%;
  margin-top: var(--bm-spacing-sm);
}

.bm-form__social-add:hover {
  background: var(--bm-color-primary);
  color: white;
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: var(--bm-shadow-md);
}

.bm-form__social-add .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Form actions */
.bm-form__actions {
  display: flex;
  gap: var(--bm-spacing-md);
  justify-content: flex-end;
  align-items: center;
  margin-top: var(--bm-spacing-xl);
  padding-top: var(--bm-spacing-lg);
  border-top: 1px solid var(--bm-color-border);
}

.bm-form__submit {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  background: var(--bm-gradient-primary);
  color: white;
  border: none;
  padding: var(--bm-spacing-md) var(--bm-spacing-xxl);
  border-radius: var(--bm-radius-lg);
  font-weight: 700;
  font-size: var(--bm-font-size-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--bm-shadow-md);
  position: relative;
  overflow: hidden;
}

.bm-form__submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.bm-form__submit:hover::before {
  left: 100%;
}

.bm-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--bm-shadow-lg);
  background: var(--bm-color-primary-hover);
}

.bm-form__submit:active {
  transform: translateY(0);
  box-shadow: var(--bm-shadow-base);
}

.bm-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bm-form__submit-loading {
  display: none;
}

.bm-form__submit.loading .bm-form__submit-text {
  display: none;
}

.bm-form__submit.loading .bm-form__submit-loading {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
}

.bm-form__cancel {
  color: var(--bm-color-text-muted);
  text-decoration: none;
  padding: var(--bm-spacing-sm);
}

.bm-form__cancel:hover {
  color: var(--bm-color-text);
  text-decoration: underline;
}

/* Modern Shortcode Base Styles */
.bm-shortcode {
  margin: var(--bm-spacing-xl) 0;
}

/* Test shortcode for debugging */
.bm-test {
  background: var(--bm-gradient-primary);
  color: white;
  padding: var(--bm-spacing-lg);
  border-radius: var(--bm-radius-lg);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--bm-shadow-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Error message styling */
.bm-error {
  background: linear-gradient(135deg, var(--bm-color-error) 0%, #dc2626 100%);
  color: white;
  padding: var(--bm-spacing-lg);
  border-radius: var(--bm-radius-lg);
  border-left: 4px solid #991b1b;
  box-shadow: var(--bm-shadow-md);
  margin: var(--bm-spacing-md) 0;
}

/* Success message styling */
.bm-success {
  background: linear-gradient(135deg, var(--bm-color-success) 0%, #059669 100%);
  color: white;
  padding: var(--bm-spacing-lg);
  border-radius: var(--bm-radius-lg);
  border-left: 4px solid #047857;
  box-shadow: var(--bm-shadow-md);
  margin: var(--bm-spacing-md) 0;
}

/* Modern Dashboard Shortcode */
.bm-dashboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
}

.bm-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--bm-spacing-md);
  margin-bottom: var(--bm-spacing-xl);
  text-align: center;
}

.bm-dashboard__stat {
  padding: var(--bm-spacing-md);
  background-color: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
  border-left: 4px solid var(--bm-color-border);
}

.bm-dashboard__stat--publish { border-color: var(--bm-color-success, #4ade80); }
.bm-dashboard__stat--pending { border-color: var(--bm-color-warning, #facc15); }
.bm-dashboard__stat--draft { border-color: var(--bm-color-text-muted, #9ca3af); }

.bm-dashboard__stat-number {
  display: block;
  font-size: var(--bm-font-size-xxl);
  font-weight: 700;
  color: var(--bm-color-primary);
}

.bm-dashboard__stat-label {
  font-size: var(--bm-font-size-sm);
  color: var(--bm-color-text-muted);
}

.bm-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bm-spacing-md);
  margin-bottom: var(--bm-spacing-lg);
  padding-bottom: var(--bm-spacing-md);
  border-bottom: 1px solid var(--bm-color-border);
}

.bm-dashboard__title {
  margin: 0;
  font-size: var(--bm-font-size-xl);
}

.bm-button {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  padding: var(--bm-spacing-sm) var(--bm-spacing-lg);
  border-radius: var(--bm-radius-base);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.bm-button--primary {
  background: var(--bm-color-primary);
  color: #fff;
  border-color: var(--bm-color-primary);
}

.bm-button--secondary {
  background: var(--bm-color-surface);
  color: var(--bm-color-text);
  border: 1px solid var(--bm-color-border);
}

.bm-button--secondary:hover {
    background: var(--bm-color-surface-2);
    border-color: var(--bm-color-border-hover);
}

.bm-button--danger {
  background: var(--bm-color-error, #dc3232);
  color: #fff;
  border-color: var(--bm-color-error, #dc3232);
}

.bm-button--danger:hover {
    opacity: 0.9;
}

.bm-button.loading {
  opacity: 0.7;
  cursor: wait;
}

.bm-dashboard__businesses {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bm-spacing-md);
}

.bm-dashboard__business {
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  padding: var(--bm-spacing-md);
  background: var(--bm-color-surface);
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.bm-dashboard__business:hover {
    border-color: var(--bm-color-primary);
    box-shadow: var(--bm-shadow-base);
}

.bm-dashboard__business-thumbnail a {
  display: block;
}

.bm-dashboard__business-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--bm-radius-base);
}

.bm-dashboard__business-placeholder {
  width: 80px;
  height: 80px;
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-color-text-muted);
  font-size: 2rem;
}

.bm-dashboard__business-details {
  flex-grow: 1;
}

.bm-dashboard__business-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bm-spacing-sm);
  margin-bottom: var(--bm-spacing-xs);
}

.bm-dashboard__business-title a {
    font-size: var(--bm-font-size-lg);
    font-weight: 600;
    color: var(--bm-color-text);
    text-decoration: none;
}

.bm-dashboard__business-title a:hover {
    color: var(--bm-color-primary);
}

.bm-dashboard__business-status {
  font-size: var(--bm-font-size-sm);
  font-weight: 600;
  padding: var(--bm-spacing-xs) var(--bm-spacing-sm);
  border-radius: var(--bm-radius-sm);
  color: #fff;
  text-transform: capitalize;
}

.bm-dashboard__business-status--publish { background: var(--bm-color-success, #22c55e); }
.bm-dashboard__business-status--pending { background: var(--bm-color-warning, #f59e0b); }
.bm-dashboard__business-status--draft { background: var(--bm-color-text-muted, #6b7280); }

.bm-dashboard__business-actions {
  display: flex;
  gap: var(--bm-spacing-sm);
  margin-left: auto;
  flex-shrink: 0;
}

.bm-dashboard__business-actions .bm-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-dashboard__business-meta {
  font-size: var(--bm-font-size-sm);
  color: var(--bm-color-text-muted);
  padding: var(--bm-spacing-sm);
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
}

.bm-dashboard__pagination {
    margin-top: var(--bm-spacing-xl);
    text-align: center;
}

.bm-dashboard__pagination .page-numbers {
    padding: var(--bm-spacing-sm) var(--bm-spacing-md);
    text-decoration: none;
    border: 1px solid var(--bm-color-border);
    color: var(--bm-color-primary);
    margin: 0 2px;
    border-radius: var(--bm-radius-base);
}

.bm-dashboard__pagination .page-numbers.current,
.bm-dashboard__pagination .page-numbers:hover {
    background-color: var(--bm-color-primary);
    color: #fff;
    border-color: var(--bm-color-primary);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .bm-dashboard__business {
        flex-direction: column;
        align-items: flex-start;
    }

    .bm-dashboard__business-actions {
        width: 100%;
        margin-top: var(--bm-spacing-md);
        justify-content: flex-start;
    }

    .bm-dashboard__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bm-dashboard__empty {
  text-align: center;
  padding: var(--bm-spacing-xl);
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
}

/* Modern Contact Shortcode */
.bm-contact {
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
}

.bm-contact--list .bm-contact__item {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-md);
  margin-bottom: var(--bm-spacing-md);
  padding: var(--bm-spacing-md);
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
  transition: all 0.3s ease;
}

.bm-contact--list .bm-contact__item:hover {
  background: var(--bm-color-surface-3);
  transform: translateX(4px);
}

.bm-contact--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--bm-spacing-lg);
}

.bm-contact--grid .bm-contact__item {
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-lg);
  border: 1px solid var(--bm-color-border);
  transition: all 0.3s ease;
  text-align: center;
}

.bm-contact--grid .bm-contact__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--bm-shadow-lg);
  border-color: var(--bm-color-primary);
}

.bm-contact--inline {
  display: flex;
  gap: var(--bm-spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.bm-contact__icon {
  color: var(--bm-color-primary);
  font-size: 1.5rem;
}

.bm-contact__label {
  font-weight: 600;
  color: var(--bm-color-text-muted);
  text-transform: uppercase;
  font-size: var(--bm-font-size-sm);
  letter-spacing: 0.5px;
  margin-bottom: var(--bm-spacing-xs);
}

.bm-contact__value {
  font-weight: 600;
  color: var(--bm-color-text);
}

.bm-contact__value a {
  color: var(--bm-color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bm-contact__value a:hover {
  color: var(--bm-color-primary-hover);
  text-decoration: underline;
}

/* Social shortcode styles */
.bm-social--icons .bm-social__link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--bm-color-primary);
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.bm-social--icons .bm-social__link:hover {
  transform: scale(1.1);
}

.bm-social--icons .bm-social__label {
  display: none;
}

/* Modern Gallery Shortcode */
.bm-gallery {
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
  display: grid;
  gap: var(--bm-spacing-md);
}

.bm-gallery--columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bm-gallery--columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.bm-gallery--columns-4 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.bm-gallery__item {
  position: relative;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bm-color-surface-2);
  box-shadow: var(--bm-shadow-sm);
  transition: all 0.3s ease;
}

.bm-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--bm-shadow-lg);
}

.bm-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bm-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bm-gallery__link:hover .bm-gallery__image {
  transform: scale(1.1);
}

.bm-gallery__link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bm-gallery__link:hover::after {
  opacity: 1;
}

.bm-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: var(--bm-spacing-md);
  font-size: var(--bm-font-size-sm);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.bm-gallery__item:hover .bm-gallery__caption {
  transform: translateY(0);
}

/* Modern Access Denied Message */
.bm-access-denied {
  text-align: center;
  padding: var(--bm-spacing-xxl);
  background: var(--bm-gradient-surface);
  border-radius: var(--bm-radius-lg);
  border: 1px solid var(--bm-color-border);
  box-shadow: var(--bm-shadow-lg);
  position: relative;
  overflow: hidden;
}

.bm-access-denied::before {
  content: '';
  font-size: 4rem;
  opacity: 0.1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.bm-access-denied > * {
  position: relative;
  z-index: 1;
}

.bm-access-denied__title {
  color: var(--bm-color-text);
  margin-bottom: var(--bm-spacing-md);
}

.bm-access-denied__message {
  color: var(--bm-color-text-muted);
  margin-bottom: var(--bm-spacing-lg);
}

.bm-access-denied__button {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  background: var(--bm-color-primary);
  color: white;
  padding: var(--bm-spacing-md) var(--bm-spacing-xl);
  border-radius: var(--bm-radius-base);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bm-access-denied__button:hover {
  background: var(--bm-color-secondary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--bm-shadow-base);
}

/* Modern Responsive Design */

/* Tablet and smaller */
@media (max-width: 1024px) {
  .bm-dashboard__stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .bm-gallery--columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .bm-contact--grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile and smaller tablets */
@media (max-width: 768px) {
  :root {
    --bm-spacing-xs: 0.2rem;
    --bm-spacing-sm: 0.4rem;
    --bm-spacing-md: 0.8rem;
    --bm-spacing-lg: 1.2rem;
    --bm-spacing-xl: 1.6rem;
    --bm-spacing-xxl: 2rem;
  }

  .bm-single {
    padding: var(--bm-spacing-md);
  }

  .bm-single__hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--bm-spacing-md);
    padding: var(--bm-spacing-md);
  }

  .bm-single__logo img {
    width: 80px;
    height: 80px;
  }

  .bm-single__title {
    font-size: var(--bm-font-size-xl);
  }

  .bm-single__contact-grid {
    grid-template-columns: 1fr;
  }

  .bm-single__social-list,
  .bm-social--icons,
  .bm-social--buttons {
    justify-content: center;
  }

  .bm-single__gallery-grid,
  .bm-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .bm-form {
    padding: var(--bm-spacing-lg);
    margin: var(--bm-spacing-md);
  }

  .bm-form__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--bm-spacing-md);
  }

  .bm-form__social-item {
    flex-direction: column;
    gap: var(--bm-spacing-sm);
  }

  .bm-form__social-select {
    min-width: auto;
  }

  .bm-dashboard {
    padding: var(--bm-spacing-lg);
    margin: var(--bm-spacing-md);
  }

  .bm-dashboard__header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--bm-spacing-md);
  }

  .bm-dashboard__stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--bm-spacing-md);
  }

  .bm-dashboard__stat-number {
    font-size: 2rem;
  }

  .bm-dashboard__business-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bm-spacing-sm);
  }

  .bm-dashboard__business-actions {
    flex-direction: column;
    gap: var(--bm-spacing-sm);
  }

  .bm-button {
    justify-content: center;
  }

  .bm-contact--grid {
    grid-template-columns: 1fr;
  }

  .bm-contact--inline {
    flex-direction: column;
    align-items: center;
  }

  .bm-gallery--columns-2,
  .bm-gallery--columns-3,
  .bm-gallery--columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .bm-social--buttons {
    flex-direction: column;
  }

  .bm-map,
  .bm-contact,
  .bm-gallery {
    padding: var(--bm-spacing-md);
    margin: var(--bm-spacing-sm) 0;
  }
}

/* Small mobile */
@media (max-width: 768px) {
  /* Responsive social media fields */
  .bm-form__social-item {
    grid-template-columns: 1fr;
    gap: var(--bm-spacing-md);
  }

  .bm-form__social-select,
  .bm-form__social-url {
    width: 100%;
  }

  .bm-form__social-remove {
    width: 100%;
    height: auto;
    padding: var(--bm-spacing-sm);
  }
}

@media (max-width: 480px) {
  .bm-form {
    padding: var(--bm-spacing-md);
  }

  .bm-dashboard {
    padding: var(--bm-spacing-md);
  }

  .bm-dashboard__stats {
    grid-template-columns: 1fr;
  }

  .bm-single__gallery-grid,
  .bm-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--bm-spacing-sm);
  }

  .bm-form__fieldset {
    padding: var(--bm-spacing-md);
  }

  .bm-form__title {
    font-size: var(--bm-font-size-xl);
  }

  .bm-button {
    padding: var(--bm-spacing-sm) var(--bm-spacing-md);
    font-size: var(--bm-font-size-sm);
  }

  .bm-social--icons .bm-social__link {
    width: 40px;
    height: 40px;
  }
}

/* Large screens optimization */
@media (min-width: 1200px) {
  .bm-form {
    max-width: 900px;
  }

  .bm-dashboard {
    max-width: 1200px;
  }

  .bm-dashboard__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .bm-single__gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .bm-gallery--columns-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print styles */
@media print {
  .bm-single__actions,
  .bm-form {
    display: none;
  }

  .bm-single__hero-content {
    position: static;
    background: none;
    color: inherit;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bm-single__contact-item,
  .bm-form__fieldset,
  .bm-form__input,
  .bm-form__textarea {
    border-width: 2px;
  }
}

/* Modern Interactive Elements */

/* Loading animations */
.bm-loading {
  position: relative;
  overflow: hidden;
}

.bm-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Focus styles for accessibility */
.bm-form__input:focus,
.bm-form__textarea:focus,
.bm-button:focus,
.bm-social__link:focus,
.bm-contact__value a:focus {
  outline: 2px solid var(--bm-color-primary);
  outline-offset: 2px;
}

/* Dark mode support - REMOVED TO ENSURE CONSISTENT THEME */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bm-single__contact-item,
  .bm-form__fieldset,
  .bm-form__input,
  .bm-form__textarea,
  .bm-button,
  .bm-dashboard__business {
    border-width: 2px;
  }

  .bm-button--primary,
  .bm-form__submit {
    background: #000;
    border: 2px solid #000;
  }

  .bm-button--secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bm-form__submit::before,
  .bm-button::before,
  .bm-social__link::before {
    display: none;
  }
}

/* Dashboard Skeleton Loader */
.bm-dashboard__business--skeleton { position: relative; overflow: hidden; }
.bm-skeleton-block { position: relative; background: var(--bm-color-surface-2, #f1f5f9); border-radius: var(--bm-radius-base); }
.bm-skeleton-thumb { width: 80px; height: 80px; }
.bm-skeleton-title { height: 18px; width: 60%; margin: 6px 0; }
.bm-skeleton-line { height: 14px; width: 40%; margin: 4px 0; }
.bm-skeleton-btn { height: 32px; width: 40px; border-radius: var(--bm-radius-base); display: inline-block; }
.bm-skel-shimmer { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%); background-size: 200px 100%; animation: bm-skel-shimmer 1.1s ease-in-out infinite; border-radius: inherit; }
@keyframes bm-skel-shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }

/* Access Message Styles */
.bm-access-message {
  max-width: 500px;
  margin: var(--bm-spacing-xl) auto;
  padding: var(--bm-spacing-xl);
  background: var(--bm-color-surface);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-md);
  text-align: center;
}

.bm-access-message__icon {
  margin-bottom: var(--bm-spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.bm-access-message__icon .bm-icon {
  width: 48px;
  height: 48px;
  color: var(--bm-color-primary);
}

.bm-access-message__title {
  font-size: var(--bm-font-size-xxl);
  font-weight: 700;
  color: var(--bm-color-text);
  margin-bottom: var(--bm-spacing-md);
  line-height: 1.2;
}

.bm-access-message__text {
  font-size: var(--bm-font-size-base);
  color: var(--bm-color-text-muted);
  margin-bottom: var(--bm-spacing-xl);
  line-height: 1.6;
}

.bm-access-message__actions {
  display: flex;
  flex-direction: column;
  gap: var(--bm-spacing-md);
  align-items: center;
}

.bm-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-button__icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bm-button__text {
  display: inline-block;
}

@media (min-width: 640px) {
  .bm-access-message__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* LinkedIn-Style Business Archive Pages */

.bm-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--bm-spacing-lg);
  background: var(--bm-color-surface-2);
}

.bm-archive__hero {
  background: var(--bm-gradient-surface);
  border-radius: var(--bm-radius-lg);
  padding: var(--bm-spacing-xxl);
  margin-bottom: var(--bm-spacing-xl);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
  text-align: center;
}

.bm-archive__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-archive__description {
  font-size: var(--bm-font-size-lg);
  color: var(--bm-color-text-muted);
  margin: 0 0 var(--bm-spacing-xl) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bm-archive__filters {
  max-width: 800px;
  margin: 0 auto;
}

.bm-search-form__wrapper {
  position: relative;
  margin-bottom: var(--bm-spacing-lg);
}

.bm-search-form__input {
  width: 100%;
  padding: var(--bm-spacing-md) var(--bm-spacing-xl) var(--bm-spacing-md) var(--bm-spacing-md);
  border: 2px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
  font-size: var(--bm-font-size-lg);
  background: var(--bm-color-surface);
  transition: all 0.3s ease;
  box-shadow: var(--bm-shadow-sm);
}

.bm-search-form__input:focus {
  outline: none;
  border-color: var(--bm-color-primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1), var(--bm-shadow-md);
  transform: translateY(-1px);
}

.bm-search-form__button {
  position: absolute;
  right: var(--bm-spacing-xs);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bm-gradient-primary);
  color: white;
  border: none;
  padding: var(--bm-spacing-sm);
  border-radius: var(--bm-radius-base);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-search-form__button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--bm-shadow-md);
}

.bm-category-filter__list {
  display: flex;
  gap: var(--bm-spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.bm-category-filter__item {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-xs);
  padding: var(--bm-spacing-sm) var(--bm-spacing-md);
  background: var(--bm-color-surface);
  border: 2px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
  text-decoration: none;
  color: var(--bm-color-text);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: var(--bm-font-size-sm);
}

.bm-category-filter__item:hover,
.bm-category-filter__item--active {
  background: var(--bm-color-primary);
  color: white;
  border-color: var(--bm-color-primary);
  transform: translateY(-1px);
  box-shadow: var(--bm-shadow-md);
}

.bm-category-filter__count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: var(--bm-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.bm-archive__results {
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  padding: var(--bm-spacing-xl);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
}

.bm-archive__results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--bm-spacing-xl);
  padding-bottom: var(--bm-spacing-lg);
  border-bottom: 1px solid var(--bm-color-border);
}

.bm-archive__results-info {
  font-size: var(--bm-font-size-lg);
  font-weight: 600;
  color: var(--bm-color-text);
}

.bm-archive__sort {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
}

.bm-archive__sort-label {
  font-weight: 600;
  color: var(--bm-color-text-muted);
}

.bm-archive__sort-select {
  padding: var(--bm-spacing-sm) var(--bm-spacing-md);
  border: 2px solid var(--bm-color-border);
  border-radius: var(--bm-radius-base);
  background: var(--bm-color-surface);
  font-weight: 600;
}

.bm-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--bm-spacing-xl);
  margin-bottom: var(--bm-spacing-xl);
}

.bm-business-card {
  background: var(--bm-color-surface);
  border: 1px solid var(--bm-color-border);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--bm-shadow-sm);
  position: relative;
}

.bm-business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bm-shadow-lg);
  border-color: var(--bm-color-border-hover);
}

.bm-business-card__header {
  position: relative;
}

.bm-business-card__cover {
  height: 120px;
  overflow: hidden;
  background: var(--bm-color-surface-2);
}

.bm-business-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bm-business-card:hover .bm-business-card__cover img {
  transform: scale(1.05);
}

.bm-business-card__profile {
  padding: var(--bm-spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--bm-spacing-md);
}

.bm-business-card__logo {
  width: 60px;
  height: 60px;
  border-radius: var(--bm-radius-base);
  overflow: hidden;
  border: 3px solid var(--bm-color-surface);
  box-shadow: var(--bm-shadow-md);
  flex-shrink: 0;
  margin-top: -30px;
  background: var(--bm-color-surface);
}

.bm-business-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-business-card__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
  font-size: 1.5rem;
}

.bm-business-card__title {
  margin: 0 0 var(--bm-spacing-xs) 0;
  font-size: var(--bm-font-size-lg);
  font-weight: 700;
}

.bm-business-card__title a {
  color: var(--bm-color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bm-business-card__title a:hover {
  color: var(--bm-color-primary);
}

.bm-business-card__categories {
  display: flex;
  gap: var(--bm-spacing-xs);
  flex-wrap: wrap;
}

.bm-business-card__category {
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
  padding: 2px 8px;
  border-radius: var(--bm-radius-sm);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.bm-business-card__category:hover {
  background: var(--bm-color-primary);
  color: white;
}

.bm-business-card__content {
  padding: 0 var(--bm-spacing-lg) var(--bm-spacing-lg);
}

.bm-business-card__excerpt {
  color: var(--bm-color-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-business-card__contact {
  display: flex;
  gap: var(--bm-spacing-md);
  flex-wrap: wrap;
}

.bm-business-card__contact-item {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-xs);
  font-size: var(--bm-font-size-sm);
  color: var(--bm-color-text-muted);
}

.bm-business-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--bm-spacing-md) var(--bm-spacing-lg);
  border-top: 1px solid var(--bm-color-border);
  background: var(--bm-color-surface-2);
}

.bm-business-card__date {
  font-size: var(--bm-font-size-sm);
  color: var(--bm-color-text-muted);
}

.bm-business-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-xs);
  color: var(--bm-color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--bm-font-size-sm);
  transition: all 0.3s ease;
}

.bm-business-card__link:hover {
  color: var(--bm-color-primary-hover);
  transform: translateX(2px);
}

.bm-archive__empty {
  text-align: center;
  padding: var(--bm-spacing-xxl);
  color: var(--bm-color-text-muted);
}

.bm-archive__empty-icon {
  font-size: 4rem;
  margin-bottom: var(--bm-spacing-lg);
  opacity: 0.5;
}

.bm-archive__empty-title {
  font-size: var(--bm-font-size-xl);
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-archive__empty-actions {
  margin-top: var(--bm-spacing-lg);
  display: flex;
  gap: var(--bm-spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.bm-archive__cta {
  background: var(--bm-gradient-primary);
  color: white;
  border-radius: var(--bm-radius-lg);
  padding: var(--bm-spacing-xxl);
  margin-top: var(--bm-spacing-xl);
  text-align: center;
  box-shadow: var(--bm-shadow-lg);
}

.bm-archive__cta-title {
  font-size: var(--bm-font-size-xl);
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-archive__cta-description {
  margin: 0 0 var(--bm-spacing-lg) 0;
  opacity: 0.9;
}

.bm-button--large {
  padding: var(--bm-spacing-md) var(--bm-spacing-xxl);
  font-size: var(--bm-font-size-lg);
}

/* LinkedIn-Style Single Business Profile */

.bm-single-main {
  background: var(--bm-color-surface-2);
  min-height: 100vh;
  padding: var(--bm-spacing-lg);
}

.bm-profile {
  max-width: 1200px;
  margin: 0 auto;
}

.bm-profile__header-card {
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  box-shadow: var(--bm-shadow-lg);
  border: 1px solid var(--bm-color-border);
  margin-bottom: var(--bm-spacing-xl);
  position: relative;
}

.bm-profile__cover {
  height: 200px;
  background: var(--bm-gradient-primary);
  position: relative;
  overflow: hidden;
}

.bm-profile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-profile__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
}

.bm-profile__info {
  padding: var(--bm-spacing-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--bm-spacing-lg);
  position: relative;
}

.bm-profile__avatar {
  width: 150px;
  height: 150px;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  border: 4px solid var(--bm-color-surface);
  box-shadow: var(--bm-shadow-lg);
  flex-shrink: 0;
  margin-top: -75px;
  background: var(--bm-color-surface);
}

.bm-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-profile__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
  font-size: 3rem;
}

.bm-profile__details {
  flex: 1;
}

.bm-profile__name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-xs) 0;
}

.bm-profile__industry {
  font-size: var(--bm-font-size-lg);
  color: var(--bm-color-text-muted);
  margin: 0 0 var(--bm-spacing-sm) 0;
  font-weight: 600;
}

.bm-profile__industry-more {
  color: var(--bm-color-primary);
  font-size: var(--bm-font-size-sm);
}

.bm-profile__location {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-xs);
  color: var(--bm-color-text-muted);
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-profile__tagline {
  color: var(--bm-color-text);
  font-size: var(--bm-font-size-lg);
  line-height: 1.5;
  margin: 0;
}

.bm-profile__actions {
  display: flex;
  gap: var(--bm-spacing-md);
  margin-top: var(--bm-spacing-lg);
  flex-wrap: wrap;
}

.bm-profile__action {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  padding: var(--bm-spacing-sm) var(--bm-spacing-lg);
  border-radius: var(--bm-radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.bm-profile__action--primary {
  background: var(--bm-gradient-primary);
  color: white;
}

.bm-profile__action--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--bm-shadow-lg);
  color: white;
}

.bm-profile__action--secondary {
  background: var(--bm-color-surface);
  color: var(--bm-color-primary);
  border-color: var(--bm-color-primary);
}

.bm-profile__action--secondary:hover {
  background: var(--bm-color-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--bm-shadow-md);
}

.bm-profile__action--more {
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
  padding: var(--bm-spacing-sm);
  border-radius: var(--bm-radius-lg);
  width: 40px;
  height: 40px;
  justify-content: center;
}

.bm-profile__action--more:hover {
  background: var(--bm-color-primary);
  color: white;
}

.bm-profile__categories {
  position: absolute;
  bottom: var(--bm-spacing-lg);
  right: var(--bm-spacing-lg);
  display: flex;
  gap: var(--bm-spacing-xs);
  flex-wrap: wrap;
}

.bm-profile__category-badge {
  background: var(--bm-color-surface);
  color: var(--bm-color-primary);
  padding: var(--bm-spacing-xs) var(--bm-spacing-sm);
  border-radius: var(--bm-radius-sm);
  text-decoration: none;
  font-size: var(--bm-font-size-sm);
  font-weight: 600;
  border: 1px solid var(--bm-color-border);
  transition: all 0.3s ease;
}

.bm-profile__category-badge:hover {
  background: var(--bm-color-primary);
  color: white;
}

.bm-profile__content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--bm-spacing-xl);
  align-items: flex-start;
}

.bm-profile__section {
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  padding: var(--bm-spacing-xl);
  margin-bottom: var(--bm-spacing-xl);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
  display: flex
;
    flex-direction: column;
    align-items: flex-start;
}

.bm-profile__section-title {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  font-size: var(--bm-font-size-lg);
  font-weight: 700;
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-lg) 0;
  padding-bottom: var(--bm-spacing-md);
  border-bottom: 1px solid var(--bm-color-border);
}

.bm-profile__section-count {
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
  padding: 2px 8px;
  border-radius: var(--bm-radius-sm);
  font-size: var(--bm-font-size-sm);
  font-weight: 600;
}

.bm-profile__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bm-spacing-md);
}

.bm-profile__gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--bm-radius-base);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.bm-profile__gallery-item:hover {
  transform: scale(1.02);
}

.bm-profile__gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.bm-profile__gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bm-profile__gallery-link:hover .bm-profile__gallery-image {
  transform: scale(1.1);
}

.bm-profile__gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--bm-font-size-xl);
  font-weight: 700;
}

.bm-profile__map-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  height: 300px;
}

.bm-profile__map {
  border-radius: var(--bm-radius-base);
  overflow: hidden;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.bm-profile__map .leaflet-container {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  z-index: 1;
}

/* Fix Leaflet map z-index issues */
.bm-profile__map .leaflet-tile-pane,
.bm-profile__map .leaflet-layer,
.bm-profile__map .leaflet-tile-container {
  z-index: 1 !important;
}

.bm-profile__map .leaflet-overlay-pane {
  z-index: 2 !important;
}

.bm-profile__map .leaflet-shadow-pane {
  z-index: 3 !important;
}

.bm-profile__map .leaflet-marker-pane {
  z-index: 4 !important;
}

.bm-profile__map .leaflet-tooltip-pane {
  z-index: 5 !important;
}

.bm-profile__map .leaflet-popup-pane {
  z-index: 6 !important;
}

.bm-profile__map .leaflet-control-container {
  z-index: 7 !important;
}

/* Ensure map container itself has low z-index */
.bm-profile__map-container {
  position: relative;
  z-index: 1;
}

.bm-profile__sidebar-card {
  background: var(--bm-color-surface);
  border-radius: var(--bm-radius-lg);
  padding: var(--bm-spacing-lg);
  margin-bottom: var(--bm-spacing-lg);
  box-shadow: var(--bm-shadow-md);
  border: 1px solid var(--bm-color-border);
}

.bm-profile__sidebar-title {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  font-size: var(--bm-font-size-base);
  font-weight: 700;
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-profile__contact-item {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  margin-bottom: var(--bm-spacing-md);
}

.bm-profile__contact-item--address {
  align-items: flex-start;
}

.bm-profile__contact-link {
  color: var(--bm-color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.bm-profile__contact-link:hover {
  color: var(--bm-color-primary-hover);
}

.bm-profile__social-links {
  display: flex;
  gap: var(--bm-spacing-sm);
  flex-wrap: wrap;
}

.bm-profile__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bm-color-surface-2);
  color: var(--bm-color-text-muted);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bm-profile__social-link:hover {
  background: var(--bm-color-primary);
  color: white;
  transform: scale(1.1);
}

.bm-profile__business-action {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  color: var(--bm-color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.bm-profile__business-action:hover {
  color: var(--bm-color-primary-hover);
}

.bm-profile__info-items {
  display: flex;
  flex-direction: column;
  gap: var(--bm-spacing-sm);
}

.bm-profile__info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bm-profile__info-label {
  color: var(--bm-color-text-muted);
  font-size: var(--bm-font-size-sm);
}

.bm-profile__info-value {
  color: var(--bm-color-text);
  font-weight: 600;
  font-size: var(--bm-font-size-sm);
}

/* Responsive Design for LinkedIn-style layouts */
@media (max-width: 1024px) {
  .bm-profile__content-grid {
    grid-template-columns: 1fr;
  }

  .bm-archive__grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .bm-profile__info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bm-profile__avatar {
    margin-top: -50px;
    width: 120px;
    height: 120px;
  }

  .bm-profile__actions {
    justify-content: center;
  }

  .bm-profile__categories {
    position: static;
    margin-top: var(--bm-spacing-md);
    justify-content: center;
  }

  .bm-archive__results-header {
    flex-direction: column;
    gap: var(--bm-spacing-md);
    text-align: center;
  }

  .bm-archive__grid {
    grid-template-columns: 1fr;
  }

  .bm-business-card__profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bm-business-card__logo {
    margin-top: -40px;
  }

  .bm-profile__gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Modern Modal System */

.bm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000 !important; /* Lower than WP media modal (160000) */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bm-modal.bm-modal--active {
  display: flex;
  opacity: 1;
}

.bm-modal__container {
  background: var(--bm-color-surface) !important;
  color: var(--bm-color-text) !important;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  display: flex !important;
  flex-direction: column !important;
}

.bm-modal.bm-modal--active .bm-modal__container {
  transform: scale(1);
}

/* Prevent scrolling when modal is open */
body.bm-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.bm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bm-spacing-xl);
  border-bottom: 1px solid var(--bm-color-border, #dcdcde) !important;
  background: var(--bm-gradient-surface);
}

.bm-modal__title {
  font-size: var(--bm-font-size-xl);
  font-weight: 700;
  color: var(--bm-color-text) !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
}

.bm-modal__close {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--bm-color-text-muted) !important;
  font-size: 1.2rem;
}

.bm-modal__close:hover {
  background: var(--bm-color-surface-2) !important;
  color: var(--bm-color-text) !important;
  transform: scale(1.1);
}

.bm-modal__content {
  padding: var(--bm-spacing-xl);
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bm-color-border) transparent;
}

.bm-modal__content::-webkit-scrollbar {
  width: 6px;
}

.bm-modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.bm-modal__content::-webkit-scrollbar-thumb {
  background: var(--bm-color-border);
  border-radius: 3px;
}

.bm-modal__content::-webkit-scrollbar-thumb:hover {
  background: var(--bm-color-border-hover);
}

/* Modal Form Styling */
.bm-modal .bm-form {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.bm-modal .bm-form::before {
  display: none;
}

.bm-modal .bm-form__header {
  display: none; /* Title is in modal header */
}

.bm-modal .bm-form__fieldset {
  margin-bottom: var(--bm-spacing-lg);
}

  .bm-modal .bm-form__actions {
    position: sticky;
    bottom: 0;
    background: var(--bm-color-surface) !important;
    border-top: 1px solid var(--bm-color-border) !important;
    padding: var(--bm-spacing-md) var(--bm-spacing-xl) !important;
    margin-top: auto !important;
  }

/* Modal Trigger Buttons */
.bm-add-business-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-spacing-sm);
  background: var(--bm-gradient-primary);
  color: white;
  border: none;
  padding: var(--bm-spacing-md) var(--bm-spacing-xl);
  border-radius: var(--bm-radius-lg);
  font-weight: 700;
  font-size: var(--bm-font-size-base);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--bm-shadow-md);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.bm-add-business-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.bm-add-business-btn:hover::before {
  left: 100%;
}

.bm-add-business-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--bm-shadow-lg);
  color: white;
}

.bm-add-business-btn:active {
  transform: translateY(0);
  box-shadow: var(--bm-shadow-base);
}

/* Floating Action Button (FAB) Style */
.bm-fab {
  position: fixed;
  bottom: var(--bm-spacing-xl);
  right: var(--bm-spacing-xl);
  width: 60px;
  height: 60px;
  background: var(--bm-gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--bm-shadow-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
}

.bm-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--bm-shadow-xl);
}

.bm-fab:active {
  transform: scale(0.95);
}

/* Loading State */
.bm-modal--loading .bm-modal__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.bm-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bm-spacing-md);
  color: var(--bm-color-text-muted);
}

.bm-modal-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bm-color-border);
  border-top: 3px solid var(--bm-color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success State */
.bm-modal-success {
  text-align: center;
  padding: var(--bm-spacing-xxl);
}

.bm-modal-success__icon {
  width: 80px;
  height: 80px;
  background: var(--bm-color-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--bm-spacing-lg);
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.bm-modal-success__title {
  font-size: var(--bm-font-size-xl);
  color: var(--bm-color-text);
  margin: 0 0 var(--bm-spacing-md) 0;
}

.bm-modal-success__message {
  color: var(--bm-color-text-muted);
  margin: 0 0 var(--bm-spacing-lg) 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .bm-modal {
    padding: var(--bm-spacing-md);
  }

  .bm-modal__container {
    max-height: 95vh;
  }

  .bm-modal__header,
  .bm-modal__content {
    padding: var(--bm-spacing-lg);
  }

  .bm-modal .bm-form__actions {
    margin: 0 calc(var(--bm-spacing-lg) * -1) calc(var(--bm-spacing-lg) * -1);
    padding: var(--bm-spacing-md) var(--bm-spacing-lg);
  }

  .bm-fab {
    bottom: var(--bm-spacing-lg);
    right: var(--bm-spacing-lg);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .bm-add-business-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print optimizations */
@media print {
  .bm-single__actions,
  .bm-form,
  .bm-button,
  .bm-dashboard__business-actions,
  .bm-profile__actions,
  .bm-archive__filters,
  .bm-modal,
  .bm-fab,
  .bm-add-business-btn {
    display: none;
  }

  .bm-profile__cover {
    height: auto;
    background: none;
  }

  .bm-single,
  .bm-dashboard,
  .bm-contact,
  .bm-gallery,
  .bm-profile,
  .bm-archive {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Gallery Modal Styles */
#bm-gallery-modal {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

#bm-gallery-modal .bm-modal__container {
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
  box-shadow: none;
  border-radius: 0;
}

#bm-gallery-modal .bm-modal__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  border: none;
  padding: var(--bm-spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#bm-gallery-modal .bm-modal__title {
  color: white;
  font-size: var(--bm-font-size-lg);
  font-weight: 600;
  margin: 0;
}

#bm-gallery-modal .bm-modal__close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
}

#bm-gallery-modal .bm-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

#bm-gallery-modal .bm-modal__content {
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bm-modal__image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 80px 20px 100px;
  box-sizing: border-box;
}

.bm-modal__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--bm-radius-base);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.bm-modal__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  padding: var(--bm-spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bm-spacing-lg);
}

.bm-modal__nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
}

.bm-modal__nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.bm-modal__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bm-modal__counter {
  color: white;
  font-size: var(--bm-font-size-base);
  font-weight: 500;
  padding: 0 var(--bm-spacing-md);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--bm-radius-base);
  min-width: 60px;
  text-align: center;
  line-height: 2;
}

/* Gallery Grid Improvements */
.bm-profile__gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--bm-radius-base);
  transition: all 0.2s ease;
  text-decoration: none;
}

.bm-profile__gallery-link:hover {
  transform: scale(1.02);
  box-shadow: var(--bm-shadow-lg);
}

.bm-profile__gallery-link:focus {
  outline: 3px solid var(--bm-color-primary);
  outline-offset: 2px;
}

.bm-profile__gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s ease;
}

.bm-profile__gallery-link:hover .bm-profile__gallery-image {
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #bm-gallery-modal .bm-modal__header {
    padding: var(--bm-spacing-md);
  }

  #bm-gallery-modal .bm-modal__title {
    font-size: var(--bm-font-size-base);
  }

  #bm-gallery-modal .bm-modal__close {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .bm-modal__image-container {
    padding: 60px 10px 80px;
  }

  .bm-modal__nav {
    padding: var(--bm-spacing-md);
    gap: var(--bm-spacing-md);
  }

  .bm-modal__nav-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .bm-modal__counter {
    font-size: var(--bm-font-size-sm);
    min-width: 50px;
  }
}

/* Loading state for gallery modal */
.bm-modal__image-container.loading {
  position: relative;
}

.bm-modal__image-container.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Overlay for "show more" indicator */
.bm-profile__gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--bm-font-size-xl);
  font-weight: 600;
  border-radius: var(--bm-radius-base);
  transition: all 0.2s ease;
}

.bm-profile__gallery-link:hover .bm-profile__gallery-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.bm-profile__gallery-more {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Select2 Customizations */
.select2-container--default .select2-selection--multiple {
    background-color: var(--bm-color-surface-2, #f6f7f7) !important;
    border: 1px solid var(--bm-color-border, #dcdcde) !important;
    border-radius: var(--bm-radius-base);
    min-height: 40px;
    padding: var(--bm-spacing-xs);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--bm-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bm-color-primary) !important;
    color: #fff !important;
    border: 1px solid var(--bm-color-secondary) !important;
    border-radius: var(--bm-radius-sm) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
}

.select2-dropdown {
    background-color: var(--bm-color-surface) !important;
    border: 1px solid var(--bm-color-border) !important;
    border-radius: var(--bm-radius-base);
    box-shadow: var(--bm-shadow-lg);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--bm-color-border) !important;
    background-color: var(--bm-color-surface-2) !important;
    color: var(--bm-color-text) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--bm-color-primary) !important;
    color: #fff !important;
}

/* Contact shortcode styles */
.bm-contact--list .bm-contact__item {
  display: flex;
  align-items: center;
  gap: var(--bm-spacing-md);
  margin-bottom: var(--bm-spacing-md);
  padding: var(--bm-spacing-md);
  background: var(--bm-color-surface-2);
  border-radius: var(--bm-radius-base);
  transition: all 0.3s ease;
}

.bm-contact--list .bm-contact__item:hover {
  background: var(--bm-color-surface-3);
  transform: translateX(4px);
}

/* Modal Form Steps */
.bm-form-steps {
    display: flex;
    flex-direction: column;
}

.bm-form-steps__nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--bm-spacing-xl);
    border-bottom: 1px solid var(--bm-color-border);
    padding-bottom: var(--bm-spacing-md);
}

.bm-form-steps__nav-item {
    flex: 1;
    text-align: center;
    background: transparent;
    border: none;
    padding: var(--bm-spacing-sm);
    cursor: pointer;
    color: var(--bm-color-text-muted) !important;
    position: relative;
    font-weight: 600;
}

.bm-form-steps__nav-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.bm-form-steps__nav-item.active {
    color: var(--bm-color-primary) !important;
}

.bm-form-steps__nav-item.active::after {
    background-color: var(--bm-color-primary) !important;
}

.bm-form-steps__nav-item.completed {
    color: var(--bm-color-success) !important;
}
.bm-form-steps__nav-item.completed .bm-form-steps__nav-number {
    background-color: var(--bm-color-success) !important;
    color: #fff !important;
}


.bm-form-steps__nav-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background-color: var(--bm-color-surface-2) !important;
    color: var(--bm-color-text-muted) !important;
    margin-right: var(--bm-spacing-sm);
    font-weight: 700;
    transition: all 0.3s ease;
}

.bm-form-steps__nav-item.active .bm-form-steps__nav-number {
    background-color: var(--bm-color-primary) !important;
    color: #fff !important;
}

.bm-form-steps__content {
    position: relative;
}

.bm-form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.bm-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bm-spacing-lg);
}

@media (max-width: 768px) {
    .bm-form-grid {
        grid-template-columns: 1fr;
    }
    .bm-form-steps__nav-label {
        display: none;
    }
}

.bm-form--modal .bm-form__actions {
    display: flex;
    justify-content: space-between;
}

/* WP Editor / TinyMCE Customizations */
.bm-form .mce-tinymce {
    border: 1px solid var(--bm-color-border, #dcdcde) !important;
    border-radius: var(--bm-radius-base) !important;
}
.bm-form .mce-top-part::before {
    box-shadow: none !important;
}
.bm-form .mce-toolbar-grp {
    background: var(--bm-color-surface-2) !important;
    padding: 5px !important;
    border-bottom: 1px solid var(--bm-color-border) !important;
}
.bm-form .mce-edit-area {
    border-top: none !important;
}
.bm-form iframe {
    background-color: var(--bm-color-surface) !important;
}


/* Select2 Customizations for Chip-like Single Select */
.select2-dropdown {
    background-color: var(--bm-color-surface) !important;
}

.bm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bm-spacing-lg);
}

@media (max-width: 768px) {
    .bm-form-grid {
        grid-template-columns: 1fr;
    }
}

.bm-form--modal .bm-form__scroll-container {
    overflow-y: auto;
    padding: 0 var(--bm-spacing-xl);
    margin: 0 calc(var(--bm-spacing-xl) * -1);
    flex-grow: 1;
}
.bm-form--modal .bm-form__scroll-container .bm-form__fieldset:first-child {
    margin-top: var(--bm-spacing-xl);
}

.bm-form--modal .bm-form__actions {
    display: flex;
    justify-content: flex-end;
    padding: var(--bm-spacing-md) var(--bm-spacing-xl) !important;
    border-top: 1px solid var(--bm-color-border) !important;
    background-color: var(--bm-color-surface) !important;
    margin-top: auto !important;
}