/* ==========================================================================
   GGCC Business Map Directory — Frontend Styles
   ========================================================================== */

:root {
  --bmd-primary:      #2563EB;
  --bmd-primary-dark: #1D4ED8;
  --bmd-success:      #16A34A;
  --bmd-danger:       #DC2626;
  --bmd-warning:      #D97706;
  --bmd-neutral-50:   #F8FAFC;
  --bmd-neutral-100:  #F1F5F9;
  --bmd-neutral-200:  #E2E8F0;
  --bmd-neutral-400:  #94A3B8;
  --bmd-neutral-600:  #475569;
  --bmd-neutral-700:  #334155;
  --bmd-neutral-900:  #0F172A;
  --bmd-card-radius:  12px;
  --bmd-btn-radius:   8px;
  --bmd-transition:   0.18s ease;
  --bmd-shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --bmd-shadow-md:    0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --bmd-shadow-focus: 0 0 0 3px rgba(37,99,235,0.25);
  --bmd-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base reset inside wrapper */
.bmd-wrapper *,
.bmd-single-wrapper *,
.bmd-submit-wrapper * {
  box-sizing: border-box;
}

/* ==========================================================================
   Directory Page
   ========================================================================== */

.bmd-wrapper {
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-700);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Page header */
.bmd-page-header {
  padding: 2.5rem 0 1.5rem;
}

.bmd-page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.375rem;
  line-height: 1.15;
}

.bmd-page-subtitle {
  font-size: 1rem;
  color: var(--bmd-neutral-600);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Filters bar
   -------------------------------------------------------------------------- */

.bmd-filters {
  background: #fff;
  border: 1px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-card-radius);
  box-shadow: var(--bmd-shadow-sm);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: row;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

/* Search bar */
.bmd-search-bar {
  display:flex;
  height: 48px;
  position: relative;
  flex: 2 1 480px;
}

.bmd-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bmd-neutral-400);
  pointer-events: none;
}

#bmd-search {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1.5px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-btn-radius);
  font-size: 0.9375rem;
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-900);
  background: var(--bmd-neutral-50);
  transition: border-color var(--bmd-transition), box-shadow var(--bmd-transition);
  outline: none;
}

#bmd-search:focus {
  border-color: var(--bmd-primary);
  box-shadow: var(--bmd-shadow-focus);
  background: #fff;
}

/* Category dropdown */
.bmd-category-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#bmd-category-select {
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  border: 1.5px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-btn-radius);
  font-size: 0.8125rem;
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-700);
  background: var(--bmd-neutral-50);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  cursor: pointer;
  outline: none;
  height: 36px;
}

#bmd-category-select:focus {
  border-color: var(--bmd-primary);
  box-shadow: var(--bmd-shadow-focus);
}

/* Filter row: distance + sort */
.bmd-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.bmd-filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bmd-neutral-600);
  white-space: nowrap;
}

.bmd-distance-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bmd-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--bmd-neutral-700);
  cursor: pointer;
}

.bmd-radio-label input[type="radio"] {
  accent-color: var(--bmd-primary);
  cursor: pointer;
}

.bmd-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

#bmd-sort {
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  border: 1.5px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-btn-radius);
  font-size: 0.8125rem;
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-700);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  appearance: none;
  cursor: pointer;
  outline: none;
}

#bmd-sort:focus {
  border-color: var(--bmd-primary);
  box-shadow: var(--bmd-shadow-focus);
}

/* --------------------------------------------------------------------------
   Content: sidebar + map
   -------------------------------------------------------------------------- */

.bmd-content {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1rem;
  height: 680px;
}

/* Sidebar */
.bmd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.bmd-results-meta {
  font-size: 0.8125rem;
  color: var(--bmd-neutral-600);
  padding: 0.25rem 0 0.625rem;
  flex-shrink: 0;
}

.bmd-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--bmd-neutral-200) transparent;
}

.bmd-list::-webkit-scrollbar        { width: 5px; }
.bmd-list::-webkit-scrollbar-track  { background: transparent; }
.bmd-list::-webkit-scrollbar-thumb  { background: var(--bmd-neutral-200); border-radius: 99px; }

.bmd-pagination {
  padding-top: 0.75rem;
  flex-shrink: 0;
}

/* Business card */
.bmd-business-card {
  display: flex;
  background: #fff;
  border: 1.5px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-card-radius);
  box-shadow: var(--bmd-shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--bmd-transition), border-color var(--bmd-transition), transform var(--bmd-transition);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.bmd-business-card:hover {
  box-shadow: var(--bmd-shadow-md);
  transform: translateY(-1px);
}

.bmd-business-card.bmd-card--active {
  border-color: var(--bmd-primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15), var(--bmd-shadow-md);
}

.bmd-card-image-wrap {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bmd-neutral-100);
  position: relative;
}

.bmd-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bmd-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  min-height: 90px;
}

