.crossings-app {
  background: #f5f7fb;
  color: #263238;
}

.crossings-app .navbar-brand {
  letter-spacing: 0;
}

.app-card {
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.05);
}

.touch-btn {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.touch-btn-wide {
  min-height: 48px;
}

.form-control-lg,
.form-select-lg,
.btn-lg {
  min-height: 48px;
}

.sticky-save {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
}

.photo-preview img {
  max-height: 180px;
  object-fit: cover;
}

.metric-tile {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3e8ef;
  padding: 16px;
}

.table-actions {
  min-width: 220px;
}

.login-card {
  max-width: 420px;
}

.inspection-map,
.inspections-map,
.crossings-map {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  overflow: hidden;
}

.inspections-map,
.crossings-map {
  min-height: 680px;
}

.map-info-window {
  min-width: 220px;
  font-size: 14px;
  line-height: 1.45;
}

.crossing-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.pending {
  background: #f59e0b;
}

.legend-dot.completed {
  background: #1f9d55;
}

.map-location-control {
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #263238;
  padding: 10px 12px;
  margin: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
}

.map-location-control:disabled {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .sticky-save .container {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .inspection-map {
    min-height: 300px;
  }

  .inspections-map,
  .crossings-map {
    min-height: 520px;
  }
}
