/* ==============================
   Accessibility
   ============================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--color-brand);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ==============================
   Display
   ============================== */
.hidden {
  display: none;
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

/* ==============================
   Text
   ============================== */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-nowrap {
  white-space: nowrap;
}

/* ==============================
   Shadows
   ============================== */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

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

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* ==============================
   Borders
   ============================== */
.border {
  border: 1px solid var(--color-border);
}

.border-t {
  border-top: 1px solid var(--color-border);
}

.border-b {
  border-bottom: 1px solid var(--color-border);
}

.border-l {
  border-left: 1px solid var(--color-border);
}

.border-r {
  border-right: 1px solid var(--color-border);
}

.border-0 {
  border: 0;
}

/* ==============================
   Border Radius
   ============================== */
.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ==============================
   Backgrounds
   ============================== */
.bg-white {
  background: white;
}

.bg-light {
  background: var(--color-surface);
}

.bg-gray {
  background: var(--color-surface-dark);
}

.bg-primary {
  background: var(--color-primary);
}

.bg-brand {
  background: var(--color-brand);
}

.bg-brand-light {
  background: var(--color-brand-light);
}

/* ==============================
   Notification Dot
   ============================== */
.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-error);
  display: inline-block;
}

/* ==============================
   Count Badge
   ============================== */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-error);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
}

/* ==============================
   Map Placeholder
   ============================== */
.map-placeholder {
  height: 300px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