.bmd-card-body {
  flex: 1;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.bmd-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  color: #fff;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bmd-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmd-card-address {
  font-size: 0.8rem;
  color: var(--bmd-neutral-600);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmd-hours-status {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.bmd-hours-status.is-open  { color: var(--bmd-success); }
.bmd-hours-status.is-closed { color: var(--bmd-danger); }

.bmd-card-footer {
  margin-top: auto;
  padding-top: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bmd-view-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bmd-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color var(--bmd-transition);
}

.bmd-view-btn:hover { color: var(--bmd-primary-dark); }

/* Skeleton loader */
.bmd-skeleton {
  background: linear-gradient(90deg, var(--bmd-neutral-100) 25%, #e9edf3 50%, var(--bmd-neutral-100) 75%);
  background-size: 200% 100%;
  animation: bmd-shimmer 1.4s infinite;
  border-radius: 6px;
}

@keyframes bmd-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Load more */
.bmd-load-more {
  width: 100%;
  padding: 0.625rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--bmd-primary);
  border-radius: var(--bmd-btn-radius);
  color: var(--bmd-primary);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--bmd-font);
  cursor: pointer;
  transition: all var(--bmd-transition);
}

.bmd-load-more:hover {
  background: var(--bmd-primary);
  color: #fff;
}

/* Map container */
.bmd-map-container {
  border-radius: var(--bmd-card-radius);
  overflow: hidden;
  box-shadow: var(--bmd-shadow-sm);
  border: 1px solid var(--bmd-neutral-200);
}

#bmd-map {
  height: 100%;
  width: 100%;
}

/* Info window */
.bmd-info-window {
  font-family: var(--bmd-font);
  min-width: 240px;
  max-width: 280px;
}

.bmd-iw-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
  margin: -12px -16px 10px;
  width: calc(100% + 32px);
}

.bmd-iw-body {
  padding: 0;
}

.bmd-iw-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.bmd-iw-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.bmd-iw-address {
  font-size: 0.8rem;
  color: var(--bmd-neutral-600);
  margin: 0 0 0.25rem;
}

.bmd-iw-hours {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.625rem;
}

.bmd-iw-hours.is-open  { color: var(--bmd-success); }
.bmd-iw-hours.is-closed { color: var(--bmd-danger); }

.bmd-iw-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bmd-iw-directions {
  flex: 1;
  padding: 0.4rem 0.75rem;
  background: var(--bmd-neutral-100);
  border: 1px solid var(--bmd-neutral-200);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-700);
  cursor: pointer;
  transition: all var(--bmd-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.bmd-iw-directions:hover {
  background: var(--bmd-neutral-200);
  color: var(--bmd-neutral-900);
}

.bmd-iw-details {
  flex: 1;
  padding: 0.4rem 0.75rem;
  background: var(--bmd-primary);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  transition: background var(--bmd-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bmd-iw-details:hover {
  background: var(--bmd-primary-dark);
}

/* ==========================================================================
   Single Business Page
   ========================================================================== */

.bmd-single-wrapper {
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-700);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* Header */
.bmd-single-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--bmd-neutral-200);
  margin-bottom: 1.5rem;
}

.bmd-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bmd-single-category {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bmd-single-neighborhood {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--bmd-neutral-600);
}

.bmd-single-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bmd-warning);
  background: #FEF3C7;
  padding: 0.175rem 0.625rem;
  border-radius: 9999px;
}

.bmd-single-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.bmd-single-hours-status {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}
.bmd-single-hours-status.is-open  { color: var(--bmd-success); }
.bmd-single-hours-status.is-closed { color: var(--bmd-danger); }

/* Gallery */
.bmd-single-gallery {
  margin-bottom: 2rem;
  border-radius: var(--bmd-card-radius);
  overflow: hidden;
}

.bmd-single-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Body: two columns */
.bmd-single-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Info sidebar */
.bmd-single-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bmd-single-info-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bmd-neutral-200);
}

.bmd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.bmd-info-icon {
  flex-shrink: 0;
  color: var(--bmd-neutral-400);
  margin-top: 1px;
}

.bmd-info-link {
  color: var(--bmd-neutral-700);
  text-decoration: none;
  word-break: break-word;
}

.bmd-info-link:hover {
  color: var(--bmd-primary);
  text-decoration: underline;
}

/* Hours table */
.bmd-hours-section {}

.bmd-hours-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.5rem;
}

.bmd-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.bmd-hours-table tr {
  border-bottom: 1px solid var(--bmd-neutral-100);
}

.bmd-hours-table tr.bmd-today {
  background: #EFF6FF;
  font-weight: 700;
  color: var(--bmd-primary);
}

.bmd-hours-table tr.bmd-today .bmd-hours-day {
  color: var(--bmd-primary);
}

.bmd-hours-table td {
  padding: 0.3rem 0.25rem;
}

.bmd-hours-day {
  color: var(--bmd-neutral-700);
  width: 90px;
}

.bmd-hours-time {
  color: var(--bmd-neutral-600);
}

/* Social links */
.bmd-social-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.5rem;
}

.bmd-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bmd-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: var(--bmd-btn-radius);
  border: 1px solid var(--bmd-neutral-200);
  color: var(--bmd-neutral-700);
  transition: all var(--bmd-transition);
}

.bmd-social-link:hover {
  border-color: currentColor;
}

.bmd-social-facebook:hover  { color: #1877F2; }
.bmd-social-instagram:hover { color: #E1306C; }
.bmd-social-twitter:hover   { color: #000; }

/* Description */
.bmd-single-desc-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bmd-neutral-200);
}

.bmd-single-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--bmd-neutral-700);
}

.bmd-single-content p { margin: 0 0 1rem; }
.bmd-single-content p:last-child { margin-bottom: 0; }

/* Embedded map */
.bmd-single-map-section {
  margin-bottom: 2.5rem;
}

.bmd-single-map-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bmd-neutral-200);
}

.bmd-single-map-canvas {
  width: 100%;
  height: 320px;
  border-radius: var(--bmd-card-radius);
  overflow: hidden;
  border: 1px solid var(--bmd-neutral-200);
}

.bmd-single-map-address {
  margin: 0.5rem 0 0;
}

.bmd-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bmd-primary);
  text-decoration: none;
}

.bmd-directions-link:hover {
  color: var(--bmd-primary-dark);
  text-decoration: underline;
}

/* Related businesses */
.bmd-related-section {
  margin-top: 1rem;
}

.bmd-related-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 1rem;
}

.bmd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bmd-related-card {
  background: #fff;
  border: 1.5px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--bmd-transition), transform var(--bmd-transition);
  display: flex;
  flex-direction: column;
}

.bmd-related-card:hover {
  box-shadow: var(--bmd-shadow-md);
  transform: translateY(-2px);
}

.bmd-related-img-wrap {
  height: 140px;
  overflow: hidden;
}

.bmd-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bmd-related-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.bmd-related-body {
  padding: 0.875rem;
}

.bmd-related-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.bmd-related-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.bmd-related-address {
  font-size: 0.8rem;
  color: var(--bmd-neutral-600);
  margin: 0;
}

/* ==========================================================================
   Submission Form
   ========================================================================== */

.bmd-submit-wrapper {
  font-family: var(--bmd-font);
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
}

.bmd-submit-card {
  background: #fff;
  border: 1px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-card-radius);
  box-shadow: var(--bmd-shadow-md);
  padding: 2rem 2.5rem;
}

.bmd-submit-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bmd-neutral-900);
  margin: 0 0 0.375rem;
}

.bmd-submit-subtitle {
  font-size: 0.875rem;
  color: var(--bmd-neutral-600);
  margin: 0 0 1.75rem;
}

.bmd-form-group {
  margin-bottom: 1.25rem;
}

.bmd-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bmd-neutral-700);
  margin-bottom: 0.375rem;
}

.bmd-required {
  color: var(--bmd-danger);
}

.bmd-form-group input[type="text"],
.bmd-form-group input[type="tel"],
.bmd-form-group input[type="url"],
.bmd-form-group select,
.bmd-form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--bmd-neutral-200);
  border-radius: var(--bmd-btn-radius);
  font-size: 0.9375rem;
  font-family: var(--bmd-font);
  color: var(--bmd-neutral-900);
  background: var(--bmd-neutral-50);
  transition: border-color var(--bmd-transition), box-shadow var(--bmd-transition);
  outline: none;
}

.bmd-form-group input:focus,
.bmd-form-group select:focus,
.bmd-form-group textarea:focus {
  border-color: var(--bmd-primary);
  box-shadow: var(--bmd-shadow-focus);
  background: #fff;
}

.bmd-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.bmd-file-input {
  width: 100%;
  font-size: 0.875rem;
  color: var(--bmd-neutral-700);
}

.bmd-submit-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--bmd-primary);
  color: #fff;
  border: none;
  border-radius: var(--bmd-btn-radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--bmd-font);
  cursor: pointer;
  transition: background var(--bmd-transition);
  margin-top: 0.5rem;
}

.bmd-submit-btn:hover:not(:disabled) {
  background: var(--bmd-primary-dark);
}

.bmd-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Submit messages */
.bmd-submit-message {
  padding: 0.75rem 1rem;
  border-radius: var(--bmd-btn-radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.bmd-msg-success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
}

.bmd-msg-error {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .bmd-content {
    grid-template-columns: 1fr;
    height: auto;
  }
  .bmd-filters{
    flex-direction: column;
  }
  .bmd-search-bar {
    flex: 0;
  }
  .bmd-sidebar {
    order: 2;
    max-height: 500px;
    overflow: hidden;
  }

  .bmd-list {
    max-height: 460px;
  }

  .bmd-map-container {
    order: 1;
    height: 320px;
  }

  #bmd-map {
    height: 320px;
  }

  .bmd-single-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 600px) {
  .bmd-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .bmd-sort-wrapper {
    margin-left: 0;
  }

  .bmd-business-card {
    flex-direction: column;
  }

  .bmd-card-image-wrap {
    width: 100%;
    height: 140px;
  }

  .bmd-related-grid {
    grid-template-columns: 1fr;
  }

  .bmd-submit-card {
    padding: 1.25rem 1.25rem;
  }
}
